OSDN Git Service

2010-09-14 Tristan Gingold <gingold@adacore.com>
[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 LIBELFINC
606 LIBELFLIBS
607 CLOOGINC
608 CLOOGLIBS
609 PPLINC
610 PPLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 out_object_file
628 out_file
629 objc_boehm_gc
630 md_file
631 local_prefix
632 lang_tree_files
633 lang_specs_files
634 lang_opt_files
635 install
636 out_host_hook_obj
637 host_xm_defines
638 host_xm_include_list
639 host_xm_file_list
640 host_exeext
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_passes
646 extra_parts
647 extra_objs
648 extra_headers_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 slibdir
673 dollar
674 gcc_tooldir
675 LTO_USE_LIBELF
676 LTO_BINARY_READER
677 enable_lto
678 MAINT
679 zlibinc
680 zlibdir
681 HOST_LIBS
682 GGC
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 gcc_cv_ld
691 ORIGINAL_AS_FOR_TARGET
692 gcc_cv_as
693 enable_fast_install
694 objdir
695 CXXCPP
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 STRIP
702 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
705 LD
706 FGREP
707 SED
708 LIBTOOL
709 collect2
710 STMP_FIXINC
711 BUILD_LDFLAGS
712 BUILD_CFLAGS
713 CC_FOR_BUILD
714 inhibit_libc
715 SYSTEM_HEADER_DIR
716 ALL
717 CROSS
718 CATOBJEXT
719 GENCAT
720 INSTOBJEXT
721 DATADIRNAME
722 CATALOGS
723 POSUB
724 GMSGFMT
725 XGETTEXT
726 INCINTL
727 LIBINTL_DEP
728 LIBINTL
729 USE_NLS
730 extra_opt_files
731 extra_modes_file
732 gthread_flags
733 objext
734 manext
735 LIBICONV_DEP
736 LTLIBICONV
737 LIBICONV
738 LDEXP_LIB
739 GNAT_LIBEXC
740 COLLECT2_LIBS
741 AR
742 NM
743 BISON
744 FLEX
745 GENERATED_MANPAGES
746 BUILD_INFO
747 MAKEINFO
748 have_mktemp_command
749 make_compare_target
750 INSTALL_DATA
751 INSTALL_PROGRAM
752 INSTALL
753 ranlib_flags
754 RANLIB
755 LN
756 LN_S
757 AWK
758 SET_MAKE
759 REPORT_BUGS_TEXI
760 REPORT_BUGS_TO
761 PKGVERSION
762 onestep
763 CONFIGURE_SPECS
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
766 TARGET_SYSTEM_ROOT
767 enable_shared
768 enable_fixed_point
769 enable_decimal_float
770 enable_multilib
771 ENABLE_BUILD_WITH_CXX
772 coverage_flags
773 valgrind_command
774 valgrind_path_defines
775 valgrind_path
776 TREEBROWSER
777 nocommon_flag
778 warn_cxxflags
779 warn_cflags
780 c_strict_warn
781 strict_warn
782 c_loose_warn
783 loose_warn
784 EGREP
785 GREP
786 CPP
787 OUTPUT_OPTION
788 NO_MINUS_C_MINUS_O
789 GNATMAKE
790 GNATBIND
791 ac_ct_CXX
792 CXXFLAGS
793 CXX
794 OBJEXT
795 EXEEXT
796 ac_ct_CC
797 CPPFLAGS
798 LDFLAGS
799 CFLAGS
800 CC
801 GENINSRC
802 target_subdir
803 host_subdir
804 build_subdir
805 build_libsubdir
806 target_noncanonical
807 target_os
808 target_vendor
809 target_cpu
810 target
811 host_os
812 host_vendor
813 host_cpu
814 host
815 build_os
816 build_vendor
817 build_cpu
818 build
819 target_alias
820 host_alias
821 build_alias
822 LIBS
823 ECHO_T
824 ECHO_N
825 ECHO_C
826 DEFS
827 mandir
828 localedir
829 libdir
830 psdir
831 pdfdir
832 dvidir
833 htmldir
834 infodir
835 docdir
836 oldincludedir
837 includedir
838 localstatedir
839 sharedstatedir
840 sysconfdir
841 datadir
842 datarootdir
843 libexecdir
844 sbindir
845 bindir
846 program_transform_name
847 prefix
848 exec_prefix
849 PACKAGE_URL
850 PACKAGE_BUGREPORT
851 PACKAGE_STRING
852 PACKAGE_VERSION
853 PACKAGE_TARNAME
854 PACKAGE_NAME
855 PATH_SEPARATOR
856 SHELL'
857 ac_subst_files='language_hooks'
858 ac_user_opts='
859 enable_option_checking
860 with_build_libsubdir
861 with_local_prefix
862 with_gxx_include_dir
863 with_cpp_install_dir
864 enable_generated_files_in_srcdir
865 with_gnu_ld
866 with_ld
867 with_demangler_in_ld
868 with_gnu_as
869 with_as
870 enable_werror_always
871 enable_checking
872 enable_coverage
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
875 with_stabs
876 enable_multilib
877 enable___cxa_atexit
878 enable_decimal_float
879 enable_fixed_point
880 enable_threads
881 enable_tls
882 enable_objc_gc
883 with_dwarf2
884 enable_shared
885 with_build_sysroot
886 with_sysroot
887 with_specs
888 enable_intermodule
889 with_pkgversion
890 with_bugurl
891 enable_languages
892 with_multilib_list
893 enable_rpath
894 with_libiconv_prefix
895 enable_initfini_array
896 enable_sjlj_exceptions
897 with_system_libunwind
898 enable_secureplt
899 enable_leading_mingw64_underscores
900 enable_cld
901 enable_frame_pointer
902 enable_win32_registry
903 enable_static
904 with_pic
905 enable_fast_install
906 enable_libtool_lock
907 with_plugin_ld
908 enable_comdat
909 enable_gnu_unique_object
910 enable_linker_build_id
911 with_long_double_128
912 with_gc
913 with_system_zlib
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
916 with_slibdir
917 enable_plugin
918 '
919       ac_precious_vars='build_alias
920 host_alias
921 target_alias
922 CC
923 CFLAGS
924 LDFLAGS
925 LIBS
926 CPPFLAGS
927 CXX
928 CXXFLAGS
929 CCC
930 CPP
931 CXXCPP
932 GMPLIBS
933 GMPINC
934 PPLLIBS
935 PPLINC
936 CLOOGLIBS
937 CLOOGINC
938 LIBELFLIBS
939 LIBELFINC'
940
941
942 # Initialize some variables set by options.
943 ac_init_help=
944 ac_init_version=false
945 ac_unrecognized_opts=
946 ac_unrecognized_sep=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
949 cache_file=/dev/null
950 exec_prefix=NONE
951 no_create=
952 no_recursion=
953 prefix=NONE
954 program_prefix=NONE
955 program_suffix=NONE
956 program_transform_name=s,x,x,
957 silent=
958 site=
959 srcdir=
960 verbose=
961 x_includes=NONE
962 x_libraries=NONE
963
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
989
990 ac_prev=
991 ac_dashdash=
992 for ac_option
993 do
994   # If the previous option needs an argument, assign it.
995   if test -n "$ac_prev"; then
996     eval $ac_prev=\$ac_option
997     ac_prev=
998     continue
999   fi
1000
1001   case $ac_option in
1002   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003   *)    ac_optarg=yes ;;
1004   esac
1005
1006   # Accept the important Cygnus configure options, so we can diagnose typos.
1007
1008   case $ac_dashdash$ac_option in
1009   --)
1010     ac_dashdash=yes ;;
1011
1012   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013     ac_prev=bindir ;;
1014   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015     bindir=$ac_optarg ;;
1016
1017   -build | --build | --buil | --bui | --bu)
1018     ac_prev=build_alias ;;
1019   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020     build_alias=$ac_optarg ;;
1021
1022   -cache-file | --cache-file | --cache-fil | --cache-fi \
1023   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024     ac_prev=cache_file ;;
1025   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027     cache_file=$ac_optarg ;;
1028
1029   --config-cache | -C)
1030     cache_file=config.cache ;;
1031
1032   -datadir | --datadir | --datadi | --datad)
1033     ac_prev=datadir ;;
1034   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035     datadir=$ac_optarg ;;
1036
1037   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038   | --dataroo | --dataro | --datar)
1039     ac_prev=datarootdir ;;
1040   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042     datarootdir=$ac_optarg ;;
1043
1044   -disable-* | --disable-*)
1045     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046     # Reject names that are not valid shell variable names.
1047     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048       as_fn_error "invalid feature name: $ac_useropt"
1049     ac_useropt_orig=$ac_useropt
1050     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051     case $ac_user_opts in
1052       *"
1053 "enable_$ac_useropt"
1054 "*) ;;
1055       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056          ac_unrecognized_sep=', ';;
1057     esac
1058     eval enable_$ac_useropt=no ;;
1059
1060   -docdir | --docdir | --docdi | --doc | --do)
1061     ac_prev=docdir ;;
1062   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063     docdir=$ac_optarg ;;
1064
1065   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066     ac_prev=dvidir ;;
1067   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068     dvidir=$ac_optarg ;;
1069
1070   -enable-* | --enable-*)
1071     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072     # Reject names that are not valid shell variable names.
1073     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074       as_fn_error "invalid feature name: $ac_useropt"
1075     ac_useropt_orig=$ac_useropt
1076     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077     case $ac_user_opts in
1078       *"
1079 "enable_$ac_useropt"
1080 "*) ;;
1081       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082          ac_unrecognized_sep=', ';;
1083     esac
1084     eval enable_$ac_useropt=\$ac_optarg ;;
1085
1086   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088   | --exec | --exe | --ex)
1089     ac_prev=exec_prefix ;;
1090   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092   | --exec=* | --exe=* | --ex=*)
1093     exec_prefix=$ac_optarg ;;
1094
1095   -gas | --gas | --ga | --g)
1096     # Obsolete; use --with-gas.
1097     with_gas=yes ;;
1098
1099   -help | --help | --hel | --he | -h)
1100     ac_init_help=long ;;
1101   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102     ac_init_help=recursive ;;
1103   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104     ac_init_help=short ;;
1105
1106   -host | --host | --hos | --ho)
1107     ac_prev=host_alias ;;
1108   -host=* | --host=* | --hos=* | --ho=*)
1109     host_alias=$ac_optarg ;;
1110
1111   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112     ac_prev=htmldir ;;
1113   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114   | --ht=*)
1115     htmldir=$ac_optarg ;;
1116
1117   -includedir | --includedir | --includedi | --included | --include \
1118   | --includ | --inclu | --incl | --inc)
1119     ac_prev=includedir ;;
1120   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121   | --includ=* | --inclu=* | --incl=* | --inc=*)
1122     includedir=$ac_optarg ;;
1123
1124   -infodir | --infodir | --infodi | --infod | --info | --inf)
1125     ac_prev=infodir ;;
1126   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127     infodir=$ac_optarg ;;
1128
1129   -libdir | --libdir | --libdi | --libd)
1130     ac_prev=libdir ;;
1131   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132     libdir=$ac_optarg ;;
1133
1134   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135   | --libexe | --libex | --libe)
1136     ac_prev=libexecdir ;;
1137   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138   | --libexe=* | --libex=* | --libe=*)
1139     libexecdir=$ac_optarg ;;
1140
1141   -localedir | --localedir | --localedi | --localed | --locale)
1142     ac_prev=localedir ;;
1143   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144     localedir=$ac_optarg ;;
1145
1146   -localstatedir | --localstatedir | --localstatedi | --localstated \
1147   | --localstate | --localstat | --localsta | --localst | --locals)
1148     ac_prev=localstatedir ;;
1149   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151     localstatedir=$ac_optarg ;;
1152
1153   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154     ac_prev=mandir ;;
1155   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156     mandir=$ac_optarg ;;
1157
1158   -nfp | --nfp | --nf)
1159     # Obsolete; use --without-fp.
1160     with_fp=no ;;
1161
1162   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163   | --no-cr | --no-c | -n)
1164     no_create=yes ;;
1165
1166   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168     no_recursion=yes ;;
1169
1170   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172   | --oldin | --oldi | --old | --ol | --o)
1173     ac_prev=oldincludedir ;;
1174   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177     oldincludedir=$ac_optarg ;;
1178
1179   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180     ac_prev=prefix ;;
1181   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182     prefix=$ac_optarg ;;
1183
1184   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185   | --program-pre | --program-pr | --program-p)
1186     ac_prev=program_prefix ;;
1187   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189     program_prefix=$ac_optarg ;;
1190
1191   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192   | --program-suf | --program-su | --program-s)
1193     ac_prev=program_suffix ;;
1194   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196     program_suffix=$ac_optarg ;;
1197
1198   -program-transform-name | --program-transform-name \
1199   | --program-transform-nam | --program-transform-na \
1200   | --program-transform-n | --program-transform- \
1201   | --program-transform | --program-transfor \
1202   | --program-transfo | --program-transf \
1203   | --program-trans | --program-tran \
1204   | --progr-tra | --program-tr | --program-t)
1205     ac_prev=program_transform_name ;;
1206   -program-transform-name=* | --program-transform-name=* \
1207   | --program-transform-nam=* | --program-transform-na=* \
1208   | --program-transform-n=* | --program-transform-=* \
1209   | --program-transform=* | --program-transfor=* \
1210   | --program-transfo=* | --program-transf=* \
1211   | --program-trans=* | --program-tran=* \
1212   | --progr-tra=* | --program-tr=* | --program-t=*)
1213     program_transform_name=$ac_optarg ;;
1214
1215   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216     ac_prev=pdfdir ;;
1217   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218     pdfdir=$ac_optarg ;;
1219
1220   -psdir | --psdir | --psdi | --psd | --ps)
1221     ac_prev=psdir ;;
1222   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223     psdir=$ac_optarg ;;
1224
1225   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226   | -silent | --silent | --silen | --sile | --sil)
1227     silent=yes ;;
1228
1229   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230     ac_prev=sbindir ;;
1231   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232   | --sbi=* | --sb=*)
1233     sbindir=$ac_optarg ;;
1234
1235   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237   | --sharedst | --shareds | --shared | --share | --shar \
1238   | --sha | --sh)
1239     ac_prev=sharedstatedir ;;
1240   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243   | --sha=* | --sh=*)
1244     sharedstatedir=$ac_optarg ;;
1245
1246   -site | --site | --sit)
1247     ac_prev=site ;;
1248   -site=* | --site=* | --sit=*)
1249     site=$ac_optarg ;;
1250
1251   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252     ac_prev=srcdir ;;
1253   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254     srcdir=$ac_optarg ;;
1255
1256   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257   | --syscon | --sysco | --sysc | --sys | --sy)
1258     ac_prev=sysconfdir ;;
1259   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261     sysconfdir=$ac_optarg ;;
1262
1263   -target | --target | --targe | --targ | --tar | --ta | --t)
1264     ac_prev=target_alias ;;
1265   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266     target_alias=$ac_optarg ;;
1267
1268   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269     verbose=yes ;;
1270
1271   -version | --version | --versio | --versi | --vers | -V)
1272     ac_init_version=: ;;
1273
1274   -with-* | --with-*)
1275     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276     # Reject names that are not valid shell variable names.
1277     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278       as_fn_error "invalid package name: $ac_useropt"
1279     ac_useropt_orig=$ac_useropt
1280     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281     case $ac_user_opts in
1282       *"
1283 "with_$ac_useropt"
1284 "*) ;;
1285       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286          ac_unrecognized_sep=', ';;
1287     esac
1288     eval with_$ac_useropt=\$ac_optarg ;;
1289
1290   -without-* | --without-*)
1291     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292     # Reject names that are not valid shell variable names.
1293     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294       as_fn_error "invalid package name: $ac_useropt"
1295     ac_useropt_orig=$ac_useropt
1296     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297     case $ac_user_opts in
1298       *"
1299 "with_$ac_useropt"
1300 "*) ;;
1301       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302          ac_unrecognized_sep=', ';;
1303     esac
1304     eval with_$ac_useropt=no ;;
1305
1306   --x)
1307     # Obsolete; use --with-x.
1308     with_x=yes ;;
1309
1310   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311   | --x-incl | --x-inc | --x-in | --x-i)
1312     ac_prev=x_includes ;;
1313   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315     x_includes=$ac_optarg ;;
1316
1317   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319     ac_prev=x_libraries ;;
1320   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322     x_libraries=$ac_optarg ;;
1323
1324   -*) as_fn_error "unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information."
1326     ;;
1327
1328   *=*)
1329     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330     # Reject names that are not valid shell variable names.
1331     case $ac_envvar in #(
1332       '' | [0-9]* | *[!_$as_cr_alnum]* )
1333       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1334     esac
1335     eval $ac_envvar=\$ac_optarg
1336     export $ac_envvar ;;
1337
1338   *)
1339     # FIXME: should be removed in autoconf 3.0.
1340     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344     ;;
1345
1346   esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351   as_fn_error "missing argument to $ac_option"
1352 fi
1353
1354 if test -n "$ac_unrecognized_opts"; then
1355   case $enable_option_checking in
1356     no) ;;
1357     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1358     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359   esac
1360 fi
1361
1362 # Check all directory arguments for consistency.
1363 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364                 datadir sysconfdir sharedstatedir localstatedir includedir \
1365                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366                 libdir localedir mandir
1367 do
1368   eval ac_val=\$$ac_var
1369   # Remove trailing slashes.
1370   case $ac_val in
1371     */ )
1372       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373       eval $ac_var=\$ac_val;;
1374   esac
1375   # Be sure to have absolute directory names.
1376   case $ac_val in
1377     [\\/$]* | ?:[\\/]* )  continue;;
1378     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379   esac
1380   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1381 done
1382
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1386 build=$build_alias
1387 host=$host_alias
1388 target=$target_alias
1389
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392   if test "x$build_alias" = x; then
1393     cross_compiling=maybe
1394     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395     If a cross compiler is detected then cross compile mode will be used." >&2
1396   elif test "x$build_alias" != "x$host_alias"; then
1397     cross_compiling=yes
1398   fi
1399 fi
1400
1401 ac_tool_prefix=
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404 test "$silent" = yes && exec 6>/dev/null
1405
1406
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410   as_fn_error "working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412   as_fn_error "pwd does not report name of working directory"
1413
1414
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417   ac_srcdir_defaulted=yes
1418   # Try the directory containing this script, then the parent directory.
1419   ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421          X"$as_myself" : 'X\(//\)[^/]' \| \
1422          X"$as_myself" : 'X\(//\)$' \| \
1423          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426             s//\1/
1427             q
1428           }
1429           /^X\(\/\/\)[^/].*/{
1430             s//\1/
1431             q
1432           }
1433           /^X\(\/\/\)$/{
1434             s//\1/
1435             q
1436           }
1437           /^X\(\/\).*/{
1438             s//\1/
1439             q
1440           }
1441           s/.*/./; q'`
1442   srcdir=$ac_confdir
1443   if test ! -r "$srcdir/$ac_unique_file"; then
1444     srcdir=..
1445   fi
1446 else
1447   ac_srcdir_defaulted=no
1448 fi
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1452 fi
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 ac_abs_confdir=`(
1455         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1456         pwd)`
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459   srcdir=.
1460 fi
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1464 case $srcdir in
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 esac
1467 for ac_var in $ac_precious_vars; do
1468   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469   eval ac_env_${ac_var}_value=\$${ac_var}
1470   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472 done
1473
1474 #
1475 # Report the --help message.
1476 #
1477 if test "$ac_init_help" = "long"; then
1478   # Omit some internal or obsolete options to make the list less imposing.
1479   # This message is too long to be a string in the A/UX 3.1 sh.
1480   cat <<_ACEOF
1481 \`configure' configures this package to adapt to many kinds of systems.
1482
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1484
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE.  See below for descriptions of some of the useful variables.
1487
1488 Defaults for the options are specified in brackets.
1489
1490 Configuration:
1491   -h, --help              display this help and exit
1492       --help=short        display options specific to this package
1493       --help=recursive    display the short help of all the included packages
1494   -V, --version           display version information and exit
1495   -q, --quiet, --silent   do not print \`checking...' messages
1496       --cache-file=FILE   cache test results in FILE [disabled]
1497   -C, --config-cache      alias for \`--cache-file=config.cache'
1498   -n, --no-create         do not create output files
1499       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1500
1501 Installation directories:
1502   --prefix=PREFIX         install architecture-independent files in PREFIX
1503                           [$ac_default_prefix]
1504   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1505                           [PREFIX]
1506
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1511
1512 For better control, use the options below.
1513
1514 Fine tuning of the installation directories:
1515   --bindir=DIR            user executables [EPREFIX/bin]
1516   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1517   --libexecdir=DIR        program executables [EPREFIX/libexec]
1518   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1519   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1520   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1521   --libdir=DIR            object code libraries [EPREFIX/lib]
1522   --includedir=DIR        C header files [PREFIX/include]
1523   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1524   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1525   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1526   --infodir=DIR           info documentation [DATAROOTDIR/info]
1527   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1528   --mandir=DIR            man documentation [DATAROOTDIR/man]
1529   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1530   --htmldir=DIR           html documentation [DOCDIR]
1531   --dvidir=DIR            dvi documentation [DOCDIR]
1532   --pdfdir=DIR            pdf documentation [DOCDIR]
1533   --psdir=DIR             ps documentation [DOCDIR]
1534 _ACEOF
1535
1536   cat <<\_ACEOF
1537
1538 Program names:
1539   --program-prefix=PREFIX            prepend PREFIX to installed program names
1540   --program-suffix=SUFFIX            append SUFFIX to installed program names
1541   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1542
1543 System types:
1544   --build=BUILD     configure for building on BUILD [guessed]
1545   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1546   --target=TARGET   configure for building compilers for TARGET [HOST]
1547 _ACEOF
1548 fi
1549
1550 if test -n "$ac_init_help"; then
1551
1552   cat <<\_ACEOF
1553
1554 Optional Features:
1555   --disable-option-checking  ignore unrecognized --enable/--with options
1556   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1557   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1558   --enable-generated-files-in-srcdir
1559                           put copies of generated files in source dir
1560                           intended for creating source tarballs for users
1561                           without texinfo bison or flex.
1562   --enable-werror-always  enable -Werror despite compiler version
1563   --enable-checking=LIST
1564                           enable expensive run-time checks.  With LIST,
1565                           enable only specific categories of checks.
1566                           Categories are: yes,no,all,none,release.
1567                           Flags are: assert,df,fold,gc,gcac,gimple,misc,
1568                           rtlflag,rtl,runtime,tree,valgrind,types.
1569   --enable-coverage=LEVEL
1570                           enable compiler's code coverage collection.
1571                           Use to measure compiler performance and locate
1572                           unused parts of the compiler. With LEVEL, specify
1573                           optimization. Values are opt, noopt,
1574                           default is noopt
1575   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1576   --enable-build-with-cxx build with C++ compiler instead of C compiler
1577   --enable-multilib       enable library support for multiple ABIs
1578   --enable-__cxa_atexit   enable __cxa_atexit for C++
1579   --enable-decimal-float={no,yes,bid,dpd}
1580                         enable decimal float extension to C.  Selecting 'bid'
1581                         or 'dpd' choses which decimal floating point format
1582                         to use
1583   --enable-fixed-point    enable fixed-point arithmetic extension to C
1584   --enable-threads        enable thread usage for target GCC
1585   --enable-threads=LIB    use LIB thread package for target GCC
1586   --enable-tls            enable or disable generation of tls code
1587                           overriding the assembler check for tls support
1588   --enable-objc-gc        enable the use of Boehm's garbage collector with
1589                           the GNU Objective-C runtime
1590   --disable-shared        don't provide a shared libgcc
1591   --enable-intermodule    build the compiler in one step
1592   --enable-languages=LIST specify which front-ends to build
1593   --disable-rpath         do not hardcode runtime library paths
1594   --enable-initfini-array       use .init_array/.fini_array sections
1595   --enable-sjlj-exceptions
1596                           arrange to use setjmp/longjmp exception handling
1597   --enable-secureplt      enable -msecure-plt by default for PowerPC
1598   --enable-leading-mingw64-underscores
1599                           Enable leading underscores on 64 bit mingw targets
1600   --enable-cld            enable -mcld by default for 32bit x86
1601   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit x86
1602   --disable-win32-registry
1603                           disable lookup of installation paths in the
1604                           Registry on Windows hosts
1605   --enable-win32-registry enable registry lookup (default)
1606   --enable-win32-registry=KEY
1607                           use KEY instead of GCC version as the last portion
1608                           of the registry key
1609   --enable-shared[=PKGS]  build shared libraries [default=yes]
1610   --enable-static[=PKGS]  build static libraries [default=yes]
1611   --enable-fast-install[=PKGS]
1612                           optimize for fast installation [default=yes]
1613   --disable-libtool-lock  avoid locking (might break parallel builds)
1614   --enable-comdat         enable COMDAT group support
1615   --enable-gnu-unique-object    enable the use of the @gnu_unique_object ELF extension on
1616                                 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
1627 Optional Packages:
1628   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1629   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1630   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1631   --with-local-prefix=DIR specifies directory to put local include
1632   --with-gxx-include-dir=DIR
1633                           specifies directory to put g++ header files
1634   --with-cpp-install-dir=DIR
1635                           install the user visible C preprocessor in DIR
1636                           (relative to PREFIX) as well as PREFIX/bin
1637   --with-gnu-ld           arrange to work with GNU ld.
1638   --with-ld               arrange to use the specified ld (full pathname)
1639   --with-demangler-in-ld  try to use demangler in GNU ld.
1640   --with-gnu-as           arrange to work with GNU as
1641   --with-as               arrange to use the specified as (full pathname)
1642   --with-stabs            arrange to use stabs instead of host debug format
1643   --with-dwarf2           force the default debug format to be DWARF 2
1644   --with-build-sysroot=sysroot
1645                           use sysroot as the system root during the build
1646   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1647   --with-specs=SPECS      add SPECS to driver command-line processing
1648   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1649   --with-bugurl=URL       Direct users to URL to report a bug
1650   --with-multilib-list    Select multilibs (SH only)
1651   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1652   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1653   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1654   --with-system-libunwind use installed libunwind
1655   --with-pic              try to use only PIC/non-PIC objects [default=use
1656                           both]
1657   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1658   --with-plugin-ld=[ARG]  specify the plugin linker
1659   --with-long-double-128  Use 128-bit long double by default.
1660   --with-gc={page,zone}   choose the garbage collection mechanism to use
1661                           with the compiler
1662   --with-system-zlib      use installed libz
1663   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1664
1665 Some influential environment variables:
1666   CC          C compiler command
1667   CFLAGS      C compiler flags
1668   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1669               nonstandard directory <lib dir>
1670   LIBS        libraries to pass to the linker, e.g. -l<library>
1671   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1672               you have headers in a nonstandard directory <include dir>
1673   CXX         C++ compiler command
1674   CXXFLAGS    C++ compiler flags
1675   CPP         C preprocessor
1676   CXXCPP      C++ preprocessor
1677   GMPLIBS     How to link GMP
1678   GMPINC      How to find GMP include files
1679   PPLLIBS     How to link PPL
1680   PPLINC      How to find PPL include files
1681   CLOOGLIBS   How to link CLOOG
1682   CLOOGINC    How to find CLOOG include files
1683   LIBELFLIBS  How to link libelf
1684   LIBELFINC   How to find libelf 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_c_check_func LINENO FUNC VAR
2470 # ----------------------------------
2471 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2472 ac_fn_c_check_func ()
2473 {
2474   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2476 $as_echo_n "checking for $2... " >&6; }
2477 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2478   $as_echo_n "(cached) " >&6
2479 else
2480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h.  */
2482 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2484 #define $2 innocuous_$2
2485
2486 /* System header to define __stub macros and hopefully few prototypes,
2487     which can conflict with char $2 (); below.
2488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2489     <limits.h> exists even on freestanding compilers.  */
2490
2491 #ifdef __STDC__
2492 # include <limits.h>
2493 #else
2494 # include <assert.h>
2495 #endif
2496
2497 #undef $2
2498
2499 /* Override any GCC internal prototype to avoid an error.
2500    Use char because int might match the return type of a GCC
2501    builtin and then its argument prototype would still apply.  */
2502 #ifdef __cplusplus
2503 extern "C"
2504 #endif
2505 char $2 ();
2506 /* The GNU C library defines this for functions which it implements
2507     to always fail with ENOSYS.  Some functions are actually named
2508     something starting with __ and the normal name is an alias.  */
2509 #if defined __stub_$2 || defined __stub___$2
2510 choke me
2511 #endif
2512
2513 int
2514 main ()
2515 {
2516 return $2 ();
2517   ;
2518   return 0;
2519 }
2520 _ACEOF
2521 if ac_fn_c_try_link "$LINENO"; then :
2522   eval "$3=yes"
2523 else
2524   eval "$3=no"
2525 fi
2526 rm -f core conftest.err conftest.$ac_objext \
2527     conftest$ac_exeext conftest.$ac_ext
2528 fi
2529 eval ac_res=\$$3
2530                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2531 $as_echo "$ac_res" >&6; }
2532   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2533
2534 } # ac_fn_c_check_func
2535
2536 # ac_fn_cxx_try_cpp LINENO
2537 # ------------------------
2538 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2539 ac_fn_cxx_try_cpp ()
2540 {
2541   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542   if { { ac_try="$ac_cpp conftest.$ac_ext"
2543 case "(($ac_try" in
2544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545   *) ac_try_echo=$ac_try;;
2546 esac
2547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2548 $as_echo "$ac_try_echo"; } >&5
2549   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2550   ac_status=$?
2551   if test -s conftest.err; then
2552     grep -v '^ *+' conftest.err >conftest.er1
2553     cat conftest.er1 >&5
2554     mv -f conftest.er1 conftest.err
2555   fi
2556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2557   test $ac_status = 0; } >/dev/null && {
2558          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2559          test ! -s conftest.err
2560        }; then :
2561   ac_retval=0
2562 else
2563   $as_echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566     ac_retval=1
2567 fi
2568   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569   return $ac_retval
2570
2571 } # ac_fn_cxx_try_cpp
2572
2573 # ac_fn_cxx_try_link LINENO
2574 # -------------------------
2575 # Try to link conftest.$ac_ext, and return whether this succeeded.
2576 ac_fn_cxx_try_link ()
2577 {
2578   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579   rm -f conftest.$ac_objext conftest$ac_exeext
2580   if { { ac_try="$ac_link"
2581 case "(($ac_try" in
2582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583   *) ac_try_echo=$ac_try;;
2584 esac
2585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2586 $as_echo "$ac_try_echo"; } >&5
2587   (eval "$ac_link") 2>conftest.err
2588   ac_status=$?
2589   if test -s conftest.err; then
2590     grep -v '^ *+' conftest.err >conftest.er1
2591     cat conftest.er1 >&5
2592     mv -f conftest.er1 conftest.err
2593   fi
2594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595   test $ac_status = 0; } && {
2596          test -z "$ac_cxx_werror_flag" ||
2597          test ! -s conftest.err
2598        } && test -s conftest$ac_exeext && {
2599          test "$cross_compiling" = yes ||
2600          $as_test_x conftest$ac_exeext
2601        }; then :
2602   ac_retval=0
2603 else
2604   $as_echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2606
2607         ac_retval=1
2608 fi
2609   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2610   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2611   # interfere with the next link command; also delete a directory that is
2612   # left behind by Apple's compiler.  We do this before executing the actions.
2613   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2614   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2615   return $ac_retval
2616
2617 } # ac_fn_cxx_try_link
2618 cat >config.log <<_ACEOF
2619 This file contains any messages produced by compilers while
2620 running configure, to aid debugging if configure makes a mistake.
2621
2622 It was created by $as_me, which was
2623 generated by GNU Autoconf 2.64.  Invocation command line was
2624
2625   $ $0 $@
2626
2627 _ACEOF
2628 exec 5>>config.log
2629 {
2630 cat <<_ASUNAME
2631 ## --------- ##
2632 ## Platform. ##
2633 ## --------- ##
2634
2635 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2636 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2637 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2638 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2639 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2640
2641 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2642 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2643
2644 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2645 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2646 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2647 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2648 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2649 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2650 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2651
2652 _ASUNAME
2653
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657   IFS=$as_save_IFS
2658   test -z "$as_dir" && as_dir=.
2659     $as_echo "PATH: $as_dir"
2660   done
2661 IFS=$as_save_IFS
2662
2663 } >&5
2664
2665 cat >&5 <<_ACEOF
2666
2667
2668 ## ----------- ##
2669 ## Core tests. ##
2670 ## ----------- ##
2671
2672 _ACEOF
2673
2674
2675 # Keep a trace of the command line.
2676 # Strip out --no-create and --no-recursion so they do not pile up.
2677 # Strip out --silent because we don't want to record it for future runs.
2678 # Also quote any args containing shell meta-characters.
2679 # Make two passes to allow for proper duplicate-argument suppression.
2680 ac_configure_args=
2681 ac_configure_args0=
2682 ac_configure_args1=
2683 ac_must_keep_next=false
2684 for ac_pass in 1 2
2685 do
2686   for ac_arg
2687   do
2688     case $ac_arg in
2689     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2690     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2691     | -silent | --silent | --silen | --sile | --sil)
2692       continue ;;
2693     *\'*)
2694       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2695     esac
2696     case $ac_pass in
2697     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2698     2)
2699       as_fn_append ac_configure_args1 " '$ac_arg'"
2700       if test $ac_must_keep_next = true; then
2701         ac_must_keep_next=false # Got value, back to normal.
2702       else
2703         case $ac_arg in
2704           *=* | --config-cache | -C | -disable-* | --disable-* \
2705           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2706           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2707           | -with-* | --with-* | -without-* | --without-* | --x)
2708             case "$ac_configure_args0 " in
2709               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2710             esac
2711             ;;
2712           -* ) ac_must_keep_next=true ;;
2713         esac
2714       fi
2715       as_fn_append ac_configure_args " '$ac_arg'"
2716       ;;
2717     esac
2718   done
2719 done
2720 { ac_configure_args0=; unset ac_configure_args0;}
2721 { ac_configure_args1=; unset ac_configure_args1;}
2722
2723 # When interrupted or exit'd, cleanup temporary files, and complete
2724 # config.log.  We remove comments because anyway the quotes in there
2725 # would cause problems or look ugly.
2726 # WARNING: Use '\'' to represent an apostrophe within the trap.
2727 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2728 trap 'exit_status=$?
2729   # Save into config.log some information that might help in debugging.
2730   {
2731     echo
2732
2733     cat <<\_ASBOX
2734 ## ---------------- ##
2735 ## Cache variables. ##
2736 ## ---------------- ##
2737 _ASBOX
2738     echo
2739     # The following way of writing the cache mishandles newlines in values,
2740 (
2741   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2742     eval ac_val=\$$ac_var
2743     case $ac_val in #(
2744     *${as_nl}*)
2745       case $ac_var in #(
2746       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2747 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2748       esac
2749       case $ac_var in #(
2750       _ | IFS | as_nl) ;; #(
2751       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2752       *) { eval $ac_var=; unset $ac_var;} ;;
2753       esac ;;
2754     esac
2755   done
2756   (set) 2>&1 |
2757     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2758     *${as_nl}ac_space=\ *)
2759       sed -n \
2760         "s/'\''/'\''\\\\'\'''\''/g;
2761           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2762       ;; #(
2763     *)
2764       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2765       ;;
2766     esac |
2767     sort
2768 )
2769     echo
2770
2771     cat <<\_ASBOX
2772 ## ----------------- ##
2773 ## Output variables. ##
2774 ## ----------------- ##
2775 _ASBOX
2776     echo
2777     for ac_var in $ac_subst_vars
2778     do
2779       eval ac_val=\$$ac_var
2780       case $ac_val in
2781       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2782       esac
2783       $as_echo "$ac_var='\''$ac_val'\''"
2784     done | sort
2785     echo
2786
2787     if test -n "$ac_subst_files"; then
2788       cat <<\_ASBOX
2789 ## ------------------- ##
2790 ## File substitutions. ##
2791 ## ------------------- ##
2792 _ASBOX
2793       echo
2794       for ac_var in $ac_subst_files
2795       do
2796         eval ac_val=\$$ac_var
2797         case $ac_val in
2798         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2799         esac
2800         $as_echo "$ac_var='\''$ac_val'\''"
2801       done | sort
2802       echo
2803     fi
2804
2805     if test -s confdefs.h; then
2806       cat <<\_ASBOX
2807 ## ----------- ##
2808 ## confdefs.h. ##
2809 ## ----------- ##
2810 _ASBOX
2811       echo
2812       cat confdefs.h
2813       echo
2814     fi
2815     test "$ac_signal" != 0 &&
2816       $as_echo "$as_me: caught signal $ac_signal"
2817     $as_echo "$as_me: exit $exit_status"
2818   } >&5
2819   rm -f core *.core core.conftest.* &&
2820     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2821     exit $exit_status
2822 ' 0
2823 for ac_signal in 1 2 13 15; do
2824   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2825 done
2826 ac_signal=0
2827
2828 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2829 rm -f -r conftest* confdefs.h
2830
2831 $as_echo "/* confdefs.h */" > confdefs.h
2832
2833 # Predefined preprocessor variables.
2834
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_NAME "$PACKAGE_NAME"
2837 _ACEOF
2838
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2841 _ACEOF
2842
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2845 _ACEOF
2846
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_STRING "$PACKAGE_STRING"
2849 _ACEOF
2850
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2853 _ACEOF
2854
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE_URL "$PACKAGE_URL"
2857 _ACEOF
2858
2859
2860 # Let the site file select an alternate cache file if it wants to.
2861 # Prefer an explicitly selected file to automatically selected ones.
2862 ac_site_file1=NONE
2863 ac_site_file2=NONE
2864 if test -n "$CONFIG_SITE"; then
2865   ac_site_file1=$CONFIG_SITE
2866 elif test "x$prefix" != xNONE; then
2867   ac_site_file1=$prefix/share/config.site
2868   ac_site_file2=$prefix/etc/config.site
2869 else
2870   ac_site_file1=$ac_default_prefix/share/config.site
2871   ac_site_file2=$ac_default_prefix/etc/config.site
2872 fi
2873 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2874 do
2875   test "x$ac_site_file" = xNONE && continue
2876   if test -r "$ac_site_file"; then
2877     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2878 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2879     sed 's/^/| /' "$ac_site_file" >&5
2880     . "$ac_site_file"
2881   fi
2882 done
2883
2884 if test -r "$cache_file"; then
2885   # Some versions of bash will fail to source /dev/null (special
2886   # files actually), so we avoid doing that.
2887   if test -f "$cache_file"; then
2888     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2889 $as_echo "$as_me: loading cache $cache_file" >&6;}
2890     case $cache_file in
2891       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2892       *)                      . "./$cache_file";;
2893     esac
2894   fi
2895 else
2896   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2897 $as_echo "$as_me: creating cache $cache_file" >&6;}
2898   >$cache_file
2899 fi
2900
2901 # Check that the precious variables saved in the cache have kept the same
2902 # value.
2903 ac_cache_corrupted=false
2904 for ac_var in $ac_precious_vars; do
2905   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2906   eval ac_new_set=\$ac_env_${ac_var}_set
2907   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2908   eval ac_new_val=\$ac_env_${ac_var}_value
2909   case $ac_old_set,$ac_new_set in
2910     set,)
2911       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2912 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2913       ac_cache_corrupted=: ;;
2914     ,set)
2915       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2916 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2917       ac_cache_corrupted=: ;;
2918     ,);;
2919     *)
2920       if test "x$ac_old_val" != "x$ac_new_val"; then
2921         # differences in whitespace do not lead to failure.
2922         ac_old_val_w=`echo x $ac_old_val`
2923         ac_new_val_w=`echo x $ac_new_val`
2924         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2925           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2926 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2927           ac_cache_corrupted=:
2928         else
2929           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2930 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2931           eval $ac_var=\$ac_old_val
2932         fi
2933         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2934 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2935         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2936 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2937       fi;;
2938   esac
2939   # Pass precious variables to config.status.
2940   if test "$ac_new_set" = set; then
2941     case $ac_new_val in
2942     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2943     *) ac_arg=$ac_var=$ac_new_val ;;
2944     esac
2945     case " $ac_configure_args " in
2946       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2947       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2948     esac
2949   fi
2950 done
2951 if $ac_cache_corrupted; then
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2954   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2955 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2956   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2957 fi
2958 ## -------------------- ##
2959 ## Main body of script. ##
2960 ## -------------------- ##
2961
2962 ac_ext=c
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967
2968
2969
2970
2971
2972
2973 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2974
2975
2976 gcc_version=`cat $srcdir/BASE-VER`
2977
2978 # Determine the host, build, and target systems
2979 ac_aux_dir=
2980 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2981   for ac_t in install-sh install.sh shtool; do
2982     if test -f "$ac_dir/$ac_t"; then
2983       ac_aux_dir=$ac_dir
2984       ac_install_sh="$ac_aux_dir/$ac_t -c"
2985       break 2
2986     fi
2987   done
2988 done
2989 if test -z "$ac_aux_dir"; then
2990   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2991 fi
2992
2993 # These three variables are undocumented and unsupported,
2994 # and are intended to be withdrawn in a future Autoconf release.
2995 # They can cause serious problems if a builder's source tree is in a directory
2996 # whose full name contains unusual characters.
2997 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2998 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2999 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3000
3001
3002 # Make sure we can run config.sub.
3003 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3004   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3005
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3007 $as_echo_n "checking build system type... " >&6; }
3008 if test "${ac_cv_build+set}" = set; then :
3009   $as_echo_n "(cached) " >&6
3010 else
3011   ac_build_alias=$build_alias
3012 test "x$ac_build_alias" = x &&
3013   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3014 test "x$ac_build_alias" = x &&
3015   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3016 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3017   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3018
3019 fi
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3021 $as_echo "$ac_cv_build" >&6; }
3022 case $ac_cv_build in
3023 *-*-*) ;;
3024 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3025 esac
3026 build=$ac_cv_build
3027 ac_save_IFS=$IFS; IFS='-'
3028 set x $ac_cv_build
3029 shift
3030 build_cpu=$1
3031 build_vendor=$2
3032 shift; shift
3033 # Remember, the first character of IFS is used to create $*,
3034 # except with old shells:
3035 build_os=$*
3036 IFS=$ac_save_IFS
3037 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3038
3039
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3041 $as_echo_n "checking host system type... " >&6; }
3042 if test "${ac_cv_host+set}" = set; then :
3043   $as_echo_n "(cached) " >&6
3044 else
3045   if test "x$host_alias" = x; then
3046   ac_cv_host=$ac_cv_build
3047 else
3048   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3049     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3050 fi
3051
3052 fi
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3054 $as_echo "$ac_cv_host" >&6; }
3055 case $ac_cv_host in
3056 *-*-*) ;;
3057 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3058 esac
3059 host=$ac_cv_host
3060 ac_save_IFS=$IFS; IFS='-'
3061 set x $ac_cv_host
3062 shift
3063 host_cpu=$1
3064 host_vendor=$2
3065 shift; shift
3066 # Remember, the first character of IFS is used to create $*,
3067 # except with old shells:
3068 host_os=$*
3069 IFS=$ac_save_IFS
3070 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3071
3072
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3074 $as_echo_n "checking target system type... " >&6; }
3075 if test "${ac_cv_target+set}" = set; then :
3076   $as_echo_n "(cached) " >&6
3077 else
3078   if test "x$target_alias" = x; then
3079   ac_cv_target=$ac_cv_host
3080 else
3081   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3082     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3083 fi
3084
3085 fi
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3087 $as_echo "$ac_cv_target" >&6; }
3088 case $ac_cv_target in
3089 *-*-*) ;;
3090 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3091 esac
3092 target=$ac_cv_target
3093 ac_save_IFS=$IFS; IFS='-'
3094 set x $ac_cv_target
3095 shift
3096 target_cpu=$1
3097 target_vendor=$2
3098 shift; shift
3099 # Remember, the first character of IFS is used to create $*,
3100 # except with old shells:
3101 target_os=$*
3102 IFS=$ac_save_IFS
3103 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3104
3105
3106 # The aliases save the names the user supplied, while $host etc.
3107 # will get canonicalized.
3108 test -n "$target_alias" &&
3109   test "$program_prefix$program_suffix$program_transform_name" = \
3110     NONENONEs,x,x, &&
3111   program_prefix=${target_alias}-
3112
3113 # Determine the noncanonical target name, for directory use.
3114  case ${build_alias} in
3115   "") build_noncanonical=${build} ;;
3116   *) build_noncanonical=${build_alias} ;;
3117 esac
3118
3119  case ${host_alias} in
3120   "") host_noncanonical=${build_noncanonical} ;;
3121   *) host_noncanonical=${host_alias} ;;
3122 esac
3123
3124  case ${target_alias} in
3125   "") target_noncanonical=${host_noncanonical} ;;
3126   *) target_noncanonical=${target_alias} ;;
3127 esac
3128
3129
3130
3131
3132 # Determine the target- and build-specific subdirectories
3133
3134 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3135 # have matching libraries, they should use host libraries: Makefile.tpl
3136 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3137 # However, they still use the build modules, because the corresponding
3138 # host modules (e.g. bison) are only built for the host when bootstrap
3139 # finishes. So:
3140 # - build_subdir is where we find build modules, and never changes.
3141 # - build_libsubdir is where we find build libraries, and can be overridden.
3142
3143 # Prefix 'build-' so this never conflicts with target_subdir.
3144 build_subdir="build-${build_noncanonical}"
3145
3146 # Check whether --with-build-libsubdir was given.
3147 if test "${with_build_libsubdir+set}" = set; then :
3148   withval=$with_build_libsubdir; build_libsubdir="$withval"
3149 else
3150   build_libsubdir="$build_subdir"
3151 fi
3152
3153 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3154 if ( test $srcdir = . && test -d gcc ) \
3155    || test -d $srcdir/../host-${host_noncanonical}; then
3156   host_subdir="host-${host_noncanonical}"
3157 else
3158   host_subdir=.
3159 fi
3160 # No prefix.
3161 target_subdir=${target_noncanonical}
3162
3163
3164 # Set program_transform_name
3165 test "$program_prefix" != NONE &&
3166   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3167 # Use a double $ so make ignores it.
3168 test "$program_suffix" != NONE &&
3169   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3170 # Double any \ or $.
3171 # By default was `s,x,x', remove it if useless.
3172 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3173 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3174
3175
3176 # Check for bogus environment variables.
3177 # Test if LIBRARY_PATH contains the notation for the current directory
3178 # since this would lead to problems installing/building glibc.
3179 # LIBRARY_PATH contains the current directory if one of the following
3180 # is true:
3181 # - one of the terminals (":" and ";") is the first or last sign
3182 # - two terminals occur directly after each other
3183 # - the path contains an element with a dot in it
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3185 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3186 case ${LIBRARY_PATH} in
3187   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3188     library_path_setting="contains current directory"
3189     ;;
3190   *)
3191     library_path_setting="ok"
3192     ;;
3193 esac
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3195 $as_echo "$library_path_setting" >&6; }
3196 if test "$library_path_setting" != "ok"; then
3197 as_fn_error "
3198 *** LIBRARY_PATH shouldn't contain the current directory when
3199 *** building gcc. Please change the environment variable
3200 *** and run configure again." "$LINENO" 5
3201 fi
3202
3203 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3204 # since this would lead to problems installing/building glibc.
3205 # GCC_EXEC_PREFIX contains the current directory if one of the following
3206 # is true:
3207 # - one of the terminals (":" and ";") is the first or last sign
3208 # - two terminals occur directly after each other
3209 # - the path contains an element with a dot in it
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3211 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3212 case ${GCC_EXEC_PREFIX} in
3213   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3214     gcc_exec_prefix_setting="contains current directory"
3215     ;;
3216   *)
3217     gcc_exec_prefix_setting="ok"
3218     ;;
3219 esac
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3221 $as_echo "$gcc_exec_prefix_setting" >&6; }
3222 if test "$gcc_exec_prefix_setting" != "ok"; then
3223 as_fn_error "
3224 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3225 *** building gcc. Please change the environment variable
3226 *** and run configure again." "$LINENO" 5
3227 fi
3228
3229 # -----------
3230 # Directories
3231 # -----------
3232
3233 # Specify the local prefix
3234 local_prefix=
3235
3236 # Check whether --with-local-prefix was given.
3237 if test "${with_local_prefix+set}" = set; then :
3238   withval=$with_local_prefix; case "${withval}" in
3239 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3240 no)     ;;
3241 *)      local_prefix=$with_local_prefix ;;
3242 esac
3243 fi
3244
3245
3246 # Default local prefix if it is empty
3247 if test x$local_prefix = x; then
3248         local_prefix=/usr/local
3249 fi
3250
3251 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3252 # passed in by the toplevel make and thus we'd get different behavior
3253 # depending on where we built the sources.
3254 gcc_gxx_include_dir=
3255 # Specify the g++ header file directory
3256
3257 # Check whether --with-gxx-include-dir was given.
3258 if test "${with_gxx_include_dir+set}" = set; then :
3259   withval=$with_gxx_include_dir; case "${withval}" in
3260 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3261 no)     ;;
3262 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3263 esac
3264 fi
3265
3266
3267 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3268 if test x${gcc_gxx_include_dir} = x; then
3269   if test x${enable_version_specific_runtime_libs} = xyes; then
3270     gcc_gxx_include_dir='${libsubdir}/include/c++'
3271   else
3272     libstdcxx_incdir='include/c++/$(version)'
3273     if test x$host != x$target; then
3274        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3275     fi
3276     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3277   fi
3278 fi
3279
3280
3281 # Check whether --with-cpp_install_dir was given.
3282 if test "${with_cpp_install_dir+set}" = set; then :
3283   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3284   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3285 elif test x$withval != xno; then
3286   cpp_install_dir=$withval
3287 fi
3288 fi
3289
3290
3291 # We would like to our source tree to be readonly.  However when releases or
3292 # pre-releases are generated, the flex/bison generated files as well as the
3293 # various formats of manuals need to be included along with the rest of the
3294 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3295 # just that.
3296
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3298 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3299     # Check whether --enable-generated-files-in-srcdir was given.
3300 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3301   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3302 else
3303   generated_files_in_srcdir=no
3304 fi
3305
3306
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3308 $as_echo "$generated_files_in_srcdir" >&6; }
3309
3310 if test "$generated_files_in_srcdir" = "yes"; then
3311   GENINSRC=''
3312 else
3313   GENINSRC='#'
3314 fi
3315
3316
3317 # -------------------
3318 # Find default linker
3319 # -------------------
3320
3321 # With GNU ld
3322
3323 # Check whether --with-gnu-ld was given.
3324 if test "${with_gnu_ld+set}" = set; then :
3325   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3326 else
3327   gnu_ld_flag=no
3328 fi
3329
3330
3331 # With pre-defined ld
3332
3333 # Check whether --with-ld was given.
3334 if test "${with_ld+set}" = set; then :
3335   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3336 fi
3337
3338 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3339   if test ! -x "$DEFAULT_LINKER"; then
3340     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3341   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3342     gnu_ld_flag=yes
3343   fi
3344
3345 cat >>confdefs.h <<_ACEOF
3346 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3347 _ACEOF
3348
3349 fi
3350
3351 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3352
3353 cat >>confdefs.h <<_ACEOF
3354 #define HAVE_GNU_LD $gnu_ld
3355 _ACEOF
3356
3357
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3359 $as_echo_n "checking whether a default linker was specified... " >&6; }
3360 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3361   if test x"$gnu_ld_flag" = x"no"; then
3362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3363 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3364   else
3365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3366 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3367   fi
3368 else
3369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3371 fi
3372
3373 # With demangler in GNU ld
3374
3375 # Check whether --with-demangler-in-ld was given.
3376 if test "${with_demangler_in_ld+set}" = set; then :
3377   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3378 else
3379   demangler_in_ld=no
3380 fi
3381
3382
3383 # ----------------------
3384 # Find default assembler
3385 # ----------------------
3386
3387 # With GNU as
3388
3389 # Check whether --with-gnu-as was given.
3390 if test "${with_gnu_as+set}" = set; then :
3391   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3392 else
3393   gas_flag=no
3394 fi
3395
3396
3397
3398 # Check whether --with-as was given.
3399 if test "${with_as+set}" = set; then :
3400   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3401 fi
3402
3403 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3404   if test ! -x "$DEFAULT_ASSEMBLER"; then
3405     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3406   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3407     gas_flag=yes
3408   fi
3409
3410 cat >>confdefs.h <<_ACEOF
3411 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3412 _ACEOF
3413
3414 fi
3415
3416 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3417
3418 cat >>confdefs.h <<_ACEOF
3419 #define HAVE_GNU_AS $gnu_as
3420 _ACEOF
3421
3422
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3424 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3425 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3426   if test x"$gas_flag" = x"no"; then
3427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3428 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3429   else
3430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3431 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3432   fi
3433 else
3434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 fi
3437
3438 # ---------------
3439 # Find C compiler
3440 # ---------------
3441
3442 # If a non-executable a.out is present (e.g. created by GNU as above even if
3443 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3444 # file, even when creating an executable, so an execution test fails.
3445 # Remove possible default executable files to avoid this.
3446 #
3447 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3448 # Autoconf includes it.
3449 rm -f a.out a.exe b.out
3450
3451 # Find the native compiler
3452 ac_ext=c
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 if test -n "$ac_tool_prefix"; then
3458   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3459 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if test "${ac_cv_prog_CC+set}" = set; then :
3463   $as_echo_n "(cached) " >&6
3464 else
3465   if test -n "$CC"; then
3466   ac_cv_prog_CC="$CC" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471   IFS=$as_save_IFS
3472   test -z "$as_dir" && as_dir=.
3473     for ac_exec_ext in '' $ac_executable_extensions; do
3474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477     break 2
3478   fi
3479 done
3480   done
3481 IFS=$as_save_IFS
3482
3483 fi
3484 fi
3485 CC=$ac_cv_prog_CC
3486 if test -n "$CC"; then
3487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488 $as_echo "$CC" >&6; }
3489 else
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3492 fi
3493
3494
3495 fi
3496 if test -z "$ac_cv_prog_CC"; then
3497   ac_ct_CC=$CC
3498   # Extract the first word of "gcc", so it can be a program name with args.
3499 set dummy gcc; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3503   $as_echo_n "(cached) " >&6
3504 else
3505   if test -n "$ac_ct_CC"; then
3506   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511   IFS=$as_save_IFS
3512   test -z "$as_dir" && as_dir=.
3513     for ac_exec_ext in '' $ac_executable_extensions; do
3514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515     ac_cv_prog_ac_ct_CC="gcc"
3516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517     break 2
3518   fi
3519 done
3520   done
3521 IFS=$as_save_IFS
3522
3523 fi
3524 fi
3525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3526 if test -n "$ac_ct_CC"; then
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3528 $as_echo "$ac_ct_CC" >&6; }
3529 else
3530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3532 fi
3533
3534   if test "x$ac_ct_CC" = x; then
3535     CC=""
3536   else
3537     case $cross_compiling:$ac_tool_warned in
3538 yes:)
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned=yes ;;
3542 esac
3543     CC=$ac_ct_CC
3544   fi
3545 else
3546   CC="$ac_cv_prog_CC"
3547 fi
3548
3549 if test -z "$CC"; then
3550           if test -n "$ac_tool_prefix"; then
3551     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3552 set dummy ${ac_tool_prefix}cc; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_CC+set}" = set; then :
3556   $as_echo_n "(cached) " >&6
3557 else
3558   if test -n "$CC"; then
3559   ac_cv_prog_CC="$CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564   IFS=$as_save_IFS
3565   test -z "$as_dir" && as_dir=.
3566     for ac_exec_ext in '' $ac_executable_extensions; do
3567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568     ac_cv_prog_CC="${ac_tool_prefix}cc"
3569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570     break 2
3571   fi
3572 done
3573   done
3574 IFS=$as_save_IFS
3575
3576 fi
3577 fi
3578 CC=$ac_cv_prog_CC
3579 if test -n "$CC"; then
3580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3582 else
3583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3585 fi
3586
3587
3588   fi
3589 fi
3590 if test -z "$CC"; then
3591   # Extract the first word of "cc", so it can be a program name with args.
3592 set dummy cc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_CC+set}" = set; then :
3596   $as_echo_n "(cached) " >&6
3597 else
3598   if test -n "$CC"; then
3599   ac_cv_prog_CC="$CC" # Let the user override the test.
3600 else
3601   ac_prog_rejected=no
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3604 do
3605   IFS=$as_save_IFS
3606   test -z "$as_dir" && as_dir=.
3607     for ac_exec_ext in '' $ac_executable_extensions; do
3608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3610        ac_prog_rejected=yes
3611        continue
3612      fi
3613     ac_cv_prog_CC="cc"
3614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615     break 2
3616   fi
3617 done
3618   done
3619 IFS=$as_save_IFS
3620
3621 if test $ac_prog_rejected = yes; then
3622   # We found a bogon in the path, so make sure we never use it.
3623   set dummy $ac_cv_prog_CC
3624   shift
3625   if test $# != 0; then
3626     # We chose a different compiler from the bogus one.
3627     # However, it has the same basename, so the bogon will be chosen
3628     # first if we set CC to just the basename; use the full file name.
3629     shift
3630     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3631   fi
3632 fi
3633 fi
3634 fi
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3639 else
3640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3642 fi
3643
3644
3645 fi
3646 if test -z "$CC"; then
3647   if test -n "$ac_tool_prefix"; then
3648   for ac_prog in cl.exe
3649   do
3650     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_CC+set}" = set; then :
3655   $as_echo_n "(cached) " >&6
3656 else
3657   if test -n "$CC"; then
3658   ac_cv_prog_CC="$CC" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3662 do
3663   IFS=$as_save_IFS
3664   test -z "$as_dir" && as_dir=.
3665     for ac_exec_ext in '' $ac_executable_extensions; do
3666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669     break 2
3670   fi
3671 done
3672   done
3673 IFS=$as_save_IFS
3674
3675 fi
3676 fi
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 $as_echo "$CC" >&6; }
3681 else
3682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3684 fi
3685
3686
3687     test -n "$CC" && break
3688   done
3689 fi
3690 if test -z "$CC"; then
3691   ac_ct_CC=$CC
3692   for ac_prog in cl.exe
3693 do
3694   # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy $ac_prog; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3699   $as_echo_n "(cached) " >&6
3700 else
3701   if test -n "$ac_ct_CC"; then
3702   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3706 do
3707   IFS=$as_save_IFS
3708   test -z "$as_dir" && as_dir=.
3709     for ac_exec_ext in '' $ac_executable_extensions; do
3710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711     ac_cv_prog_ac_ct_CC="$ac_prog"
3712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713     break 2
3714   fi
3715 done
3716   done
3717 IFS=$as_save_IFS
3718
3719 fi
3720 fi
3721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3722 if test -n "$ac_ct_CC"; then
3723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3724 $as_echo "$ac_ct_CC" >&6; }
3725 else
3726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3728 fi
3729
3730
3731   test -n "$ac_ct_CC" && break
3732 done
3733
3734   if test "x$ac_ct_CC" = x; then
3735     CC=""
3736   else
3737     case $cross_compiling:$ac_tool_warned in
3738 yes:)
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3741 ac_tool_warned=yes ;;
3742 esac
3743     CC=$ac_ct_CC
3744   fi
3745 fi
3746
3747 fi
3748
3749
3750 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error "no acceptable C compiler found in \$PATH
3753 See \`config.log' for more details." "$LINENO" 5; }
3754
3755 # Provide some information about the compiler.
3756 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3757 set X $ac_compile
3758 ac_compiler=$2
3759 for ac_option in --version -v -V -qversion; do
3760   { { ac_try="$ac_compiler $ac_option >&5"
3761 case "(($ac_try" in
3762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763   *) ac_try_echo=$ac_try;;
3764 esac
3765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766 $as_echo "$ac_try_echo"; } >&5
3767   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3768   ac_status=$?
3769   if test -s conftest.err; then
3770     sed '10a\
3771 ... rest of stderr output deleted ...
3772          10q' conftest.err >conftest.er1
3773     cat conftest.er1 >&5
3774     rm -f conftest.er1 conftest.err
3775   fi
3776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777   test $ac_status = 0; }
3778 done
3779
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h.  */
3782
3783 int
3784 main ()
3785 {
3786
3787   ;
3788   return 0;
3789 }
3790 _ACEOF
3791 ac_clean_files_save=$ac_clean_files
3792 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3793 # Try to create an executable without -o first, disregard a.out.
3794 # It will help us diagnose broken compilers, and finding out an intuition
3795 # of exeext.
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3797 $as_echo_n "checking for C compiler default output file name... " >&6; }
3798 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3799
3800 # The possible output files:
3801 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3802
3803 ac_rmfiles=
3804 for ac_file in $ac_files
3805 do
3806   case $ac_file in
3807     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3808     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3809   esac
3810 done
3811 rm -f $ac_rmfiles
3812
3813 if { { ac_try="$ac_link_default"
3814 case "(($ac_try" in
3815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816   *) ac_try_echo=$ac_try;;
3817 esac
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820   (eval "$ac_link_default") 2>&5
3821   ac_status=$?
3822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823   test $ac_status = 0; }; then :
3824   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3825 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3826 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3827 # so that the user can short-circuit this test for compilers unknown to
3828 # Autoconf.
3829 for ac_file in $ac_files ''
3830 do
3831   test -f "$ac_file" || continue
3832   case $ac_file in
3833     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3834         ;;
3835     [ab].out )
3836         # We found the default executable, but exeext='' is most
3837         # certainly right.
3838         break;;
3839     *.* )
3840         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3841         then :; else
3842            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3843         fi
3844         # We set ac_cv_exeext here because the later test for it is not
3845         # safe: cross compilers may not add the suffix if given an `-o'
3846         # argument, so we may need to know it at that point already.
3847         # Even if this section looks crufty: it has the advantage of
3848         # actually working.
3849         break;;
3850     * )
3851         break;;
3852   esac
3853 done
3854 test "$ac_cv_exeext" = no && ac_cv_exeext=
3855
3856 else
3857   ac_file=''
3858 fi
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3860 $as_echo "$ac_file" >&6; }
3861 if test -z "$ac_file"; then :
3862   $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3864
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 { as_fn_set_status 77
3868 as_fn_error "C compiler cannot create executables
3869 See \`config.log' for more details." "$LINENO" 5; }; }
3870 fi
3871 ac_exeext=$ac_cv_exeext
3872
3873 # Check that the compiler produces executables we can run.  If not, either
3874 # the compiler is broken, or we cross compile.
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3876 $as_echo_n "checking whether the C compiler works... " >&6; }
3877 # If not cross compiling, check that we can run a simple program.
3878 if test "$cross_compiling" != yes; then
3879   if { ac_try='./$ac_file'
3880   { { case "(($ac_try" in
3881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882   *) ac_try_echo=$ac_try;;
3883 esac
3884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3885 $as_echo "$ac_try_echo"; } >&5
3886   (eval "$ac_try") 2>&5
3887   ac_status=$?
3888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889   test $ac_status = 0; }; }; then
3890     cross_compiling=no
3891   else
3892     if test "$cross_compiling" = maybe; then
3893         cross_compiling=yes
3894     else
3895         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error "cannot run C compiled programs.
3898 If you meant to cross compile, use \`--host'.
3899 See \`config.log' for more details." "$LINENO" 5; }
3900     fi
3901   fi
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3904 $as_echo "yes" >&6; }
3905
3906 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3907 ac_clean_files=$ac_clean_files_save
3908 # Check that the compiler produces executables we can run.  If not, either
3909 # the compiler is broken, or we cross compile.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3911 $as_echo_n "checking whether we are cross compiling... " >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3913 $as_echo "$cross_compiling" >&6; }
3914
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3916 $as_echo_n "checking for suffix of executables... " >&6; }
3917 if { { ac_try="$ac_link"
3918 case "(($ac_try" in
3919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920   *) ac_try_echo=$ac_try;;
3921 esac
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924   (eval "$ac_link") 2>&5
3925   ac_status=$?
3926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927   test $ac_status = 0; }; then :
3928   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3929 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3930 # work properly (i.e., refer to `conftest.exe'), while it won't with
3931 # `rm'.
3932 for ac_file in conftest.exe conftest conftest.*; do
3933   test -f "$ac_file" || continue
3934   case $ac_file in
3935     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3936     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3937           break;;
3938     * ) break;;
3939   esac
3940 done
3941 else
3942   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 as_fn_error "cannot compute suffix of executables: cannot compile and link
3945 See \`config.log' for more details." "$LINENO" 5; }
3946 fi
3947 rm -f conftest$ac_cv_exeext
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3949 $as_echo "$ac_cv_exeext" >&6; }
3950
3951 rm -f conftest.$ac_ext
3952 EXEEXT=$ac_cv_exeext
3953 ac_exeext=$EXEEXT
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3955 $as_echo_n "checking for suffix of object files... " >&6; }
3956 if test "${ac_cv_objext+set}" = set; then :
3957   $as_echo_n "(cached) " >&6
3958 else
3959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h.  */
3961
3962 int
3963 main ()
3964 {
3965
3966   ;
3967   return 0;
3968 }
3969 _ACEOF
3970 rm -f conftest.o conftest.obj
3971 if { { ac_try="$ac_compile"
3972 case "(($ac_try" in
3973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974   *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 $as_echo "$ac_try_echo"; } >&5
3978   (eval "$ac_compile") 2>&5
3979   ac_status=$?
3980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981   test $ac_status = 0; }; then :
3982   for ac_file in conftest.o conftest.obj conftest.*; do
3983   test -f "$ac_file" || continue;
3984   case $ac_file in
3985     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3986     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3987        break;;
3988   esac
3989 done
3990 else
3991   $as_echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3993
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error "cannot compute suffix of object files: cannot compile
3997 See \`config.log' for more details." "$LINENO" 5; }
3998 fi
3999 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4000 fi
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4002 $as_echo "$ac_cv_objext" >&6; }
4003 OBJEXT=$ac_cv_objext
4004 ac_objext=$OBJEXT
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4006 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4007 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4008   $as_echo_n "(cached) " >&6
4009 else
4010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h.  */
4012
4013 int
4014 main ()
4015 {
4016 #ifndef __GNUC__
4017        choke me
4018 #endif
4019
4020   ;
4021   return 0;
4022 }
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025   ac_compiler_gnu=yes
4026 else
4027   ac_compiler_gnu=no
4028 fi
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4031
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4034 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4035 if test $ac_compiler_gnu = yes; then
4036   GCC=yes
4037 else
4038   GCC=
4039 fi
4040 ac_test_CFLAGS=${CFLAGS+set}
4041 ac_save_CFLAGS=$CFLAGS
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4043 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4044 if test "${ac_cv_prog_cc_g+set}" = set; then :
4045   $as_echo_n "(cached) " >&6
4046 else
4047   ac_save_c_werror_flag=$ac_c_werror_flag
4048    ac_c_werror_flag=yes
4049    ac_cv_prog_cc_g=no
4050    CFLAGS="-g"
4051    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h.  */
4053
4054 int
4055 main ()
4056 {
4057
4058   ;
4059   return 0;
4060 }
4061 _ACEOF
4062 if ac_fn_c_try_compile "$LINENO"; then :
4063   ac_cv_prog_cc_g=yes
4064 else
4065   CFLAGS=""
4066       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h.  */
4068
4069 int
4070 main ()
4071 {
4072
4073   ;
4074   return 0;
4075 }
4076 _ACEOF
4077 if ac_fn_c_try_compile "$LINENO"; then :
4078
4079 else
4080   ac_c_werror_flag=$ac_save_c_werror_flag
4081          CFLAGS="-g"
4082          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h.  */
4084
4085 int
4086 main ()
4087 {
4088
4089   ;
4090   return 0;
4091 }
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094   ac_cv_prog_cc_g=yes
4095 fi
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 fi
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 fi
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101    ac_c_werror_flag=$ac_save_c_werror_flag
4102 fi
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4104 $as_echo "$ac_cv_prog_cc_g" >&6; }
4105 if test "$ac_test_CFLAGS" = set; then
4106   CFLAGS=$ac_save_CFLAGS
4107 elif test $ac_cv_prog_cc_g = yes; then
4108   if test "$GCC" = yes; then
4109     CFLAGS="-g -O2"
4110   else
4111     CFLAGS="-g"
4112   fi
4113 else
4114   if test "$GCC" = yes; then
4115     CFLAGS="-O2"
4116   else
4117     CFLAGS=
4118   fi
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4121 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4122 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4123   $as_echo_n "(cached) " >&6
4124 else
4125   ac_cv_prog_cc_c89=no
4126 ac_save_CC=$CC
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h.  */
4129 #include <stdarg.h>
4130 #include <stdio.h>
4131 #include <sys/types.h>
4132 #include <sys/stat.h>
4133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4134 struct buf { int x; };
4135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4136 static char *e (p, i)
4137      char **p;
4138      int i;
4139 {
4140   return p[i];
4141 }
4142 static char *f (char * (*g) (char **, int), char **p, ...)
4143 {
4144   char *s;
4145   va_list v;
4146   va_start (v,p);
4147   s = g (p, va_arg (v,int));
4148   va_end (v);
4149   return s;
4150 }
4151
4152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4153    function prototypes and stuff, but not '\xHH' hex character constants.
4154    These don't provoke an error unfortunately, instead are silently treated
4155    as 'x'.  The following induces an error, until -std is added to get
4156    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4157    array size at least.  It's necessary to write '\x00'==0 to get something
4158    that's true only with -std.  */
4159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4160
4161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4162    inside strings and character constants.  */
4163 #define FOO(x) 'x'
4164 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4165
4166 int test (int i, double x);
4167 struct s1 {int (*f) (int a);};
4168 struct s2 {int (*f) (double a);};
4169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4170 int argc;
4171 char **argv;
4172 int
4173 main ()
4174 {
4175 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4176   ;
4177   return 0;
4178 }
4179 _ACEOF
4180 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4181         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4182 do
4183   CC="$ac_save_CC $ac_arg"
4184   if ac_fn_c_try_compile "$LINENO"; then :
4185   ac_cv_prog_cc_c89=$ac_arg
4186 fi
4187 rm -f core conftest.err conftest.$ac_objext
4188   test "x$ac_cv_prog_cc_c89" != "xno" && break
4189 done
4190 rm -f conftest.$ac_ext
4191 CC=$ac_save_CC
4192
4193 fi
4194 # AC_CACHE_VAL
4195 case "x$ac_cv_prog_cc_c89" in
4196   x)
4197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4198 $as_echo "none needed" >&6; } ;;
4199   xno)
4200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4201 $as_echo "unsupported" >&6; } ;;
4202   *)
4203     CC="$CC $ac_cv_prog_cc_c89"
4204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4205 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4206 esac
4207 if test "x$ac_cv_prog_cc_c89" != xno; then :
4208
4209 fi
4210
4211 ac_ext=c
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216
4217 if test "x$CC" != xcc; then
4218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4219 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4220 else
4221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4222 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4223 fi
4224 set dummy $CC; ac_cc=`$as_echo "$2" |
4225                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4226 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4227   $as_echo_n "(cached) " >&6
4228 else
4229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h.  */
4231
4232 int
4233 main ()
4234 {
4235
4236   ;
4237   return 0;
4238 }
4239 _ACEOF
4240 # Make sure it works both with $CC and with simple cc.
4241 # We do the test twice because some compilers refuse to overwrite an
4242 # existing .o file with -o, though they will create one.
4243 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4244 rm -f conftest2.*
4245 if { { case "(($ac_try" in
4246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247   *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251   (eval "$ac_try") 2>&5
4252   ac_status=$?
4253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254   test $ac_status = 0; } &&
4255    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257   *) ac_try_echo=$ac_try;;
4258 esac
4259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4260 $as_echo "$ac_try_echo"; } >&5
4261   (eval "$ac_try") 2>&5
4262   ac_status=$?
4263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264   test $ac_status = 0; };
4265 then
4266   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4267   if test "x$CC" != xcc; then
4268     # Test first that cc exists at all.
4269     if { ac_try='cc -c conftest.$ac_ext >&5'
4270   { { case "(($ac_try" in
4271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272   *) ac_try_echo=$ac_try;;
4273 esac
4274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4275 $as_echo "$ac_try_echo"; } >&5
4276   (eval "$ac_try") 2>&5
4277   ac_status=$?
4278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279   test $ac_status = 0; }; }; then
4280       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4281       rm -f conftest2.*
4282       if { { case "(($ac_try" in
4283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284   *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288   (eval "$ac_try") 2>&5
4289   ac_status=$?
4290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291   test $ac_status = 0; } &&
4292          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294   *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298   (eval "$ac_try") 2>&5
4299   ac_status=$?
4300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301   test $ac_status = 0; };
4302       then
4303         # cc works too.
4304         :
4305       else
4306         # cc exists but doesn't like -o.
4307         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4308       fi
4309     fi
4310   fi
4311 else
4312   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4313 fi
4314 rm -f core conftest*
4315
4316 fi
4317 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4319 $as_echo "yes" >&6; }
4320 else
4321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4323
4324 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4325
4326 fi
4327
4328 # expand $ac_aux_dir to an absolute path
4329 am_aux_dir=`cd $ac_aux_dir && pwd`
4330
4331 # FIXME: we rely on the cache variable name because
4332 # there is no other way.
4333 set dummy $CC
4334 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4335 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4336 if test "$am_t" != yes; then
4337    # Losing compiler, so override with the script.
4338    # FIXME: It is wrong to rewrite CC.
4339    # But if we don't then we get into trouble of one sort or another.
4340    # A longer-term fix would be to have automake use am__CC in this case,
4341    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4342    CC="$am_aux_dir/compile $CC"
4343 fi
4344
4345
4346 ac_ext=cpp
4347 ac_cpp='$CXXCPP $CPPFLAGS'
4348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4351 if test -z "$CXX"; then
4352   if test -n "$CCC"; then
4353     CXX=$CCC
4354   else
4355     if test -n "$ac_tool_prefix"; then
4356   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4357   do
4358     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if test "${ac_cv_prog_CXX+set}" = set; then :
4363   $as_echo_n "(cached) " >&6
4364 else
4365   if test -n "$CXX"; then
4366   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371   IFS=$as_save_IFS
4372   test -z "$as_dir" && as_dir=.
4373     for ac_exec_ext in '' $ac_executable_extensions; do
4374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377     break 2
4378   fi
4379 done
4380   done
4381 IFS=$as_save_IFS
4382
4383 fi
4384 fi
4385 CXX=$ac_cv_prog_CXX
4386 if test -n "$CXX"; then
4387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4388 $as_echo "$CXX" >&6; }
4389 else
4390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4392 fi
4393
4394
4395     test -n "$CXX" && break
4396   done
4397 fi
4398 if test -z "$CXX"; then
4399   ac_ct_CXX=$CXX
4400   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4401 do
4402   # Extract the first word of "$ac_prog", so it can be a program name with args.
4403 set dummy $ac_prog; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4407   $as_echo_n "(cached) " >&6
4408 else
4409   if test -n "$ac_ct_CXX"; then
4410   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4414 do
4415   IFS=$as_save_IFS
4416   test -z "$as_dir" && as_dir=.
4417     for ac_exec_ext in '' $ac_executable_extensions; do
4418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419     ac_cv_prog_ac_ct_CXX="$ac_prog"
4420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421     break 2
4422   fi
4423 done
4424   done
4425 IFS=$as_save_IFS
4426
4427 fi
4428 fi
4429 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4430 if test -n "$ac_ct_CXX"; then
4431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4432 $as_echo "$ac_ct_CXX" >&6; }
4433 else
4434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4436 fi
4437
4438
4439   test -n "$ac_ct_CXX" && break
4440 done
4441
4442   if test "x$ac_ct_CXX" = x; then
4443     CXX="g++"
4444   else
4445     case $cross_compiling:$ac_tool_warned in
4446 yes:)
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4449 ac_tool_warned=yes ;;
4450 esac
4451     CXX=$ac_ct_CXX
4452   fi
4453 fi
4454
4455   fi
4456 fi
4457 # Provide some information about the compiler.
4458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4459 set X $ac_compile
4460 ac_compiler=$2
4461 for ac_option in --version -v -V -qversion; do
4462   { { ac_try="$ac_compiler $ac_option >&5"
4463 case "(($ac_try" in
4464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465   *) ac_try_echo=$ac_try;;
4466 esac
4467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4468 $as_echo "$ac_try_echo"; } >&5
4469   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4470   ac_status=$?
4471   if test -s conftest.err; then
4472     sed '10a\
4473 ... rest of stderr output deleted ...
4474          10q' conftest.err >conftest.er1
4475     cat conftest.er1 >&5
4476     rm -f conftest.er1 conftest.err
4477   fi
4478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4479   test $ac_status = 0; }
4480 done
4481
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4483 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4484 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4485   $as_echo_n "(cached) " >&6
4486 else
4487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h.  */
4489
4490 int
4491 main ()
4492 {
4493 #ifndef __GNUC__
4494        choke me
4495 #endif
4496
4497   ;
4498   return 0;
4499 }
4500 _ACEOF
4501 if ac_fn_cxx_try_compile "$LINENO"; then :
4502   ac_compiler_gnu=yes
4503 else
4504   ac_compiler_gnu=no
4505 fi
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4508
4509 fi
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4511 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4512 if test $ac_compiler_gnu = yes; then
4513   GXX=yes
4514 else
4515   GXX=
4516 fi
4517 ac_test_CXXFLAGS=${CXXFLAGS+set}
4518 ac_save_CXXFLAGS=$CXXFLAGS
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4520 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4521 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4522   $as_echo_n "(cached) " >&6
4523 else
4524   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4525    ac_cxx_werror_flag=yes
4526    ac_cv_prog_cxx_g=no
4527    CXXFLAGS="-g"
4528    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h.  */
4530
4531 int
4532 main ()
4533 {
4534
4535   ;
4536   return 0;
4537 }
4538 _ACEOF
4539 if ac_fn_cxx_try_compile "$LINENO"; then :
4540   ac_cv_prog_cxx_g=yes
4541 else
4542   CXXFLAGS=""
4543       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h.  */
4545
4546 int
4547 main ()
4548 {
4549
4550   ;
4551   return 0;
4552 }
4553 _ACEOF
4554 if ac_fn_cxx_try_compile "$LINENO"; then :
4555
4556 else
4557   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4558          CXXFLAGS="-g"
4559          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h.  */
4561
4562 int
4563 main ()
4564 {
4565
4566   ;
4567   return 0;
4568 }
4569 _ACEOF
4570 if ac_fn_cxx_try_compile "$LINENO"; then :
4571   ac_cv_prog_cxx_g=yes
4572 fi
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 fi
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 fi
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4579 fi
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4581 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4582 if test "$ac_test_CXXFLAGS" = set; then
4583   CXXFLAGS=$ac_save_CXXFLAGS
4584 elif test $ac_cv_prog_cxx_g = yes; then
4585   if test "$GXX" = yes; then
4586     CXXFLAGS="-g -O2"
4587   else
4588     CXXFLAGS="-g"
4589   fi
4590 else
4591   if test "$GXX" = yes; then
4592     CXXFLAGS="-O2"
4593   else
4594     CXXFLAGS=
4595   fi
4596 fi
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602
4603
4604
4605
4606 if test -n "$ac_tool_prefix"; then
4607   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4608 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4612   $as_echo_n "(cached) " >&6
4613 else
4614   if test -n "$GNATBIND"; then
4615   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620   IFS=$as_save_IFS
4621   test -z "$as_dir" && as_dir=.
4622     for ac_exec_ext in '' $ac_executable_extensions; do
4623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626     break 2
4627   fi
4628 done
4629   done
4630 IFS=$as_save_IFS
4631
4632 fi
4633 fi
4634 GNATBIND=$ac_cv_prog_GNATBIND
4635 if test -n "$GNATBIND"; then
4636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4637 $as_echo "$GNATBIND" >&6; }
4638 else
4639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4641 fi
4642
4643
4644 fi
4645 if test -z "$ac_cv_prog_GNATBIND"; then
4646   ac_ct_GNATBIND=$GNATBIND
4647   # Extract the first word of "gnatbind", so it can be a program name with args.
4648 set dummy gnatbind; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4652   $as_echo_n "(cached) " >&6
4653 else
4654   if test -n "$ac_ct_GNATBIND"; then
4655   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660   IFS=$as_save_IFS
4661   test -z "$as_dir" && as_dir=.
4662     for ac_exec_ext in '' $ac_executable_extensions; do
4663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666     break 2
4667   fi
4668 done
4669   done
4670 IFS=$as_save_IFS
4671
4672 fi
4673 fi
4674 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4675 if test -n "$ac_ct_GNATBIND"; then
4676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4677 $as_echo "$ac_ct_GNATBIND" >&6; }
4678 else
4679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4681 fi
4682
4683   if test "x$ac_ct_GNATBIND" = x; then
4684     GNATBIND="no"
4685   else
4686     case $cross_compiling:$ac_tool_warned in
4687 yes:)
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690 ac_tool_warned=yes ;;
4691 esac
4692     GNATBIND=$ac_ct_GNATBIND
4693   fi
4694 else
4695   GNATBIND="$ac_cv_prog_GNATBIND"
4696 fi
4697
4698 if test -n "$ac_tool_prefix"; then
4699   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4700 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4704   $as_echo_n "(cached) " >&6
4705 else
4706   if test -n "$GNATMAKE"; then
4707   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714     for ac_exec_ext in '' $ac_executable_extensions; do
4715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721   done
4722 IFS=$as_save_IFS
4723
4724 fi
4725 fi
4726 GNATMAKE=$ac_cv_prog_GNATMAKE
4727 if test -n "$GNATMAKE"; then
4728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4729 $as_echo "$GNATMAKE" >&6; }
4730 else
4731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4733 fi
4734
4735
4736 fi
4737 if test -z "$ac_cv_prog_GNATMAKE"; then
4738   ac_ct_GNATMAKE=$GNATMAKE
4739   # Extract the first word of "gnatmake", so it can be a program name with args.
4740 set dummy gnatmake; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4744   $as_echo_n "(cached) " >&6
4745 else
4746   if test -n "$ac_ct_GNATMAKE"; then
4747   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754     for ac_exec_ext in '' $ac_executable_extensions; do
4755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761   done
4762 IFS=$as_save_IFS
4763
4764 fi
4765 fi
4766 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4767 if test -n "$ac_ct_GNATMAKE"; then
4768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4769 $as_echo "$ac_ct_GNATMAKE" >&6; }
4770 else
4771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4773 fi
4774
4775   if test "x$ac_ct_GNATMAKE" = x; then
4776     GNATMAKE="no"
4777   else
4778     case $cross_compiling:$ac_tool_warned in
4779 yes:)
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4782 ac_tool_warned=yes ;;
4783 esac
4784     GNATMAKE=$ac_ct_GNATMAKE
4785   fi
4786 else
4787   GNATMAKE="$ac_cv_prog_GNATMAKE"
4788 fi
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4791 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4792 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4793   $as_echo_n "(cached) " >&6
4794 else
4795   cat >conftest.adb <<EOF
4796 procedure conftest is begin null; end conftest;
4797 EOF
4798 acx_cv_cc_gcc_supports_ada=no
4799 # There is a bug in old released versions of GCC which causes the
4800 # driver to exit successfully when the appropriate language module
4801 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4802 # Therefore we must check for the error message as well as an
4803 # unsuccessful exit.
4804 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4805 # given a .adb file, but produce no object file.  So we must check
4806 # if an object file was really produced to guard against this.
4807 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4808 if test x"$errors" = x && test -f conftest.$ac_objext; then
4809   acx_cv_cc_gcc_supports_ada=yes
4810 fi
4811 rm -f conftest.*
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4814 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4815
4816 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4817   have_gnat=yes
4818 else
4819   have_gnat=no
4820 fi
4821
4822
4823 # autoconf is lame and doesn't give us any substitution variable for this.
4824 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4825   NO_MINUS_C_MINUS_O=yes
4826 else
4827   OUTPUT_OPTION='-o $@'
4828 fi
4829
4830
4831
4832 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4833 # optimizations to be activated explicitly by the toplevel.
4834 case "$CC" in
4835   */prev-gcc/xgcc*) ;;
4836   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4837 esac
4838
4839
4840 # -------------------------
4841 # Check C compiler features
4842 # -------------------------
4843
4844
4845 ac_ext=c
4846 ac_cpp='$CPP $CPPFLAGS'
4847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4851 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4852 # On Suns, sometimes $CPP names a directory.
4853 if test -n "$CPP" && test -d "$CPP"; then
4854   CPP=
4855 fi
4856 if test -z "$CPP"; then
4857   if test "${ac_cv_prog_CPP+set}" = set; then :
4858   $as_echo_n "(cached) " >&6
4859 else
4860       # Double quotes because CPP needs to be expanded
4861     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4862     do
4863       ac_preproc_ok=false
4864 for ac_c_preproc_warn_flag in '' yes
4865 do
4866   # Use a header file that comes with gcc, so configuring glibc
4867   # with a fresh cross-compiler works.
4868   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4869   # <limits.h> exists even on freestanding compilers.
4870   # On the NeXT, cc -E runs the code through the compiler's parser,
4871   # not just through cpp. "Syntax error" is here to catch this case.
4872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h.  */
4874 #ifdef __STDC__
4875 # include <limits.h>
4876 #else
4877 # include <assert.h>
4878 #endif
4879                      Syntax error
4880 _ACEOF
4881 if ac_fn_c_try_cpp "$LINENO"; then :
4882
4883 else
4884   # Broken: fails on valid input.
4885 continue
4886 fi
4887 rm -f conftest.err conftest.$ac_ext
4888
4889   # OK, works on sane cases.  Now check whether nonexistent headers
4890   # can be detected and how.
4891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h.  */
4893 #include <ac_nonexistent.h>
4894 _ACEOF
4895 if ac_fn_c_try_cpp "$LINENO"; then :
4896   # Broken: success on invalid input.
4897 continue
4898 else
4899   # Passes both tests.
4900 ac_preproc_ok=:
4901 break
4902 fi
4903 rm -f conftest.err conftest.$ac_ext
4904
4905 done
4906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4907 rm -f conftest.err conftest.$ac_ext
4908 if $ac_preproc_ok; then :
4909   break
4910 fi
4911
4912     done
4913     ac_cv_prog_CPP=$CPP
4914
4915 fi
4916   CPP=$ac_cv_prog_CPP
4917 else
4918   ac_cv_prog_CPP=$CPP
4919 fi
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4921 $as_echo "$CPP" >&6; }
4922 ac_preproc_ok=false
4923 for ac_c_preproc_warn_flag in '' yes
4924 do
4925   # Use a header file that comes with gcc, so configuring glibc
4926   # with a fresh cross-compiler works.
4927   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4928   # <limits.h> exists even on freestanding compilers.
4929   # On the NeXT, cc -E runs the code through the compiler's parser,
4930   # not just through cpp. "Syntax error" is here to catch this case.
4931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h.  */
4933 #ifdef __STDC__
4934 # include <limits.h>
4935 #else
4936 # include <assert.h>
4937 #endif
4938                      Syntax error
4939 _ACEOF
4940 if ac_fn_c_try_cpp "$LINENO"; then :
4941
4942 else
4943   # Broken: fails on valid input.
4944 continue
4945 fi
4946 rm -f conftest.err conftest.$ac_ext
4947
4948   # OK, works on sane cases.  Now check whether nonexistent headers
4949   # can be detected and how.
4950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h.  */
4952 #include <ac_nonexistent.h>
4953 _ACEOF
4954 if ac_fn_c_try_cpp "$LINENO"; then :
4955   # Broken: success on invalid input.
4956 continue
4957 else
4958   # Passes both tests.
4959 ac_preproc_ok=:
4960 break
4961 fi
4962 rm -f conftest.err conftest.$ac_ext
4963
4964 done
4965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4966 rm -f conftest.err conftest.$ac_ext
4967 if $ac_preproc_ok; then :
4968
4969 else
4970   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4972 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4973 See \`config.log' for more details." "$LINENO" 5; }
4974 fi
4975
4976 ac_ext=c
4977 ac_cpp='$CPP $CPPFLAGS'
4978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981
4982
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4984 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4985 if test "${ac_cv_path_GREP+set}" = set; then :
4986   $as_echo_n "(cached) " >&6
4987 else
4988   if test -z "$GREP"; then
4989   ac_path_GREP_found=false
4990   # Loop through the user's path and test for each of PROGNAME-LIST
4991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4993 do
4994   IFS=$as_save_IFS
4995   test -z "$as_dir" && as_dir=.
4996     for ac_prog in grep ggrep; do
4997     for ac_exec_ext in '' $ac_executable_extensions; do
4998       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4999       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5000 # Check for GNU ac_path_GREP and select it if it is found.
5001   # Check for GNU $ac_path_GREP
5002 case `"$ac_path_GREP" --version 2>&1` in
5003 *GNU*)
5004   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5005 *)
5006   ac_count=0
5007   $as_echo_n 0123456789 >"conftest.in"
5008   while :
5009   do
5010     cat "conftest.in" "conftest.in" >"conftest.tmp"
5011     mv "conftest.tmp" "conftest.in"
5012     cp "conftest.in" "conftest.nl"
5013     $as_echo 'GREP' >> "conftest.nl"
5014     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5015     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5016     as_fn_arith $ac_count + 1 && ac_count=$as_val
5017     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5018       # Best one so far, save it but keep looking for a better one
5019       ac_cv_path_GREP="$ac_path_GREP"
5020       ac_path_GREP_max=$ac_count
5021     fi
5022     # 10*(2^10) chars as input seems more than enough
5023     test $ac_count -gt 10 && break
5024   done
5025   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5026 esac
5027
5028       $ac_path_GREP_found && break 3
5029     done
5030   done
5031   done
5032 IFS=$as_save_IFS
5033   if test -z "$ac_cv_path_GREP"; then
5034     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5035   fi
5036 else
5037   ac_cv_path_GREP=$GREP
5038 fi
5039
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5042 $as_echo "$ac_cv_path_GREP" >&6; }
5043  GREP="$ac_cv_path_GREP"
5044
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5047 $as_echo_n "checking for egrep... " >&6; }
5048 if test "${ac_cv_path_EGREP+set}" = set; then :
5049   $as_echo_n "(cached) " >&6
5050 else
5051   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5052    then ac_cv_path_EGREP="$GREP -E"
5053    else
5054      if test -z "$EGREP"; then
5055   ac_path_EGREP_found=false
5056   # Loop through the user's path and test for each of PROGNAME-LIST
5057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5059 do
5060   IFS=$as_save_IFS
5061   test -z "$as_dir" && as_dir=.
5062     for ac_prog in egrep; do
5063     for ac_exec_ext in '' $ac_executable_extensions; do
5064       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5065       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5066 # Check for GNU ac_path_EGREP and select it if it is found.
5067   # Check for GNU $ac_path_EGREP
5068 case `"$ac_path_EGREP" --version 2>&1` in
5069 *GNU*)
5070   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5071 *)
5072   ac_count=0
5073   $as_echo_n 0123456789 >"conftest.in"
5074   while :
5075   do
5076     cat "conftest.in" "conftest.in" >"conftest.tmp"
5077     mv "conftest.tmp" "conftest.in"
5078     cp "conftest.in" "conftest.nl"
5079     $as_echo 'EGREP' >> "conftest.nl"
5080     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5081     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5082     as_fn_arith $ac_count + 1 && ac_count=$as_val
5083     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5084       # Best one so far, save it but keep looking for a better one
5085       ac_cv_path_EGREP="$ac_path_EGREP"
5086       ac_path_EGREP_max=$ac_count
5087     fi
5088     # 10*(2^10) chars as input seems more than enough
5089     test $ac_count -gt 10 && break
5090   done
5091   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5092 esac
5093
5094       $ac_path_EGREP_found && break 3
5095     done
5096   done
5097   done
5098 IFS=$as_save_IFS
5099   if test -z "$ac_cv_path_EGREP"; then
5100     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5101   fi
5102 else
5103   ac_cv_path_EGREP=$EGREP
5104 fi
5105
5106    fi
5107 fi
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5109 $as_echo "$ac_cv_path_EGREP" >&6; }
5110  EGREP="$ac_cv_path_EGREP"
5111
5112
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5114 $as_echo_n "checking for ANSI C header files... " >&6; }
5115 if test "${ac_cv_header_stdc+set}" = set; then :
5116   $as_echo_n "(cached) " >&6
5117 else
5118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h.  */
5120 #include <stdlib.h>
5121 #include <stdarg.h>
5122 #include <string.h>
5123 #include <float.h>
5124
5125 int
5126 main ()
5127 {
5128
5129   ;
5130   return 0;
5131 }
5132 _ACEOF
5133 if ac_fn_c_try_compile "$LINENO"; then :
5134   ac_cv_header_stdc=yes
5135 else
5136   ac_cv_header_stdc=no
5137 fi
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5139
5140 if test $ac_cv_header_stdc = yes; then
5141   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h.  */
5144 #include <string.h>
5145
5146 _ACEOF
5147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5148   $EGREP "memchr" >/dev/null 2>&1; then :
5149
5150 else
5151   ac_cv_header_stdc=no
5152 fi
5153 rm -f conftest*
5154
5155 fi
5156
5157 if test $ac_cv_header_stdc = yes; then
5158   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h.  */
5161 #include <stdlib.h>
5162
5163 _ACEOF
5164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5165   $EGREP "free" >/dev/null 2>&1; then :
5166
5167 else
5168   ac_cv_header_stdc=no
5169 fi
5170 rm -f conftest*
5171
5172 fi
5173
5174 if test $ac_cv_header_stdc = yes; then
5175   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5176   if test "$cross_compiling" = yes; then :
5177   :
5178 else
5179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h.  */
5181 #include <ctype.h>
5182 #include <stdlib.h>
5183 #if ((' ' & 0x0FF) == 0x020)
5184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5186 #else
5187 # define ISLOWER(c) \
5188                    (('a' <= (c) && (c) <= 'i') \
5189                      || ('j' <= (c) && (c) <= 'r') \
5190                      || ('s' <= (c) && (c) <= 'z'))
5191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5192 #endif
5193
5194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5195 int
5196 main ()
5197 {
5198   int i;
5199   for (i = 0; i < 256; i++)
5200     if (XOR (islower (i), ISLOWER (i))
5201         || toupper (i) != TOUPPER (i))
5202       return 2;
5203   return 0;
5204 }
5205 _ACEOF
5206 if ac_fn_c_try_run "$LINENO"; then :
5207
5208 else
5209   ac_cv_header_stdc=no
5210 fi
5211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5212   conftest.$ac_objext conftest.beam conftest.$ac_ext
5213 fi
5214
5215 fi
5216 fi
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5218 $as_echo "$ac_cv_header_stdc" >&6; }
5219 if test $ac_cv_header_stdc = yes; then
5220
5221 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5222
5223 fi
5224
5225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5226 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5227                   inttypes.h stdint.h unistd.h
5228 do :
5229   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5230 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5231 "
5232 eval as_val=\$$as_ac_Header
5233    if test "x$as_val" = x""yes; then :
5234   cat >>confdefs.h <<_ACEOF
5235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5236 _ACEOF
5237
5238 fi
5239
5240 done
5241
5242
5243
5244   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5245 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5246   MINIX=yes
5247 else
5248   MINIX=
5249 fi
5250
5251
5252   if test "$MINIX" = yes; then
5253
5254 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5255
5256
5257 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5258
5259
5260 $as_echo "#define _MINIX 1" >>confdefs.h
5261
5262   fi
5263
5264
5265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5266 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5267 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5268   $as_echo_n "(cached) " >&6
5269 else
5270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h.  */
5272
5273 #         define __EXTENSIONS__ 1
5274           $ac_includes_default
5275 int
5276 main ()
5277 {
5278
5279   ;
5280   return 0;
5281 }
5282 _ACEOF
5283 if ac_fn_c_try_compile "$LINENO"; then :
5284   ac_cv_safe_to_define___extensions__=yes
5285 else
5286   ac_cv_safe_to_define___extensions__=no
5287 fi
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 fi
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5291 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5292   test $ac_cv_safe_to_define___extensions__ = yes &&
5293     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5294
5295   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5296
5297   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5298
5299   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5300
5301   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5302
5303
5304 ac_ext=c
5305 ac_cpp='$CPP $CPPFLAGS'
5306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5310 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5311 # On Suns, sometimes $CPP names a directory.
5312 if test -n "$CPP" && test -d "$CPP"; then
5313   CPP=
5314 fi
5315 if test -z "$CPP"; then
5316   if test "${ac_cv_prog_CPP+set}" = set; then :
5317   $as_echo_n "(cached) " >&6
5318 else
5319       # Double quotes because CPP needs to be expanded
5320     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5321     do
5322       ac_preproc_ok=false
5323 for ac_c_preproc_warn_flag in '' yes
5324 do
5325   # Use a header file that comes with gcc, so configuring glibc
5326   # with a fresh cross-compiler works.
5327   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328   # <limits.h> exists even on freestanding compilers.
5329   # On the NeXT, cc -E runs the code through the compiler's parser,
5330   # not just through cpp. "Syntax error" is here to catch this case.
5331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h.  */
5333 #ifdef __STDC__
5334 # include <limits.h>
5335 #else
5336 # include <assert.h>
5337 #endif
5338                      Syntax error
5339 _ACEOF
5340 if ac_fn_c_try_cpp "$LINENO"; then :
5341
5342 else
5343   # Broken: fails on valid input.
5344 continue
5345 fi
5346 rm -f conftest.err conftest.$ac_ext
5347
5348   # OK, works on sane cases.  Now check whether nonexistent headers
5349   # can be detected and how.
5350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h.  */
5352 #include <ac_nonexistent.h>
5353 _ACEOF
5354 if ac_fn_c_try_cpp "$LINENO"; then :
5355   # Broken: success on invalid input.
5356 continue
5357 else
5358   # Passes both tests.
5359 ac_preproc_ok=:
5360 break
5361 fi
5362 rm -f conftest.err conftest.$ac_ext
5363
5364 done
5365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5366 rm -f conftest.err conftest.$ac_ext
5367 if $ac_preproc_ok; then :
5368   break
5369 fi
5370
5371     done
5372     ac_cv_prog_CPP=$CPP
5373
5374 fi
5375   CPP=$ac_cv_prog_CPP
5376 else
5377   ac_cv_prog_CPP=$CPP
5378 fi
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5380 $as_echo "$CPP" >&6; }
5381 ac_preproc_ok=false
5382 for ac_c_preproc_warn_flag in '' yes
5383 do
5384   # Use a header file that comes with gcc, so configuring glibc
5385   # with a fresh cross-compiler works.
5386   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5387   # <limits.h> exists even on freestanding compilers.
5388   # On the NeXT, cc -E runs the code through the compiler's parser,
5389   # not just through cpp. "Syntax error" is here to catch this case.
5390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h.  */
5392 #ifdef __STDC__
5393 # include <limits.h>
5394 #else
5395 # include <assert.h>
5396 #endif
5397                      Syntax error
5398 _ACEOF
5399 if ac_fn_c_try_cpp "$LINENO"; then :
5400
5401 else
5402   # Broken: fails on valid input.
5403 continue
5404 fi
5405 rm -f conftest.err conftest.$ac_ext
5406
5407   # OK, works on sane cases.  Now check whether nonexistent headers
5408   # can be detected and how.
5409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h.  */
5411 #include <ac_nonexistent.h>
5412 _ACEOF
5413 if ac_fn_c_try_cpp "$LINENO"; then :
5414   # Broken: success on invalid input.
5415 continue
5416 else
5417   # Passes both tests.
5418 ac_preproc_ok=:
5419 break
5420 fi
5421 rm -f conftest.err conftest.$ac_ext
5422
5423 done
5424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5425 rm -f conftest.err conftest.$ac_ext
5426 if $ac_preproc_ok; then :
5427
5428 else
5429   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5431 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5432 See \`config.log' for more details." "$LINENO" 5; }
5433 fi
5434
5435 ac_ext=c
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5440
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5442 $as_echo_n "checking for inline... " >&6; }
5443 if test "${ac_cv_c_inline+set}" = set; then :
5444   $as_echo_n "(cached) " >&6
5445 else
5446   ac_cv_c_inline=no
5447 for ac_kw in inline __inline__ __inline; do
5448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h.  */
5450 #ifndef __cplusplus
5451 typedef int foo_t;
5452 static $ac_kw foo_t static_foo () {return 0; }
5453 $ac_kw foo_t foo () {return 0; }
5454 #endif
5455
5456 _ACEOF
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458   ac_cv_c_inline=$ac_kw
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461   test "$ac_cv_c_inline" != no && break
5462 done
5463
5464 fi
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5466 $as_echo "$ac_cv_c_inline" >&6; }
5467
5468 case $ac_cv_c_inline in
5469   inline | yes) ;;
5470   *)
5471     case $ac_cv_c_inline in
5472       no) ac_val=;;
5473       *) ac_val=$ac_cv_c_inline;;
5474     esac
5475     cat >>confdefs.h <<_ACEOF
5476 #ifndef __cplusplus
5477 #define inline $ac_val
5478 #endif
5479 _ACEOF
5480     ;;
5481 esac
5482
5483
5484 # sizeof(char) is 1 by definition.
5485 # The cast to long int works around a bug in the HP C Compiler
5486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5488 # This bug is HP SR number 8606223364.
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5490 $as_echo_n "checking size of void *... " >&6; }
5491 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5492   $as_echo_n "(cached) " >&6
5493 else
5494   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5495
5496 else
5497   if test "$ac_cv_type_void_p" = yes; then
5498      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5500 { as_fn_set_status 77
5501 as_fn_error "cannot compute sizeof (void *)
5502 See \`config.log' for more details." "$LINENO" 5; }; }
5503    else
5504      ac_cv_sizeof_void_p=0
5505    fi
5506 fi
5507
5508 fi
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5510 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5511
5512
5513
5514 cat >>confdefs.h <<_ACEOF
5515 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5516 _ACEOF
5517
5518
5519 # The cast to long int works around a bug in the HP C Compiler
5520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5522 # This bug is HP SR number 8606223364.
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5524 $as_echo_n "checking size of short... " >&6; }
5525 if test "${ac_cv_sizeof_short+set}" = set; then :
5526   $as_echo_n "(cached) " >&6
5527 else
5528   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5529
5530 else
5531   if test "$ac_cv_type_short" = yes; then
5532      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5534 { as_fn_set_status 77
5535 as_fn_error "cannot compute sizeof (short)
5536 See \`config.log' for more details." "$LINENO" 5; }; }
5537    else
5538      ac_cv_sizeof_short=0
5539    fi
5540 fi
5541
5542 fi
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5544 $as_echo "$ac_cv_sizeof_short" >&6; }
5545
5546
5547
5548 cat >>confdefs.h <<_ACEOF
5549 #define SIZEOF_SHORT $ac_cv_sizeof_short
5550 _ACEOF
5551
5552
5553 # The cast to long int works around a bug in the HP C Compiler
5554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5556 # This bug is HP SR number 8606223364.
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5558 $as_echo_n "checking size of int... " >&6; }
5559 if test "${ac_cv_sizeof_int+set}" = set; then :
5560   $as_echo_n "(cached) " >&6
5561 else
5562   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5563
5564 else
5565   if test "$ac_cv_type_int" = yes; then
5566      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5568 { as_fn_set_status 77
5569 as_fn_error "cannot compute sizeof (int)
5570 See \`config.log' for more details." "$LINENO" 5; }; }
5571    else
5572      ac_cv_sizeof_int=0
5573    fi
5574 fi
5575
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5578 $as_echo "$ac_cv_sizeof_int" >&6; }
5579
5580
5581
5582 cat >>confdefs.h <<_ACEOF
5583 #define SIZEOF_INT $ac_cv_sizeof_int
5584 _ACEOF
5585
5586
5587 # The cast to long int works around a bug in the HP C Compiler
5588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5590 # This bug is HP SR number 8606223364.
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5592 $as_echo_n "checking size of long... " >&6; }
5593 if test "${ac_cv_sizeof_long+set}" = set; then :
5594   $as_echo_n "(cached) " >&6
5595 else
5596   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5597
5598 else
5599   if test "$ac_cv_type_long" = yes; then
5600      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5602 { as_fn_set_status 77
5603 as_fn_error "cannot compute sizeof (long)
5604 See \`config.log' for more details." "$LINENO" 5; }; }
5605    else
5606      ac_cv_sizeof_long=0
5607    fi
5608 fi
5609
5610 fi
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5612 $as_echo "$ac_cv_sizeof_long" >&6; }
5613
5614
5615
5616 cat >>confdefs.h <<_ACEOF
5617 #define SIZEOF_LONG $ac_cv_sizeof_long
5618 _ACEOF
5619
5620
5621 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5622 if test "x$ac_cv_type_long_long" = x""yes; then :
5623
5624 cat >>confdefs.h <<_ACEOF
5625 #define HAVE_LONG_LONG 1
5626 _ACEOF
5627
5628 # The cast to long int works around a bug in the HP C Compiler
5629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5631 # This bug is HP SR number 8606223364.
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5633 $as_echo_n "checking size of long long... " >&6; }
5634 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5635   $as_echo_n "(cached) " >&6
5636 else
5637   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5638
5639 else
5640   if test "$ac_cv_type_long_long" = yes; then
5641      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5643 { as_fn_set_status 77
5644 as_fn_error "cannot compute sizeof (long long)
5645 See \`config.log' for more details." "$LINENO" 5; }; }
5646    else
5647      ac_cv_sizeof_long_long=0
5648    fi
5649 fi
5650
5651 fi
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5653 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5654
5655
5656
5657 cat >>confdefs.h <<_ACEOF
5658 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5659 _ACEOF
5660
5661
5662 fi
5663
5664 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5665 if test "x$ac_cv_type___int64" = x""yes; then :
5666
5667 cat >>confdefs.h <<_ACEOF
5668 #define HAVE___INT64 1
5669 _ACEOF
5670
5671 # The cast to long int works around a bug in the HP C Compiler
5672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5674 # This bug is HP SR number 8606223364.
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5676 $as_echo_n "checking size of __int64... " >&6; }
5677 if test "${ac_cv_sizeof___int64+set}" = set; then :
5678   $as_echo_n "(cached) " >&6
5679 else
5680   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5681
5682 else
5683   if test "$ac_cv_type___int64" = yes; then
5684      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5686 { as_fn_set_status 77
5687 as_fn_error "cannot compute sizeof (__int64)
5688 See \`config.log' for more details." "$LINENO" 5; }; }
5689    else
5690      ac_cv_sizeof___int64=0
5691    fi
5692 fi
5693
5694 fi
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5696 $as_echo "$ac_cv_sizeof___int64" >&6; }
5697
5698
5699
5700 cat >>confdefs.h <<_ACEOF
5701 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5702 _ACEOF
5703
5704
5705 fi
5706
5707 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5708 case $ac_cv_c_int8_t in #(
5709   no|yes) ;; #(
5710   *)
5711
5712 cat >>confdefs.h <<_ACEOF
5713 #define int8_t $ac_cv_c_int8_t
5714 _ACEOF
5715 ;;
5716 esac
5717
5718 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5719 case $ac_cv_c_int16_t in #(
5720   no|yes) ;; #(
5721   *)
5722
5723 cat >>confdefs.h <<_ACEOF
5724 #define int16_t $ac_cv_c_int16_t
5725 _ACEOF
5726 ;;
5727 esac
5728
5729 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5730 case $ac_cv_c_int32_t in #(
5731   no|yes) ;; #(
5732   *)
5733
5734 cat >>confdefs.h <<_ACEOF
5735 #define int32_t $ac_cv_c_int32_t
5736 _ACEOF
5737 ;;
5738 esac
5739
5740 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5741 case $ac_cv_c_int64_t in #(
5742   no|yes) ;; #(
5743   *)
5744
5745 cat >>confdefs.h <<_ACEOF
5746 #define int64_t $ac_cv_c_int64_t
5747 _ACEOF
5748 ;;
5749 esac
5750
5751
5752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5753 $as_echo_n "checking for long long int... " >&6; }
5754 if test "${ac_cv_type_long_long_int+set}" = set; then :
5755   $as_echo_n "(cached) " >&6
5756 else
5757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h.  */
5759
5760   /* For now, do not test the preprocessor; as of 2007 there are too many
5761          implementations with broken preprocessors.  Perhaps this can
5762          be revisited in 2012.  In the meantime, code should not expect
5763          #if to work with literals wider than 32 bits.  */
5764       /* Test literals.  */
5765       long long int ll = 9223372036854775807ll;
5766       long long int nll = -9223372036854775807LL;
5767       unsigned long long int ull = 18446744073709551615ULL;
5768       /* Test constant expressions.   */
5769       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5770                      ? 1 : -1)];
5771       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5772                      ? 1 : -1)];
5773       int i = 63;
5774 int
5775 main ()
5776 {
5777 /* Test availability of runtime routines for shift and division.  */
5778       long long int llmax = 9223372036854775807ll;
5779       unsigned long long int ullmax = 18446744073709551615ull;
5780       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5781               | (llmax / ll) | (llmax % ll)
5782               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5783               | (ullmax / ull) | (ullmax % ull));
5784   ;
5785   return 0;
5786 }
5787
5788 _ACEOF
5789 if ac_fn_c_try_link "$LINENO"; then :
5790                         if test "$cross_compiling" = yes; then :
5791   ac_cv_type_long_long_int=yes
5792 else
5793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h.  */
5795 #include <limits.h>
5796                #ifndef LLONG_MAX
5797                # define HALF \
5798                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5799                # define LLONG_MAX (HALF - 1 + HALF)
5800                #endif
5801 int
5802 main ()
5803 {
5804 long long int n = 1;
5805                int i;
5806                for (i = 0; ; i++)
5807                  {
5808                    long long int m = n << i;
5809                    if (m >> i != n)
5810                      return 1;
5811                    if (LLONG_MAX / 2 < m)
5812                      break;
5813                  }
5814                return 0;
5815   ;
5816   return 0;
5817 }
5818 _ACEOF
5819 if ac_fn_c_try_run "$LINENO"; then :
5820   ac_cv_type_long_long_int=yes
5821 else
5822   ac_cv_type_long_long_int=no
5823 fi
5824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5825   conftest.$ac_objext conftest.beam conftest.$ac_ext
5826 fi
5827
5828 else
5829   ac_cv_type_long_long_int=no
5830 fi
5831 rm -f core conftest.err conftest.$ac_objext \
5832     conftest$ac_exeext conftest.$ac_ext
5833 fi
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5835 $as_echo "$ac_cv_type_long_long_int" >&6; }
5836   if test $ac_cv_type_long_long_int = yes; then
5837
5838 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5839
5840   fi
5841
5842
5843
5844   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5845 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5846
5847 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5848
5849 else
5850   test $ac_cv_type_long_long_int = yes \
5851        && ac_type='long long int' \
5852        || ac_type='long int'
5853
5854 cat >>confdefs.h <<_ACEOF
5855 #define intmax_t $ac_type
5856 _ACEOF
5857
5858 fi
5859
5860
5861
5862   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5863 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5864
5865 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5866
5867 else
5868   for ac_type in 'int' 'long int' 'long long int'; do
5869        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h.  */
5871 $ac_includes_default
5872 int
5873 main ()
5874 {
5875 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5876 test_array [0] = 0
5877
5878   ;
5879   return 0;
5880 }
5881 _ACEOF
5882 if ac_fn_c_try_compile "$LINENO"; then :
5883
5884 cat >>confdefs.h <<_ACEOF
5885 #define intptr_t $ac_type
5886 _ACEOF
5887
5888           ac_type=
5889 fi
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891        test -z "$ac_type" && break
5892      done
5893 fi
5894
5895
5896 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5897 case $ac_cv_c_uint8_t in #(
5898   no|yes) ;; #(
5899   *)
5900
5901 $as_echo "#define _UINT8_T 1" >>confdefs.h
5902
5903
5904 cat >>confdefs.h <<_ACEOF
5905 #define uint8_t $ac_cv_c_uint8_t
5906 _ACEOF
5907 ;;
5908   esac
5909
5910 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5911 case $ac_cv_c_uint16_t in #(
5912   no|yes) ;; #(
5913   *)
5914
5915
5916 cat >>confdefs.h <<_ACEOF
5917 #define uint16_t $ac_cv_c_uint16_t
5918 _ACEOF
5919 ;;
5920   esac
5921
5922 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5923 case $ac_cv_c_uint32_t in #(
5924   no|yes) ;; #(
5925   *)
5926
5927 $as_echo "#define _UINT32_T 1" >>confdefs.h
5928
5929
5930 cat >>confdefs.h <<_ACEOF
5931 #define uint32_t $ac_cv_c_uint32_t
5932 _ACEOF
5933 ;;
5934   esac
5935
5936 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5937 case $ac_cv_c_uint64_t in #(
5938   no|yes) ;; #(
5939   *)
5940
5941 $as_echo "#define _UINT64_T 1" >>confdefs.h
5942
5943
5944 cat >>confdefs.h <<_ACEOF
5945 #define uint64_t $ac_cv_c_uint64_t
5946 _ACEOF
5947 ;;
5948   esac
5949
5950
5951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5952 $as_echo_n "checking for unsigned long long int... " >&6; }
5953 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5954   $as_echo_n "(cached) " >&6
5955 else
5956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h.  */
5958
5959   /* For now, do not test the preprocessor; as of 2007 there are too many
5960          implementations with broken preprocessors.  Perhaps this can
5961          be revisited in 2012.  In the meantime, code should not expect
5962          #if to work with literals wider than 32 bits.  */
5963       /* Test literals.  */
5964       long long int ll = 9223372036854775807ll;
5965       long long int nll = -9223372036854775807LL;
5966       unsigned long long int ull = 18446744073709551615ULL;
5967       /* Test constant expressions.   */
5968       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5969                      ? 1 : -1)];
5970       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5971                      ? 1 : -1)];
5972       int i = 63;
5973 int
5974 main ()
5975 {
5976 /* Test availability of runtime routines for shift and division.  */
5977       long long int llmax = 9223372036854775807ll;
5978       unsigned long long int ullmax = 18446744073709551615ull;
5979       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5980               | (llmax / ll) | (llmax % ll)
5981               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5982               | (ullmax / ull) | (ullmax % ull));
5983   ;
5984   return 0;
5985 }
5986
5987 _ACEOF
5988 if ac_fn_c_try_link "$LINENO"; then :
5989   ac_cv_type_unsigned_long_long_int=yes
5990 else
5991   ac_cv_type_unsigned_long_long_int=no
5992 fi
5993 rm -f core conftest.err conftest.$ac_objext \
5994     conftest$ac_exeext conftest.$ac_ext
5995 fi
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5997 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5998   if test $ac_cv_type_unsigned_long_long_int = yes; then
5999
6000 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6001
6002   fi
6003
6004
6005
6006   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6007 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6008
6009 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6010
6011 else
6012   test $ac_cv_type_unsigned_long_long_int = yes \
6013        && ac_type='unsigned long long int' \
6014        || ac_type='unsigned long int'
6015
6016 cat >>confdefs.h <<_ACEOF
6017 #define uintmax_t $ac_type
6018 _ACEOF
6019
6020 fi
6021
6022
6023
6024   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6025 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6026
6027 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6028
6029 else
6030   for ac_type in 'unsigned int' 'unsigned long int' \
6031         'unsigned long long int'; do
6032        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h.  */
6034 $ac_includes_default
6035 int
6036 main ()
6037 {
6038 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6039 test_array [0] = 0
6040
6041   ;
6042   return 0;
6043 }
6044 _ACEOF
6045 if ac_fn_c_try_compile "$LINENO"; then :
6046
6047 cat >>confdefs.h <<_ACEOF
6048 #define uintptr_t $ac_type
6049 _ACEOF
6050
6051           ac_type=
6052 fi
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054        test -z "$ac_type" && break
6055      done
6056 fi
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072 # ---------------------
6073 # Warnings and checking
6074 # ---------------------
6075
6076 # Check $CC warning features (if it's GCC).
6077 # We want to use -pedantic, but we don't want warnings about
6078 # * 'long long'
6079 # * variadic macros
6080 # * overlong strings
6081 # So, we only use -pedantic if we can disable those warnings.
6082
6083 loose_warn=
6084 save_CFLAGS="$CFLAGS"
6085 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6086   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6087
6088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6089 $as_echo_n "checking whether $CC supports $option... " >&6; }
6090 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6091   $as_echo_n "(cached) " >&6
6092 else
6093   CFLAGS="$option"
6094     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h.  */
6096
6097 int
6098 main ()
6099 {
6100
6101   ;
6102   return 0;
6103 }
6104 _ACEOF
6105 if ac_fn_c_try_compile "$LINENO"; then :
6106   eval "$as_acx_Woption=yes"
6107 else
6108   eval "$as_acx_Woption=no"
6109 fi
6110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111
6112 fi
6113 eval ac_res=\$$as_acx_Woption
6114                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6115 $as_echo "$ac_res" >&6; }
6116   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6117   loose_warn="$loose_warn${loose_warn:+ }$option"
6118 fi
6119   done
6120 CFLAGS="$save_CFLAGS"
6121
6122 c_loose_warn=
6123 save_CFLAGS="$CFLAGS"
6124 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6125   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6126
6127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6128 $as_echo_n "checking whether $CC supports $option... " >&6; }
6129 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6130   $as_echo_n "(cached) " >&6
6131 else
6132   CFLAGS="$option"
6133     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h.  */
6135
6136 int
6137 main ()
6138 {
6139
6140   ;
6141   return 0;
6142 }
6143 _ACEOF
6144 if ac_fn_c_try_compile "$LINENO"; then :
6145   eval "$as_acx_Woption=yes"
6146 else
6147   eval "$as_acx_Woption=no"
6148 fi
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150
6151 fi
6152 eval ac_res=\$$as_acx_Woption
6153                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6154 $as_echo "$ac_res" >&6; }
6155   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6156   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6157 fi
6158   done
6159 CFLAGS="$save_CFLAGS"
6160
6161 strict_warn=
6162 save_CFLAGS="$CFLAGS"
6163 for option in -Wmissing-format-attribute; do
6164   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6165
6166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6167 $as_echo_n "checking whether $CC supports $option... " >&6; }
6168 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6169   $as_echo_n "(cached) " >&6
6170 else
6171   CFLAGS="$option"
6172     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h.  */
6174
6175 int
6176 main ()
6177 {
6178
6179   ;
6180   return 0;
6181 }
6182 _ACEOF
6183 if ac_fn_c_try_compile "$LINENO"; then :
6184   eval "$as_acx_Woption=yes"
6185 else
6186   eval "$as_acx_Woption=no"
6187 fi
6188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6189
6190 fi
6191 eval ac_res=\$$as_acx_Woption
6192                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6193 $as_echo "$ac_res" >&6; }
6194   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6195   strict_warn="$strict_warn${strict_warn:+ }$option"
6196 fi
6197   done
6198 CFLAGS="$save_CFLAGS"
6199
6200 c_strict_warn=
6201 save_CFLAGS="$CFLAGS"
6202 for option in -Wold-style-definition -Wc++-compat; do
6203   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6204
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6206 $as_echo_n "checking whether $CC supports $option... " >&6; }
6207 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6208   $as_echo_n "(cached) " >&6
6209 else
6210   CFLAGS="$option"
6211     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h.  */
6213
6214 int
6215 main ()
6216 {
6217
6218   ;
6219   return 0;
6220 }
6221 _ACEOF
6222 if ac_fn_c_try_compile "$LINENO"; then :
6223   eval "$as_acx_Woption=yes"
6224 else
6225   eval "$as_acx_Woption=no"
6226 fi
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228
6229 fi
6230 eval ac_res=\$$as_acx_Woption
6231                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6232 $as_echo "$ac_res" >&6; }
6233   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6234   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6235 fi
6236   done
6237 CFLAGS="$save_CFLAGS"
6238
6239 if test "$GCC" = yes; then :
6240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6241 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6242 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6243   $as_echo_n "(cached) " >&6
6244 else
6245   save_CFLAGS="$CFLAGS"
6246 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h.  */
6249
6250 int
6251 main ()
6252 {
6253
6254   ;
6255   return 0;
6256 }
6257 _ACEOF
6258 if ac_fn_c_try_compile "$LINENO"; then :
6259   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6260 else
6261   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6262 fi
6263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 CFLAGS="$save_CFLAGS"
6265 fi
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6267 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6268 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6269   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6270 fi
6271
6272 fi
6273
6274 # Check whether --enable-werror-always was given.
6275 if test "${enable_werror_always+set}" = set; then :
6276   enableval=$enable_werror_always;
6277 else
6278   enable_werror_always=no
6279 fi
6280
6281 if test $enable_werror_always = yes; then :
6282   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6283 fi
6284
6285
6286
6287 # The above macros do nothing if the compiler is not GCC.  However, the
6288 # Makefile has more goo to add other flags, so these variables are used
6289 # to enable warnings only for GCC.
6290 warn_cflags=
6291 warn_cxxflags=
6292 if test "x$GCC" = "xyes"; then
6293   warn_cflags='$(GCC_WARN_CFLAGS)'
6294   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6295 fi
6296
6297
6298
6299 # Enable expensive internal checks
6300 is_release=
6301 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6302   is_release=yes
6303 fi
6304
6305 # Check whether --enable-checking was given.
6306 if test "${enable_checking+set}" = set; then :
6307   enableval=$enable_checking; ac_checking_flags="${enableval}"
6308 else
6309
6310 # Determine the default checks.
6311 if test x$is_release = x ; then
6312   ac_checking_flags=yes
6313 else
6314   ac_checking_flags=release
6315 fi
6316 fi
6317
6318 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6319 for check in release $ac_checking_flags
6320 do
6321         case $check in
6322         # these set all the flags to specific states
6323         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6324                         ac_fold_checking= ; ac_gc_checking=1 ;
6325                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6326                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6327                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6328                         ac_types_checking=1 ;;
6329         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6330                         ac_fold_checking= ; ac_gc_checking= ;
6331                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6332                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6333                         ac_tree_checking= ; ac_valgrind_checking= ;
6334                         ac_types_checking= ;;
6335         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6336                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6337                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6338                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6339                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6340                         ac_types_checking=1 ;;
6341         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6342                         ac_fold_checking= ; ac_gc_checking= ;
6343                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6344                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6345                         ac_tree_checking= ; ac_valgrind_checking= ;
6346                         ac_types_checking= ;;
6347         # these enable particular checks
6348         assert)         ac_assert_checking=1 ;;
6349         df)             ac_df_checking=1 ;;
6350         fold)           ac_fold_checking=1 ;;
6351         gc)             ac_gc_checking=1 ;;
6352         gcac)           ac_gc_always_collect=1 ;;
6353         gimple)         ac_gimple_checking=1 ;;
6354         misc)           ac_checking=1 ;;
6355         rtl)            ac_rtl_checking=1 ;;
6356         rtlflag)        ac_rtlflag_checking=1 ;;
6357         runtime)        ac_runtime_checking=1 ;;
6358         tree)           ac_tree_checking=1 ;;
6359         types)          ac_types_checking=1 ;;
6360         valgrind)       ac_valgrind_checking=1 ;;
6361         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6362         esac
6363 done
6364 IFS="$ac_save_IFS"
6365
6366 nocommon_flag=""
6367 if test x$ac_checking != x ; then
6368
6369 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6370
6371   nocommon_flag=-fno-common
6372 fi
6373
6374 if test x$ac_df_checking != x ; then
6375
6376 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6377
6378 fi
6379 if test x$ac_assert_checking != x ; then
6380
6381 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6382
6383 fi
6384 if test x$ac_gimple_checking != x ; then
6385
6386 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6387
6388 fi
6389
6390 if test x$ac_runtime_checking != x ; then
6391
6392 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6393
6394 fi
6395 if test x$ac_tree_checking != x ; then
6396
6397 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6398
6399   TREEBROWSER=tree-browser.o
6400 fi
6401 if test x$ac_types_checking != x ; then
6402
6403 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6404
6405 fi
6406
6407 if test x$ac_rtl_checking != x ; then
6408
6409 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6410
6411 fi
6412 if test x$ac_rtlflag_checking != x ; then
6413
6414 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6415
6416 fi
6417 if test x$ac_gc_checking != x ; then
6418
6419 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6420
6421 fi
6422 if test x$ac_gc_always_collect != x ; then
6423
6424 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6425
6426 fi
6427 if test x$ac_fold_checking != x ; then
6428
6429 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6430
6431 fi
6432 valgrind_path_defines=
6433 valgrind_command=
6434
6435 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6436 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6437   have_valgrind_h=yes
6438 else
6439   have_valgrind_h=no
6440 fi
6441
6442
6443
6444 if test x$ac_valgrind_checking != x ; then
6445   # It is certainly possible that there's valgrind but no valgrind.h.
6446   # GCC relies on making annotations so we must have both.
6447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6448 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h.  */
6451 #include <valgrind/memcheck.h>
6452 #ifndef VALGRIND_DISCARD
6453 #error VALGRIND_DISCARD not defined
6454 #endif
6455 _ACEOF
6456 if ac_fn_c_try_cpp "$LINENO"; then :
6457   gcc_cv_header_valgrind_memcheck_h=yes
6458 else
6459   gcc_cv_header_valgrind_memcheck_h=no
6460 fi
6461 rm -f conftest.err conftest.$ac_ext
6462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6463 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6465 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h.  */
6468 #include <memcheck.h>
6469 #ifndef VALGRIND_DISCARD
6470 #error VALGRIND_DISCARD not defined
6471 #endif
6472 _ACEOF
6473 if ac_fn_c_try_cpp "$LINENO"; then :
6474   gcc_cv_header_memcheck_h=yes
6475 else
6476   gcc_cv_header_memcheck_h=no
6477 fi
6478 rm -f conftest.err conftest.$ac_ext
6479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6480 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6481
6482 # Prepare PATH_SEPARATOR.
6483 # The user is always right.
6484 if test "${PATH_SEPARATOR+set}" != set; then
6485   echo "#! /bin/sh" >conf$$.sh
6486   echo  "exit 0"   >>conf$$.sh
6487   chmod +x conf$$.sh
6488   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6489     PATH_SEPARATOR=';'
6490   else
6491     PATH_SEPARATOR=:
6492   fi
6493   rm -f conf$$.sh
6494 fi
6495
6496 # Find out how to test for executable files. Don't use a zero-byte file,
6497 # as systems may use methods other than mode bits to determine executability.
6498 cat >conf$$.file <<_ASEOF
6499 #! /bin/sh
6500 exit 0
6501 _ASEOF
6502 chmod +x conf$$.file
6503 if test -x conf$$.file >/dev/null 2>&1; then
6504   ac_executable_p="test -x"
6505 else
6506   ac_executable_p="test -f"
6507 fi
6508 rm -f conf$$.file
6509
6510 # Extract the first word of "valgrind", so it can be a program name with args.
6511 set dummy valgrind; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6515   $as_echo_n "(cached) " >&6
6516 else
6517   case "$valgrind_path" in
6518   [\\/]* | ?:[\\/]*)
6519     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6520     ;;
6521   *)
6522     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6523     for ac_dir in $PATH; do
6524       IFS="$ac_save_IFS"
6525       test -z "$ac_dir" && ac_dir=.
6526       for ac_exec_ext in '' $ac_executable_extensions; do
6527         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6528           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6529             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6530             break 2
6531           fi
6532         fi
6533       done
6534     done
6535     IFS="$ac_save_IFS"
6536     ;;
6537 esac
6538 fi
6539 valgrind_path="$ac_cv_path_valgrind_path"
6540 if test -n "$valgrind_path"; then
6541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6542 $as_echo "$valgrind_path" >&6; }
6543 else
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6546 fi
6547
6548   if test "x$valgrind_path" = "x" \
6549     || (test $have_valgrind_h = no \
6550         && test $gcc_cv_header_memcheck_h = no \
6551         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6552         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6553   fi
6554   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6555   valgrind_command="$valgrind_path -q"
6556
6557 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6558
6559   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6560
6561 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6562
6563   fi
6564   if test $gcc_cv_header_memcheck_h = yes; then
6565
6566 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6567
6568   fi
6569 fi
6570
6571
6572
6573 # Enable code coverage collection
6574 # Check whether --enable-coverage was given.
6575 if test "${enable_coverage+set}" = set; then :
6576   enableval=$enable_coverage; case "${enableval}" in
6577   yes|noopt)
6578     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6579     ;;
6580   opt)
6581     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6582     ;;
6583   no)
6584     # a.k.a. --disable-coverage
6585     coverage_flags=""
6586     ;;
6587   *)
6588     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6589     ;;
6590 esac
6591 else
6592   coverage_flags=""
6593 fi
6594
6595
6596
6597 # Check whether --enable-gather-detailed-mem-stats was given.
6598 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6599   enableval=$enable_gather_detailed_mem_stats;
6600 else
6601   enable_gather_detailed_mem_stats=no
6602 fi
6603
6604 if test x$enable_gather_detailed_mem_stats = xyes ; then
6605
6606 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6607
6608 fi
6609
6610 # -------------------------------
6611 # Miscenalleous configure options
6612 # -------------------------------
6613
6614 # See if we are building gcc with C++.
6615 # Check whether --enable-build-with-cxx was given.
6616 if test "${enable_build_with_cxx+set}" = set; then :
6617   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6618 else
6619   ENABLE_BUILD_WITH_CXX=no
6620 fi
6621
6622
6623
6624 # With stabs
6625
6626 # Check whether --with-stabs was given.
6627 if test "${with_stabs+set}" = set; then :
6628   withval=$with_stabs; stabs="$with_stabs"
6629 else
6630   stabs=no
6631 fi
6632
6633
6634 # Determine whether or not multilibs are enabled.
6635 # Check whether --enable-multilib was given.
6636 if test "${enable_multilib+set}" = set; then :
6637   enableval=$enable_multilib;
6638 else
6639   enable_multilib=yes
6640 fi
6641
6642
6643
6644 # Enable __cxa_atexit for C++.
6645 # Check whether --enable-__cxa_atexit was given.
6646 if test "${enable___cxa_atexit+set}" = set; then :
6647   enableval=$enable___cxa_atexit;
6648 fi
6649
6650
6651 # Enable C extension for decimal float if target supports it.
6652
6653 # Check whether --enable-decimal-float was given.
6654 if test "${enable_decimal_float+set}" = set; then :
6655   enableval=$enable_decimal_float;
6656   case $enable_decimal_float in
6657     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6658     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6659 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6660   esac
6661
6662 else
6663
6664   case $target in
6665     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6666     i?86*-*-mingw* | x86_64*-*-mingw* | \
6667     i?86*-*-cygwin*)
6668       enable_decimal_float=yes
6669       ;;
6670     *)
6671       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6672 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6673       enable_decimal_float=no
6674       ;;
6675   esac
6676
6677 fi
6678
6679
6680 # x86's use BID format instead of DPD
6681 case x$enable_decimal_float in
6682   xyes)
6683     case $target in
6684       i?86*-*-* | x86_64*-*-*)
6685         enable_decimal_float=bid
6686         ;;
6687       *)
6688         enable_decimal_float=dpd
6689         ;;
6690     esac
6691     default_decimal_float=$enable_decimal_float
6692     ;;
6693   xno)
6694     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6695     # dependency on libdecnumber.
6696     default_decimal_float=dpd
6697     ;;
6698 esac
6699
6700
6701
6702
6703 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6704
6705 cat >>confdefs.h <<_ACEOF
6706 #define ENABLE_DECIMAL_FLOAT $dfp
6707 _ACEOF
6708
6709
6710 # Use default_decimal_float for dependency.
6711 enable_decimal_float=$default_decimal_float
6712
6713 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6714
6715 cat >>confdefs.h <<_ACEOF
6716 #define ENABLE_DECIMAL_BID_FORMAT $bid
6717 _ACEOF
6718
6719
6720 # Enable C extension for fixed-point arithmetic.
6721 # Check whether --enable-fixed-point was given.
6722 if test "${enable_fixed_point+set}" = set; then :
6723   enableval=$enable_fixed_point;
6724
6725 else
6726
6727   case $target in
6728     mips*-*-*)
6729       case $host in
6730         mips*-sgi-irix*)
6731           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6732 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6733           enable_fixed_point=no
6734           ;;
6735         *)
6736           enable_fixed_point=yes
6737           ;;
6738       esac
6739       ;;
6740     *)
6741       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6742 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6743       enable_fixed_point=no
6744       ;;
6745   esac
6746
6747 fi
6748
6749
6750
6751 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6752
6753 cat >>confdefs.h <<_ACEOF
6754 #define ENABLE_FIXED_POINT $fixedpoint
6755 _ACEOF
6756
6757
6758 # Enable threads
6759 # Pass with no value to take the default
6760 # Pass with a value to specify a thread package
6761 # Check whether --enable-threads was given.
6762 if test "${enable_threads+set}" = set; then :
6763   enableval=$enable_threads;
6764 else
6765   enable_threads=''
6766 fi
6767
6768
6769 # Check whether --enable-tls was given.
6770 if test "${enable_tls+set}" = set; then :
6771   enableval=$enable_tls;
6772   case $enable_tls in
6773     yes | no) ;;
6774     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6775 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6776   esac
6777
6778 else
6779   enable_tls=''
6780 fi
6781
6782
6783 # Check whether --enable-objc-gc was given.
6784 if test "${enable_objc_gc+set}" = set; then :
6785   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6786         objc_boehm_gc=''
6787 else
6788         objc_boehm_gc=1
6789 fi
6790 else
6791   objc_boehm_gc=''
6792 fi
6793
6794
6795
6796 # Check whether --with-dwarf2 was given.
6797 if test "${with_dwarf2+set}" = set; then :
6798   withval=$with_dwarf2; dwarf2="$with_dwarf2"
6799 else
6800   dwarf2=no
6801 fi
6802
6803
6804 # Check whether --enable-shared was given.
6805 if test "${enable_shared+set}" = set; then :
6806   enableval=$enable_shared;
6807   case $enable_shared in
6808   yes | no) ;;
6809   *)
6810     enable_shared=no
6811     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6812     for pkg in $enableval; do
6813       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6814         enable_shared=yes
6815       fi
6816     done
6817     IFS="$ac_save_ifs"
6818     ;;
6819   esac
6820
6821 else
6822   enable_shared=yes
6823 fi
6824
6825
6826
6827
6828 # Check whether --with-build-sysroot was given.
6829 if test "${with_build_sysroot+set}" = set; then :
6830   withval=$with_build_sysroot;
6831 fi
6832
6833
6834
6835 # Check whether --with-sysroot was given.
6836 if test "${with_sysroot+set}" = set; then :
6837   withval=$with_sysroot;
6838  case ${with_sysroot} in
6839  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6840  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6841  esac
6842
6843  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6844  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6845
6846  if test "x$prefix" = xNONE; then
6847   test_prefix=/usr/local
6848  else
6849   test_prefix=$prefix
6850  fi
6851  if test "x$exec_prefix" = xNONE; then
6852   test_exec_prefix=$test_prefix
6853  else
6854   test_exec_prefix=$exec_prefix
6855  fi
6856  case ${TARGET_SYSTEM_ROOT} in
6857  "${test_prefix}"|"${test_prefix}/"*|\
6858  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6859  '${prefix}'|'${prefix}/'*|\
6860  '${exec_prefix}'|'${exec_prefix}/'*)
6861    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6862    TARGET_SYSTEM_ROOT_DEFINE="$t"
6863    ;;
6864  esac
6865
6866 else
6867
6868  TARGET_SYSTEM_ROOT=
6869  TARGET_SYSTEM_ROOT_DEFINE=
6870  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6871
6872 fi
6873
6874
6875
6876
6877
6878
6879 # Check whether --with-specs was given.
6880 if test "${with_specs+set}" = set; then :
6881   withval=$with_specs; CONFIGURE_SPECS=$withval
6882 else
6883   CONFIGURE_SPECS=
6884
6885 fi
6886
6887
6888
6889 # Build with intermodule optimisations
6890 # Check whether --enable-intermodule was given.
6891 if test "${enable_intermodule+set}" = set; then :
6892   enableval=$enable_intermodule; case ${enable_intermodule} in
6893   yes) onestep="-onestep";;
6894   *) onestep="";;
6895 esac
6896 else
6897   onestep=""
6898 fi
6899
6900
6901
6902
6903
6904 # Check whether --with-pkgversion was given.
6905 if test "${with_pkgversion+set}" = set; then :
6906   withval=$with_pkgversion; case "$withval" in
6907       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6908       no)  PKGVERSION= ;;
6909       *)   PKGVERSION="($withval) " ;;
6910      esac
6911 else
6912   PKGVERSION="(GCC) "
6913
6914 fi
6915
6916
6917
6918
6919
6920 # Check whether --with-bugurl was given.
6921 if test "${with_bugurl+set}" = set; then :
6922   withval=$with_bugurl; case "$withval" in
6923       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6924       no)  BUGURL=
6925            ;;
6926       *)   BUGURL="$withval"
6927            ;;
6928      esac
6929 else
6930   BUGURL="http://gcc.gnu.org/bugs.html"
6931
6932 fi
6933
6934   case ${BUGURL} in
6935   "")
6936     REPORT_BUGS_TO=
6937     REPORT_BUGS_TEXI=
6938     ;;
6939   *)
6940     REPORT_BUGS_TO="<$BUGURL>"
6941     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6942     ;;
6943   esac;
6944
6945
6946
6947
6948 # Sanity check enable_languages in case someone does not run the toplevel
6949 # configure # script.
6950 # Check whether --enable-languages was given.
6951 if test "${enable_languages+set}" = set; then :
6952   enableval=$enable_languages; case ,${enable_languages}, in
6953        ,,|,yes,)
6954                 # go safe -- we cannot be much sure without the toplevel
6955                 # configure's
6956                 # analysis of which target libs are present and usable
6957                 enable_languages=c
6958                 ;;
6959          *,all,*)
6960                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6961                 ;;
6962         *,c,*)
6963                 ;;
6964         *)
6965                 enable_languages=c,${enable_languages}
6966                 ;;
6967 esac
6968 else
6969   enable_languages=c
6970 fi
6971
6972
6973
6974 # Check whether --with-multilib-list was given.
6975 if test "${with_multilib_list+set}" = set; then :
6976   withval=$with_multilib_list; :
6977 else
6978   with_multilib_list=default
6979 fi
6980
6981
6982 # -------------------------
6983 # Checks for other programs
6984 # -------------------------
6985
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6987 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6988 set x ${MAKE-make}
6989 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6990 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6991   $as_echo_n "(cached) " >&6
6992 else
6993   cat >conftest.make <<\_ACEOF
6994 SHELL = /bin/sh
6995 all:
6996         @echo '@@@%%%=$(MAKE)=@@@%%%'
6997 _ACEOF
6998 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6999 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7000   *@@@%%%=?*=@@@%%%*)
7001     eval ac_cv_prog_make_${ac_make}_set=yes;;
7002   *)
7003     eval ac_cv_prog_make_${ac_make}_set=no;;
7004 esac
7005 rm -f conftest.make
7006 fi
7007 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7009 $as_echo "yes" >&6; }
7010   SET_MAKE=
7011 else
7012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 $as_echo "no" >&6; }
7014   SET_MAKE="MAKE=${MAKE-make}"
7015 fi
7016
7017
7018 # Find some useful tools
7019 for ac_prog in gawk mawk nawk awk
7020 do
7021   # Extract the first word of "$ac_prog", so it can be a program name with args.
7022 set dummy $ac_prog; ac_word=$2
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024 $as_echo_n "checking for $ac_word... " >&6; }
7025 if test "${ac_cv_prog_AWK+set}" = set; then :
7026   $as_echo_n "(cached) " >&6
7027 else
7028   if test -n "$AWK"; then
7029   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7030 else
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7033 do
7034   IFS=$as_save_IFS
7035   test -z "$as_dir" && as_dir=.
7036     for ac_exec_ext in '' $ac_executable_extensions; do
7037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038     ac_cv_prog_AWK="$ac_prog"
7039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040     break 2
7041   fi
7042 done
7043   done
7044 IFS=$as_save_IFS
7045
7046 fi
7047 fi
7048 AWK=$ac_cv_prog_AWK
7049 if test -n "$AWK"; then
7050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7051 $as_echo "$AWK" >&6; }
7052 else
7053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054 $as_echo "no" >&6; }
7055 fi
7056
7057
7058   test -n "$AWK" && break
7059 done
7060
7061 # We need awk to create options.c and options.h.
7062 # Bail out if it's missing.
7063 case ${AWK} in
7064   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7065 esac
7066
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7068 $as_echo_n "checking whether ln -s works... " >&6; }
7069 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7070   $as_echo_n "(cached) " >&6
7071 else
7072   rm -f conftestdata_t
7073 echo >conftestdata_f
7074 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7075 then
7076   gcc_cv_prog_LN_S="ln -s"
7077 else
7078   if ln conftestdata_f conftestdata_t 2>/dev/null
7079   then
7080     gcc_cv_prog_LN_S=ln
7081   else
7082     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7083     then
7084       gcc_cv_prog_LN_S="cp -p"
7085     else
7086       gcc_cv_prog_LN_S=cp
7087     fi
7088   fi
7089 fi
7090 rm -f conftestdata_f conftestdata_t
7091
7092 fi
7093 LN_S="$gcc_cv_prog_LN_S"
7094 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7096 $as_echo "yes" >&6; }
7097 else
7098   if test "$gcc_cv_prog_LN_S" = "ln"; then
7099     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7100 $as_echo "no, using ln" >&6; }
7101   else
7102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7103 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7104   fi
7105 fi
7106
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7108 $as_echo_n "checking whether ln works... " >&6; }
7109 if test "${acx_cv_prog_LN+set}" = set; then :
7110   $as_echo_n "(cached) " >&6
7111 else
7112   rm -f conftestdata_t
7113 echo >conftestdata_f
7114 if ln conftestdata_f conftestdata_t 2>/dev/null
7115 then
7116   acx_cv_prog_LN=ln
7117 else
7118   acx_cv_prog_LN=no
7119 fi
7120 rm -f conftestdata_f conftestdata_t
7121
7122 fi
7123 if test $acx_cv_prog_LN = no; then
7124   LN="$LN_S"
7125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7126 $as_echo "no, using $LN" >&6; }
7127 else
7128   LN="$acx_cv_prog_LN"
7129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7130 $as_echo "yes" >&6; }
7131 fi
7132
7133 if test -n "$ac_tool_prefix"; then
7134   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7135 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7139   $as_echo_n "(cached) " >&6
7140 else
7141   if test -n "$RANLIB"; then
7142   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147   IFS=$as_save_IFS
7148   test -z "$as_dir" && as_dir=.
7149     for ac_exec_ext in '' $ac_executable_extensions; do
7150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153     break 2
7154   fi
7155 done
7156   done
7157 IFS=$as_save_IFS
7158
7159 fi
7160 fi
7161 RANLIB=$ac_cv_prog_RANLIB
7162 if test -n "$RANLIB"; then
7163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7164 $as_echo "$RANLIB" >&6; }
7165 else
7166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7168 fi
7169
7170
7171 fi
7172 if test -z "$ac_cv_prog_RANLIB"; then
7173   ac_ct_RANLIB=$RANLIB
7174   # Extract the first word of "ranlib", so it can be a program name with args.
7175 set dummy ranlib; ac_word=$2
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 $as_echo_n "checking for $ac_word... " >&6; }
7178 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7179   $as_echo_n "(cached) " >&6
7180 else
7181   if test -n "$ac_ct_RANLIB"; then
7182   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7183 else
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187   IFS=$as_save_IFS
7188   test -z "$as_dir" && as_dir=.
7189     for ac_exec_ext in '' $ac_executable_extensions; do
7190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7191     ac_cv_prog_ac_ct_RANLIB="ranlib"
7192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193     break 2
7194   fi
7195 done
7196   done
7197 IFS=$as_save_IFS
7198
7199 fi
7200 fi
7201 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7202 if test -n "$ac_ct_RANLIB"; then
7203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7204 $as_echo "$ac_ct_RANLIB" >&6; }
7205 else
7206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7208 fi
7209
7210   if test "x$ac_ct_RANLIB" = x; then
7211     RANLIB=":"
7212   else
7213     case $cross_compiling:$ac_tool_warned in
7214 yes:)
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7217 ac_tool_warned=yes ;;
7218 esac
7219     RANLIB=$ac_ct_RANLIB
7220   fi
7221 else
7222   RANLIB="$ac_cv_prog_RANLIB"
7223 fi
7224
7225 case "${host}" in
7226 *-*-darwin*)
7227   # By default, the Darwin ranlib will not treat common symbols as
7228   # definitions when  building the archive table of contents.  Other
7229   # ranlibs do that; pass an option to the Darwin ranlib that makes
7230   # it behave similarly.
7231   ranlib_flags="-c"
7232   ;;
7233 *)
7234   ranlib_flags=""
7235 esac
7236
7237
7238 # Find a good install program.  We prefer a C program (faster),
7239 # so one script is as good as another.  But avoid the broken or
7240 # incompatible versions:
7241 # SysV /etc/install, /usr/sbin/install
7242 # SunOS /usr/etc/install
7243 # IRIX /sbin/install
7244 # AIX /bin/install
7245 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7246 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7247 # ./install, which can be erroneously created by make from ./install.sh.
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7249 $as_echo_n "checking for a BSD compatible install... " >&6; }
7250 if test -z "$INSTALL"; then
7251 if test "${ac_cv_path_install+set}" = set; then :
7252   $as_echo_n "(cached) " >&6
7253 else
7254     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7255   for ac_dir in $PATH; do
7256     # Account for people who put trailing slashes in PATH elements.
7257     case "$ac_dir/" in
7258     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7259     *)
7260       # OSF1 and SCO ODT 3.0 have their own names for install.
7261       for ac_prog in ginstall scoinst install; do
7262         if test -f $ac_dir/$ac_prog; then
7263           if test $ac_prog = install &&
7264             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7265             # AIX install.  It has an incompatible calling convention.
7266             # OSF/1 installbsd also uses dspmsg, but is usable.
7267             :
7268           else
7269             ac_cv_path_install="$ac_dir/$ac_prog -c"
7270             break 2
7271           fi
7272         fi
7273       done
7274       ;;
7275     esac
7276   done
7277   IFS="$ac_save_IFS"
7278
7279 fi
7280   if test "${ac_cv_path_install+set}" = set; then
7281     INSTALL="$ac_cv_path_install"
7282   else
7283     # As a last resort, use the slow shell script.  We don't cache a
7284     # path for INSTALL within a source directory, because that will
7285     # break other packages using the cache if that directory is
7286     # removed, or if the path is relative.
7287     INSTALL="$ac_install_sh"
7288   fi
7289 fi
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7291 $as_echo "$INSTALL" >&6; }
7292
7293 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7294 # It thinks the first close brace ends the variable substitution.
7295 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7296
7297 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7298
7299
7300 # See if cmp has --ignore-initial.
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7302 $as_echo_n "checking for cmp's capabilities... " >&6; }
7303 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7304   $as_echo_n "(cached) " >&6
7305 else
7306    echo abfoo >t1
7307   echo cdfoo >t2
7308   gcc_cv_prog_cmp_skip=slowcompare
7309   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7310     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7311       :
7312     else
7313       gcc_cv_prog_cmp_skip=gnucompare
7314     fi
7315   fi
7316   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7317     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7318       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7319         :
7320       else
7321         gcc_cv_prog_cmp_skip=fastcompare
7322       fi
7323     fi
7324   fi
7325   rm t1 t2
7326
7327 fi
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7329 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7330 make_compare_target=$gcc_cv_prog_cmp_skip
7331
7332
7333
7334 # See if we have the mktemp command.
7335 # Extract the first word of "mktemp", so it can be a program name with args.
7336 set dummy mktemp; ac_word=$2
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7338 $as_echo_n "checking for $ac_word... " >&6; }
7339 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7340   $as_echo_n "(cached) " >&6
7341 else
7342   if test -n "$have_mktemp_command"; then
7343   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7344 else
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7347 do
7348   IFS=$as_save_IFS
7349   test -z "$as_dir" && as_dir=.
7350     for ac_exec_ext in '' $ac_executable_extensions; do
7351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7352     ac_cv_prog_have_mktemp_command="yes"
7353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354     break 2
7355   fi
7356 done
7357   done
7358 IFS=$as_save_IFS
7359
7360   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7361 fi
7362 fi
7363 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7364 if test -n "$have_mktemp_command"; then
7365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7366 $as_echo "$have_mktemp_command" >&6; }
7367 else
7368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7370 fi
7371
7372
7373
7374 # See if makeinfo has been installed and is modern enough
7375 # that we can use it.
7376
7377   # Extract the first word of "makeinfo", so it can be a program name with args.
7378 set dummy makeinfo; ac_word=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7382   $as_echo_n "(cached) " >&6
7383 else
7384   if test -n "$MAKEINFO"; then
7385   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7386 else
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390   IFS=$as_save_IFS
7391   test -z "$as_dir" && as_dir=.
7392     for ac_exec_ext in '' $ac_executable_extensions; do
7393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7394     ac_cv_prog_MAKEINFO="makeinfo"
7395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396     break 2
7397   fi
7398 done
7399   done
7400 IFS=$as_save_IFS
7401
7402 fi
7403 fi
7404 MAKEINFO=$ac_cv_prog_MAKEINFO
7405 if test -n "$MAKEINFO"; then
7406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7407 $as_echo "$MAKEINFO" >&6; }
7408 else
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7411 fi
7412
7413
7414   if test -n "$MAKEINFO"; then
7415     # Found it, now check the version.
7416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7417 $as_echo_n "checking for modern makeinfo... " >&6; }
7418 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7419   $as_echo_n "(cached) " >&6
7420 else
7421   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7422                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7423
7424                     case $ac_prog_version in
7425                       '')  gcc_cv_prog_makeinfo_modern=no;;
7426                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7427                       *)   gcc_cv_prog_makeinfo_modern=no;;
7428                     esac
7429
7430 fi
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7432 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7433   else
7434     gcc_cv_prog_makeinfo_modern=no
7435   fi
7436   if test $gcc_cv_prog_makeinfo_modern = no; then
7437     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7438   fi
7439
7440 if test $gcc_cv_prog_makeinfo_modern = no; then
7441   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7442 *** Makeinfo is missing or too old.
7443 *** Info documentation will not be built." >&5
7444 $as_echo "$as_me: WARNING:
7445 *** Makeinfo is missing or too old.
7446 *** Info documentation will not be built." >&2;}
7447   BUILD_INFO=
7448 else
7449   BUILD_INFO=info
7450 fi
7451
7452
7453 # Is pod2man recent enough to regenerate manpages?
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7455 $as_echo_n "checking for recent Pod::Man... " >&6; }
7456 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7458 $as_echo "yes" >&6; }
7459   GENERATED_MANPAGES=generated-manpages
7460 else
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463   GENERATED_MANPAGES=
7464 fi
7465
7466
7467 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7468
7469 # How about lex?
7470 for ac_prog in flex
7471 do
7472   # Extract the first word of "$ac_prog", so it can be a program name with args.
7473 set dummy $ac_prog; ac_word=$2
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475 $as_echo_n "checking for $ac_word... " >&6; }
7476 if test "${ac_cv_prog_FLEX+set}" = set; then :
7477   $as_echo_n "(cached) " >&6
7478 else
7479   if test -n "$FLEX"; then
7480   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7481 else
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 for as_dir in $PATH
7484 do
7485   IFS=$as_save_IFS
7486   test -z "$as_dir" && as_dir=.
7487     for ac_exec_ext in '' $ac_executable_extensions; do
7488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7489     ac_cv_prog_FLEX="$ac_prog"
7490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7491     break 2
7492   fi
7493 done
7494   done
7495 IFS=$as_save_IFS
7496
7497 fi
7498 fi
7499 FLEX=$ac_cv_prog_FLEX
7500 if test -n "$FLEX"; then
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7502 $as_echo "$FLEX" >&6; }
7503 else
7504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7506 fi
7507
7508
7509   test -n "$FLEX" && break
7510 done
7511 test -n "$FLEX" || FLEX="$MISSING flex"
7512
7513
7514 # Bison?
7515 for ac_prog in bison
7516 do
7517   # Extract the first word of "$ac_prog", so it can be a program name with args.
7518 set dummy $ac_prog; ac_word=$2
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520 $as_echo_n "checking for $ac_word... " >&6; }
7521 if test "${ac_cv_prog_BISON+set}" = set; then :
7522   $as_echo_n "(cached) " >&6
7523 else
7524   if test -n "$BISON"; then
7525   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7526 else
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 for as_dir in $PATH
7529 do
7530   IFS=$as_save_IFS
7531   test -z "$as_dir" && as_dir=.
7532     for ac_exec_ext in '' $ac_executable_extensions; do
7533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7534     ac_cv_prog_BISON="$ac_prog"
7535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536     break 2
7537   fi
7538 done
7539   done
7540 IFS=$as_save_IFS
7541
7542 fi
7543 fi
7544 BISON=$ac_cv_prog_BISON
7545 if test -n "$BISON"; then
7546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7547 $as_echo "$BISON" >&6; }
7548 else
7549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550 $as_echo "no" >&6; }
7551 fi
7552
7553
7554   test -n "$BISON" && break
7555 done
7556 test -n "$BISON" || BISON="$MISSING bison"
7557
7558
7559 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7560 # check for build == host before using them.
7561
7562 # NM
7563 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7564   && test -d ../binutils ; then
7565   NM='${objdir}/../binutils/nm-new'
7566 else
7567   # Extract the first word of "nm", so it can be a program name with args.
7568 set dummy nm; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if test "${ac_cv_prog_NM+set}" = set; then :
7572   $as_echo_n "(cached) " >&6
7573 else
7574   if test -n "$NM"; then
7575   ac_cv_prog_NM="$NM" # Let the user override the test.
7576 else
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7579 do
7580   IFS=$as_save_IFS
7581   test -z "$as_dir" && as_dir=.
7582     for ac_exec_ext in '' $ac_executable_extensions; do
7583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7584     ac_cv_prog_NM="nm"
7585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586     break 2
7587   fi
7588 done
7589   done
7590 IFS=$as_save_IFS
7591
7592   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7593 fi
7594 fi
7595 NM=$ac_cv_prog_NM
7596 if test -n "$NM"; then
7597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7598 $as_echo "$NM" >&6; }
7599 else
7600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7602 fi
7603
7604
7605 fi
7606
7607 # AR
7608 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7609   && test -d ../binutils ; then
7610   AR='${objdir}/../binutils/ar'
7611 else
7612   # Extract the first word of "ar", so it can be a program name with args.
7613 set dummy ar; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if test "${ac_cv_prog_AR+set}" = set; then :
7617   $as_echo_n "(cached) " >&6
7618 else
7619   if test -n "$AR"; then
7620   ac_cv_prog_AR="$AR" # Let the user override the test.
7621 else
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7624 do
7625   IFS=$as_save_IFS
7626   test -z "$as_dir" && as_dir=.
7627     for ac_exec_ext in '' $ac_executable_extensions; do
7628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7629     ac_cv_prog_AR="ar"
7630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631     break 2
7632   fi
7633 done
7634   done
7635 IFS=$as_save_IFS
7636
7637   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7638 fi
7639 fi
7640 AR=$ac_cv_prog_AR
7641 if test -n "$AR"; then
7642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7643 $as_echo "$AR" >&6; }
7644 else
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7647 fi
7648
7649
7650 fi
7651
7652
7653 # --------------------
7654 # Checks for C headers
7655 # --------------------
7656
7657 # Need to reject headers which give warnings, so that the -Werror bootstrap
7658 # works later. *sigh*  This needs to come before all header checks.
7659
7660 ac_c_preproc_warn_flag=yes
7661
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7663 $as_echo_n "checking for ANSI C header files... " >&6; }
7664 if test "${ac_cv_header_stdc+set}" = set; then :
7665   $as_echo_n "(cached) " >&6
7666 else
7667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h.  */
7669 #include <stdlib.h>
7670 #include <stdarg.h>
7671 #include <string.h>
7672 #include <float.h>
7673
7674 int
7675 main ()
7676 {
7677
7678   ;
7679   return 0;
7680 }
7681 _ACEOF
7682 if ac_fn_c_try_compile "$LINENO"; then :
7683   ac_cv_header_stdc=yes
7684 else
7685   ac_cv_header_stdc=no
7686 fi
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7688
7689 if test $ac_cv_header_stdc = yes; then
7690   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h.  */
7693 #include <string.h>
7694
7695 _ACEOF
7696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7697   $EGREP "memchr" >/dev/null 2>&1; then :
7698
7699 else
7700   ac_cv_header_stdc=no
7701 fi
7702 rm -f conftest*
7703
7704 fi
7705
7706 if test $ac_cv_header_stdc = yes; then
7707   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h.  */
7710 #include <stdlib.h>
7711
7712 _ACEOF
7713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7714   $EGREP "free" >/dev/null 2>&1; then :
7715
7716 else
7717   ac_cv_header_stdc=no
7718 fi
7719 rm -f conftest*
7720
7721 fi
7722
7723 if test $ac_cv_header_stdc = yes; then
7724   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7725   if test "$cross_compiling" = yes; then :
7726   :
7727 else
7728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729 /* end confdefs.h.  */
7730 #include <ctype.h>
7731 #include <stdlib.h>
7732 #if ((' ' & 0x0FF) == 0x020)
7733 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7734 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7735 #else
7736 # define ISLOWER(c) \
7737                    (('a' <= (c) && (c) <= 'i') \
7738                      || ('j' <= (c) && (c) <= 'r') \
7739                      || ('s' <= (c) && (c) <= 'z'))
7740 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7741 #endif
7742
7743 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7744 int
7745 main ()
7746 {
7747   int i;
7748   for (i = 0; i < 256; i++)
7749     if (XOR (islower (i), ISLOWER (i))
7750         || toupper (i) != TOUPPER (i))
7751       return 2;
7752   return 0;
7753 }
7754 _ACEOF
7755 if ac_fn_c_try_run "$LINENO"; then :
7756
7757 else
7758   ac_cv_header_stdc=no
7759 fi
7760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7761   conftest.$ac_objext conftest.beam conftest.$ac_ext
7762 fi
7763
7764 fi
7765 fi
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7767 $as_echo "$ac_cv_header_stdc" >&6; }
7768 if test $ac_cv_header_stdc = yes; then
7769
7770 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7771
7772 fi
7773
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7775 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7776 if test "${ac_cv_header_time+set}" = set; then :
7777   $as_echo_n "(cached) " >&6
7778 else
7779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h.  */
7781 #include <sys/types.h>
7782 #include <sys/time.h>
7783 #include <time.h>
7784
7785 int
7786 main ()
7787 {
7788 if ((struct tm *) 0)
7789 return 0;
7790   ;
7791   return 0;
7792 }
7793 _ACEOF
7794 if ac_fn_c_try_compile "$LINENO"; then :
7795   ac_cv_header_time=yes
7796 else
7797   ac_cv_header_time=no
7798 fi
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800 fi
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7802 $as_echo "$ac_cv_header_time" >&6; }
7803 if test $ac_cv_header_time = yes; then
7804
7805 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7806
7807 fi
7808
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7810 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7811 if test "${gcc_cv_header_string+set}" = set; then :
7812   $as_echo_n "(cached) " >&6
7813 else
7814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h.  */
7816 #include <string.h>
7817 #include <strings.h>
7818 int
7819 main ()
7820 {
7821
7822   ;
7823   return 0;
7824 }
7825 _ACEOF
7826 if ac_fn_c_try_compile "$LINENO"; then :
7827   gcc_cv_header_string=yes
7828 else
7829   gcc_cv_header_string=no
7830 fi
7831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832 fi
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7834 $as_echo "$gcc_cv_header_string" >&6; }
7835 if test $gcc_cv_header_string = yes; then
7836
7837 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7838
7839 fi
7840
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7842 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7843 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7844   $as_echo_n "(cached) " >&6
7845 else
7846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h.  */
7848 #include <sys/types.h>
7849 #include <sys/wait.h>
7850 #ifndef WEXITSTATUS
7851 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7852 #endif
7853 #ifndef WIFEXITED
7854 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7855 #endif
7856
7857 int
7858 main ()
7859 {
7860   int s;
7861   wait (&s);
7862   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7863   ;
7864   return 0;
7865 }
7866 _ACEOF
7867 if ac_fn_c_try_compile "$LINENO"; then :
7868   ac_cv_header_sys_wait_h=yes
7869 else
7870   ac_cv_header_sys_wait_h=no
7871 fi
7872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7873 fi
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7875 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7876 if test $ac_cv_header_sys_wait_h = yes; then
7877
7878 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7879
7880 fi
7881
7882 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7883                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7884                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
7885                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7886 do :
7887   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7888 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7889 eval as_val=\$$as_ac_Header
7890    if test "x$as_val" = x""yes; then :
7891   cat >>confdefs.h <<_ACEOF
7892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7893 _ACEOF
7894
7895 fi
7896 done
7897
7898
7899 # Check for thread headers.
7900 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7901 if test "x$ac_cv_header_thread_h" = x""yes; then :
7902   have_thread_h=yes
7903 else
7904   have_thread_h=
7905 fi
7906
7907 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7908 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7909   have_pthread_h=yes
7910 else
7911   have_pthread_h=
7912 fi
7913
7914
7915 # These tests can't be done till we know if we have limits.h.
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7917 $as_echo_n "checking for CHAR_BIT... " >&6; }
7918 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7919   $as_echo_n "(cached) " >&6
7920 else
7921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h.  */
7923 #ifdef HAVE_LIMITS_H
7924 #include <limits.h>
7925 #endif
7926 #ifdef CHAR_BIT
7927 found
7928 #endif
7929 _ACEOF
7930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7931   $EGREP "found" >/dev/null 2>&1; then :
7932   gcc_cv_decl_char_bit=yes
7933 else
7934   gcc_cv_decl_char_bit=no
7935 fi
7936 rm -f conftest*
7937
7938
7939 fi
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7941 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7942 if test $gcc_cv_decl_char_bit = no; then
7943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7944 $as_echo_n "checking number of bits in a byte... " >&6; }
7945 if test "${gcc_cv_c_nbby+set}" = set; then :
7946   $as_echo_n "(cached) " >&6
7947 else
7948   i=8
7949  gcc_cv_c_nbby=
7950  while test $i -lt 65; do
7951    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h.  */
7953
7954 int
7955 main ()
7956 {
7957 switch(0) {
7958   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7959   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7960   ; }
7961   ;
7962   return 0;
7963 }
7964 _ACEOF
7965 if ac_fn_c_try_compile "$LINENO"; then :
7966   gcc_cv_c_nbby=$i; break
7967 fi
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969    i=`expr $i + 1`
7970  done
7971  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7972
7973 fi
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7975 $as_echo "$gcc_cv_c_nbby" >&6; }
7976 if test $gcc_cv_c_nbby = failed; then
7977   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7978 else
7979
7980 cat >>confdefs.h <<_ACEOF
7981 #define CHAR_BIT $gcc_cv_c_nbby
7982 _ACEOF
7983
7984 fi
7985 fi
7986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7987 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7988 if test "${ac_cv_c_bigendian+set}" = set; then :
7989   $as_echo_n "(cached) " >&6
7990 else
7991   ac_cv_c_bigendian=unknown
7992     # See if we're dealing with a universal compiler.
7993     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h.  */
7995 #ifndef __APPLE_CC__
7996                not a universal capable compiler
7997              #endif
7998              typedef int dummy;
7999
8000 _ACEOF
8001 if ac_fn_c_try_compile "$LINENO"; then :
8002
8003         # Check for potential -arch flags.  It is not universal unless
8004         # there are at least two -arch flags with different values.
8005         ac_arch=
8006         ac_prev=
8007         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8008          if test -n "$ac_prev"; then
8009            case $ac_word in
8010              i?86 | x86_64 | ppc | ppc64)
8011                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8012                  ac_arch=$ac_word
8013                else
8014                  ac_cv_c_bigendian=universal
8015                  break
8016                fi
8017                ;;
8018            esac
8019            ac_prev=
8020          elif test "x$ac_word" = "x-arch"; then
8021            ac_prev=arch
8022          fi
8023        done
8024 fi
8025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026     if test $ac_cv_c_bigendian = unknown; then
8027       # See if sys/param.h defines the BYTE_ORDER macro.
8028       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h.  */
8030 #include <sys/types.h>
8031              #include <sys/param.h>
8032
8033 int
8034 main ()
8035 {
8036 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8037                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8038                      && LITTLE_ENDIAN)
8039               bogus endian macros
8040              #endif
8041
8042   ;
8043   return 0;
8044 }
8045 _ACEOF
8046 if ac_fn_c_try_compile "$LINENO"; then :
8047   # It does; now see whether it defined to BIG_ENDIAN or not.
8048          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h.  */
8050 #include <sys/types.h>
8051                 #include <sys/param.h>
8052
8053 int
8054 main ()
8055 {
8056 #if BYTE_ORDER != BIG_ENDIAN
8057                  not big endian
8058                 #endif
8059
8060   ;
8061   return 0;
8062 }
8063 _ACEOF
8064 if ac_fn_c_try_compile "$LINENO"; then :
8065   ac_cv_c_bigendian=yes
8066 else
8067   ac_cv_c_bigendian=no
8068 fi
8069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 fi
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072     fi
8073     if test $ac_cv_c_bigendian = unknown; then
8074       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8075       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h.  */
8077 #include <limits.h>
8078
8079 int
8080 main ()
8081 {
8082 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8083               bogus endian macros
8084              #endif
8085
8086   ;
8087   return 0;
8088 }
8089 _ACEOF
8090 if ac_fn_c_try_compile "$LINENO"; then :
8091   # It does; now see whether it defined to _BIG_ENDIAN or not.
8092          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h.  */
8094 #include <limits.h>
8095
8096 int
8097 main ()
8098 {
8099 #ifndef _BIG_ENDIAN
8100                  not big endian
8101                 #endif
8102
8103   ;
8104   return 0;
8105 }
8106 _ACEOF
8107 if ac_fn_c_try_compile "$LINENO"; then :
8108   ac_cv_c_bigendian=yes
8109 else
8110   ac_cv_c_bigendian=no
8111 fi
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113 fi
8114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8115     fi
8116     if test $ac_cv_c_bigendian = unknown; then
8117       # Compile a test program.
8118       if test "$cross_compiling" = yes; then :
8119   # Try to guess by grepping values from an object file.
8120          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121 /* end confdefs.h.  */
8122 short int ascii_mm[] =
8123                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8124                 short int ascii_ii[] =
8125                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8126                 int use_ascii (int i) {
8127                   return ascii_mm[i] + ascii_ii[i];
8128                 }
8129                 short int ebcdic_ii[] =
8130                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8131                 short int ebcdic_mm[] =
8132                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8133                 int use_ebcdic (int i) {
8134                   return ebcdic_mm[i] + ebcdic_ii[i];
8135                 }
8136                 extern int foo;
8137
8138 int
8139 main ()
8140 {
8141 return use_ascii (foo) == use_ebcdic (foo);
8142   ;
8143   return 0;
8144 }
8145 _ACEOF
8146 if ac_fn_c_try_compile "$LINENO"; then :
8147   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8148               ac_cv_c_bigendian=yes
8149             fi
8150             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8151               if test "$ac_cv_c_bigendian" = unknown; then
8152                 ac_cv_c_bigendian=no
8153               else
8154                 # finding both strings is unlikely to happen, but who knows?
8155                 ac_cv_c_bigendian=unknown
8156               fi
8157             fi
8158 fi
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8160 else
8161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h.  */
8163 $ac_includes_default
8164 int
8165 main ()
8166 {
8167
8168              /* Are we little or big endian?  From Harbison&Steele.  */
8169              union
8170              {
8171                long int l;
8172                char c[sizeof (long int)];
8173              } u;
8174              u.l = 1;
8175              return u.c[sizeof (long int) - 1] == 1;
8176
8177   ;
8178   return 0;
8179 }
8180 _ACEOF
8181 if ac_fn_c_try_run "$LINENO"; then :
8182   ac_cv_c_bigendian=no
8183 else
8184   ac_cv_c_bigendian=yes
8185 fi
8186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8187   conftest.$ac_objext conftest.beam conftest.$ac_ext
8188 fi
8189
8190     fi
8191 fi
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8193 $as_echo "$ac_cv_c_bigendian" >&6; }
8194  case $ac_cv_c_bigendian in #(
8195    yes)
8196      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8197 ;; #(
8198    no)
8199       ;; #(
8200    universal)
8201
8202 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8203
8204      ;; #(
8205    *)
8206      as_fn_error "unknown endianness
8207  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8208  esac
8209
8210
8211 # --------
8212 # UNSORTED
8213 # --------
8214
8215
8216 # These libraries may be used by collect2.
8217 # We may need a special search path to get them linked.
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8219 $as_echo_n "checking for collect2 libraries... " >&6; }
8220 if test "${gcc_cv_collect2_libs+set}" = set; then :
8221   $as_echo_n "(cached) " >&6
8222 else
8223   save_LIBS="$LIBS"
8224 for libs in '' -lld -lmld \
8225                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8226                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8227 do
8228         LIBS="$libs"
8229         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h.  */
8231
8232 /* Override any GCC internal prototype to avoid an error.
8233    Use char because int might match the return type of a GCC
8234    builtin and then its argument prototype would still apply.  */
8235 #ifdef __cplusplus
8236 extern "C"
8237 #endif
8238 char ldopen ();
8239 int
8240 main ()
8241 {
8242 return ldopen ();
8243   ;
8244   return 0;
8245 }
8246 _ACEOF
8247 if ac_fn_c_try_link "$LINENO"; then :
8248   gcc_cv_collect2_libs="$libs"; break
8249 fi
8250 rm -f core conftest.err conftest.$ac_objext \
8251     conftest$ac_exeext conftest.$ac_ext
8252 done
8253 LIBS="$save_LIBS"
8254 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8255 fi
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8257 $as_echo "$gcc_cv_collect2_libs" >&6; }
8258 case $gcc_cv_collect2_libs in
8259         "none required")        ;;
8260         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8261 esac
8262
8263
8264 # When building Ada code on Alpha, we need exc_resume which is usually in
8265 # -lexc.  So test for it.
8266 save_LIBS="$LIBS"
8267 LIBS=
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8269 $as_echo_n "checking for library containing exc_resume... " >&6; }
8270 if test "${ac_cv_search_exc_resume+set}" = set; then :
8271   $as_echo_n "(cached) " >&6
8272 else
8273   ac_func_search_save_LIBS=$LIBS
8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h.  */
8276
8277 /* Override any GCC internal prototype to avoid an error.
8278    Use char because int might match the return type of a GCC
8279    builtin and then its argument prototype would still apply.  */
8280 #ifdef __cplusplus
8281 extern "C"
8282 #endif
8283 char exc_resume ();
8284 int
8285 main ()
8286 {
8287 return exc_resume ();
8288   ;
8289   return 0;
8290 }
8291 _ACEOF
8292 for ac_lib in '' exc; do
8293   if test -z "$ac_lib"; then
8294     ac_res="none required"
8295   else
8296     ac_res=-l$ac_lib
8297     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8298   fi
8299   if ac_fn_c_try_link "$LINENO"; then :
8300   ac_cv_search_exc_resume=$ac_res
8301 fi
8302 rm -f core conftest.err conftest.$ac_objext \
8303     conftest$ac_exeext
8304   if test "${ac_cv_search_exc_resume+set}" = set; then :
8305   break
8306 fi
8307 done
8308 if test "${ac_cv_search_exc_resume+set}" = set; then :
8309
8310 else
8311   ac_cv_search_exc_resume=no
8312 fi
8313 rm conftest.$ac_ext
8314 LIBS=$ac_func_search_save_LIBS
8315 fi
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8317 $as_echo "$ac_cv_search_exc_resume" >&6; }
8318 ac_res=$ac_cv_search_exc_resume
8319 if test "$ac_res" != no; then :
8320   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8321
8322 fi
8323
8324 GNAT_LIBEXC="$LIBS"
8325 LIBS="$save_LIBS"
8326
8327
8328 # Some systems put ldexp and frexp in libm instead of libc; assume
8329 # they're both in the same place.  jcf-dump needs them.
8330 save_LIBS="$LIBS"
8331 LIBS=
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8333 $as_echo_n "checking for library containing ldexp... " >&6; }
8334 if test "${ac_cv_search_ldexp+set}" = set; then :
8335   $as_echo_n "(cached) " >&6
8336 else
8337   ac_func_search_save_LIBS=$LIBS
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h.  */
8340
8341 /* Override any GCC internal prototype to avoid an error.
8342    Use char because int might match the return type of a GCC
8343    builtin and then its argument prototype would still apply.  */
8344 #ifdef __cplusplus
8345 extern "C"
8346 #endif
8347 char ldexp ();
8348 int
8349 main ()
8350 {
8351 return ldexp ();
8352   ;
8353   return 0;
8354 }
8355 _ACEOF
8356 for ac_lib in '' m; do
8357   if test -z "$ac_lib"; then
8358     ac_res="none required"
8359   else
8360     ac_res=-l$ac_lib
8361     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8362   fi
8363   if ac_fn_c_try_link "$LINENO"; then :
8364   ac_cv_search_ldexp=$ac_res
8365 fi
8366 rm -f core conftest.err conftest.$ac_objext \
8367     conftest$ac_exeext
8368   if test "${ac_cv_search_ldexp+set}" = set; then :
8369   break
8370 fi
8371 done
8372 if test "${ac_cv_search_ldexp+set}" = set; then :
8373
8374 else
8375   ac_cv_search_ldexp=no
8376 fi
8377 rm conftest.$ac_ext
8378 LIBS=$ac_func_search_save_LIBS
8379 fi
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8381 $as_echo "$ac_cv_search_ldexp" >&6; }
8382 ac_res=$ac_cv_search_ldexp
8383 if test "$ac_res" != no; then :
8384   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8385
8386 fi
8387
8388 LDEXP_LIB="$LIBS"
8389 LIBS="$save_LIBS"
8390
8391
8392 # Use <inttypes.h> only if it exists,
8393 # doesn't clash with <sys/types.h>, and declares intmax_t.
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8395 $as_echo_n "checking for inttypes.h... " >&6; }
8396 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8397   $as_echo_n "(cached) " >&6
8398 else
8399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h.  */
8401 #include <sys/types.h>
8402 #include <inttypes.h>
8403 int
8404 main ()
8405 {
8406 intmax_t i = -1;
8407   ;
8408   return 0;
8409 }
8410 _ACEOF
8411 if ac_fn_c_try_compile "$LINENO"; then :
8412   gcc_cv_header_inttypes_h=yes
8413 else
8414   gcc_cv_header_inttypes_h=no
8415 fi
8416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8417 fi
8418
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8420 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8421 if test $gcc_cv_header_inttypes_h = yes; then
8422
8423 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8424
8425 fi
8426
8427
8428
8429 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8430         sysconf strsignal getrusage nl_langinfo \
8431         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8432         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
8433 do :
8434   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8435 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8436 eval as_val=\$$as_ac_var
8437    if test "x$as_val" = x""yes; then :
8438   cat >>confdefs.h <<_ACEOF
8439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8440 _ACEOF
8441
8442 fi
8443 done
8444
8445
8446 save_CPPFLAGS="$CPPFLAGS"
8447 save_LIBS="$LIBS"
8448 LIBS="$LIBS $LIBELFLIBS"
8449 for ac_func in elf_getshdrstrndx
8450 do :
8451   ac_fn_c_check_func "$LINENO" "elf_getshdrstrndx" "ac_cv_func_elf_getshdrstrndx"
8452 if test "x$ac_cv_func_elf_getshdrstrndx" = x""yes; then :
8453   cat >>confdefs.h <<_ACEOF
8454 #define HAVE_ELF_GETSHDRSTRNDX 1
8455 _ACEOF
8456
8457 else
8458   for ac_func in elf_getshstrndx
8459 do :
8460   ac_fn_c_check_func "$LINENO" "elf_getshstrndx" "ac_cv_func_elf_getshstrndx"
8461 if test "x$ac_cv_func_elf_getshstrndx" = x""yes; then :
8462   cat >>confdefs.h <<_ACEOF
8463 #define HAVE_ELF_GETSHSTRNDX 1
8464 _ACEOF
8465  if test "$cross_compiling" = yes; then :
8466   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8468 as_fn_error "cannot run test program while cross compiling
8469 See \`config.log' for more details." "$LINENO" 5; }
8470 else
8471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472 /* end confdefs.h.  */
8473 #include <stdlib.h>
8474 #include <libelf.h>
8475 int main()
8476 {
8477   return elf_getshstrndx (NULL, 0) == 0;
8478 }
8479 _ACEOF
8480 if ac_fn_c_try_run "$LINENO"; then :
8481
8482 $as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
8483
8484 fi
8485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8486   conftest.$ac_objext conftest.beam conftest.$ac_ext
8487 fi
8488
8489 fi
8490 done
8491
8492
8493 fi
8494 done
8495
8496 LIBS="$save_LIBS"
8497 CPPFLAGS="$save_CPPFLAGS"
8498
8499 if test x$ac_cv_func_mbstowcs = xyes; then
8500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8501 $as_echo_n "checking whether mbstowcs works... " >&6; }
8502 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8503   $as_echo_n "(cached) " >&6
8504 else
8505       if test "$cross_compiling" = yes; then :
8506   gcc_cv_func_mbstowcs_works=yes
8507 else
8508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h.  */
8510 #include <stdlib.h>
8511 int main()
8512 {
8513   mbstowcs(0, "", 0);
8514   return 0;
8515 }
8516 _ACEOF
8517 if ac_fn_c_try_run "$LINENO"; then :
8518   gcc_cv_func_mbstowcs_works=yes
8519 else
8520   gcc_cv_func_mbstowcs_works=no
8521 fi
8522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8523   conftest.$ac_objext conftest.beam conftest.$ac_ext
8524 fi
8525
8526 fi
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8528 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8529   if test x$gcc_cv_func_mbstowcs_works = xyes; then
8530
8531 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8532
8533   fi
8534 fi
8535
8536 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8537 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8538
8539 else
8540
8541 cat >>confdefs.h <<_ACEOF
8542 #define ssize_t int
8543 _ACEOF
8544
8545 fi
8546
8547 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8548 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8549
8550 else
8551
8552 cat >>confdefs.h <<_ACEOF
8553 #define caddr_t char *
8554 _ACEOF
8555
8556 fi
8557
8558
8559
8560 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8561 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8562   gcc_header_sys_mman_h=yes
8563 else
8564   gcc_header_sys_mman_h=no
8565 fi
8566
8567 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8568 if test "x$ac_cv_func_mmap" = x""yes; then :
8569   gcc_func_mmap=yes
8570 else
8571   gcc_func_mmap=no
8572 fi
8573
8574 if test "$gcc_header_sys_mman_h" != yes \
8575  || test "$gcc_func_mmap" != yes; then
8576    gcc_cv_func_mmap_file=no
8577    gcc_cv_func_mmap_dev_zero=no
8578    gcc_cv_func_mmap_anon=no
8579 else
8580    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8581 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8582 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8583   $as_echo_n "(cached) " >&6
8584 else
8585   # Add a system to this blacklist if
8586    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8587    # memory area containing the same data that you'd get if you applied
8588    # read() to the same fd.  The only system known to have a problem here
8589    # is VMS, where text files have record structure.
8590    case "$host_os" in
8591      vms* | ultrix*)
8592         gcc_cv_func_mmap_file=no ;;
8593      *)
8594         gcc_cv_func_mmap_file=yes;;
8595    esac
8596 fi
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8598 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8599    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8600 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8601 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8602   $as_echo_n "(cached) " >&6
8603 else
8604   # Add a system to this blacklist if it has mmap() but /dev/zero
8605    # does not exist, or if mmapping /dev/zero does not give anonymous
8606    # zeroed pages with both the following properties:
8607    # 1. If you map N consecutive pages in with one call, and then
8608    #    unmap any subset of those pages, the pages that were not
8609    #    explicitly unmapped remain accessible.
8610    # 2. If you map two adjacent blocks of memory and then unmap them
8611    #    both at once, they must both go away.
8612    # Systems known to be in this category are Windows (all variants),
8613    # VMS, and Darwin.
8614    case "$host_os" in
8615      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8616         gcc_cv_func_mmap_dev_zero=no ;;
8617      *)
8618         gcc_cv_func_mmap_dev_zero=yes;;
8619    esac
8620 fi
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8622 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8623
8624    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8625    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8626 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8627 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8628   $as_echo_n "(cached) " >&6
8629 else
8630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h.  */
8632 #include <sys/types.h>
8633 #include <sys/mman.h>
8634 #include <unistd.h>
8635
8636 #ifndef MAP_ANONYMOUS
8637 #define MAP_ANONYMOUS MAP_ANON
8638 #endif
8639
8640 int
8641 main ()
8642 {
8643 int n = MAP_ANONYMOUS;
8644   ;
8645   return 0;
8646 }
8647 _ACEOF
8648 if ac_fn_c_try_compile "$LINENO"; then :
8649   gcc_cv_decl_map_anon=yes
8650 else
8651   gcc_cv_decl_map_anon=no
8652 fi
8653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 fi
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8656 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8657
8658    if test $gcc_cv_decl_map_anon = no; then
8659      gcc_cv_func_mmap_anon=no
8660    else
8661      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8662 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8663 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8664   $as_echo_n "(cached) " >&6
8665 else
8666   # Add a system to this blacklist if it has mmap() and MAP_ANON or
8667    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8668    # doesn't give anonymous zeroed pages with the same properties listed
8669    # above for use of /dev/zero.
8670    # Systems known to be in this category are Windows, VMS, and SCO Unix.
8671    case "$host_os" in
8672      vms* | cygwin* | pe | mingw* | sco* | udk* )
8673         gcc_cv_func_mmap_anon=no ;;
8674      *)
8675         gcc_cv_func_mmap_anon=yes;;
8676    esac
8677 fi
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8679 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8680    fi
8681 fi
8682
8683 if test $gcc_cv_func_mmap_file = yes; then
8684
8685 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8686
8687 fi
8688 if test $gcc_cv_func_mmap_dev_zero = yes; then
8689
8690 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8691
8692 fi
8693 if test $gcc_cv_func_mmap_anon = yes; then
8694
8695 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8696
8697 fi
8698
8699
8700 case "${host}" in
8701 *-*-*vms*)
8702   # Under VMS, vfork works very differently than on Unix. The standard test
8703   # won't work, and it isn't easily adaptable. It makes more sense to
8704   # just force it.
8705   ac_cv_func_vfork_works=yes
8706   ;;
8707 esac
8708 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8709 if test "x$ac_cv_type_pid_t" = x""yes; then :
8710
8711 else
8712
8713 cat >>confdefs.h <<_ACEOF
8714 #define pid_t int
8715 _ACEOF
8716
8717 fi
8718
8719 for ac_header in vfork.h
8720 do :
8721   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8722 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8723   cat >>confdefs.h <<_ACEOF
8724 #define HAVE_VFORK_H 1
8725 _ACEOF
8726
8727 fi
8728 done
8729
8730 for ac_func in fork vfork
8731 do :
8732   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8733 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8734 eval as_val=\$$as_ac_var
8735    if test "x$as_val" = x""yes; then :
8736   cat >>confdefs.h <<_ACEOF
8737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8738 _ACEOF
8739
8740 fi
8741 done
8742
8743 if test "x$ac_cv_func_fork" = xyes; then
8744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8745 $as_echo_n "checking for working fork... " >&6; }
8746 if test "${ac_cv_func_fork_works+set}" = set; then :
8747   $as_echo_n "(cached) " >&6
8748 else
8749   if test "$cross_compiling" = yes; then :
8750   ac_cv_func_fork_works=cross
8751 else
8752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h.  */
8754 $ac_includes_default
8755 int
8756 main ()
8757 {
8758
8759           /* By Ruediger Kuhlmann. */
8760           return fork () < 0;
8761
8762   ;
8763   return 0;
8764 }
8765 _ACEOF
8766 if ac_fn_c_try_run "$LINENO"; then :
8767   ac_cv_func_fork_works=yes
8768 else
8769   ac_cv_func_fork_works=no
8770 fi
8771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8772   conftest.$ac_objext conftest.beam conftest.$ac_ext
8773 fi
8774
8775 fi
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8777 $as_echo "$ac_cv_func_fork_works" >&6; }
8778
8779 else
8780   ac_cv_func_fork_works=$ac_cv_func_fork
8781 fi
8782 if test "x$ac_cv_func_fork_works" = xcross; then
8783   case $host in
8784     *-*-amigaos* | *-*-msdosdjgpp*)
8785       # Override, as these systems have only a dummy fork() stub
8786       ac_cv_func_fork_works=no
8787       ;;
8788     *)
8789       ac_cv_func_fork_works=yes
8790       ;;
8791   esac
8792   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8793 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8794 fi
8795 ac_cv_func_vfork_works=$ac_cv_func_vfork
8796 if test "x$ac_cv_func_vfork" = xyes; then
8797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8798 $as_echo_n "checking for working vfork... " >&6; }
8799 if test "${ac_cv_func_vfork_works+set}" = set; then :
8800   $as_echo_n "(cached) " >&6
8801 else
8802   if test "$cross_compiling" = yes; then :
8803   ac_cv_func_vfork_works=cross
8804 else
8805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h.  */
8807 /* Thanks to Paul Eggert for this test.  */
8808 $ac_includes_default
8809 #include <sys/wait.h>
8810 #ifdef HAVE_VFORK_H
8811 # include <vfork.h>
8812 #endif
8813 /* On some sparc systems, changes by the child to local and incoming
8814    argument registers are propagated back to the parent.  The compiler
8815    is told about this with #include <vfork.h>, but some compilers
8816    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8817    static variable whose address is put into a register that is
8818    clobbered by the vfork.  */
8819 static void
8820 #ifdef __cplusplus
8821 sparc_address_test (int arg)
8822 # else
8823 sparc_address_test (arg) int arg;
8824 #endif
8825 {
8826   static pid_t child;
8827   if (!child) {
8828     child = vfork ();
8829     if (child < 0) {
8830       perror ("vfork");
8831       _exit(2);
8832     }
8833     if (!child) {
8834       arg = getpid();
8835       write(-1, "", 0);
8836       _exit (arg);
8837     }
8838   }
8839 }
8840
8841 int
8842 main ()
8843 {
8844   pid_t parent = getpid ();
8845   pid_t child;
8846
8847   sparc_address_test (0);
8848
8849   child = vfork ();
8850
8851   if (child == 0) {
8852     /* Here is another test for sparc vfork register problems.  This
8853        test uses lots of local variables, at least as many local
8854        variables as main has allocated so far including compiler
8855        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8856        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8857        reuse the register of parent for one of the local variables,
8858        since it will think that parent can't possibly be used any more
8859        in this routine.  Assigning to the local variable will thus
8860        munge parent in the parent process.  */
8861     pid_t
8862       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8863       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8864     /* Convince the compiler that p..p7 are live; otherwise, it might
8865        use the same hardware register for all 8 local variables.  */
8866     if (p != p1 || p != p2 || p != p3 || p != p4
8867         || p != p5 || p != p6 || p != p7)
8868       _exit(1);
8869
8870     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8871        from child file descriptors.  If the child closes a descriptor
8872        before it execs or exits, this munges the parent's descriptor
8873        as well.  Test for this by closing stdout in the child.  */
8874     _exit(close(fileno(stdout)) != 0);
8875   } else {
8876     int status;
8877     struct stat st;
8878
8879     while (wait(&status) != child)
8880       ;
8881     return (
8882          /* Was there some problem with vforking?  */
8883          child < 0
8884
8885          /* Did the child fail?  (This shouldn't happen.)  */
8886          || status
8887
8888          /* Did the vfork/compiler bug occur?  */
8889          || parent != getpid()
8890
8891          /* Did the file descriptor bug occur?  */
8892          || fstat(fileno(stdout), &st) != 0
8893          );
8894   }
8895 }
8896 _ACEOF
8897 if ac_fn_c_try_run "$LINENO"; then :
8898   ac_cv_func_vfork_works=yes
8899 else
8900   ac_cv_func_vfork_works=no
8901 fi
8902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8903   conftest.$ac_objext conftest.beam conftest.$ac_ext
8904 fi
8905
8906 fi
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8908 $as_echo "$ac_cv_func_vfork_works" >&6; }
8909
8910 fi;
8911 if test "x$ac_cv_func_fork_works" = xcross; then
8912   ac_cv_func_vfork_works=$ac_cv_func_vfork
8913   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8914 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8915 fi
8916
8917 if test "x$ac_cv_func_vfork_works" = xyes; then
8918
8919 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8920
8921 else
8922
8923 $as_echo "#define vfork fork" >>confdefs.h
8924
8925 fi
8926 if test "x$ac_cv_func_fork_works" = xyes; then
8927
8928 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8929
8930 fi
8931
8932
8933
8934       if test "X$prefix" = "XNONE"; then
8935     acl_final_prefix="$ac_default_prefix"
8936   else
8937     acl_final_prefix="$prefix"
8938   fi
8939   if test "X$exec_prefix" = "XNONE"; then
8940     acl_final_exec_prefix='${prefix}'
8941   else
8942     acl_final_exec_prefix="$exec_prefix"
8943   fi
8944   acl_save_prefix="$prefix"
8945   prefix="$acl_final_prefix"
8946   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8947   prefix="$acl_save_prefix"
8948
8949
8950 # Check whether --with-gnu-ld was given.
8951 if test "${with_gnu_ld+set}" = set; then :
8952   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8953 else
8954   with_gnu_ld=no
8955 fi
8956
8957 # Prepare PATH_SEPARATOR.
8958 # The user is always right.
8959 if test "${PATH_SEPARATOR+set}" != set; then
8960   echo "#! /bin/sh" >conf$$.sh
8961   echo  "exit 0"   >>conf$$.sh
8962   chmod +x conf$$.sh
8963   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8964     PATH_SEPARATOR=';'
8965   else
8966     PATH_SEPARATOR=:
8967   fi
8968   rm -f conf$$.sh
8969 fi
8970 ac_prog=ld
8971 if test "$GCC" = yes; then
8972   # Check if gcc -print-prog-name=ld gives a path.
8973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8974 $as_echo_n "checking for ld used by GCC... " >&6; }
8975   case $host in
8976   *-*-mingw*)
8977     # gcc leaves a trailing carriage return which upsets mingw
8978     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8979   *)
8980     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8981   esac
8982   case $ac_prog in
8983     # Accept absolute paths.
8984     [\\/]* | [A-Za-z]:[\\/]*)
8985       re_direlt='/[^/][^/]*/\.\./'
8986       # Canonicalize the path of ld
8987       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8988       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8989         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8990       done
8991       test -z "$LD" && LD="$ac_prog"
8992       ;;
8993   "")
8994     # If it fails, then pretend we aren't using GCC.
8995     ac_prog=ld
8996     ;;
8997   *)
8998     # If it is relative, then search for the first ld in PATH.
8999     with_gnu_ld=unknown
9000     ;;
9001   esac
9002 elif test "$with_gnu_ld" = yes; then
9003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9004 $as_echo_n "checking for GNU ld... " >&6; }
9005 else
9006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9007 $as_echo_n "checking for non-GNU ld... " >&6; }
9008 fi
9009 if test "${acl_cv_path_LD+set}" = set; then :
9010   $as_echo_n "(cached) " >&6
9011 else
9012   if test -z "$LD"; then
9013   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9014   for ac_dir in $PATH; do
9015     test -z "$ac_dir" && ac_dir=.
9016     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9017       acl_cv_path_LD="$ac_dir/$ac_prog"
9018       # Check to see if the program is GNU ld.  I'd rather use --version,
9019       # but apparently some GNU ld's only accept -v.
9020       # Break only if it was the GNU/non-GNU ld that we prefer.
9021       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9022         test "$with_gnu_ld" != no && break
9023       else
9024         test "$with_gnu_ld" != yes && break
9025       fi
9026     fi
9027   done
9028   IFS="$ac_save_ifs"
9029 else
9030   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9031 fi
9032 fi
9033
9034 LD="$acl_cv_path_LD"
9035 if test -n "$LD"; then
9036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9037 $as_echo "$LD" >&6; }
9038 else
9039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 $as_echo "no" >&6; }
9041 fi
9042 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9044 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9045 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9046   $as_echo_n "(cached) " >&6
9047 else
9048   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9049 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9050   acl_cv_prog_gnu_ld=yes
9051 else
9052   acl_cv_prog_gnu_ld=no
9053 fi
9054 fi
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9056 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9057 with_gnu_ld=$acl_cv_prog_gnu_ld
9058
9059
9060
9061                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9062 $as_echo_n "checking for shared library run path origin... " >&6; }
9063 if test "${acl_cv_rpath+set}" = set; then :
9064   $as_echo_n "(cached) " >&6
9065 else
9066
9067     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9068     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9069     . ./conftest.sh
9070     rm -f ./conftest.sh
9071     acl_cv_rpath=done
9072
9073 fi
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9075 $as_echo "$acl_cv_rpath" >&6; }
9076   wl="$acl_cv_wl"
9077   libext="$acl_cv_libext"
9078   shlibext="$acl_cv_shlibext"
9079   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9080   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9081   hardcode_direct="$acl_cv_hardcode_direct"
9082   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9083     # Check whether --enable-rpath was given.
9084 if test "${enable_rpath+set}" = set; then :
9085   enableval=$enable_rpath; :
9086 else
9087   enable_rpath=yes
9088 fi
9089
9090
9091
9092
9093
9094
9095
9096
9097     use_additional=yes
9098
9099   acl_save_prefix="$prefix"
9100   prefix="$acl_final_prefix"
9101   acl_save_exec_prefix="$exec_prefix"
9102   exec_prefix="$acl_final_exec_prefix"
9103
9104     eval additional_includedir=\"$includedir\"
9105     eval additional_libdir=\"$libdir\"
9106
9107   exec_prefix="$acl_save_exec_prefix"
9108   prefix="$acl_save_prefix"
9109
9110
9111 # Check whether --with-libiconv-prefix was given.
9112 if test "${with_libiconv_prefix+set}" = set; then :
9113   withval=$with_libiconv_prefix;
9114     if test "X$withval" = "Xno"; then
9115       use_additional=no
9116     else
9117       if test "X$withval" = "X"; then
9118
9119   acl_save_prefix="$prefix"
9120   prefix="$acl_final_prefix"
9121   acl_save_exec_prefix="$exec_prefix"
9122   exec_prefix="$acl_final_exec_prefix"
9123
9124           eval additional_includedir=\"$includedir\"
9125           eval additional_libdir=\"$libdir\"
9126
9127   exec_prefix="$acl_save_exec_prefix"
9128   prefix="$acl_save_prefix"
9129
9130       else
9131         additional_includedir="$withval/include"
9132         additional_libdir="$withval/lib"
9133       fi
9134     fi
9135
9136 fi
9137
9138       LIBICONV=
9139   LTLIBICONV=
9140   INCICONV=
9141   rpathdirs=
9142   ltrpathdirs=
9143   names_already_handled=
9144   names_next_round='iconv '
9145   while test -n "$names_next_round"; do
9146     names_this_round="$names_next_round"
9147     names_next_round=
9148     for name in $names_this_round; do
9149       already_handled=
9150       for n in $names_already_handled; do
9151         if test "$n" = "$name"; then
9152           already_handled=yes
9153           break
9154         fi
9155       done
9156       if test -z "$already_handled"; then
9157         names_already_handled="$names_already_handled $name"
9158                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9159         eval value=\"\$HAVE_LIB$uppername\"
9160         if test -n "$value"; then
9161           if test "$value" = yes; then
9162             eval value=\"\$LIB$uppername\"
9163             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9164             eval value=\"\$LTLIB$uppername\"
9165             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9166           else
9167                                     :
9168           fi
9169         else
9170                               found_dir=
9171           found_la=
9172           found_so=
9173           found_a=
9174           if test $use_additional = yes; then
9175             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9176               found_dir="$additional_libdir"
9177               found_so="$additional_libdir/lib$name.$shlibext"
9178               if test -f "$additional_libdir/lib$name.la"; then
9179                 found_la="$additional_libdir/lib$name.la"
9180               fi
9181             else
9182               if test -f "$additional_libdir/lib$name.$libext"; then
9183                 found_dir="$additional_libdir"
9184                 found_a="$additional_libdir/lib$name.$libext"
9185                 if test -f "$additional_libdir/lib$name.la"; then
9186                   found_la="$additional_libdir/lib$name.la"
9187                 fi
9188               fi
9189             fi
9190           fi
9191           if test "X$found_dir" = "X"; then
9192             for x in $LDFLAGS $LTLIBICONV; do
9193
9194   acl_save_prefix="$prefix"
9195   prefix="$acl_final_prefix"
9196   acl_save_exec_prefix="$exec_prefix"
9197   exec_prefix="$acl_final_exec_prefix"
9198   eval x=\"$x\"
9199   exec_prefix="$acl_save_exec_prefix"
9200   prefix="$acl_save_prefix"
9201
9202               case "$x" in
9203                 -L*)
9204                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9205                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9206                     found_dir="$dir"
9207                     found_so="$dir/lib$name.$shlibext"
9208                     if test -f "$dir/lib$name.la"; then
9209                       found_la="$dir/lib$name.la"
9210                     fi
9211                   else
9212                     if test -f "$dir/lib$name.$libext"; then
9213                       found_dir="$dir"
9214                       found_a="$dir/lib$name.$libext"
9215                       if test -f "$dir/lib$name.la"; then
9216                         found_la="$dir/lib$name.la"
9217                       fi
9218                     fi
9219                   fi
9220                   ;;
9221               esac
9222               if test "X$found_dir" != "X"; then
9223                 break
9224               fi
9225             done
9226           fi
9227           if test "X$found_dir" != "X"; then
9228                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9229             if test "X$found_so" != "X"; then
9230                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9231                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9232               else
9233                                                                                 haveit=
9234                 for x in $ltrpathdirs; do
9235                   if test "X$x" = "X$found_dir"; then
9236                     haveit=yes
9237                     break
9238                   fi
9239                 done
9240                 if test -z "$haveit"; then
9241                   ltrpathdirs="$ltrpathdirs $found_dir"
9242                 fi
9243                                 if test "$hardcode_direct" = yes; then
9244                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9245                 else
9246                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9247                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9248                                                             haveit=
9249                     for x in $rpathdirs; do
9250                       if test "X$x" = "X$found_dir"; then
9251                         haveit=yes
9252                         break
9253                       fi
9254                     done
9255                     if test -z "$haveit"; then
9256                       rpathdirs="$rpathdirs $found_dir"
9257                     fi
9258                   else
9259                                                                                 haveit=
9260                     for x in $LDFLAGS $LIBICONV; do
9261
9262   acl_save_prefix="$prefix"
9263   prefix="$acl_final_prefix"
9264   acl_save_exec_prefix="$exec_prefix"
9265   exec_prefix="$acl_final_exec_prefix"
9266   eval x=\"$x\"
9267   exec_prefix="$acl_save_exec_prefix"
9268   prefix="$acl_save_prefix"
9269
9270                       if test "X$x" = "X-L$found_dir"; then
9271                         haveit=yes
9272                         break
9273                       fi
9274                     done
9275                     if test -z "$haveit"; then
9276                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9277                     fi
9278                     if test "$hardcode_minus_L" != no; then
9279                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9280                     else
9281                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9282                     fi
9283                   fi
9284                 fi
9285               fi
9286             else
9287               if test "X$found_a" != "X"; then
9288                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9289               else
9290                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9291               fi
9292             fi
9293                         additional_includedir=
9294             case "$found_dir" in
9295               */lib | */lib/)
9296                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9297                 additional_includedir="$basedir/include"
9298                 ;;
9299             esac
9300             if test "X$additional_includedir" != "X"; then
9301                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9302                 haveit=
9303                 if test "X$additional_includedir" = "X/usr/local/include"; then
9304                   if test -n "$GCC"; then
9305                     case $host_os in
9306                       linux*) haveit=yes;;
9307                     esac
9308                   fi
9309                 fi
9310                 if test -z "$haveit"; then
9311                   for x in $CPPFLAGS $INCICONV; do
9312
9313   acl_save_prefix="$prefix"
9314   prefix="$acl_final_prefix"
9315   acl_save_exec_prefix="$exec_prefix"
9316   exec_prefix="$acl_final_exec_prefix"
9317   eval x=\"$x\"
9318   exec_prefix="$acl_save_exec_prefix"
9319   prefix="$acl_save_prefix"
9320
9321                     if test "X$x" = "X-I$additional_includedir"; then
9322                       haveit=yes
9323                       break
9324                     fi
9325                   done
9326                   if test -z "$haveit"; then
9327                     if test -d "$additional_includedir"; then
9328                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9329                     fi
9330                   fi
9331                 fi
9332               fi
9333             fi
9334                         if test -n "$found_la"; then
9335                                                         save_libdir="$libdir"
9336               case "$found_la" in
9337                 */* | *\\*) . "$found_la" ;;
9338                 *) . "./$found_la" ;;
9339               esac
9340               libdir="$save_libdir"
9341                             for dep in $dependency_libs; do
9342                 case "$dep" in
9343                   -L*)
9344                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9345                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9346                       haveit=
9347                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9348                         if test -n "$GCC"; then
9349                           case $host_os in
9350                             linux*) haveit=yes;;
9351                           esac
9352                         fi
9353                       fi
9354                       if test -z "$haveit"; then
9355                         haveit=
9356                         for x in $LDFLAGS $LIBICONV; do
9357
9358   acl_save_prefix="$prefix"
9359   prefix="$acl_final_prefix"
9360   acl_save_exec_prefix="$exec_prefix"
9361   exec_prefix="$acl_final_exec_prefix"
9362   eval x=\"$x\"
9363   exec_prefix="$acl_save_exec_prefix"
9364   prefix="$acl_save_prefix"
9365
9366                           if test "X$x" = "X-L$additional_libdir"; then
9367                             haveit=yes
9368                             break
9369                           fi
9370                         done
9371                         if test -z "$haveit"; then
9372                           if test -d "$additional_libdir"; then
9373                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9374                           fi
9375                         fi
9376                         haveit=
9377                         for x in $LDFLAGS $LTLIBICONV; do
9378
9379   acl_save_prefix="$prefix"
9380   prefix="$acl_final_prefix"
9381   acl_save_exec_prefix="$exec_prefix"
9382   exec_prefix="$acl_final_exec_prefix"
9383   eval x=\"$x\"
9384   exec_prefix="$acl_save_exec_prefix"
9385   prefix="$acl_save_prefix"
9386
9387                           if test "X$x" = "X-L$additional_libdir"; then
9388                             haveit=yes
9389                             break
9390                           fi
9391                         done
9392                         if test -z "$haveit"; then
9393                           if test -d "$additional_libdir"; then
9394                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9395                           fi
9396                         fi
9397                       fi
9398                     fi
9399                     ;;
9400                   -R*)
9401                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9402                     if test "$enable_rpath" != no; then
9403                                                                   haveit=
9404                       for x in $rpathdirs; do
9405                         if test "X$x" = "X$dir"; then
9406                           haveit=yes
9407                           break
9408                         fi
9409                       done
9410                       if test -z "$haveit"; then
9411                         rpathdirs="$rpathdirs $dir"
9412                       fi
9413                                                                   haveit=
9414                       for x in $ltrpathdirs; do
9415                         if test "X$x" = "X$dir"; then
9416                           haveit=yes
9417                           break
9418                         fi
9419                       done
9420                       if test -z "$haveit"; then
9421                         ltrpathdirs="$ltrpathdirs $dir"
9422                       fi
9423                     fi
9424                     ;;
9425                   -l*)
9426                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9427                     ;;
9428                   *.la)
9429                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9430                     ;;
9431                   *)
9432                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9433                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9434                     ;;
9435                 esac
9436               done
9437             fi
9438           else
9439                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9440             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9441           fi
9442         fi
9443       fi
9444     done
9445   done
9446   if test "X$rpathdirs" != "X"; then
9447     if test -n "$hardcode_libdir_separator"; then
9448                         alldirs=
9449       for found_dir in $rpathdirs; do
9450         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9451       done
9452             acl_save_libdir="$libdir"
9453       libdir="$alldirs"
9454       eval flag=\"$hardcode_libdir_flag_spec\"
9455       libdir="$acl_save_libdir"
9456       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9457     else
9458             for found_dir in $rpathdirs; do
9459         acl_save_libdir="$libdir"
9460         libdir="$found_dir"
9461         eval flag=\"$hardcode_libdir_flag_spec\"
9462         libdir="$acl_save_libdir"
9463         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9464       done
9465     fi
9466   fi
9467   if test "X$ltrpathdirs" != "X"; then
9468             for found_dir in $ltrpathdirs; do
9469       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9470     done
9471   fi
9472
9473
9474
9475
9476
9477
9478
9479           am_save_CPPFLAGS="$CPPFLAGS"
9480
9481   for element in $INCICONV; do
9482     haveit=
9483     for x in $CPPFLAGS; do
9484
9485   acl_save_prefix="$prefix"
9486   prefix="$acl_final_prefix"
9487   acl_save_exec_prefix="$exec_prefix"
9488   exec_prefix="$acl_final_exec_prefix"
9489   eval x=\"$x\"
9490   exec_prefix="$acl_save_exec_prefix"
9491   prefix="$acl_save_prefix"
9492
9493       if test "X$x" = "X$element"; then
9494         haveit=yes
9495         break
9496       fi
9497     done
9498     if test -z "$haveit"; then
9499       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9500     fi
9501   done
9502
9503
9504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9505 $as_echo_n "checking for iconv... " >&6; }
9506 if test "${am_cv_func_iconv+set}" = set; then :
9507   $as_echo_n "(cached) " >&6
9508 else
9509
9510     am_cv_func_iconv="no, consider installing GNU libiconv"
9511     am_cv_lib_iconv=no
9512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h.  */
9514 #include <stdlib.h>
9515 #include <iconv.h>
9516 int
9517 main ()
9518 {
9519 iconv_t cd = iconv_open("","");
9520        iconv(cd,NULL,NULL,NULL,NULL);
9521        iconv_close(cd);
9522   ;
9523   return 0;
9524 }
9525 _ACEOF
9526 if ac_fn_c_try_link "$LINENO"; then :
9527   am_cv_func_iconv=yes
9528 fi
9529 rm -f core conftest.err conftest.$ac_objext \
9530     conftest$ac_exeext conftest.$ac_ext
9531     if test "$am_cv_func_iconv" != yes; then
9532       am_save_LIBS="$LIBS"
9533       LIBS="$LIBS $LIBICONV"
9534       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h.  */
9536 #include <stdlib.h>
9537 #include <iconv.h>
9538 int
9539 main ()
9540 {
9541 iconv_t cd = iconv_open("","");
9542          iconv(cd,NULL,NULL,NULL,NULL);
9543          iconv_close(cd);
9544   ;
9545   return 0;
9546 }
9547 _ACEOF
9548 if ac_fn_c_try_link "$LINENO"; then :
9549   am_cv_lib_iconv=yes
9550         am_cv_func_iconv=yes
9551 fi
9552 rm -f core conftest.err conftest.$ac_objext \
9553     conftest$ac_exeext conftest.$ac_ext
9554       LIBS="$am_save_LIBS"
9555     fi
9556
9557 fi
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9559 $as_echo "$am_cv_func_iconv" >&6; }
9560   if test "$am_cv_func_iconv" = yes; then
9561
9562 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9563
9564   fi
9565   if test "$am_cv_lib_iconv" = yes; then
9566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9567 $as_echo_n "checking how to link with libiconv... " >&6; }
9568     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9569 $as_echo "$LIBICONV" >&6; }
9570   else
9571             CPPFLAGS="$am_save_CPPFLAGS"
9572     LIBICONV=
9573     LTLIBICONV=
9574   fi
9575
9576
9577
9578   if test "$am_cv_func_iconv" = yes; then
9579     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9580 $as_echo_n "checking for iconv declaration... " >&6; }
9581     if test "${am_cv_proto_iconv+set}" = set; then :
9582   $as_echo_n "(cached) " >&6
9583 else
9584
9585       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h.  */
9587
9588 #include <stdlib.h>
9589 #include <iconv.h>
9590 extern
9591 #ifdef __cplusplus
9592 "C"
9593 #endif
9594 #if defined(__STDC__) || defined(__cplusplus)
9595 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9596 #else
9597 size_t iconv();
9598 #endif
9599
9600 int
9601 main ()
9602 {
9603
9604   ;
9605   return 0;
9606 }
9607 _ACEOF
9608 if ac_fn_c_try_compile "$LINENO"; then :
9609   am_cv_proto_iconv_arg1=""
9610 else
9611   am_cv_proto_iconv_arg1="const"
9612 fi
9613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9614       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);"
9615 fi
9616
9617     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9619          }$am_cv_proto_iconv" >&5
9620 $as_echo "${ac_t:-
9621          }$am_cv_proto_iconv" >&6; }
9622
9623 cat >>confdefs.h <<_ACEOF
9624 #define ICONV_CONST $am_cv_proto_iconv_arg1
9625 _ACEOF
9626
9627   fi
9628
9629 # Until we have in-tree GNU iconv:
9630 LIBICONV_DEP=
9631
9632
9633
9634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9635 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9636 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9637   $as_echo_n "(cached) " >&6
9638 else
9639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h.  */
9641 #include <locale.h>
9642 int
9643 main ()
9644 {
9645 return LC_MESSAGES
9646   ;
9647   return 0;
9648 }
9649 _ACEOF
9650 if ac_fn_c_try_link "$LINENO"; then :
9651   am_cv_val_LC_MESSAGES=yes
9652 else
9653   am_cv_val_LC_MESSAGES=no
9654 fi
9655 rm -f core conftest.err conftest.$ac_objext \
9656     conftest$ac_exeext conftest.$ac_ext
9657 fi
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9659 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9660   if test $am_cv_val_LC_MESSAGES = yes; then
9661
9662 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9663
9664   fi
9665
9666
9667
9668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9669 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9670 if test "${am_cv_langinfo_codeset+set}" = set; then :
9671   $as_echo_n "(cached) " >&6
9672 else
9673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h.  */
9675 #include <langinfo.h>
9676 int
9677 main ()
9678 {
9679 char* cs = nl_langinfo(CODESET);
9680   ;
9681   return 0;
9682 }
9683 _ACEOF
9684 if ac_fn_c_try_link "$LINENO"; then :
9685   am_cv_langinfo_codeset=yes
9686 else
9687   am_cv_langinfo_codeset=no
9688 fi
9689 rm -f core conftest.err conftest.$ac_objext \
9690     conftest$ac_exeext conftest.$ac_ext
9691
9692 fi
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9694 $as_echo "$am_cv_langinfo_codeset" >&6; }
9695   if test $am_cv_langinfo_codeset = yes; then
9696
9697 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9698
9699   fi
9700
9701
9702 # We will need to find libiberty.h and ansidecl.h
9703 saved_CFLAGS="$CFLAGS"
9704 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9705 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9706         strsignal strstr strverscmp \
9707         errno snprintf vsnprintf vasprintf malloc realloc calloc \
9708         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
9709 do
9710   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9712 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9713 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9714   $as_echo_n "(cached) " >&6
9715 else
9716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h.  */
9718 #undef $ac_tr_decl
9719 #define $ac_tr_decl 1
9720
9721 #include "ansidecl.h"
9722 #include "system.h"
9723
9724 int
9725 main ()
9726 {
9727 #ifndef $ac_func
9728 char *(*pfn) = (char *(*)) $ac_func ;
9729 #endif
9730   ;
9731   return 0;
9732 }
9733 _ACEOF
9734 if ac_fn_c_try_compile "$LINENO"; then :
9735   eval "gcc_cv_have_decl_$ac_func=yes"
9736 else
9737   eval "gcc_cv_have_decl_$ac_func=no"
9738 fi
9739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9740 fi
9741
9742 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9744 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9745 #define $ac_tr_decl 1
9746 _ACEOF
9747
9748 else
9749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9751 #define $ac_tr_decl 0
9752 _ACEOF
9753
9754 fi
9755
9756 done
9757
9758
9759 for ac_func in getrlimit setrlimit getrusage
9760 do
9761   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9763 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9764 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9765   $as_echo_n "(cached) " >&6
9766 else
9767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h.  */
9769 #undef $ac_tr_decl
9770 #define $ac_tr_decl 1
9771
9772 #include "ansidecl.h"
9773 #include "system.h"
9774 #ifdef HAVE_SYS_RESOURCE_H
9775 #include <sys/resource.h>
9776 #endif
9777
9778
9779 int
9780 main ()
9781 {
9782 #ifndef $ac_func
9783 char *(*pfn) = (char *(*)) $ac_func ;
9784 #endif
9785   ;
9786   return 0;
9787 }
9788 _ACEOF
9789 if ac_fn_c_try_compile "$LINENO"; then :
9790   eval "gcc_cv_have_decl_$ac_func=yes"
9791 else
9792   eval "gcc_cv_have_decl_$ac_func=no"
9793 fi
9794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9795 fi
9796
9797 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9799 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9800 #define $ac_tr_decl 1
9801 _ACEOF
9802
9803 else
9804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9806 #define $ac_tr_decl 0
9807 _ACEOF
9808
9809 fi
9810
9811 done
9812
9813
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h.  */
9816
9817 #include "ansidecl.h"
9818 #include "system.h"
9819 #ifdef HAVE_SYS_RESOURCE_H
9820 #include <sys/resource.h>
9821 #endif
9822
9823 int
9824 main ()
9825 {
9826 rlim_t l = 0;
9827   ;
9828   return 0;
9829 }
9830 _ACEOF
9831 if ac_fn_c_try_compile "$LINENO"; then :
9832
9833 else
9834
9835 $as_echo "#define rlim_t long" >>confdefs.h
9836
9837 fi
9838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9839
9840 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9841 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
9842 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9843 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9844 for ac_func in ldgetname
9845 do
9846   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9848 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9849 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9850   $as_echo_n "(cached) " >&6
9851 else
9852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h.  */
9854 #undef $ac_tr_decl
9855 #define $ac_tr_decl 1
9856
9857 #include "ansidecl.h"
9858 #include "system.h"
9859 #ifdef HAVE_LDFCN_H
9860 #undef FREAD
9861 #undef FWRITE
9862 #include <ldfcn.h>
9863 #endif
9864
9865
9866 int
9867 main ()
9868 {
9869 #ifndef $ac_func
9870 char *(*pfn) = (char *(*)) $ac_func ;
9871 #endif
9872   ;
9873   return 0;
9874 }
9875 _ACEOF
9876 if ac_fn_c_try_compile "$LINENO"; then :
9877   eval "gcc_cv_have_decl_$ac_func=yes"
9878 else
9879   eval "gcc_cv_have_decl_$ac_func=no"
9880 fi
9881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9882 fi
9883
9884 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9886 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9887 #define $ac_tr_decl 1
9888 _ACEOF
9889
9890 else
9891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9893 #define $ac_tr_decl 0
9894 _ACEOF
9895
9896 fi
9897
9898 done
9899
9900
9901 for ac_func in times
9902 do
9903   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9905 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9906 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9907   $as_echo_n "(cached) " >&6
9908 else
9909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h.  */
9911 #undef $ac_tr_decl
9912 #define $ac_tr_decl 1
9913
9914 #include "ansidecl.h"
9915 #include "system.h"
9916 #ifdef HAVE_SYS_TIMES_H
9917 #include <sys/times.h>
9918 #endif
9919
9920
9921 int
9922 main ()
9923 {
9924 #ifndef $ac_func
9925 char *(*pfn) = (char *(*)) $ac_func ;
9926 #endif
9927   ;
9928   return 0;
9929 }
9930 _ACEOF
9931 if ac_fn_c_try_compile "$LINENO"; then :
9932   eval "gcc_cv_have_decl_$ac_func=yes"
9933 else
9934   eval "gcc_cv_have_decl_$ac_func=no"
9935 fi
9936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9937 fi
9938
9939 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9941 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9942 #define $ac_tr_decl 1
9943 _ACEOF
9944
9945 else
9946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9948 #define $ac_tr_decl 0
9949 _ACEOF
9950
9951 fi
9952
9953 done
9954
9955
9956 for ac_func in sigaltstack
9957 do
9958   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9960 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9961 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9962   $as_echo_n "(cached) " >&6
9963 else
9964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h.  */
9966 #undef $ac_tr_decl
9967 #define $ac_tr_decl 1
9968
9969 #include "ansidecl.h"
9970 #include "system.h"
9971 #include <signal.h>
9972
9973
9974 int
9975 main ()
9976 {
9977 #ifndef $ac_func
9978 char *(*pfn) = (char *(*)) $ac_func ;
9979 #endif
9980   ;
9981   return 0;
9982 }
9983 _ACEOF
9984 if ac_fn_c_try_compile "$LINENO"; then :
9985   eval "gcc_cv_have_decl_$ac_func=yes"
9986 else
9987   eval "gcc_cv_have_decl_$ac_func=no"
9988 fi
9989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9990 fi
9991
9992 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9994 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9995 #define $ac_tr_decl 1
9996 _ACEOF
9997
9998 else
9999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10000 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10001 #define $ac_tr_decl 0
10002 _ACEOF
10003
10004 fi
10005
10006 done
10007
10008
10009 # More time-related stuff.
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10011 $as_echo_n "checking for struct tms... " >&6; }
10012 if test "${ac_cv_struct_tms+set}" = set; then :
10013   $as_echo_n "(cached) " >&6
10014 else
10015
10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h.  */
10018
10019 #include "ansidecl.h"
10020 #include "system.h"
10021 #ifdef HAVE_SYS_TIMES_H
10022 #include <sys/times.h>
10023 #endif
10024
10025 int
10026 main ()
10027 {
10028 struct tms tms;
10029   ;
10030   return 0;
10031 }
10032 _ACEOF
10033 if ac_fn_c_try_compile "$LINENO"; then :
10034   ac_cv_struct_tms=yes
10035 else
10036   ac_cv_struct_tms=no
10037 fi
10038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10039 fi
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10041 $as_echo "$ac_cv_struct_tms" >&6; }
10042 if test $ac_cv_struct_tms = yes; then
10043
10044 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10045
10046 fi
10047
10048 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10049 # revisit after autoconf 2.50.
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10051 $as_echo_n "checking for clock_t... " >&6; }
10052 if test "${gcc_cv_type_clock_t+set}" = set; then :
10053   $as_echo_n "(cached) " >&6
10054 else
10055
10056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057 /* end confdefs.h.  */
10058
10059 #include "ansidecl.h"
10060 #include "system.h"
10061
10062 int
10063 main ()
10064 {
10065 clock_t x;
10066   ;
10067   return 0;
10068 }
10069 _ACEOF
10070 if ac_fn_c_try_compile "$LINENO"; then :
10071   gcc_cv_type_clock_t=yes
10072 else
10073   gcc_cv_type_clock_t=no
10074 fi
10075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10076 fi
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10078 $as_echo "$gcc_cv_type_clock_t" >&6; }
10079 if test $gcc_cv_type_clock_t = yes; then
10080
10081 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10082
10083 fi
10084
10085 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10086 CFLAGS="$saved_CFLAGS"
10087
10088 # Check whether --enable-initfini-array was given.
10089 if test "${enable_initfini_array+set}" = set; then :
10090   enableval=$enable_initfini_array;
10091 else
10092
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10094 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10095 if test "${gcc_cv_initfini_array+set}" = set; then :
10096   $as_echo_n "(cached) " >&6
10097 else
10098     if test "$cross_compiling" = yes; then :
10099   gcc_cv_initfini_array=no
10100 else
10101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102 /* end confdefs.h.  */
10103
10104 static int x = -1;
10105 int main (void) { return x; }
10106 int foo (void) { x = 0; }
10107 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10108 _ACEOF
10109 if ac_fn_c_try_run "$LINENO"; then :
10110   gcc_cv_initfini_array=yes
10111 else
10112   gcc_cv_initfini_array=no
10113 fi
10114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10115   conftest.$ac_objext conftest.beam conftest.$ac_ext
10116 fi
10117
10118 fi
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10120 $as_echo "$gcc_cv_initfini_array" >&6; }
10121   enable_initfini_array=$gcc_cv_initfini_array
10122
10123 fi
10124
10125 if test $enable_initfini_array = yes; then
10126
10127 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10128
10129 fi
10130
10131 # mkdir takes a single argument on some systems.
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10133 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10134 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10135   $as_echo_n "(cached) " >&6
10136 else
10137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h.  */
10139
10140 #include <sys/types.h>
10141 #ifdef HAVE_SYS_STAT_H
10142 # include <sys/stat.h>
10143 #endif
10144 #ifdef HAVE_UNISTD_H
10145 # include <unistd.h>
10146 #endif
10147 #ifdef HAVE_DIRECT_H
10148 # include <direct.h>
10149 #endif
10150 int
10151 main ()
10152 {
10153 mkdir ("foo", 0);
10154   ;
10155   return 0;
10156 }
10157 _ACEOF
10158 if ac_fn_c_try_compile "$LINENO"; then :
10159   gcc_cv_mkdir_takes_one_arg=no
10160 else
10161   gcc_cv_mkdir_takes_one_arg=yes
10162 fi
10163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10164 fi
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10166 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10167 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10168
10169 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10170
10171 fi
10172
10173
10174 # File extensions
10175 manext='.1'
10176 objext='.o'
10177
10178
10179
10180 # With Setjmp/Longjmp based exception handling.
10181 # Check whether --enable-sjlj-exceptions was given.
10182 if test "${enable_sjlj_exceptions+set}" = set; then :
10183   enableval=$enable_sjlj_exceptions; case $target in
10184   *-*-hpux10*)
10185     if test $enableval != yes; then
10186       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10187 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10188       enableval=yes
10189     fi
10190     ;;
10191 esac
10192 force_sjlj_exceptions=yes
10193 else
10194   case $target in
10195   *-*-hpux10*)
10196     force_sjlj_exceptions=yes
10197     enableval=yes
10198     ;;
10199   *)
10200     force_sjlj_exceptions=no
10201     ;;
10202 esac
10203 fi
10204
10205 if test $force_sjlj_exceptions = yes; then
10206   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10207
10208 cat >>confdefs.h <<_ACEOF
10209 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10210 _ACEOF
10211
10212 fi
10213
10214 # For platforms with the unwind ABI which includes an unwind library,
10215 # libunwind, we can choose to use the system libunwind.
10216 # config.gcc also contains tests of with_system_libunwind.
10217
10218
10219 # Check whether --with-system-libunwind was given.
10220 if test "${with_system_libunwind+set}" = set; then :
10221   withval=$with_system_libunwind;
10222 fi
10223
10224   # If system-libunwind was not specifically set, pick a default setting.
10225   if test x$with_system_libunwind = x; then
10226     case ${target} in
10227       ia64-*-hpux*) with_system_libunwind=yes ;;
10228       *) with_system_libunwind=no ;;
10229     esac
10230   fi
10231   # Based on system-libunwind and target, do we have ipinfo?
10232   if  test x$with_system_libunwind = xyes; then
10233     case ${target} in
10234       ia64-*-*) have_unwind_getipinfo=no ;;
10235       *) have_unwind_getipinfo=yes ;;
10236     esac
10237   else
10238     # Darwin before version 9 does not have _Unwind_GetIPInfo.
10239
10240     case ${target} in
10241       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10242       *) have_unwind_getipinfo=yes ;;
10243     esac
10244
10245   fi
10246
10247   if test x$have_unwind_getipinfo = xyes; then
10248
10249 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10250
10251   fi
10252
10253
10254 # --------------------------------------------------------
10255 # Build, host, and target specific configuration fragments
10256 # --------------------------------------------------------
10257
10258 # Collect build-machine-specific information.
10259 . ${srcdir}/config.build
10260
10261 # Collect host-machine-specific information.
10262 . ${srcdir}/config.host
10263
10264 target_gtfiles=
10265
10266 # Collect target-machine-specific information.
10267 . ${srcdir}/config.gcc
10268
10269 extra_objs="${host_extra_objs} ${extra_objs}"
10270 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10271
10272 # Default the target-machine variables that were not explicitly set.
10273 if test x"$tm_file" = x
10274 then tm_file=$cpu_type/$cpu_type.h; fi
10275
10276 if test x"$extra_headers" = x
10277 then extra_headers=; fi
10278
10279 if test x$md_file = x
10280 then md_file=$cpu_type/$cpu_type.md; fi
10281
10282 if test x$out_file = x
10283 then out_file=$cpu_type/$cpu_type.c; fi
10284
10285 if test x"$tmake_file" = x
10286 then tmake_file=$cpu_type/t-$cpu_type
10287 fi
10288
10289 if test x"$dwarf2" = xyes
10290 then tm_file="$tm_file tm-dwarf2.h"
10291 fi
10292
10293 # Say what files are being used for the output code and MD file.
10294 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10295 echo "Using \`$srcdir/config/$md_file' as machine description file."
10296
10297 # If any of the xm_file variables contain nonexistent files, warn
10298 # about them and drop them.
10299
10300 bx=
10301 for x in $build_xm_file; do
10302   if    test -f $srcdir/config/$x
10303   then      bx="$bx $x"
10304   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10305 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10306   fi
10307 done
10308 build_xm_file="$bx"
10309
10310 hx=
10311 for x in $host_xm_file; do
10312   if    test -f $srcdir/config/$x
10313   then      hx="$hx $x"
10314   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10315 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10316   fi
10317 done
10318 host_xm_file="$hx"
10319
10320 tx=
10321 for x in $xm_file; do
10322   if    test -f $srcdir/config/$x
10323   then      tx="$tx $x"
10324   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10325 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10326   fi
10327 done
10328 xm_file="$tx"
10329
10330 count=a
10331 for f in $tm_file; do
10332         count=${count}x
10333 done
10334 if test $count = ax; then
10335         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10336 else
10337         echo "Using the following target machine macro files:"
10338         for f in $tm_file; do
10339                 echo "  $srcdir/config/$f"
10340         done
10341 fi
10342
10343 if test x$need_64bit_hwint = xyes; then
10344
10345 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10346
10347 fi
10348
10349 if test x$use_long_long_for_widest_fast_int = xyes; then
10350
10351 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10352
10353 fi
10354
10355 count=a
10356 for f in $host_xm_file; do
10357         count=${count}x
10358 done
10359 if test $count = a; then
10360         :
10361 elif test $count = ax; then
10362         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10363 else
10364         echo "Using the following host machine macro files:"
10365         for f in $host_xm_file; do
10366                 echo "  $srcdir/config/$f"
10367         done
10368 fi
10369 echo "Using ${out_host_hook_obj} for host machine hooks."
10370
10371 if test "$host_xm_file" != "$build_xm_file"; then
10372         count=a
10373         for f in $build_xm_file; do
10374                 count=${count}x
10375         done
10376         if test $count = a; then
10377                 :
10378         elif test $count = ax; then
10379                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10380         else
10381                 echo "Using the following build machine macro files:"
10382                 for f in $build_xm_file; do
10383                         echo "  $srcdir/config/$f"
10384                 done
10385         fi
10386 fi
10387
10388 case ${host} in
10389   powerpc*-*-darwin*)
10390     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10391 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10392 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10393   $as_echo_n "(cached) " >&6
10394 else
10395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10396 /* end confdefs.h.  */
10397
10398 #include <sys/cdefs.h>
10399 #include <sys/signal.h>
10400 #include <ucontext.h>
10401 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10402
10403 _ACEOF
10404 if ac_fn_c_try_compile "$LINENO"; then :
10405   gcc_cv_mcontext_underscores=no
10406 else
10407   gcc_cv_mcontext_underscores=yes
10408 fi
10409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10410 fi
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10412 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10413       if test $gcc_cv_mcontext_underscores = yes; then
10414
10415 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10416
10417       fi
10418     ;;
10419 esac
10420
10421 # ---------
10422 # Threading
10423 # ---------
10424
10425 # Check if a valid thread package
10426 case ${enable_threads} in
10427   "" | no)
10428     # No threads
10429     target_thread_file='single'
10430     ;;
10431   yes)
10432     # default
10433     target_thread_file='single'
10434     ;;
10435   aix | dce | gnat | irix | posix | posix95 | rtems | \
10436   single | solaris | vxworks | win32 | mipssde)
10437     target_thread_file=${enable_threads}
10438     ;;
10439   *)
10440     echo "${enable_threads} is an unknown thread package" 1>&2
10441     exit 1
10442     ;;
10443 esac
10444
10445 if test x${thread_file} = x; then
10446   # No thread file set by target-specific clauses in config.gcc,
10447   # so use file chosen by default logic above
10448   thread_file=${target_thread_file}
10449 fi
10450
10451 # Make gthr-default.h if we have a thread file.
10452 gthread_flags=
10453 if test $thread_file != single; then
10454   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10455   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10456     rm -f gthr-default.h-t
10457   else
10458     mv -f gthr-default.h-t gthr-default.h
10459   fi
10460   gthread_flags=-DHAVE_GTHR_DEFAULT
10461 fi
10462
10463
10464 # --------
10465 # UNSORTED
10466 # --------
10467
10468 use_cxa_atexit=no
10469 if test x$enable___cxa_atexit = xyes || \
10470    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10471   if test x$host = x$target; then
10472     case $host in
10473       # mingw32 doesn't have __cxa_atexit but uses atexit registration
10474       # keyed to flag_use_cxa_atexit
10475       *-*-mingw32*)
10476         use_cxa_atexit=yes
10477         ;;
10478       *)
10479         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10480 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10481   use_cxa_atexit=yes
10482 else
10483   echo "__cxa_atexit can't be enabled on this target"
10484 fi
10485
10486         ;;
10487     esac
10488   else
10489     # We can't check for __cxa_atexit when building a cross, so assume
10490     # it is available
10491     use_cxa_atexit=yes
10492   fi
10493   if test x$use_cxa_atexit = xyes; then
10494
10495 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10496
10497   fi
10498 fi
10499
10500 # Look for a file containing extra machine modes.
10501 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10502   extra_modes_file='$(srcdir)'/config/${extra_modes}
10503
10504
10505 cat >>confdefs.h <<_ACEOF
10506 #define EXTRA_MODES_FILE "config/$extra_modes"
10507 _ACEOF
10508
10509 fi
10510
10511 # Convert extra_options into a form suitable for Makefile use.
10512 extra_opt_files=
10513 for f in $extra_options; do
10514   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10515 done
10516
10517
10518 # auto-host.h is the file containing items generated by autoconf and is
10519 # the first file included by config.h.
10520 # If host=build, it is correct to have bconfig include auto-host.h
10521 # as well.  If host!=build, we are in error and need to do more
10522 # work to find out the build config parameters.
10523 if test x$host = x$build
10524 then
10525         build_auto=auto-host.h
10526 else
10527         # We create a subdir, then run autoconf in the subdir.
10528         # To prevent recursion we set host and build for the new
10529         # invocation of configure to the build for this invocation
10530         # of configure.
10531         tempdir=build.$$
10532         rm -rf $tempdir
10533         mkdir $tempdir
10534         cd $tempdir
10535         case ${srcdir} in
10536         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10537         *) realsrcdir=../${srcdir};;
10538         esac
10539         saved_CFLAGS="${CFLAGS}"
10540         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10541         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10542         ${realsrcdir}/configure \
10543                 --enable-languages=${enable_languages-all} \
10544                 --target=$target_alias --host=$build_alias --build=$build_alias
10545         CFLAGS="${saved_CFLAGS}"
10546
10547         # We just finished tests for the build machine, so rename
10548         # the file auto-build.h in the gcc directory.
10549         mv auto-host.h ../auto-build.h
10550         cd ..
10551         rm -rf $tempdir
10552         build_auto=auto-build.h
10553 fi
10554
10555
10556 tm_file="${tm_file} defaults.h"
10557 tm_p_file="${tm_p_file} tm-preds.h"
10558 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10559 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10560 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10561 # put this back in temporarily.
10562 xm_file="auto-host.h ansidecl.h ${xm_file}"
10563
10564 # --------
10565 # UNSORTED
10566 # --------
10567
10568 # Compile in configure arguments.
10569 if test -f configargs.h ; then
10570         # Being re-configured.
10571         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10572         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10573 else
10574         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10575 fi
10576
10577 # Double all backslashes and backslash all quotes to turn
10578 # gcc_config_arguments into a C string.
10579 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10580 $gcc_config_arguments
10581 EOF
10582 gcc_config_arguments_str=`cat conftest.out`
10583 rm -f conftest.out
10584
10585 cat > configargs.h <<EOF
10586 /* Generated automatically. */
10587 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10588 static const char thread_model[] = "$thread_file";
10589
10590 static const struct {
10591   const char *name, *value;
10592 } configure_default_options[] = $configure_default_options;
10593 EOF
10594
10595 gcc_BASEVER=`cat $srcdir/BASE-VER`
10596 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10597 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10598 if test -f $srcdir/REVISION ; then
10599         gcc_REVISION=`cat $srcdir/REVISION`
10600 else
10601         gcc_REVISION=""
10602 fi
10603 cat > plugin-version.h <<EOF
10604 #include "configargs.h"
10605
10606 static char basever[] = "$gcc_BASEVER";
10607 static char datestamp[] = "$gcc_DATESTAMP";
10608 static char devphase[] = "$gcc_DEVPHASE";
10609 static char revision[] = "$gcc_REVISION";
10610
10611 /* FIXME plugins: We should make the version information more precise.
10612    One way to do is to add a checksum. */
10613
10614 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10615                                                 devphase, revision,
10616                                                 configuration_arguments};
10617 EOF
10618
10619 # Internationalization
10620 # If we haven't got the data from the intl directory,
10621 # assume NLS is disabled.
10622 USE_NLS=no
10623 LIBINTL=
10624 LIBINTL_DEP=
10625 INCINTL=
10626 XGETTEXT=
10627 GMSGFMT=
10628 POSUB=
10629
10630 if test -f  ../intl/config.intl; then
10631   .  ../intl/config.intl
10632 fi
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10634 $as_echo_n "checking whether NLS is requested... " >&6; }
10635 if test x"$USE_NLS" != xyes; then
10636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10638 else
10639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10640 $as_echo "yes" >&6; }
10641
10642 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10643
10644
10645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10646 $as_echo_n "checking for catalogs to be installed... " >&6; }
10647   # Look for .po and .gmo files in the source directory.
10648   CATALOGS=
10649   XLINGUAS=
10650   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10651     # If there aren't any .gmo files the shell will give us the
10652     # literal string "../path/to/srcdir/po/*.gmo" which has to be
10653     # weeded out.
10654     case "$cat" in *\**)
10655       continue;;
10656     esac
10657     # The quadruple backslash is collapsed to a double backslash
10658     # by the backticks, then collapsed again by the double quotes,
10659     # leaving us with one backslash in the sed expression (right
10660     # before the dot that mustn't act as a wildcard).
10661     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10662     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10663     # The user is allowed to set LINGUAS to a list of languages to
10664     # install catalogs for.  If it's empty that means "all of them."
10665     if test "x$LINGUAS" = x; then
10666       CATALOGS="$CATALOGS $cat"
10667       XLINGUAS="$XLINGUAS $lang"
10668     else
10669       case "$LINGUAS" in *$lang*)
10670         CATALOGS="$CATALOGS $cat"
10671         XLINGUAS="$XLINGUAS $lang"
10672         ;;
10673       esac
10674     fi
10675   done
10676   LINGUAS="$XLINGUAS"
10677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10678 $as_echo "$LINGUAS" >&6; }
10679
10680
10681     DATADIRNAME=share
10682
10683   INSTOBJEXT=.mo
10684
10685   GENCAT=gencat
10686
10687   CATOBJEXT=.gmo
10688
10689 fi
10690
10691 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10692 # -liconv on the link line twice.
10693 case "$LIBINTL" in *$LIBICONV*)
10694         LIBICONV= ;;
10695 esac
10696
10697 # Check whether --enable-secureplt was given.
10698 if test "${enable_secureplt+set}" = set; then :
10699   enableval=$enable_secureplt;
10700 fi
10701
10702
10703 # Check whether --enable-leading-mingw64-underscores was given.
10704 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10705   enableval=$enable_leading_mingw64_underscores;
10706 fi
10707
10708 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
10709
10710 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10711
10712 fi
10713
10714 # Check whether --enable-cld was given.
10715 if test "${enable_cld+set}" = set; then :
10716   enableval=$enable_cld;
10717 else
10718   enable_cld=no
10719 fi
10720
10721
10722 # Check whether --enable-frame-pointer was given.
10723 if test "${enable_frame_pointer+set}" = set; then :
10724   enableval=$enable_frame_pointer;
10725 else
10726
10727 case $target_os in
10728 linux* | darwin[8912]*)
10729   # Enable -fomit-frame-pointer by default for Linux and Darwin with
10730   # DWARF2.
10731   enable_frame_pointer=no
10732   ;;
10733 *)
10734   enable_frame_pointer=yes
10735   ;;
10736 esac
10737
10738 fi
10739
10740
10741 # Windows32 Registry support for specifying GCC installation paths.
10742 # Check whether --enable-win32-registry was given.
10743 if test "${enable_win32_registry+set}" = set; then :
10744   enableval=$enable_win32_registry;
10745 fi
10746
10747
10748 case $host_os in
10749   win32 | pe | cygwin* | mingw32* | uwin*)
10750     if test "x$enable_win32_registry" != xno; then
10751       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10752 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10753 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10754   $as_echo_n "(cached) " >&6
10755 else
10756   ac_func_search_save_LIBS=$LIBS
10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h.  */
10759
10760 /* Override any GCC internal prototype to avoid an error.
10761    Use char because int might match the return type of a GCC
10762    builtin and then its argument prototype would still apply.  */
10763 #ifdef __cplusplus
10764 extern "C"
10765 #endif
10766 char RegOpenKeyExA ();
10767 int
10768 main ()
10769 {
10770 return RegOpenKeyExA ();
10771   ;
10772   return 0;
10773 }
10774 _ACEOF
10775 for ac_lib in '' advapi32; do
10776   if test -z "$ac_lib"; then
10777     ac_res="none required"
10778   else
10779     ac_res=-l$ac_lib
10780     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10781   fi
10782   if ac_fn_c_try_link "$LINENO"; then :
10783   ac_cv_search_RegOpenKeyExA=$ac_res
10784 fi
10785 rm -f core conftest.err conftest.$ac_objext \
10786     conftest$ac_exeext
10787   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10788   break
10789 fi
10790 done
10791 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10792
10793 else
10794   ac_cv_search_RegOpenKeyExA=no
10795 fi
10796 rm conftest.$ac_ext
10797 LIBS=$ac_func_search_save_LIBS
10798 fi
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10800 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10801 ac_res=$ac_cv_search_RegOpenKeyExA
10802 if test "$ac_res" != no; then :
10803   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10804
10805 else
10806   enable_win32_registry=no
10807 fi
10808
10809     fi
10810
10811     if test "x$enable_win32_registry" != xno; then
10812
10813 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10814
10815
10816       if test "x$enable_win32_registry" != xyes \
10817          && test "x$enable_win32_registry" != x; then
10818
10819 cat >>confdefs.h <<_ACEOF
10820 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10821 _ACEOF
10822
10823       fi
10824     fi
10825   ;;
10826 esac
10827
10828 # Get an absolute path to the GCC top-level source directory
10829 holddir=`${PWDCMD-pwd}`
10830 cd $srcdir
10831 topdir=`${PWDCMD-pwd}`
10832 cd $holddir
10833
10834 # Conditionalize the makefile for this host machine.
10835 xmake_file=
10836 for f in ${host_xmake_file}
10837 do
10838         if test -f ${srcdir}/config/$f
10839         then
10840                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10841         fi
10842 done
10843
10844 # Conditionalize the makefile for this target machine.
10845 tmake_file_=
10846 for f in ${tmake_file}
10847 do
10848         if test -f ${srcdir}/config/$f
10849         then
10850                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10851         fi
10852 done
10853 tmake_file="${tmake_file_}"
10854
10855 out_object_file=`basename $out_file .c`.o
10856
10857 tm_file_list="options.h"
10858 tm_include_list="options.h insn-constants.h"
10859 for f in $tm_file; do
10860   case $f in
10861     ./* )
10862        f=`echo $f | sed 's/^..//'`
10863        tm_file_list="${tm_file_list} $f"
10864        tm_include_list="${tm_include_list} $f"
10865        ;;
10866     defaults.h )
10867        tm_file_list="${tm_file_list} \$(srcdir)/$f"
10868        tm_include_list="${tm_include_list} $f"
10869        ;;
10870     * )
10871        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10872        tm_include_list="${tm_include_list} config/$f"
10873        ;;
10874   esac
10875 done
10876
10877 tm_p_file_list=
10878 tm_p_include_list=
10879 for f in $tm_p_file; do
10880   case $f in
10881     tm-preds.h )
10882        tm_p_file_list="${tm_p_file_list} $f"
10883        tm_p_include_list="${tm_p_include_list} $f"
10884        ;;
10885     * )
10886        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10887        tm_p_include_list="${tm_p_include_list} config/$f"
10888   esac
10889 done
10890
10891 xm_file_list=
10892 xm_include_list=
10893 for f in $xm_file; do
10894   case $f in
10895     ansidecl.h )
10896        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10897        xm_include_list="${xm_include_list} $f"
10898        ;;
10899     auto-host.h )
10900        xm_file_list="${xm_file_list} $f"
10901        xm_include_list="${xm_include_list} $f"
10902        ;;
10903     * )
10904        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10905        xm_include_list="${xm_include_list} config/$f"
10906        ;;
10907   esac
10908 done
10909
10910 host_xm_file_list=
10911 host_xm_include_list=
10912 for f in $host_xm_file; do
10913   case $f in
10914     ansidecl.h )
10915        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10916        host_xm_include_list="${host_xm_include_list} $f"
10917        ;;
10918     auto-host.h )
10919        host_xm_file_list="${host_xm_file_list} $f"
10920        host_xm_include_list="${host_xm_include_list} $f"
10921        ;;
10922     * )
10923        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10924        host_xm_include_list="${host_xm_include_list} config/$f"
10925        ;;
10926   esac
10927 done
10928
10929 build_xm_file_list=
10930 for f in $build_xm_file; do
10931   case $f in
10932     ansidecl.h )
10933        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10934        build_xm_include_list="${build_xm_include_list} $f"
10935        ;;
10936     auto-build.h | auto-host.h )
10937        build_xm_file_list="${build_xm_file_list} $f"
10938        build_xm_include_list="${build_xm_include_list} $f"
10939        ;;
10940     * )
10941        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10942        build_xm_include_list="${build_xm_include_list} config/$f"
10943        ;;
10944   esac
10945 done
10946
10947 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10948 # cross-compiler which does not use the native headers and libraries.
10949 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10950 CROSS=
10951 ALL=all.internal
10952 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10953
10954 if test "x$with_build_sysroot" != x; then
10955   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10956 else
10957   # This value is used, even on a native system, because
10958   # CROSS_SYSTEM_HEADER_DIR is just
10959   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10960   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10961 fi
10962
10963 if test x$host != x$target
10964 then
10965         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10966         ALL=all.cross
10967         SYSTEM_HEADER_DIR=$build_system_header_dir
10968         case "$host","$target" in
10969         # Darwin crosses can use the host system's libraries and headers,
10970         # because of the fat library support.  Of course, it must be the
10971         # same version of Darwin on both sides.  Allow the user to
10972         # just say --target=foo-darwin without a version number to mean
10973         # "the version on this system".
10974             *-*-darwin*,*-*-darwin*)
10975                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10976                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10977                 if test $hostos = $targetos -o $targetos = darwin ; then
10978                     CROSS=
10979                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10980                     with_headers=yes
10981                 fi
10982                 ;;
10983
10984             i?86-*-*,x86_64-*-* \
10985             | powerpc*-*-*,powerpc64*-*-*)
10986                 CROSS="$CROSS -DNATIVE_CROSS" ;;
10987         esac
10988 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10989         SYSTEM_HEADER_DIR=$build_system_header_dir
10990 fi
10991
10992 # If this is a cross-compiler that does not
10993 # have its own set of headers then define
10994 # inhibit_libc
10995
10996 # If this is using newlib, without having the headers available now,
10997 # then define inhibit_libc in LIBGCC2_CFLAGS.
10998 # This prevents libgcc2 from containing any code which requires libc
10999 # support.
11000 : ${inhibit_libc=false}
11001 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11002        test x$with_newlib = xyes ; } &&
11003      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11004        inhibit_libc=true
11005 fi
11006
11007
11008 # When building gcc with a cross-compiler, we need to adjust things so
11009 # that the generator programs are still built with the native compiler.
11010 # Also, we cannot run fixincludes.
11011
11012 # These are the normal (build=host) settings:
11013 CC_FOR_BUILD='$(CC)'
11014 BUILD_CFLAGS='$(ALL_CFLAGS)'
11015 BUILD_LDFLAGS='$(LDFLAGS)'
11016 STMP_FIXINC=stmp-fixinc
11017
11018 # And these apply if build != host, or we are generating coverage data
11019 if test x$build != x$host || test "x$coverage_flags" != x
11020 then
11021     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11022     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11023 fi
11024
11025 # Expand extra_headers to include complete path.
11026 # This substitutes for lots of t-* files.
11027 extra_headers_list=
11028 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11029 for file in ${extra_headers} ; do
11030   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11031 done
11032
11033 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11034 if test x"$use_gcc_tgmath" = xyes
11035 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11036 fi
11037
11038 # Define collect2 in Makefile.
11039 case $host_can_use_collect2 in
11040   no) collect2= ;;
11041   *) collect2='collect2$(exeext)' ;;
11042 esac
11043
11044
11045 # Add a definition of USE_COLLECT2 if system wants one.
11046 case $use_collect2 in
11047   no) use_collect2= ;;
11048   "") ;;
11049   *)
11050     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11051     xm_defines="${xm_defines} USE_COLLECT2"
11052     case $host_can_use_collect2 in
11053       no)
11054         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11055         ;;
11056     esac
11057     ;;
11058 esac
11059
11060 # ---------------------------
11061 # Assembler & linker features
11062 # ---------------------------
11063
11064 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11065 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11066 # However when ld-new is first executed from the build tree, libtool will
11067 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11068 # to the build tree.  While doing this we need to use the previous-stage
11069 # linker, or we have an infinite loop.  The presence of a shell script as
11070 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11071 # the gcc/collect-ld script.  So we need to know how libtool works, or
11072 # exec-tool will fail.
11073
11074
11075 case `pwd` in
11076   *\ * | *\     *)
11077     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11078 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11079 esac
11080
11081
11082
11083 macro_version='2.2.7a'
11084 macro_revision='1.3134'
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098 ltmain="$ac_aux_dir/ltmain.sh"
11099
11100 # Backslashify metacharacters that are still active within
11101 # double-quoted strings.
11102 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11103
11104 # Same as above, but do not quote variable references.
11105 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11106
11107 # Sed substitution to delay expansion of an escaped shell variable in a
11108 # double_quote_subst'ed string.
11109 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11110
11111 # Sed substitution to delay expansion of an escaped single quote.
11112 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11113
11114 # Sed substitution to avoid accidental globbing in evaled expressions
11115 no_glob_subst='s/\*/\\\*/g'
11116
11117 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11118 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11119 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11120
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11122 $as_echo_n "checking how to print strings... " >&6; }
11123 # Test print first, because it will be a builtin if present.
11124 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11125    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11126   ECHO='print -r --'
11127 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11128   ECHO='printf %s\n'
11129 else
11130   # Use this function as a fallback that always works.
11131   func_fallback_echo ()
11132   {
11133     eval 'cat <<_LTECHO_EOF
11134 $1
11135 _LTECHO_EOF'
11136   }
11137   ECHO='func_fallback_echo'
11138 fi
11139
11140 # func_echo_all arg...
11141 # Invoke $ECHO with all args, space-separated.
11142 func_echo_all ()
11143 {
11144     $ECHO ""
11145 }
11146
11147 case "$ECHO" in
11148   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11149 $as_echo "printf" >&6; } ;;
11150   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11151 $as_echo "print -r" >&6; } ;;
11152   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11153 $as_echo "cat" >&6; } ;;
11154 esac
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11170 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11171 if test "${ac_cv_path_SED+set}" = set; then :
11172   $as_echo_n "(cached) " >&6
11173 else
11174             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11175      for ac_i in 1 2 3 4 5 6 7; do
11176        ac_script="$ac_script$as_nl$ac_script"
11177      done
11178      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11179      { ac_script=; unset ac_script;}
11180      if test -z "$SED"; then
11181   ac_path_SED_found=false
11182   # Loop through the user's path and test for each of PROGNAME-LIST
11183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11184 for as_dir in $PATH
11185 do
11186   IFS=$as_save_IFS
11187   test -z "$as_dir" && as_dir=.
11188     for ac_prog in sed gsed; do
11189     for ac_exec_ext in '' $ac_executable_extensions; do
11190       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11191       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11192 # Check for GNU ac_path_SED and select it if it is found.
11193   # Check for GNU $ac_path_SED
11194 case `"$ac_path_SED" --version 2>&1` in
11195 *GNU*)
11196   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11197 *)
11198   ac_count=0
11199   $as_echo_n 0123456789 >"conftest.in"
11200   while :
11201   do
11202     cat "conftest.in" "conftest.in" >"conftest.tmp"
11203     mv "conftest.tmp" "conftest.in"
11204     cp "conftest.in" "conftest.nl"
11205     $as_echo '' >> "conftest.nl"
11206     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11207     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11208     as_fn_arith $ac_count + 1 && ac_count=$as_val
11209     if test $ac_count -gt ${ac_path_SED_max-0}; then
11210       # Best one so far, save it but keep looking for a better one
11211       ac_cv_path_SED="$ac_path_SED"
11212       ac_path_SED_max=$ac_count
11213     fi
11214     # 10*(2^10) chars as input seems more than enough
11215     test $ac_count -gt 10 && break
11216   done
11217   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11218 esac
11219
11220       $ac_path_SED_found && break 3
11221     done
11222   done
11223   done
11224 IFS=$as_save_IFS
11225   if test -z "$ac_cv_path_SED"; then
11226     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11227   fi
11228 else
11229   ac_cv_path_SED=$SED
11230 fi
11231
11232 fi
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11234 $as_echo "$ac_cv_path_SED" >&6; }
11235  SED="$ac_cv_path_SED"
11236   rm -f conftest.sed
11237
11238 test -z "$SED" && SED=sed
11239 Xsed="$SED -e 1s/^X//"
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11252 $as_echo_n "checking for fgrep... " >&6; }
11253 if test "${ac_cv_path_FGREP+set}" = set; then :
11254   $as_echo_n "(cached) " >&6
11255 else
11256   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11257    then ac_cv_path_FGREP="$GREP -F"
11258    else
11259      if test -z "$FGREP"; then
11260   ac_path_FGREP_found=false
11261   # Loop through the user's path and test for each of PROGNAME-LIST
11262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11264 do
11265   IFS=$as_save_IFS
11266   test -z "$as_dir" && as_dir=.
11267     for ac_prog in fgrep; do
11268     for ac_exec_ext in '' $ac_executable_extensions; do
11269       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11270       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11271 # Check for GNU ac_path_FGREP and select it if it is found.
11272   # Check for GNU $ac_path_FGREP
11273 case `"$ac_path_FGREP" --version 2>&1` in
11274 *GNU*)
11275   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11276 *)
11277   ac_count=0
11278   $as_echo_n 0123456789 >"conftest.in"
11279   while :
11280   do
11281     cat "conftest.in" "conftest.in" >"conftest.tmp"
11282     mv "conftest.tmp" "conftest.in"
11283     cp "conftest.in" "conftest.nl"
11284     $as_echo 'FGREP' >> "conftest.nl"
11285     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11286     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11287     as_fn_arith $ac_count + 1 && ac_count=$as_val
11288     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11289       # Best one so far, save it but keep looking for a better one
11290       ac_cv_path_FGREP="$ac_path_FGREP"
11291       ac_path_FGREP_max=$ac_count
11292     fi
11293     # 10*(2^10) chars as input seems more than enough
11294     test $ac_count -gt 10 && break
11295   done
11296   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11297 esac
11298
11299       $ac_path_FGREP_found && break 3
11300     done
11301   done
11302   done
11303 IFS=$as_save_IFS
11304   if test -z "$ac_cv_path_FGREP"; then
11305     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11306   fi
11307 else
11308   ac_cv_path_FGREP=$FGREP
11309 fi
11310
11311    fi
11312 fi
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11314 $as_echo "$ac_cv_path_FGREP" >&6; }
11315  FGREP="$ac_cv_path_FGREP"
11316
11317
11318 test -z "$GREP" && GREP=grep
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338 # Check whether --with-gnu-ld was given.
11339 if test "${with_gnu_ld+set}" = set; then :
11340   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11341 else
11342   with_gnu_ld=no
11343 fi
11344
11345 ac_prog=ld
11346 if test "$GCC" = yes; then
11347   # Check if gcc -print-prog-name=ld gives a path.
11348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11349 $as_echo_n "checking for ld used by $CC... " >&6; }
11350   case $host in
11351   *-*-mingw*)
11352     # gcc leaves a trailing carriage return which upsets mingw
11353     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11354   *)
11355     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11356   esac
11357   case $ac_prog in
11358     # Accept absolute paths.
11359     [\\/]* | ?:[\\/]*)
11360       re_direlt='/[^/][^/]*/\.\./'
11361       # Canonicalize the pathname of ld
11362       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11363       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11364         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11365       done
11366       test -z "$LD" && LD="$ac_prog"
11367       ;;
11368   "")
11369     # If it fails, then pretend we aren't using GCC.
11370     ac_prog=ld
11371     ;;
11372   *)
11373     # If it is relative, then search for the first ld in PATH.
11374     with_gnu_ld=unknown
11375     ;;
11376   esac
11377 elif test "$with_gnu_ld" = yes; then
11378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11379 $as_echo_n "checking for GNU ld... " >&6; }
11380 else
11381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11382 $as_echo_n "checking for non-GNU ld... " >&6; }
11383 fi
11384 if test "${lt_cv_path_LD+set}" = set; then :
11385   $as_echo_n "(cached) " >&6
11386 else
11387   if test -z "$LD"; then
11388   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11389   for ac_dir in $PATH; do
11390     IFS="$lt_save_ifs"
11391     test -z "$ac_dir" && ac_dir=.
11392     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11393       lt_cv_path_LD="$ac_dir/$ac_prog"
11394       # Check to see if the program is GNU ld.  I'd rather use --version,
11395       # but apparently some variants of GNU ld only accept -v.
11396       # Break only if it was the GNU/non-GNU ld that we prefer.
11397       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11398       *GNU* | *'with BFD'*)
11399         test "$with_gnu_ld" != no && break
11400         ;;
11401       *)
11402         test "$with_gnu_ld" != yes && break
11403         ;;
11404       esac
11405     fi
11406   done
11407   IFS="$lt_save_ifs"
11408 else
11409   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11410 fi
11411 fi
11412
11413 LD="$lt_cv_path_LD"
11414 if test -n "$LD"; then
11415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11416 $as_echo "$LD" >&6; }
11417 else
11418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419 $as_echo "no" >&6; }
11420 fi
11421 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11423 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11424 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11425   $as_echo_n "(cached) " >&6
11426 else
11427   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11428 case `$LD -v 2>&1 </dev/null` in
11429 *GNU* | *'with BFD'*)
11430   lt_cv_prog_gnu_ld=yes
11431   ;;
11432 *)
11433   lt_cv_prog_gnu_ld=no
11434   ;;
11435 esac
11436 fi
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11438 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11439 with_gnu_ld=$lt_cv_prog_gnu_ld
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11450 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11451 if test "${lt_cv_path_NM+set}" = set; then :
11452   $as_echo_n "(cached) " >&6
11453 else
11454   if test -n "$NM"; then
11455   # Let the user override the test.
11456   lt_cv_path_NM="$NM"
11457 else
11458   lt_nm_to_check="${ac_tool_prefix}nm"
11459   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11460     lt_nm_to_check="$lt_nm_to_check nm"
11461   fi
11462   for lt_tmp_nm in $lt_nm_to_check; do
11463     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11464     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11465       IFS="$lt_save_ifs"
11466       test -z "$ac_dir" && ac_dir=.
11467       tmp_nm="$ac_dir/$lt_tmp_nm"
11468       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11469         # Check to see if the nm accepts a BSD-compat flag.
11470         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11471         #   nm: unknown option "B" ignored
11472         # Tru64's nm complains that /dev/null is an invalid object file
11473         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11474         */dev/null* | *'Invalid file or object type'*)
11475           lt_cv_path_NM="$tmp_nm -B"
11476           break
11477           ;;
11478         *)
11479           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11480           */dev/null*)
11481             lt_cv_path_NM="$tmp_nm -p"
11482             break
11483             ;;
11484           *)
11485             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11486             continue # so that we can try to find one that supports BSD flags
11487             ;;
11488           esac
11489           ;;
11490         esac
11491       fi
11492     done
11493     IFS="$lt_save_ifs"
11494   done
11495   : ${lt_cv_path_NM=no}
11496 fi
11497 fi
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11499 $as_echo "$lt_cv_path_NM" >&6; }
11500 if test "$lt_cv_path_NM" != "no"; then
11501   NM="$lt_cv_path_NM"
11502 else
11503   # Didn't find any BSD compatible name lister, look for dumpbin.
11504   if test -n "$DUMPBIN"; then :
11505     # Let the user override the test.
11506   else
11507     if test -n "$ac_tool_prefix"; then
11508   for ac_prog in dumpbin "link -dump"
11509   do
11510     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11513 $as_echo_n "checking for $ac_word... " >&6; }
11514 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11515   $as_echo_n "(cached) " >&6
11516 else
11517   if test -n "$DUMPBIN"; then
11518   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11519 else
11520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11521 for as_dir in $PATH
11522 do
11523   IFS=$as_save_IFS
11524   test -z "$as_dir" && as_dir=.
11525     for ac_exec_ext in '' $ac_executable_extensions; do
11526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11527     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11529     break 2
11530   fi
11531 done
11532   done
11533 IFS=$as_save_IFS
11534
11535 fi
11536 fi
11537 DUMPBIN=$ac_cv_prog_DUMPBIN
11538 if test -n "$DUMPBIN"; then
11539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11540 $as_echo "$DUMPBIN" >&6; }
11541 else
11542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543 $as_echo "no" >&6; }
11544 fi
11545
11546
11547     test -n "$DUMPBIN" && break
11548   done
11549 fi
11550 if test -z "$DUMPBIN"; then
11551   ac_ct_DUMPBIN=$DUMPBIN
11552   for ac_prog in dumpbin "link -dump"
11553 do
11554   # Extract the first word of "$ac_prog", so it can be a program name with args.
11555 set dummy $ac_prog; ac_word=$2
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557 $as_echo_n "checking for $ac_word... " >&6; }
11558 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11559   $as_echo_n "(cached) " >&6
11560 else
11561   if test -n "$ac_ct_DUMPBIN"; then
11562   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11563 else
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11566 do
11567   IFS=$as_save_IFS
11568   test -z "$as_dir" && as_dir=.
11569     for ac_exec_ext in '' $ac_executable_extensions; do
11570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11571     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11573     break 2
11574   fi
11575 done
11576   done
11577 IFS=$as_save_IFS
11578
11579 fi
11580 fi
11581 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11582 if test -n "$ac_ct_DUMPBIN"; then
11583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11584 $as_echo "$ac_ct_DUMPBIN" >&6; }
11585 else
11586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587 $as_echo "no" >&6; }
11588 fi
11589
11590
11591   test -n "$ac_ct_DUMPBIN" && break
11592 done
11593
11594   if test "x$ac_ct_DUMPBIN" = x; then
11595     DUMPBIN=":"
11596   else
11597     case $cross_compiling:$ac_tool_warned in
11598 yes:)
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11601 ac_tool_warned=yes ;;
11602 esac
11603     DUMPBIN=$ac_ct_DUMPBIN
11604   fi
11605 fi
11606
11607     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11608     *COFF*)
11609       DUMPBIN="$DUMPBIN -symbols"
11610       ;;
11611     *)
11612       DUMPBIN=:
11613       ;;
11614     esac
11615   fi
11616
11617   if test "$DUMPBIN" != ":"; then
11618     NM="$DUMPBIN"
11619   fi
11620 fi
11621 test -z "$NM" && NM=nm
11622
11623
11624
11625
11626
11627
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11629 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11630 if test "${lt_cv_nm_interface+set}" = set; then :
11631   $as_echo_n "(cached) " >&6
11632 else
11633   lt_cv_nm_interface="BSD nm"
11634   echo "int some_variable = 0;" > conftest.$ac_ext
11635   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11636   (eval "$ac_compile" 2>conftest.err)
11637   cat conftest.err >&5
11638   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11639   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11640   cat conftest.err >&5
11641   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11642   cat conftest.out >&5
11643   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11644     lt_cv_nm_interface="MS dumpbin"
11645   fi
11646   rm -f conftest*
11647 fi
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11649 $as_echo "$lt_cv_nm_interface" >&6; }
11650
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11652 $as_echo_n "checking whether ln -s works... " >&6; }
11653 LN_S=$as_ln_s
11654 if test "$LN_S" = "ln -s"; then
11655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11656 $as_echo "yes" >&6; }
11657 else
11658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11659 $as_echo "no, using $LN_S" >&6; }
11660 fi
11661
11662 # find the maximum length of command line arguments
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11664 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11665 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11666   $as_echo_n "(cached) " >&6
11667 else
11668     i=0
11669   teststring="ABCD"
11670
11671   case $build_os in
11672   msdosdjgpp*)
11673     # On DJGPP, this test can blow up pretty badly due to problems in libc
11674     # (any single argument exceeding 2000 bytes causes a buffer overrun
11675     # during glob expansion).  Even if it were fixed, the result of this
11676     # check would be larger than it should be.
11677     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11678     ;;
11679
11680   gnu*)
11681     # Under GNU Hurd, this test is not required because there is
11682     # no limit to the length of command line arguments.
11683     # Libtool will interpret -1 as no limit whatsoever
11684     lt_cv_sys_max_cmd_len=-1;
11685     ;;
11686
11687   cygwin* | mingw* | cegcc*)
11688     # On Win9x/ME, this test blows up -- it succeeds, but takes
11689     # about 5 minutes as the teststring grows exponentially.
11690     # Worse, since 9x/ME are not pre-emptively multitasking,
11691     # you end up with a "frozen" computer, even though with patience
11692     # the test eventually succeeds (with a max line length of 256k).
11693     # Instead, let's just punt: use the minimum linelength reported by
11694     # all of the supported platforms: 8192 (on NT/2K/XP).
11695     lt_cv_sys_max_cmd_len=8192;
11696     ;;
11697
11698   mint*)
11699     # On MiNT this can take a long time and run out of memory.
11700     lt_cv_sys_max_cmd_len=8192;
11701     ;;
11702
11703   amigaos*)
11704     # On AmigaOS with pdksh, this test takes hours, literally.
11705     # So we just punt and use a minimum line length of 8192.
11706     lt_cv_sys_max_cmd_len=8192;
11707     ;;
11708
11709   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11710     # This has been around since 386BSD, at least.  Likely further.
11711     if test -x /sbin/sysctl; then
11712       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11713     elif test -x /usr/sbin/sysctl; then
11714       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11715     else
11716       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
11717     fi
11718     # And add a safety zone
11719     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11720     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11721     ;;
11722
11723   interix*)
11724     # We know the value 262144 and hardcode it with a safety zone (like BSD)
11725     lt_cv_sys_max_cmd_len=196608
11726     ;;
11727
11728   osf*)
11729     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11730     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11731     # nice to cause kernel panics so lets avoid the loop below.
11732     # First set a reasonable default.
11733     lt_cv_sys_max_cmd_len=16384
11734     #
11735     if test -x /sbin/sysconfig; then
11736       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11737         *1*) lt_cv_sys_max_cmd_len=-1 ;;
11738       esac
11739     fi
11740     ;;
11741   sco3.2v5*)
11742     lt_cv_sys_max_cmd_len=102400
11743     ;;
11744   sysv5* | sco5v6* | sysv4.2uw2*)
11745     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11746     if test -n "$kargmax"; then
11747       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
11748     else
11749       lt_cv_sys_max_cmd_len=32768
11750     fi
11751     ;;
11752   *)
11753     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11754     if test -n "$lt_cv_sys_max_cmd_len"; then
11755       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11756       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11757     else
11758       # Make teststring a little bigger before we do anything with it.
11759       # a 1K string should be a reasonable start.
11760       for i in 1 2 3 4 5 6 7 8 ; do
11761         teststring=$teststring$teststring
11762       done
11763       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11764       # If test is not a shell built-in, we'll probably end up computing a
11765       # maximum length that is only half of the actual maximum length, but
11766       # we can't tell.
11767       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11768                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11769               test $i != 17 # 1/2 MB should be enough
11770       do
11771         i=`expr $i + 1`
11772         teststring=$teststring$teststring
11773       done
11774       # Only check the string length outside the loop.
11775       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11776       teststring=
11777       # Add a significant safety factor because C++ compilers can tack on
11778       # massive amounts of additional arguments before passing them to the
11779       # linker.  It appears as though 1/2 is a usable value.
11780       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11781     fi
11782     ;;
11783   esac
11784
11785 fi
11786
11787 if test -n $lt_cv_sys_max_cmd_len ; then
11788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11789 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11790 else
11791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11792 $as_echo "none" >&6; }
11793 fi
11794 max_cmd_len=$lt_cv_sys_max_cmd_len
11795
11796
11797
11798
11799
11800
11801 : ${CP="cp -f"}
11802 : ${MV="mv -f"}
11803 : ${RM="rm -f"}
11804
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11806 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11807 # Try some XSI features
11808 xsi_shell=no
11809 ( _lt_dummy="a/b/c"
11810   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11811       = c,a/b,, \
11812     && eval 'test $(( 1 + 1 )) -eq 2 \
11813     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11814   && xsi_shell=yes
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11816 $as_echo "$xsi_shell" >&6; }
11817
11818
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11820 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11821 lt_shell_append=no
11822 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11823     >/dev/null 2>&1 \
11824   && lt_shell_append=yes
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11826 $as_echo "$lt_shell_append" >&6; }
11827
11828
11829 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11830   lt_unset=unset
11831 else
11832   lt_unset=false
11833 fi
11834
11835
11836
11837
11838
11839 # test EBCDIC or ASCII
11840 case `echo X|tr X '\101'` in
11841  A) # ASCII based system
11842     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11843   lt_SP2NL='tr \040 \012'
11844   lt_NL2SP='tr \015\012 \040\040'
11845   ;;
11846  *) # EBCDIC based system
11847   lt_SP2NL='tr \100 \n'
11848   lt_NL2SP='tr \r\n \100\100'
11849   ;;
11850 esac
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11861 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11862 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11863   $as_echo_n "(cached) " >&6
11864 else
11865   lt_cv_ld_reload_flag='-r'
11866 fi
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11868 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11869 reload_flag=$lt_cv_ld_reload_flag
11870 case $reload_flag in
11871 "" | " "*) ;;
11872 *) reload_flag=" $reload_flag" ;;
11873 esac
11874 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11875 case $host_os in
11876   darwin*)
11877     if test "$GCC" = yes; then
11878       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11879     else
11880       reload_cmds='$LD$reload_flag -o $output$reload_objs'
11881     fi
11882     ;;
11883 esac
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893 if test -n "$ac_tool_prefix"; then
11894   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11895 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897 $as_echo_n "checking for $ac_word... " >&6; }
11898 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11899   $as_echo_n "(cached) " >&6
11900 else
11901   if test -n "$OBJDUMP"; then
11902   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11903 else
11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905 for as_dir in $PATH
11906 do
11907   IFS=$as_save_IFS
11908   test -z "$as_dir" && as_dir=.
11909     for ac_exec_ext in '' $ac_executable_extensions; do
11910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11911     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11913     break 2
11914   fi
11915 done
11916   done
11917 IFS=$as_save_IFS
11918
11919 fi
11920 fi
11921 OBJDUMP=$ac_cv_prog_OBJDUMP
11922 if test -n "$OBJDUMP"; then
11923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11924 $as_echo "$OBJDUMP" >&6; }
11925 else
11926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927 $as_echo "no" >&6; }
11928 fi
11929
11930
11931 fi
11932 if test -z "$ac_cv_prog_OBJDUMP"; then
11933   ac_ct_OBJDUMP=$OBJDUMP
11934   # Extract the first word of "objdump", so it can be a program name with args.
11935 set dummy objdump; ac_word=$2
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11937 $as_echo_n "checking for $ac_word... " >&6; }
11938 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11939   $as_echo_n "(cached) " >&6
11940 else
11941   if test -n "$ac_ct_OBJDUMP"; then
11942   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11943 else
11944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11945 for as_dir in $PATH
11946 do
11947   IFS=$as_save_IFS
11948   test -z "$as_dir" && as_dir=.
11949     for ac_exec_ext in '' $ac_executable_extensions; do
11950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11951     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11953     break 2
11954   fi
11955 done
11956   done
11957 IFS=$as_save_IFS
11958
11959 fi
11960 fi
11961 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11962 if test -n "$ac_ct_OBJDUMP"; then
11963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11964 $as_echo "$ac_ct_OBJDUMP" >&6; }
11965 else
11966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967 $as_echo "no" >&6; }
11968 fi
11969
11970   if test "x$ac_ct_OBJDUMP" = x; then
11971     OBJDUMP="false"
11972   else
11973     case $cross_compiling:$ac_tool_warned in
11974 yes:)
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11977 ac_tool_warned=yes ;;
11978 esac
11979     OBJDUMP=$ac_ct_OBJDUMP
11980   fi
11981 else
11982   OBJDUMP="$ac_cv_prog_OBJDUMP"
11983 fi
11984
11985 test -z "$OBJDUMP" && OBJDUMP=objdump
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11996 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11997 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11998   $as_echo_n "(cached) " >&6
11999 else
12000   lt_cv_file_magic_cmd='$MAGIC_CMD'
12001 lt_cv_file_magic_test_file=
12002 lt_cv_deplibs_check_method='unknown'
12003 # Need to set the preceding variable on all platforms that support
12004 # interlibrary dependencies.
12005 # 'none' -- dependencies not supported.
12006 # `unknown' -- same as none, but documents that we really don't know.
12007 # 'pass_all' -- all dependencies passed with no checks.
12008 # 'test_compile' -- check by making test program.
12009 # 'file_magic [[regex]]' -- check by looking for files in library path
12010 # which responds to the $file_magic_cmd with a given extended regex.
12011 # If you have `file' or equivalent on your system and you're not sure
12012 # whether `pass_all' will *always* work, you probably want this one.
12013
12014 case $host_os in
12015 aix[4-9]*)
12016   lt_cv_deplibs_check_method=pass_all
12017   ;;
12018
12019 beos*)
12020   lt_cv_deplibs_check_method=pass_all
12021   ;;
12022
12023 bsdi[45]*)
12024   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12025   lt_cv_file_magic_cmd='/usr/bin/file -L'
12026   lt_cv_file_magic_test_file=/shlib/libc.so
12027   ;;
12028
12029 cygwin*)
12030   # func_win32_libid is a shell function defined in ltmain.sh
12031   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12032   lt_cv_file_magic_cmd='func_win32_libid'
12033   ;;
12034
12035 mingw* | pw32*)
12036   # Base MSYS/MinGW do not provide the 'file' command needed by
12037   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12038   # unless we find 'file', for example because we are cross-compiling.
12039   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12040   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12041     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12042     lt_cv_file_magic_cmd='func_win32_libid'
12043   else
12044     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12045     lt_cv_file_magic_cmd='$OBJDUMP -f'
12046   fi
12047   ;;
12048
12049 cegcc*)
12050   # use the weaker test based on 'objdump'. See mingw*.
12051   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12052   lt_cv_file_magic_cmd='$OBJDUMP -f'
12053   ;;
12054
12055 darwin* | rhapsody*)
12056   lt_cv_deplibs_check_method=pass_all
12057   ;;
12058
12059 freebsd* | dragonfly*)
12060   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12061     case $host_cpu in
12062     i*86 )
12063       # Not sure whether the presence of OpenBSD here was a mistake.
12064       # Let's accept both of them until this is cleared up.
12065       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12066       lt_cv_file_magic_cmd=/usr/bin/file
12067       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12068       ;;
12069     esac
12070   else
12071     lt_cv_deplibs_check_method=pass_all
12072   fi
12073   ;;
12074
12075 gnu*)
12076   lt_cv_deplibs_check_method=pass_all
12077   ;;
12078
12079 haiku*)
12080   lt_cv_deplibs_check_method=pass_all
12081   ;;
12082
12083 hpux10.20* | hpux11*)
12084   lt_cv_file_magic_cmd=/usr/bin/file
12085   case $host_cpu in
12086   ia64*)
12087     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12088     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12089     ;;
12090   hppa*64*)
12091     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]'
12092     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12093     ;;
12094   *)
12095     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12096     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12097     ;;
12098   esac
12099   ;;
12100
12101 interix[3-9]*)
12102   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12103   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12104   ;;
12105
12106 irix5* | irix6* | nonstopux*)
12107   case $LD in
12108   *-32|*"-32 ") libmagic=32-bit;;
12109   *-n32|*"-n32 ") libmagic=N32;;
12110   *-64|*"-64 ") libmagic=64-bit;;
12111   *) libmagic=never-match;;
12112   esac
12113   lt_cv_deplibs_check_method=pass_all
12114   ;;
12115
12116 # This must be Linux ELF.
12117 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12118   lt_cv_deplibs_check_method=pass_all
12119   ;;
12120
12121 netbsd*)
12122   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12123     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12124   else
12125     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12126   fi
12127   ;;
12128
12129 newos6*)
12130   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12131   lt_cv_file_magic_cmd=/usr/bin/file
12132   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12133   ;;
12134
12135 *nto* | *qnx*)
12136   lt_cv_deplibs_check_method=pass_all
12137   ;;
12138
12139 openbsd*)
12140   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12141     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12142   else
12143     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12144   fi
12145   ;;
12146
12147 osf3* | osf4* | osf5*)
12148   lt_cv_deplibs_check_method=pass_all
12149   ;;
12150
12151 rdos*)
12152   lt_cv_deplibs_check_method=pass_all
12153   ;;
12154
12155 solaris*)
12156   lt_cv_deplibs_check_method=pass_all
12157   ;;
12158
12159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12160   lt_cv_deplibs_check_method=pass_all
12161   ;;
12162
12163 sysv4 | sysv4.3*)
12164   case $host_vendor in
12165   motorola)
12166     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]'
12167     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12168     ;;
12169   ncr)
12170     lt_cv_deplibs_check_method=pass_all
12171     ;;
12172   sequent)
12173     lt_cv_file_magic_cmd='/bin/file'
12174     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12175     ;;
12176   sni)
12177     lt_cv_file_magic_cmd='/bin/file'
12178     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12179     lt_cv_file_magic_test_file=/lib/libc.so
12180     ;;
12181   siemens)
12182     lt_cv_deplibs_check_method=pass_all
12183     ;;
12184   pc)
12185     lt_cv_deplibs_check_method=pass_all
12186     ;;
12187   esac
12188   ;;
12189
12190 tpf*)
12191   lt_cv_deplibs_check_method=pass_all
12192   ;;
12193 esac
12194
12195 fi
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12197 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12198 file_magic_cmd=$lt_cv_file_magic_cmd
12199 deplibs_check_method=$lt_cv_deplibs_check_method
12200 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213 if test -n "$ac_tool_prefix"; then
12214   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12215 set dummy ${ac_tool_prefix}ar; ac_word=$2
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12217 $as_echo_n "checking for $ac_word... " >&6; }
12218 if test "${ac_cv_prog_AR+set}" = set; then :
12219   $as_echo_n "(cached) " >&6
12220 else
12221   if test -n "$AR"; then
12222   ac_cv_prog_AR="$AR" # Let the user override the test.
12223 else
12224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225 for as_dir in $PATH
12226 do
12227   IFS=$as_save_IFS
12228   test -z "$as_dir" && as_dir=.
12229     for ac_exec_ext in '' $ac_executable_extensions; do
12230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12231     ac_cv_prog_AR="${ac_tool_prefix}ar"
12232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12233     break 2
12234   fi
12235 done
12236   done
12237 IFS=$as_save_IFS
12238
12239 fi
12240 fi
12241 AR=$ac_cv_prog_AR
12242 if test -n "$AR"; then
12243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12244 $as_echo "$AR" >&6; }
12245 else
12246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247 $as_echo "no" >&6; }
12248 fi
12249
12250
12251 fi
12252 if test -z "$ac_cv_prog_AR"; then
12253   ac_ct_AR=$AR
12254   # Extract the first word of "ar", so it can be a program name with args.
12255 set dummy ar; ac_word=$2
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12257 $as_echo_n "checking for $ac_word... " >&6; }
12258 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12259   $as_echo_n "(cached) " >&6
12260 else
12261   if test -n "$ac_ct_AR"; then
12262   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12263 else
12264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265 for as_dir in $PATH
12266 do
12267   IFS=$as_save_IFS
12268   test -z "$as_dir" && as_dir=.
12269     for ac_exec_ext in '' $ac_executable_extensions; do
12270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12271     ac_cv_prog_ac_ct_AR="ar"
12272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12273     break 2
12274   fi
12275 done
12276   done
12277 IFS=$as_save_IFS
12278
12279 fi
12280 fi
12281 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12282 if test -n "$ac_ct_AR"; then
12283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12284 $as_echo "$ac_ct_AR" >&6; }
12285 else
12286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12288 fi
12289
12290   if test "x$ac_ct_AR" = x; then
12291     AR="false"
12292   else
12293     case $cross_compiling:$ac_tool_warned in
12294 yes:)
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12297 ac_tool_warned=yes ;;
12298 esac
12299     AR=$ac_ct_AR
12300   fi
12301 else
12302   AR="$ac_cv_prog_AR"
12303 fi
12304
12305 test -z "$AR" && AR=ar
12306 test -z "$AR_FLAGS" && AR_FLAGS=cru
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318 if test -n "$ac_tool_prefix"; then
12319   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12320 set dummy ${ac_tool_prefix}strip; ac_word=$2
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12322 $as_echo_n "checking for $ac_word... " >&6; }
12323 if test "${ac_cv_prog_STRIP+set}" = set; then :
12324   $as_echo_n "(cached) " >&6
12325 else
12326   if test -n "$STRIP"; then
12327   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12328 else
12329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330 for as_dir in $PATH
12331 do
12332   IFS=$as_save_IFS
12333   test -z "$as_dir" && as_dir=.
12334     for ac_exec_ext in '' $ac_executable_extensions; do
12335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12336     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12338     break 2
12339   fi
12340 done
12341   done
12342 IFS=$as_save_IFS
12343
12344 fi
12345 fi
12346 STRIP=$ac_cv_prog_STRIP
12347 if test -n "$STRIP"; then
12348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12349 $as_echo "$STRIP" >&6; }
12350 else
12351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12353 fi
12354
12355
12356 fi
12357 if test -z "$ac_cv_prog_STRIP"; then
12358   ac_ct_STRIP=$STRIP
12359   # Extract the first word of "strip", so it can be a program name with args.
12360 set dummy strip; ac_word=$2
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12362 $as_echo_n "checking for $ac_word... " >&6; }
12363 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12364   $as_echo_n "(cached) " >&6
12365 else
12366   if test -n "$ac_ct_STRIP"; then
12367   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12368 else
12369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370 for as_dir in $PATH
12371 do
12372   IFS=$as_save_IFS
12373   test -z "$as_dir" && as_dir=.
12374     for ac_exec_ext in '' $ac_executable_extensions; do
12375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12376     ac_cv_prog_ac_ct_STRIP="strip"
12377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12378     break 2
12379   fi
12380 done
12381   done
12382 IFS=$as_save_IFS
12383
12384 fi
12385 fi
12386 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12387 if test -n "$ac_ct_STRIP"; then
12388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12389 $as_echo "$ac_ct_STRIP" >&6; }
12390 else
12391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12393 fi
12394
12395   if test "x$ac_ct_STRIP" = x; then
12396     STRIP=":"
12397   else
12398     case $cross_compiling:$ac_tool_warned in
12399 yes:)
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12402 ac_tool_warned=yes ;;
12403 esac
12404     STRIP=$ac_ct_STRIP
12405   fi
12406 else
12407   STRIP="$ac_cv_prog_STRIP"
12408 fi
12409
12410 test -z "$STRIP" && STRIP=:
12411
12412
12413
12414
12415
12416
12417 if test -n "$ac_tool_prefix"; then
12418   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12419 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12421 $as_echo_n "checking for $ac_word... " >&6; }
12422 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12423   $as_echo_n "(cached) " >&6
12424 else
12425   if test -n "$RANLIB"; then
12426   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12427 else
12428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429 for as_dir in $PATH
12430 do
12431   IFS=$as_save_IFS
12432   test -z "$as_dir" && as_dir=.
12433     for ac_exec_ext in '' $ac_executable_extensions; do
12434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12435     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12437     break 2
12438   fi
12439 done
12440   done
12441 IFS=$as_save_IFS
12442
12443 fi
12444 fi
12445 RANLIB=$ac_cv_prog_RANLIB
12446 if test -n "$RANLIB"; then
12447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12448 $as_echo "$RANLIB" >&6; }
12449 else
12450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12451 $as_echo "no" >&6; }
12452 fi
12453
12454
12455 fi
12456 if test -z "$ac_cv_prog_RANLIB"; then
12457   ac_ct_RANLIB=$RANLIB
12458   # Extract the first word of "ranlib", so it can be a program name with args.
12459 set dummy ranlib; ac_word=$2
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12461 $as_echo_n "checking for $ac_word... " >&6; }
12462 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12463   $as_echo_n "(cached) " >&6
12464 else
12465   if test -n "$ac_ct_RANLIB"; then
12466   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12467 else
12468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469 for as_dir in $PATH
12470 do
12471   IFS=$as_save_IFS
12472   test -z "$as_dir" && as_dir=.
12473     for ac_exec_ext in '' $ac_executable_extensions; do
12474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12475     ac_cv_prog_ac_ct_RANLIB="ranlib"
12476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12477     break 2
12478   fi
12479 done
12480   done
12481 IFS=$as_save_IFS
12482
12483 fi
12484 fi
12485 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12486 if test -n "$ac_ct_RANLIB"; then
12487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12488 $as_echo "$ac_ct_RANLIB" >&6; }
12489 else
12490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491 $as_echo "no" >&6; }
12492 fi
12493
12494   if test "x$ac_ct_RANLIB" = x; then
12495     RANLIB=":"
12496   else
12497     case $cross_compiling:$ac_tool_warned in
12498 yes:)
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12501 ac_tool_warned=yes ;;
12502 esac
12503     RANLIB=$ac_ct_RANLIB
12504   fi
12505 else
12506   RANLIB="$ac_cv_prog_RANLIB"
12507 fi
12508
12509 test -z "$RANLIB" && RANLIB=:
12510
12511
12512
12513
12514
12515
12516 # Determine commands to create old-style static archives.
12517 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12518 old_postinstall_cmds='chmod 644 $oldlib'
12519 old_postuninstall_cmds=
12520
12521 if test -n "$RANLIB"; then
12522   case $host_os in
12523   openbsd*)
12524     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12525     ;;
12526   *)
12527     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12528     ;;
12529   esac
12530   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12531 fi
12532
12533 case $host_os in
12534   darwin*)
12535     lock_old_archive_extraction=yes ;;
12536   *)
12537     lock_old_archive_extraction=no ;;
12538 esac
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578 # If no C compiler was specified, use CC.
12579 LTCC=${LTCC-"$CC"}
12580
12581 # If no C compiler flags were specified, use CFLAGS.
12582 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12583
12584 # Allow CC to be a program name with arguments.
12585 compiler=$CC
12586
12587
12588 # Check for command to grab the raw symbol name followed by C symbol from nm.
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12590 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12591 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12592   $as_echo_n "(cached) " >&6
12593 else
12594
12595 # These are sane defaults that work on at least a few old systems.
12596 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12597
12598 # Character class describing NM global symbol codes.
12599 symcode='[BCDEGRST]'
12600
12601 # Regexp to match symbols that can be accessed directly from C.
12602 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12603
12604 # Define system-specific variables.
12605 case $host_os in
12606 aix*)
12607   symcode='[BCDT]'
12608   ;;
12609 cygwin* | mingw* | pw32* | cegcc*)
12610   symcode='[ABCDGISTW]'
12611   ;;
12612 hpux*)
12613   if test "$host_cpu" = ia64; then
12614     symcode='[ABCDEGRST]'
12615   fi
12616   ;;
12617 irix* | nonstopux*)
12618   symcode='[BCDEGRST]'
12619   ;;
12620 osf*)
12621   symcode='[BCDEGQRST]'
12622   ;;
12623 solaris*)
12624   symcode='[BDRT]'
12625   ;;
12626 sco3.2v5*)
12627   symcode='[DT]'
12628   ;;
12629 sysv4.2uw2*)
12630   symcode='[DT]'
12631   ;;
12632 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12633   symcode='[ABDT]'
12634   ;;
12635 sysv4)
12636   symcode='[DFNSTU]'
12637   ;;
12638 esac
12639
12640 # If we're using GNU nm, then use its standard symbol codes.
12641 case `$NM -V 2>&1` in
12642 *GNU* | *'with BFD'*)
12643   symcode='[ABCDGIRSTW]' ;;
12644 esac
12645
12646 # Transform an extracted symbol line into a proper C declaration.
12647 # Some systems (esp. on ia64) link data and code symbols differently,
12648 # so use this general approach.
12649 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12650
12651 # Transform an extracted symbol line into symbol name and symbol address
12652 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12653 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'"
12654
12655 # Handle CRLF in mingw tool chain
12656 opt_cr=
12657 case $build_os in
12658 mingw*)
12659   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12660   ;;
12661 esac
12662
12663 # Try without a prefix underscore, then with it.
12664 for ac_symprfx in "" "_"; do
12665
12666   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12667   symxfrm="\\1 $ac_symprfx\\2 \\2"
12668
12669   # Write the raw and C identifiers.
12670   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12671     # Fake it for dumpbin and say T for any non-static function
12672     # and D for any global variable.
12673     # Also find C++ and __fastcall symbols from MSVC++,
12674     # which start with @ or ?.
12675     lt_cv_sys_global_symbol_pipe="$AWK '"\
12676 "     {last_section=section; section=\$ 3};"\
12677 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12678 "     \$ 0!~/External *\|/{next};"\
12679 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12680 "     {if(hide[section]) next};"\
12681 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12682 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12683 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12684 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12685 "     ' prfx=^$ac_symprfx"
12686   else
12687     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12688   fi
12689
12690   # Check to see that the pipe works correctly.
12691   pipe_works=no
12692
12693   rm -f conftest*
12694   cat > conftest.$ac_ext <<_LT_EOF
12695 #ifdef __cplusplus
12696 extern "C" {
12697 #endif
12698 char nm_test_var;
12699 void nm_test_func(void);
12700 void nm_test_func(void){}
12701 #ifdef __cplusplus
12702 }
12703 #endif
12704 int main(){nm_test_var='a';nm_test_func();return(0);}
12705 _LT_EOF
12706
12707   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12708   (eval $ac_compile) 2>&5
12709   ac_status=$?
12710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12711   test $ac_status = 0; }; then
12712     # Now try to grab the symbols.
12713     nlist=conftest.nm
12714     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12715   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12716   ac_status=$?
12717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12718   test $ac_status = 0; } && test -s "$nlist"; then
12719       # Try sorting and uniquifying the output.
12720       if sort "$nlist" | uniq > "$nlist"T; then
12721         mv -f "$nlist"T "$nlist"
12722       else
12723         rm -f "$nlist"T
12724       fi
12725
12726       # Make sure that we snagged all the symbols we need.
12727       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12728         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12729           cat <<_LT_EOF > conftest.$ac_ext
12730 #ifdef __cplusplus
12731 extern "C" {
12732 #endif
12733
12734 _LT_EOF
12735           # Now generate the symbol file.
12736           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12737
12738           cat <<_LT_EOF >> conftest.$ac_ext
12739
12740 /* The mapping between symbol names and symbols.  */
12741 const struct {
12742   const char *name;
12743   void       *address;
12744 }
12745 lt__PROGRAM__LTX_preloaded_symbols[] =
12746 {
12747   { "@PROGRAM@", (void *) 0 },
12748 _LT_EOF
12749           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12750           cat <<\_LT_EOF >> conftest.$ac_ext
12751   {0, (void *) 0}
12752 };
12753
12754 /* This works around a problem in FreeBSD linker */
12755 #ifdef FREEBSD_WORKAROUND
12756 static const void *lt_preloaded_setup() {
12757   return lt__PROGRAM__LTX_preloaded_symbols;
12758 }
12759 #endif
12760
12761 #ifdef __cplusplus
12762 }
12763 #endif
12764 _LT_EOF
12765           # Now try linking the two files.
12766           mv conftest.$ac_objext conftstm.$ac_objext
12767           lt_save_LIBS="$LIBS"
12768           lt_save_CFLAGS="$CFLAGS"
12769           LIBS="conftstm.$ac_objext"
12770           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12771           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12772   (eval $ac_link) 2>&5
12773   ac_status=$?
12774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12775   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12776             pipe_works=yes
12777           fi
12778           LIBS="$lt_save_LIBS"
12779           CFLAGS="$lt_save_CFLAGS"
12780         else
12781           echo "cannot find nm_test_func in $nlist" >&5
12782         fi
12783       else
12784         echo "cannot find nm_test_var in $nlist" >&5
12785       fi
12786     else
12787       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12788     fi
12789   else
12790     echo "$progname: failed program was:" >&5
12791     cat conftest.$ac_ext >&5
12792   fi
12793   rm -rf conftest* conftst*
12794
12795   # Do not use the global_symbol_pipe unless it works.
12796   if test "$pipe_works" = yes; then
12797     break
12798   else
12799     lt_cv_sys_global_symbol_pipe=
12800   fi
12801 done
12802
12803 fi
12804
12805 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12806   lt_cv_sys_global_symbol_to_cdecl=
12807 fi
12808 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12810 $as_echo "failed" >&6; }
12811 else
12812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12813 $as_echo "ok" >&6; }
12814 fi
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837 # Check whether --enable-libtool-lock was given.
12838 if test "${enable_libtool_lock+set}" = set; then :
12839   enableval=$enable_libtool_lock;
12840 fi
12841
12842 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12843
12844 # Some flags need to be propagated to the compiler or linker for good
12845 # libtool support.
12846 case $host in
12847 ia64-*-hpux*)
12848   # Find out which ABI we are using.
12849   echo 'int i;' > conftest.$ac_ext
12850   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12851   (eval $ac_compile) 2>&5
12852   ac_status=$?
12853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12854   test $ac_status = 0; }; then
12855     case `/usr/bin/file conftest.$ac_objext` in
12856       *ELF-32*)
12857         HPUX_IA64_MODE="32"
12858         ;;
12859       *ELF-64*)
12860         HPUX_IA64_MODE="64"
12861         ;;
12862     esac
12863   fi
12864   rm -rf conftest*
12865   ;;
12866 *-*-irix6*)
12867   # Find out which ABI we are using.
12868   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12869   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12870   (eval $ac_compile) 2>&5
12871   ac_status=$?
12872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12873   test $ac_status = 0; }; then
12874     if test "$lt_cv_prog_gnu_ld" = yes; then
12875       case `/usr/bin/file conftest.$ac_objext` in
12876         *32-bit*)
12877           LD="${LD-ld} -melf32bsmip"
12878           ;;
12879         *N32*)
12880           LD="${LD-ld} -melf32bmipn32"
12881           ;;
12882         *64-bit*)
12883           LD="${LD-ld} -melf64bmip"
12884         ;;
12885       esac
12886     else
12887       case `/usr/bin/file conftest.$ac_objext` in
12888         *32-bit*)
12889           LD="${LD-ld} -32"
12890           ;;
12891         *N32*)
12892           LD="${LD-ld} -n32"
12893           ;;
12894         *64-bit*)
12895           LD="${LD-ld} -64"
12896           ;;
12897       esac
12898     fi
12899   fi
12900   rm -rf conftest*
12901   ;;
12902
12903 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12904 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12905   # Find out which ABI we are using.
12906   echo 'int i;' > conftest.$ac_ext
12907   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12908   (eval $ac_compile) 2>&5
12909   ac_status=$?
12910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12911   test $ac_status = 0; }; then
12912     case `/usr/bin/file conftest.o` in
12913       *32-bit*)
12914         case $host in
12915           x86_64-*kfreebsd*-gnu)
12916             LD="${LD-ld} -m elf_i386_fbsd"
12917             ;;
12918           x86_64-*linux*)
12919             LD="${LD-ld} -m elf_i386"
12920             ;;
12921           ppc64-*linux*|powerpc64-*linux*)
12922             LD="${LD-ld} -m elf32ppclinux"
12923             ;;
12924           s390x-*linux*)
12925             LD="${LD-ld} -m elf_s390"
12926             ;;
12927           sparc64-*linux*)
12928             LD="${LD-ld} -m elf32_sparc"
12929             ;;
12930         esac
12931         ;;
12932       *64-bit*)
12933         case $host in
12934           x86_64-*kfreebsd*-gnu)
12935             LD="${LD-ld} -m elf_x86_64_fbsd"
12936             ;;
12937           x86_64-*linux*)
12938             LD="${LD-ld} -m elf_x86_64"
12939             ;;
12940           ppc*-*linux*|powerpc*-*linux*)
12941             LD="${LD-ld} -m elf64ppc"
12942             ;;
12943           s390*-*linux*|s390*-*tpf*)
12944             LD="${LD-ld} -m elf64_s390"
12945             ;;
12946           sparc*-*linux*)
12947             LD="${LD-ld} -m elf64_sparc"
12948             ;;
12949         esac
12950         ;;
12951     esac
12952   fi
12953   rm -rf conftest*
12954   ;;
12955
12956 *-*-sco3.2v5*)
12957   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12958   SAVE_CFLAGS="$CFLAGS"
12959   CFLAGS="$CFLAGS -belf"
12960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12961 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12962 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12963   $as_echo_n "(cached) " >&6
12964 else
12965   ac_ext=c
12966 ac_cpp='$CPP $CPPFLAGS'
12967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12970
12971      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h.  */
12973
12974 int
12975 main ()
12976 {
12977
12978   ;
12979   return 0;
12980 }
12981 _ACEOF
12982 if ac_fn_c_try_link "$LINENO"; then :
12983   lt_cv_cc_needs_belf=yes
12984 else
12985   lt_cv_cc_needs_belf=no
12986 fi
12987 rm -f core conftest.err conftest.$ac_objext \
12988     conftest$ac_exeext conftest.$ac_ext
12989      ac_ext=c
12990 ac_cpp='$CPP $CPPFLAGS'
12991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12994
12995 fi
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12997 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12998   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12999     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13000     CFLAGS="$SAVE_CFLAGS"
13001   fi
13002   ;;
13003 sparc*-*solaris*)
13004   # Find out which ABI we are using.
13005   echo 'int i;' > conftest.$ac_ext
13006   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13007   (eval $ac_compile) 2>&5
13008   ac_status=$?
13009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13010   test $ac_status = 0; }; then
13011     case `/usr/bin/file conftest.o` in
13012     *64-bit*)
13013       case $lt_cv_prog_gnu_ld in
13014       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13015       *)
13016         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13017           LD="${LD-ld} -64"
13018         fi
13019         ;;
13020       esac
13021       ;;
13022     esac
13023   fi
13024   rm -rf conftest*
13025   ;;
13026 esac
13027
13028 need_locks="$enable_libtool_lock"
13029
13030
13031   case $host_os in
13032     rhapsody* | darwin*)
13033     if test -n "$ac_tool_prefix"; then
13034   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13035 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13037 $as_echo_n "checking for $ac_word... " >&6; }
13038 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13039   $as_echo_n "(cached) " >&6
13040 else
13041   if test -n "$DSYMUTIL"; then
13042   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13043 else
13044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045 for as_dir in $PATH
13046 do
13047   IFS=$as_save_IFS
13048   test -z "$as_dir" && as_dir=.
13049     for ac_exec_ext in '' $ac_executable_extensions; do
13050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13051     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13053     break 2
13054   fi
13055 done
13056   done
13057 IFS=$as_save_IFS
13058
13059 fi
13060 fi
13061 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13062 if test -n "$DSYMUTIL"; then
13063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13064 $as_echo "$DSYMUTIL" >&6; }
13065 else
13066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067 $as_echo "no" >&6; }
13068 fi
13069
13070
13071 fi
13072 if test -z "$ac_cv_prog_DSYMUTIL"; then
13073   ac_ct_DSYMUTIL=$DSYMUTIL
13074   # Extract the first word of "dsymutil", so it can be a program name with args.
13075 set dummy dsymutil; ac_word=$2
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13077 $as_echo_n "checking for $ac_word... " >&6; }
13078 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13079   $as_echo_n "(cached) " >&6
13080 else
13081   if test -n "$ac_ct_DSYMUTIL"; then
13082   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13083 else
13084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13085 for as_dir in $PATH
13086 do
13087   IFS=$as_save_IFS
13088   test -z "$as_dir" && as_dir=.
13089     for ac_exec_ext in '' $ac_executable_extensions; do
13090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13091     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13093     break 2
13094   fi
13095 done
13096   done
13097 IFS=$as_save_IFS
13098
13099 fi
13100 fi
13101 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13102 if test -n "$ac_ct_DSYMUTIL"; then
13103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13104 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13105 else
13106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13107 $as_echo "no" >&6; }
13108 fi
13109
13110   if test "x$ac_ct_DSYMUTIL" = x; then
13111     DSYMUTIL=":"
13112   else
13113     case $cross_compiling:$ac_tool_warned in
13114 yes:)
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13117 ac_tool_warned=yes ;;
13118 esac
13119     DSYMUTIL=$ac_ct_DSYMUTIL
13120   fi
13121 else
13122   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13123 fi
13124
13125     if test -n "$ac_tool_prefix"; then
13126   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13127 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13129 $as_echo_n "checking for $ac_word... " >&6; }
13130 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13131   $as_echo_n "(cached) " >&6
13132 else
13133   if test -n "$NMEDIT"; then
13134   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13135 else
13136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137 for as_dir in $PATH
13138 do
13139   IFS=$as_save_IFS
13140   test -z "$as_dir" && as_dir=.
13141     for ac_exec_ext in '' $ac_executable_extensions; do
13142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13143     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13145     break 2
13146   fi
13147 done
13148   done
13149 IFS=$as_save_IFS
13150
13151 fi
13152 fi
13153 NMEDIT=$ac_cv_prog_NMEDIT
13154 if test -n "$NMEDIT"; then
13155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13156 $as_echo "$NMEDIT" >&6; }
13157 else
13158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159 $as_echo "no" >&6; }
13160 fi
13161
13162
13163 fi
13164 if test -z "$ac_cv_prog_NMEDIT"; then
13165   ac_ct_NMEDIT=$NMEDIT
13166   # Extract the first word of "nmedit", so it can be a program name with args.
13167 set dummy nmedit; ac_word=$2
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13169 $as_echo_n "checking for $ac_word... " >&6; }
13170 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13171   $as_echo_n "(cached) " >&6
13172 else
13173   if test -n "$ac_ct_NMEDIT"; then
13174   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13175 else
13176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13177 for as_dir in $PATH
13178 do
13179   IFS=$as_save_IFS
13180   test -z "$as_dir" && as_dir=.
13181     for ac_exec_ext in '' $ac_executable_extensions; do
13182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13183     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13185     break 2
13186   fi
13187 done
13188   done
13189 IFS=$as_save_IFS
13190
13191 fi
13192 fi
13193 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13194 if test -n "$ac_ct_NMEDIT"; then
13195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13196 $as_echo "$ac_ct_NMEDIT" >&6; }
13197 else
13198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199 $as_echo "no" >&6; }
13200 fi
13201
13202   if test "x$ac_ct_NMEDIT" = x; then
13203     NMEDIT=":"
13204   else
13205     case $cross_compiling:$ac_tool_warned in
13206 yes:)
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13209 ac_tool_warned=yes ;;
13210 esac
13211     NMEDIT=$ac_ct_NMEDIT
13212   fi
13213 else
13214   NMEDIT="$ac_cv_prog_NMEDIT"
13215 fi
13216
13217     if test -n "$ac_tool_prefix"; then
13218   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13219 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13221 $as_echo_n "checking for $ac_word... " >&6; }
13222 if test "${ac_cv_prog_LIPO+set}" = set; then :
13223   $as_echo_n "(cached) " >&6
13224 else
13225   if test -n "$LIPO"; then
13226   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13227 else
13228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13229 for as_dir in $PATH
13230 do
13231   IFS=$as_save_IFS
13232   test -z "$as_dir" && as_dir=.
13233     for ac_exec_ext in '' $ac_executable_extensions; do
13234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13235     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13237     break 2
13238   fi
13239 done
13240   done
13241 IFS=$as_save_IFS
13242
13243 fi
13244 fi
13245 LIPO=$ac_cv_prog_LIPO
13246 if test -n "$LIPO"; then
13247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13248 $as_echo "$LIPO" >&6; }
13249 else
13250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13251 $as_echo "no" >&6; }
13252 fi
13253
13254
13255 fi
13256 if test -z "$ac_cv_prog_LIPO"; then
13257   ac_ct_LIPO=$LIPO
13258   # Extract the first word of "lipo", so it can be a program name with args.
13259 set dummy lipo; ac_word=$2
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13261 $as_echo_n "checking for $ac_word... " >&6; }
13262 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13263   $as_echo_n "(cached) " >&6
13264 else
13265   if test -n "$ac_ct_LIPO"; then
13266   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13267 else
13268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13269 for as_dir in $PATH
13270 do
13271   IFS=$as_save_IFS
13272   test -z "$as_dir" && as_dir=.
13273     for ac_exec_ext in '' $ac_executable_extensions; do
13274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13275     ac_cv_prog_ac_ct_LIPO="lipo"
13276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13277     break 2
13278   fi
13279 done
13280   done
13281 IFS=$as_save_IFS
13282
13283 fi
13284 fi
13285 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13286 if test -n "$ac_ct_LIPO"; then
13287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13288 $as_echo "$ac_ct_LIPO" >&6; }
13289 else
13290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13291 $as_echo "no" >&6; }
13292 fi
13293
13294   if test "x$ac_ct_LIPO" = x; then
13295     LIPO=":"
13296   else
13297     case $cross_compiling:$ac_tool_warned in
13298 yes:)
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13301 ac_tool_warned=yes ;;
13302 esac
13303     LIPO=$ac_ct_LIPO
13304   fi
13305 else
13306   LIPO="$ac_cv_prog_LIPO"
13307 fi
13308
13309     if test -n "$ac_tool_prefix"; then
13310   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13311 set dummy ${ac_tool_prefix}otool; ac_word=$2
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13313 $as_echo_n "checking for $ac_word... " >&6; }
13314 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13315   $as_echo_n "(cached) " >&6
13316 else
13317   if test -n "$OTOOL"; then
13318   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13319 else
13320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321 for as_dir in $PATH
13322 do
13323   IFS=$as_save_IFS
13324   test -z "$as_dir" && as_dir=.
13325     for ac_exec_ext in '' $ac_executable_extensions; do
13326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13327     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13329     break 2
13330   fi
13331 done
13332   done
13333 IFS=$as_save_IFS
13334
13335 fi
13336 fi
13337 OTOOL=$ac_cv_prog_OTOOL
13338 if test -n "$OTOOL"; then
13339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13340 $as_echo "$OTOOL" >&6; }
13341 else
13342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343 $as_echo "no" >&6; }
13344 fi
13345
13346
13347 fi
13348 if test -z "$ac_cv_prog_OTOOL"; then
13349   ac_ct_OTOOL=$OTOOL
13350   # Extract the first word of "otool", so it can be a program name with args.
13351 set dummy otool; ac_word=$2
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13353 $as_echo_n "checking for $ac_word... " >&6; }
13354 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13355   $as_echo_n "(cached) " >&6
13356 else
13357   if test -n "$ac_ct_OTOOL"; then
13358   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13359 else
13360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13361 for as_dir in $PATH
13362 do
13363   IFS=$as_save_IFS
13364   test -z "$as_dir" && as_dir=.
13365     for ac_exec_ext in '' $ac_executable_extensions; do
13366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13367     ac_cv_prog_ac_ct_OTOOL="otool"
13368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13369     break 2
13370   fi
13371 done
13372   done
13373 IFS=$as_save_IFS
13374
13375 fi
13376 fi
13377 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13378 if test -n "$ac_ct_OTOOL"; then
13379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13380 $as_echo "$ac_ct_OTOOL" >&6; }
13381 else
13382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13383 $as_echo "no" >&6; }
13384 fi
13385
13386   if test "x$ac_ct_OTOOL" = x; then
13387     OTOOL=":"
13388   else
13389     case $cross_compiling:$ac_tool_warned in
13390 yes:)
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13393 ac_tool_warned=yes ;;
13394 esac
13395     OTOOL=$ac_ct_OTOOL
13396   fi
13397 else
13398   OTOOL="$ac_cv_prog_OTOOL"
13399 fi
13400
13401     if test -n "$ac_tool_prefix"; then
13402   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13403 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13405 $as_echo_n "checking for $ac_word... " >&6; }
13406 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13407   $as_echo_n "(cached) " >&6
13408 else
13409   if test -n "$OTOOL64"; then
13410   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13411 else
13412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13413 for as_dir in $PATH
13414 do
13415   IFS=$as_save_IFS
13416   test -z "$as_dir" && as_dir=.
13417     for ac_exec_ext in '' $ac_executable_extensions; do
13418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13419     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13421     break 2
13422   fi
13423 done
13424   done
13425 IFS=$as_save_IFS
13426
13427 fi
13428 fi
13429 OTOOL64=$ac_cv_prog_OTOOL64
13430 if test -n "$OTOOL64"; then
13431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13432 $as_echo "$OTOOL64" >&6; }
13433 else
13434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13435 $as_echo "no" >&6; }
13436 fi
13437
13438
13439 fi
13440 if test -z "$ac_cv_prog_OTOOL64"; then
13441   ac_ct_OTOOL64=$OTOOL64
13442   # Extract the first word of "otool64", so it can be a program name with args.
13443 set dummy otool64; ac_word=$2
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13445 $as_echo_n "checking for $ac_word... " >&6; }
13446 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13447   $as_echo_n "(cached) " >&6
13448 else
13449   if test -n "$ac_ct_OTOOL64"; then
13450   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13451 else
13452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13453 for as_dir in $PATH
13454 do
13455   IFS=$as_save_IFS
13456   test -z "$as_dir" && as_dir=.
13457     for ac_exec_ext in '' $ac_executable_extensions; do
13458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13459     ac_cv_prog_ac_ct_OTOOL64="otool64"
13460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13461     break 2
13462   fi
13463 done
13464   done
13465 IFS=$as_save_IFS
13466
13467 fi
13468 fi
13469 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13470 if test -n "$ac_ct_OTOOL64"; then
13471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13472 $as_echo "$ac_ct_OTOOL64" >&6; }
13473 else
13474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13475 $as_echo "no" >&6; }
13476 fi
13477
13478   if test "x$ac_ct_OTOOL64" = x; then
13479     OTOOL64=":"
13480   else
13481     case $cross_compiling:$ac_tool_warned in
13482 yes:)
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13485 ac_tool_warned=yes ;;
13486 esac
13487     OTOOL64=$ac_ct_OTOOL64
13488   fi
13489 else
13490   OTOOL64="$ac_cv_prog_OTOOL64"
13491 fi
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13520 $as_echo_n "checking for -single_module linker flag... " >&6; }
13521 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13522   $as_echo_n "(cached) " >&6
13523 else
13524   lt_cv_apple_cc_single_mod=no
13525       if test -z "${LT_MULTI_MODULE}"; then
13526         # By default we will add the -single_module flag. You can override
13527         # by either setting the environment variable LT_MULTI_MODULE
13528         # non-empty at configure time, or by adding -multi_module to the
13529         # link flags.
13530         rm -rf libconftest.dylib*
13531         echo "int foo(void){return 1;}" > conftest.c
13532         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13533 -dynamiclib -Wl,-single_module conftest.c" >&5
13534         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13535           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13536         _lt_result=$?
13537         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13538           lt_cv_apple_cc_single_mod=yes
13539         else
13540           cat conftest.err >&5
13541         fi
13542         rm -rf libconftest.dylib*
13543         rm -f conftest.*
13544       fi
13545 fi
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13547 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13549 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13550 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13551   $as_echo_n "(cached) " >&6
13552 else
13553   lt_cv_ld_exported_symbols_list=no
13554       save_LDFLAGS=$LDFLAGS
13555       echo "_main" > conftest.sym
13556       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13557       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h.  */
13559
13560 int
13561 main ()
13562 {
13563
13564   ;
13565   return 0;
13566 }
13567 _ACEOF
13568 if ac_fn_c_try_link "$LINENO"; then :
13569   lt_cv_ld_exported_symbols_list=yes
13570 else
13571   lt_cv_ld_exported_symbols_list=no
13572 fi
13573 rm -f core conftest.err conftest.$ac_objext \
13574     conftest$ac_exeext conftest.$ac_ext
13575         LDFLAGS="$save_LDFLAGS"
13576
13577 fi
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13579 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13580     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13581 $as_echo_n "checking for -force_load linker flag... " >&6; }
13582 if test "${lt_cv_ld_force_load+set}" = set; then :
13583   $as_echo_n "(cached) " >&6
13584 else
13585   lt_cv_ld_force_load=no
13586       cat > conftest.c << _LT_EOF
13587 int forced_loaded() { return 2;}
13588 _LT_EOF
13589       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13590       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13591       echo "$AR cru libconftest.a conftest.o" >&5
13592       $AR cru libconftest.a conftest.o 2>&5
13593       cat > conftest.c << _LT_EOF
13594 int main() { return 0;}
13595 _LT_EOF
13596       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13597       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13598       _lt_result=$?
13599       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13600         lt_cv_ld_force_load=yes
13601       else
13602         cat conftest.err >&5
13603       fi
13604         rm -f conftest.err libconftest.a conftest conftest.c
13605         rm -rf conftest.dSYM
13606
13607 fi
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13609 $as_echo "$lt_cv_ld_force_load" >&6; }
13610     case $host_os in
13611     rhapsody* | darwin1.[012])
13612       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13613     darwin1.*)
13614       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13615     darwin*) # darwin 5.x on
13616       # if running on 10.5 or later, the deployment target defaults
13617       # to the OS version, if on x86, and 10.4, the deployment
13618       # target defaults to 10.4. Don't you love it?
13619       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13620         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13621           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13622         10.[012]*)
13623           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13624         10.*)
13625           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13626       esac
13627     ;;
13628   esac
13629     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13630       _lt_dar_single_mod='$single_module'
13631     fi
13632     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13633       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13634     else
13635       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13636     fi
13637     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13638       _lt_dsymutil='~$DSYMUTIL $lib || :'
13639     else
13640       _lt_dsymutil=
13641     fi
13642     ;;
13643   esac
13644
13645 for ac_header in dlfcn.h
13646 do :
13647   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13648 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13649   cat >>confdefs.h <<_ACEOF
13650 #define HAVE_DLFCN_H 1
13651 _ACEOF
13652
13653 fi
13654 done
13655
13656
13657
13658
13659
13660
13661 # Set options
13662
13663
13664
13665         enable_dlopen=no
13666
13667
13668   enable_win32_dll=no
13669
13670
13671             # Check whether --enable-shared was given.
13672 if test "${enable_shared+set}" = set; then :
13673   enableval=$enable_shared; p=${PACKAGE-default}
13674     case $enableval in
13675     yes) enable_shared=yes ;;
13676     no) enable_shared=no ;;
13677     *)
13678       enable_shared=no
13679       # Look at the argument we got.  We use all the common list separators.
13680       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13681       for pkg in $enableval; do
13682         IFS="$lt_save_ifs"
13683         if test "X$pkg" = "X$p"; then
13684           enable_shared=yes
13685         fi
13686       done
13687       IFS="$lt_save_ifs"
13688       ;;
13689     esac
13690 else
13691   enable_shared=yes
13692 fi
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702   # Check whether --enable-static was given.
13703 if test "${enable_static+set}" = set; then :
13704   enableval=$enable_static; p=${PACKAGE-default}
13705     case $enableval in
13706     yes) enable_static=yes ;;
13707     no) enable_static=no ;;
13708     *)
13709      enable_static=no
13710       # Look at the argument we got.  We use all the common list separators.
13711       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13712       for pkg in $enableval; do
13713         IFS="$lt_save_ifs"
13714         if test "X$pkg" = "X$p"; then
13715           enable_static=yes
13716         fi
13717       done
13718       IFS="$lt_save_ifs"
13719       ;;
13720     esac
13721 else
13722   enable_static=yes
13723 fi
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734 # Check whether --with-pic was given.
13735 if test "${with_pic+set}" = set; then :
13736   withval=$with_pic; pic_mode="$withval"
13737 else
13738   pic_mode=default
13739 fi
13740
13741
13742 test -z "$pic_mode" && pic_mode=default
13743
13744
13745
13746
13747
13748
13749
13750   # Check whether --enable-fast-install was given.
13751 if test "${enable_fast_install+set}" = set; then :
13752   enableval=$enable_fast_install; p=${PACKAGE-default}
13753     case $enableval in
13754     yes) enable_fast_install=yes ;;
13755     no) enable_fast_install=no ;;
13756     *)
13757       enable_fast_install=no
13758       # Look at the argument we got.  We use all the common list separators.
13759       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13760       for pkg in $enableval; do
13761         IFS="$lt_save_ifs"
13762         if test "X$pkg" = "X$p"; then
13763           enable_fast_install=yes
13764         fi
13765       done
13766       IFS="$lt_save_ifs"
13767       ;;
13768     esac
13769 else
13770   enable_fast_install=yes
13771 fi
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783 # This can be used to rebuild libtool when needed
13784 LIBTOOL_DEPS="$ltmain"
13785
13786 # Always use our own libtool.
13787 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814 test -z "$LN_S" && LN_S="ln -s"
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829 if test -n "${ZSH_VERSION+set}" ; then
13830    setopt NO_GLOB_SUBST
13831 fi
13832
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13834 $as_echo_n "checking for objdir... " >&6; }
13835 if test "${lt_cv_objdir+set}" = set; then :
13836   $as_echo_n "(cached) " >&6
13837 else
13838   rm -f .libs 2>/dev/null
13839 mkdir .libs 2>/dev/null
13840 if test -d .libs; then
13841   lt_cv_objdir=.libs
13842 else
13843   # MS-DOS does not allow filenames that begin with a dot.
13844   lt_cv_objdir=_libs
13845 fi
13846 rmdir .libs 2>/dev/null
13847 fi
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13849 $as_echo "$lt_cv_objdir" >&6; }
13850 objdir=$lt_cv_objdir
13851
13852
13853
13854
13855
13856 cat >>confdefs.h <<_ACEOF
13857 #define LT_OBJDIR "$lt_cv_objdir/"
13858 _ACEOF
13859
13860
13861
13862
13863 case $host_os in
13864 aix3*)
13865   # AIX sometimes has problems with the GCC collect2 program.  For some
13866   # reason, if we set the COLLECT_NAMES environment variable, the problems
13867   # vanish in a puff of smoke.
13868   if test "X${COLLECT_NAMES+set}" != Xset; then
13869     COLLECT_NAMES=
13870     export COLLECT_NAMES
13871   fi
13872   ;;
13873 esac
13874
13875 # Global variables:
13876 ofile=libtool
13877 can_build_shared=yes
13878
13879 # All known linkers require a `.a' archive for static linking (except MSVC,
13880 # which needs '.lib').
13881 libext=a
13882
13883 with_gnu_ld="$lt_cv_prog_gnu_ld"
13884
13885 old_CC="$CC"
13886 old_CFLAGS="$CFLAGS"
13887
13888 # Set sane defaults for various variables
13889 test -z "$CC" && CC=cc
13890 test -z "$LTCC" && LTCC=$CC
13891 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13892 test -z "$LD" && LD=ld
13893 test -z "$ac_objext" && ac_objext=o
13894
13895 for cc_temp in $compiler""; do
13896   case $cc_temp in
13897     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13898     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13899     \-*) ;;
13900     *) break;;
13901   esac
13902 done
13903 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13904
13905
13906 # Only perform the check for file, if the check method requires it
13907 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13908 case $deplibs_check_method in
13909 file_magic*)
13910   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13911     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13912 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13913 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13914   $as_echo_n "(cached) " >&6
13915 else
13916   case $MAGIC_CMD in
13917 [\\/*] |  ?:[\\/]*)
13918   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13919   ;;
13920 *)
13921   lt_save_MAGIC_CMD="$MAGIC_CMD"
13922   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13923   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13924   for ac_dir in $ac_dummy; do
13925     IFS="$lt_save_ifs"
13926     test -z "$ac_dir" && ac_dir=.
13927     if test -f $ac_dir/${ac_tool_prefix}file; then
13928       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13929       if test -n "$file_magic_test_file"; then
13930         case $deplibs_check_method in
13931         "file_magic "*)
13932           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13933           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13934           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13935             $EGREP "$file_magic_regex" > /dev/null; then
13936             :
13937           else
13938             cat <<_LT_EOF 1>&2
13939
13940 *** Warning: the command libtool uses to detect shared libraries,
13941 *** $file_magic_cmd, produces output that libtool cannot recognize.
13942 *** The result is that libtool may fail to recognize shared libraries
13943 *** as such.  This will affect the creation of libtool libraries that
13944 *** depend on shared libraries, but programs linked with such libtool
13945 *** libraries will work regardless of this problem.  Nevertheless, you
13946 *** may want to report the problem to your system manager and/or to
13947 *** bug-libtool@gnu.org
13948
13949 _LT_EOF
13950           fi ;;
13951         esac
13952       fi
13953       break
13954     fi
13955   done
13956   IFS="$lt_save_ifs"
13957   MAGIC_CMD="$lt_save_MAGIC_CMD"
13958   ;;
13959 esac
13960 fi
13961
13962 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13963 if test -n "$MAGIC_CMD"; then
13964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13965 $as_echo "$MAGIC_CMD" >&6; }
13966 else
13967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13968 $as_echo "no" >&6; }
13969 fi
13970
13971
13972
13973
13974
13975 if test -z "$lt_cv_path_MAGIC_CMD"; then
13976   if test -n "$ac_tool_prefix"; then
13977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13978 $as_echo_n "checking for file... " >&6; }
13979 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13980   $as_echo_n "(cached) " >&6
13981 else
13982   case $MAGIC_CMD in
13983 [\\/*] |  ?:[\\/]*)
13984   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13985   ;;
13986 *)
13987   lt_save_MAGIC_CMD="$MAGIC_CMD"
13988   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13989   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13990   for ac_dir in $ac_dummy; do
13991     IFS="$lt_save_ifs"
13992     test -z "$ac_dir" && ac_dir=.
13993     if test -f $ac_dir/file; then
13994       lt_cv_path_MAGIC_CMD="$ac_dir/file"
13995       if test -n "$file_magic_test_file"; then
13996         case $deplibs_check_method in
13997         "file_magic "*)
13998           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13999           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14000           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14001             $EGREP "$file_magic_regex" > /dev/null; then
14002             :
14003           else
14004             cat <<_LT_EOF 1>&2
14005
14006 *** Warning: the command libtool uses to detect shared libraries,
14007 *** $file_magic_cmd, produces output that libtool cannot recognize.
14008 *** The result is that libtool may fail to recognize shared libraries
14009 *** as such.  This will affect the creation of libtool libraries that
14010 *** depend on shared libraries, but programs linked with such libtool
14011 *** libraries will work regardless of this problem.  Nevertheless, you
14012 *** may want to report the problem to your system manager and/or to
14013 *** bug-libtool@gnu.org
14014
14015 _LT_EOF
14016           fi ;;
14017         esac
14018       fi
14019       break
14020     fi
14021   done
14022   IFS="$lt_save_ifs"
14023   MAGIC_CMD="$lt_save_MAGIC_CMD"
14024   ;;
14025 esac
14026 fi
14027
14028 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14029 if test -n "$MAGIC_CMD"; then
14030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14031 $as_echo "$MAGIC_CMD" >&6; }
14032 else
14033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14034 $as_echo "no" >&6; }
14035 fi
14036
14037
14038   else
14039     MAGIC_CMD=:
14040   fi
14041 fi
14042
14043   fi
14044   ;;
14045 esac
14046
14047 # Use C for the default configuration in the libtool script
14048
14049 lt_save_CC="$CC"
14050 ac_ext=c
14051 ac_cpp='$CPP $CPPFLAGS'
14052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14055
14056
14057 # Source file extension for C test sources.
14058 ac_ext=c
14059
14060 # Object file extension for compiled C test sources.
14061 objext=o
14062 objext=$objext
14063
14064 # Code to be used in simple compile tests
14065 lt_simple_compile_test_code="int some_variable = 0;"
14066
14067 # Code to be used in simple link tests
14068 lt_simple_link_test_code='int main(){return(0);}'
14069
14070
14071
14072
14073
14074
14075
14076 # If no C compiler was specified, use CC.
14077 LTCC=${LTCC-"$CC"}
14078
14079 # If no C compiler flags were specified, use CFLAGS.
14080 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14081
14082 # Allow CC to be a program name with arguments.
14083 compiler=$CC
14084
14085 # Save the default compiler, since it gets overwritten when the other
14086 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14087 compiler_DEFAULT=$CC
14088
14089 # save warnings/boilerplate of simple test code
14090 ac_outfile=conftest.$ac_objext
14091 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14092 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14093 _lt_compiler_boilerplate=`cat conftest.err`
14094 $RM conftest*
14095
14096 ac_outfile=conftest.$ac_objext
14097 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14098 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14099 _lt_linker_boilerplate=`cat conftest.err`
14100 $RM -r conftest*
14101
14102
14103 ## CAVEAT EMPTOR:
14104 ## There is no encapsulation within the following macros, do not change
14105 ## the running order or otherwise move them around unless you know exactly
14106 ## what you are doing...
14107 if test -n "$compiler"; then
14108
14109 lt_prog_compiler_no_builtin_flag=
14110
14111 if test "$GCC" = yes; then
14112   case $cc_basename in
14113   nvcc*)
14114     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14115   *)
14116     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14117   esac
14118
14119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14120 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14121 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14122   $as_echo_n "(cached) " >&6
14123 else
14124   lt_cv_prog_compiler_rtti_exceptions=no
14125    ac_outfile=conftest.$ac_objext
14126    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14127    lt_compiler_flag="-fno-rtti -fno-exceptions"
14128    # Insert the option either (1) after the last *FLAGS variable, or
14129    # (2) before a word containing "conftest.", or (3) at the end.
14130    # Note that $ac_compile itself does not contain backslashes and begins
14131    # with a dollar sign (not a hyphen), so the echo should work correctly.
14132    # The option is referenced via a variable to avoid confusing sed.
14133    lt_compile=`echo "$ac_compile" | $SED \
14134    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14135    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14136    -e 's:$: $lt_compiler_flag:'`
14137    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14138    (eval "$lt_compile" 2>conftest.err)
14139    ac_status=$?
14140    cat conftest.err >&5
14141    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142    if (exit $ac_status) && test -s "$ac_outfile"; then
14143      # The compiler can only warn and ignore the option if not recognized
14144      # So say no if there are warnings other than the usual output.
14145      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14146      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14147      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14148        lt_cv_prog_compiler_rtti_exceptions=yes
14149      fi
14150    fi
14151    $RM conftest*
14152
14153 fi
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14155 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14156
14157 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14158     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14159 else
14160     :
14161 fi
14162
14163 fi
14164
14165
14166
14167
14168
14169
14170   lt_prog_compiler_wl=
14171 lt_prog_compiler_pic=
14172 lt_prog_compiler_static=
14173
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14175 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14176
14177   if test "$GCC" = yes; then
14178     lt_prog_compiler_wl='-Wl,'
14179     lt_prog_compiler_static='-static'
14180
14181     case $host_os in
14182       aix*)
14183       # All AIX code is PIC.
14184       if test "$host_cpu" = ia64; then
14185         # AIX 5 now supports IA64 processor
14186         lt_prog_compiler_static='-Bstatic'
14187       fi
14188       ;;
14189
14190     amigaos*)
14191       case $host_cpu in
14192       powerpc)
14193             # see comment about AmigaOS4 .so support
14194             lt_prog_compiler_pic='-fPIC'
14195         ;;
14196       m68k)
14197             # FIXME: we need at least 68020 code to build shared libraries, but
14198             # adding the `-m68020' flag to GCC prevents building anything better,
14199             # like `-m68040'.
14200             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14201         ;;
14202       esac
14203       ;;
14204
14205     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14206       # PIC is the default for these OSes.
14207       ;;
14208
14209     mingw* | cygwin* | pw32* | os2* | cegcc*)
14210       # This hack is so that the source file can tell whether it is being
14211       # built for inclusion in a dll (and should export symbols for example).
14212       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14213       # (--disable-auto-import) libraries
14214       lt_prog_compiler_pic='-DDLL_EXPORT'
14215       ;;
14216
14217     darwin* | rhapsody*)
14218       # PIC is the default on this platform
14219       # Common symbols not allowed in MH_DYLIB files
14220       lt_prog_compiler_pic='-fno-common'
14221       ;;
14222
14223     haiku*)
14224       # PIC is the default for Haiku.
14225       # The "-static" flag exists, but is broken.
14226       lt_prog_compiler_static=
14227       ;;
14228
14229     hpux*)
14230       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14231       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14232       # sets the default TLS model and affects inlining.
14233       case $host_cpu in
14234       hppa*64*)
14235         # +Z the default
14236         ;;
14237       *)
14238         lt_prog_compiler_pic='-fPIC'
14239         ;;
14240       esac
14241       ;;
14242
14243     interix[3-9]*)
14244       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14245       # Instead, we relocate shared libraries at runtime.
14246       ;;
14247
14248     msdosdjgpp*)
14249       # Just because we use GCC doesn't mean we suddenly get shared libraries
14250       # on systems that don't support them.
14251       lt_prog_compiler_can_build_shared=no
14252       enable_shared=no
14253       ;;
14254
14255     *nto* | *qnx*)
14256       # QNX uses GNU C++, but need to define -shared option too, otherwise
14257       # it will coredump.
14258       lt_prog_compiler_pic='-fPIC -shared'
14259       ;;
14260
14261     sysv4*MP*)
14262       if test -d /usr/nec; then
14263         lt_prog_compiler_pic=-Kconform_pic
14264       fi
14265       ;;
14266
14267     *)
14268       lt_prog_compiler_pic='-fPIC'
14269       ;;
14270     esac
14271
14272     case $cc_basename in
14273     nvcc*) # Cuda Compiler Driver 2.2
14274       lt_prog_compiler_wl='-Xlinker '
14275       lt_prog_compiler_pic='-Xcompiler -fPIC'
14276       ;;
14277     esac
14278   else
14279     # PORTME Check for flag to pass linker flags through the system compiler.
14280     case $host_os in
14281     aix*)
14282       lt_prog_compiler_wl='-Wl,'
14283       if test "$host_cpu" = ia64; then
14284         # AIX 5 now supports IA64 processor
14285         lt_prog_compiler_static='-Bstatic'
14286       else
14287         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14288       fi
14289       ;;
14290
14291     mingw* | cygwin* | pw32* | os2* | cegcc*)
14292       # This hack is so that the source file can tell whether it is being
14293       # built for inclusion in a dll (and should export symbols for example).
14294       lt_prog_compiler_pic='-DDLL_EXPORT'
14295       ;;
14296
14297     hpux9* | hpux10* | hpux11*)
14298       lt_prog_compiler_wl='-Wl,'
14299       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14300       # not for PA HP-UX.
14301       case $host_cpu in
14302       hppa*64*|ia64*)
14303         # +Z the default
14304         ;;
14305       *)
14306         lt_prog_compiler_pic='+Z'
14307         ;;
14308       esac
14309       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14310       lt_prog_compiler_static='${wl}-a ${wl}archive'
14311       ;;
14312
14313     irix5* | irix6* | nonstopux*)
14314       lt_prog_compiler_wl='-Wl,'
14315       # PIC (with -KPIC) is the default.
14316       lt_prog_compiler_static='-non_shared'
14317       ;;
14318
14319     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14320       case $cc_basename in
14321       # old Intel for x86_64 which still supported -KPIC.
14322       ecc*)
14323         lt_prog_compiler_wl='-Wl,'
14324         lt_prog_compiler_pic='-KPIC'
14325         lt_prog_compiler_static='-static'
14326         ;;
14327       # icc used to be incompatible with GCC.
14328       # ICC 10 doesn't accept -KPIC any more.
14329       icc* | ifort*)
14330         lt_prog_compiler_wl='-Wl,'
14331         lt_prog_compiler_pic='-fPIC'
14332         lt_prog_compiler_static='-static'
14333         ;;
14334       # Lahey Fortran 8.1.
14335       lf95*)
14336         lt_prog_compiler_wl='-Wl,'
14337         lt_prog_compiler_pic='--shared'
14338         lt_prog_compiler_static='--static'
14339         ;;
14340       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14341         # Portland Group compilers (*not* the Pentium gcc compiler,
14342         # which looks to be a dead project)
14343         lt_prog_compiler_wl='-Wl,'
14344         lt_prog_compiler_pic='-fpic'
14345         lt_prog_compiler_static='-Bstatic'
14346         ;;
14347       ccc*)
14348         lt_prog_compiler_wl='-Wl,'
14349         # All Alpha code is PIC.
14350         lt_prog_compiler_static='-non_shared'
14351         ;;
14352       xl* | bgxl* | bgf* | mpixl*)
14353         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14354         lt_prog_compiler_wl='-Wl,'
14355         lt_prog_compiler_pic='-qpic'
14356         lt_prog_compiler_static='-qstaticlink'
14357         ;;
14358       *)
14359         case `$CC -V 2>&1 | sed 5q` in
14360         *Sun\ F* | *Sun*Fortran*)
14361           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14362           lt_prog_compiler_pic='-KPIC'
14363           lt_prog_compiler_static='-Bstatic'
14364           lt_prog_compiler_wl=''
14365           ;;
14366         *Sun\ C*)
14367           # Sun C 5.9
14368           lt_prog_compiler_pic='-KPIC'
14369           lt_prog_compiler_static='-Bstatic'
14370           lt_prog_compiler_wl='-Wl,'
14371           ;;
14372         esac
14373         ;;
14374       esac
14375       ;;
14376
14377     newsos6)
14378       lt_prog_compiler_pic='-KPIC'
14379       lt_prog_compiler_static='-Bstatic'
14380       ;;
14381
14382     *nto* | *qnx*)
14383       # QNX uses GNU C++, but need to define -shared option too, otherwise
14384       # it will coredump.
14385       lt_prog_compiler_pic='-fPIC -shared'
14386       ;;
14387
14388     osf3* | osf4* | osf5*)
14389       lt_prog_compiler_wl='-Wl,'
14390       # All OSF/1 code is PIC.
14391       lt_prog_compiler_static='-non_shared'
14392       ;;
14393
14394     rdos*)
14395       lt_prog_compiler_static='-non_shared'
14396       ;;
14397
14398     solaris*)
14399       lt_prog_compiler_pic='-KPIC'
14400       lt_prog_compiler_static='-Bstatic'
14401       case $cc_basename in
14402       f77* | f90* | f95*)
14403         lt_prog_compiler_wl='-Qoption ld ';;
14404       *)
14405         lt_prog_compiler_wl='-Wl,';;
14406       esac
14407       ;;
14408
14409     sunos4*)
14410       lt_prog_compiler_wl='-Qoption ld '
14411       lt_prog_compiler_pic='-PIC'
14412       lt_prog_compiler_static='-Bstatic'
14413       ;;
14414
14415     sysv4 | sysv4.2uw2* | sysv4.3*)
14416       lt_prog_compiler_wl='-Wl,'
14417       lt_prog_compiler_pic='-KPIC'
14418       lt_prog_compiler_static='-Bstatic'
14419       ;;
14420
14421     sysv4*MP*)
14422       if test -d /usr/nec ;then
14423         lt_prog_compiler_pic='-Kconform_pic'
14424         lt_prog_compiler_static='-Bstatic'
14425       fi
14426       ;;
14427
14428     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14429       lt_prog_compiler_wl='-Wl,'
14430       lt_prog_compiler_pic='-KPIC'
14431       lt_prog_compiler_static='-Bstatic'
14432       ;;
14433
14434     unicos*)
14435       lt_prog_compiler_wl='-Wl,'
14436       lt_prog_compiler_can_build_shared=no
14437       ;;
14438
14439     uts4*)
14440       lt_prog_compiler_pic='-pic'
14441       lt_prog_compiler_static='-Bstatic'
14442       ;;
14443
14444     *)
14445       lt_prog_compiler_can_build_shared=no
14446       ;;
14447     esac
14448   fi
14449
14450 case $host_os in
14451   # For platforms which do not support PIC, -DPIC is meaningless:
14452   *djgpp*)
14453     lt_prog_compiler_pic=
14454     ;;
14455   *)
14456     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14457     ;;
14458 esac
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14460 $as_echo "$lt_prog_compiler_pic" >&6; }
14461
14462
14463
14464
14465
14466
14467 #
14468 # Check to make sure the PIC flag actually works.
14469 #
14470 if test -n "$lt_prog_compiler_pic"; then
14471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14472 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14473 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14474   $as_echo_n "(cached) " >&6
14475 else
14476   lt_cv_prog_compiler_pic_works=no
14477    ac_outfile=conftest.$ac_objext
14478    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14479    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14480    # Insert the option either (1) after the last *FLAGS variable, or
14481    # (2) before a word containing "conftest.", or (3) at the end.
14482    # Note that $ac_compile itself does not contain backslashes and begins
14483    # with a dollar sign (not a hyphen), so the echo should work correctly.
14484    # The option is referenced via a variable to avoid confusing sed.
14485    lt_compile=`echo "$ac_compile" | $SED \
14486    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14487    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14488    -e 's:$: $lt_compiler_flag:'`
14489    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14490    (eval "$lt_compile" 2>conftest.err)
14491    ac_status=$?
14492    cat conftest.err >&5
14493    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494    if (exit $ac_status) && test -s "$ac_outfile"; then
14495      # The compiler can only warn and ignore the option if not recognized
14496      # So say no if there are warnings other than the usual output.
14497      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14498      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14499      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14500        lt_cv_prog_compiler_pic_works=yes
14501      fi
14502    fi
14503    $RM conftest*
14504
14505 fi
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14507 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14508
14509 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14510     case $lt_prog_compiler_pic in
14511      "" | " "*) ;;
14512      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14513      esac
14514 else
14515     lt_prog_compiler_pic=
14516      lt_prog_compiler_can_build_shared=no
14517 fi
14518
14519 fi
14520
14521
14522
14523
14524
14525
14526 #
14527 # Check to make sure the static flag actually works.
14528 #
14529 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14531 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14532 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14533   $as_echo_n "(cached) " >&6
14534 else
14535   lt_cv_prog_compiler_static_works=no
14536    save_LDFLAGS="$LDFLAGS"
14537    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14538    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14539    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14540      # The linker can only warn and ignore the option if not recognized
14541      # So say no if there are warnings
14542      if test -s conftest.err; then
14543        # Append any errors to the config.log.
14544        cat conftest.err 1>&5
14545        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14546        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14547        if diff conftest.exp conftest.er2 >/dev/null; then
14548          lt_cv_prog_compiler_static_works=yes
14549        fi
14550      else
14551        lt_cv_prog_compiler_static_works=yes
14552      fi
14553    fi
14554    $RM -r conftest*
14555    LDFLAGS="$save_LDFLAGS"
14556
14557 fi
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14559 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14560
14561 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14562     :
14563 else
14564     lt_prog_compiler_static=
14565 fi
14566
14567
14568
14569
14570
14571
14572
14573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14574 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14575 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14576   $as_echo_n "(cached) " >&6
14577 else
14578   lt_cv_prog_compiler_c_o=no
14579    $RM -r conftest 2>/dev/null
14580    mkdir conftest
14581    cd conftest
14582    mkdir out
14583    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14584
14585    lt_compiler_flag="-o out/conftest2.$ac_objext"
14586    # Insert the option either (1) after the last *FLAGS variable, or
14587    # (2) before a word containing "conftest.", or (3) at the end.
14588    # Note that $ac_compile itself does not contain backslashes and begins
14589    # with a dollar sign (not a hyphen), so the echo should work correctly.
14590    lt_compile=`echo "$ac_compile" | $SED \
14591    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14592    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14593    -e 's:$: $lt_compiler_flag:'`
14594    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14595    (eval "$lt_compile" 2>out/conftest.err)
14596    ac_status=$?
14597    cat out/conftest.err >&5
14598    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14600    then
14601      # The compiler can only warn and ignore the option if not recognized
14602      # So say no if there are warnings
14603      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14604      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14605      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14606        lt_cv_prog_compiler_c_o=yes
14607      fi
14608    fi
14609    chmod u+w . 2>&5
14610    $RM conftest*
14611    # SGI C++ compiler will create directory out/ii_files/ for
14612    # template instantiation
14613    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14614    $RM out/* && rmdir out
14615    cd ..
14616    $RM -r conftest
14617    $RM conftest*
14618
14619 fi
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14621 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14622
14623
14624
14625
14626
14627
14628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14629 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14630 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14631   $as_echo_n "(cached) " >&6
14632 else
14633   lt_cv_prog_compiler_c_o=no
14634    $RM -r conftest 2>/dev/null
14635    mkdir conftest
14636    cd conftest
14637    mkdir out
14638    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14639
14640    lt_compiler_flag="-o out/conftest2.$ac_objext"
14641    # Insert the option either (1) after the last *FLAGS variable, or
14642    # (2) before a word containing "conftest.", or (3) at the end.
14643    # Note that $ac_compile itself does not contain backslashes and begins
14644    # with a dollar sign (not a hyphen), so the echo should work correctly.
14645    lt_compile=`echo "$ac_compile" | $SED \
14646    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14647    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14648    -e 's:$: $lt_compiler_flag:'`
14649    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14650    (eval "$lt_compile" 2>out/conftest.err)
14651    ac_status=$?
14652    cat out/conftest.err >&5
14653    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14655    then
14656      # The compiler can only warn and ignore the option if not recognized
14657      # So say no if there are warnings
14658      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14659      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14660      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14661        lt_cv_prog_compiler_c_o=yes
14662      fi
14663    fi
14664    chmod u+w . 2>&5
14665    $RM conftest*
14666    # SGI C++ compiler will create directory out/ii_files/ for
14667    # template instantiation
14668    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14669    $RM out/* && rmdir out
14670    cd ..
14671    $RM -r conftest
14672    $RM conftest*
14673
14674 fi
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14676 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14677
14678
14679
14680
14681 hard_links="nottested"
14682 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14683   # do not overwrite the value of need_locks provided by the user
14684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14685 $as_echo_n "checking if we can lock with hard links... " >&6; }
14686   hard_links=yes
14687   $RM conftest*
14688   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14689   touch conftest.a
14690   ln conftest.a conftest.b 2>&5 || hard_links=no
14691   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14693 $as_echo "$hard_links" >&6; }
14694   if test "$hard_links" = no; then
14695     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14696 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14697     need_locks=warn
14698   fi
14699 else
14700   need_locks=no
14701 fi
14702
14703
14704
14705
14706
14707
14708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14709 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14710
14711   runpath_var=
14712   allow_undefined_flag=
14713   always_export_symbols=no
14714   archive_cmds=
14715   archive_expsym_cmds=
14716   compiler_needs_object=no
14717   enable_shared_with_static_runtimes=no
14718   export_dynamic_flag_spec=
14719   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14720   hardcode_automatic=no
14721   hardcode_direct=no
14722   hardcode_direct_absolute=no
14723   hardcode_libdir_flag_spec=
14724   hardcode_libdir_flag_spec_ld=
14725   hardcode_libdir_separator=
14726   hardcode_minus_L=no
14727   hardcode_shlibpath_var=unsupported
14728   inherit_rpath=no
14729   link_all_deplibs=unknown
14730   module_cmds=
14731   module_expsym_cmds=
14732   old_archive_from_new_cmds=
14733   old_archive_from_expsyms_cmds=
14734   thread_safe_flag_spec=
14735   whole_archive_flag_spec=
14736   # include_expsyms should be a list of space-separated symbols to be *always*
14737   # included in the symbol list
14738   include_expsyms=
14739   # exclude_expsyms can be an extended regexp of symbols to exclude
14740   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14741   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14742   # as well as any symbol that contains `d'.
14743   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14744   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14745   # platforms (ab)use it in PIC code, but their linkers get confused if
14746   # the symbol is explicitly referenced.  Since portable code cannot
14747   # rely on this symbol name, it's probably fine to never include it in
14748   # preloaded symbol tables.
14749   # Exclude shared library initialization/finalization symbols.
14750   extract_expsyms_cmds=
14751
14752   case $host_os in
14753   cygwin* | mingw* | pw32* | cegcc*)
14754     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14755     # When not using gcc, we currently assume that we are using
14756     # Microsoft Visual C++.
14757     if test "$GCC" != yes; then
14758       with_gnu_ld=no
14759     fi
14760     ;;
14761   interix*)
14762     # we just hope/assume this is gcc and not c89 (= MSVC++)
14763     with_gnu_ld=yes
14764     ;;
14765   openbsd*)
14766     with_gnu_ld=no
14767     ;;
14768   esac
14769
14770   ld_shlibs=yes
14771
14772   # On some targets, GNU ld is compatible enough with the native linker
14773   # that we're better off using the native interface for both.
14774   lt_use_gnu_ld_interface=no
14775   if test "$with_gnu_ld" = yes; then
14776     case $host_os in
14777       aix*)
14778         # The AIX port of GNU ld has always aspired to compatibility
14779         # with the native linker.  However, as the warning in the GNU ld
14780         # block says, versions before 2.19.5* couldn't really create working
14781         # shared libraries, regardless of the interface used.
14782         case `$LD -v 2>&1` in
14783           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14784           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14785           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14786           *)
14787             lt_use_gnu_ld_interface=yes
14788             ;;
14789         esac
14790         ;;
14791       *)
14792         lt_use_gnu_ld_interface=yes
14793         ;;
14794     esac
14795   fi
14796
14797   if test "$lt_use_gnu_ld_interface" = yes; then
14798     # If archive_cmds runs LD, not CC, wlarc should be empty
14799     wlarc='${wl}'
14800
14801     # Set some defaults for GNU ld with shared library support. These
14802     # are reset later if shared libraries are not supported. Putting them
14803     # here allows them to be overridden if necessary.
14804     runpath_var=LD_RUN_PATH
14805     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14806     export_dynamic_flag_spec='${wl}--export-dynamic'
14807     # ancient GNU ld didn't support --whole-archive et. al.
14808     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14809       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14810     else
14811       whole_archive_flag_spec=
14812     fi
14813     supports_anon_versioning=no
14814     case `$LD -v 2>&1` in
14815       *GNU\ gold*) supports_anon_versioning=yes ;;
14816       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14817       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14818       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14819       *\ 2.11.*) ;; # other 2.11 versions
14820       *) supports_anon_versioning=yes ;;
14821     esac
14822
14823     # See if GNU ld supports shared libraries.
14824     case $host_os in
14825     aix[3-9]*)
14826       # On AIX/PPC, the GNU linker is very broken
14827       if test "$host_cpu" != ia64; then
14828         ld_shlibs=no
14829         cat <<_LT_EOF 1>&2
14830
14831 *** Warning: the GNU linker, at least up to release 2.19, is reported
14832 *** to be unable to reliably create shared libraries on AIX.
14833 *** Therefore, libtool is disabling shared libraries support.  If you
14834 *** really care for shared libraries, you may want to install binutils
14835 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14836 *** You will then need to restart the configuration process.
14837
14838 _LT_EOF
14839       fi
14840       ;;
14841
14842     amigaos*)
14843       case $host_cpu in
14844       powerpc)
14845             # see comment about AmigaOS4 .so support
14846             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14847             archive_expsym_cmds=''
14848         ;;
14849       m68k)
14850             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)'
14851             hardcode_libdir_flag_spec='-L$libdir'
14852             hardcode_minus_L=yes
14853         ;;
14854       esac
14855       ;;
14856
14857     beos*)
14858       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14859         allow_undefined_flag=unsupported
14860         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14861         # support --undefined.  This deserves some investigation.  FIXME
14862         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14863       else
14864         ld_shlibs=no
14865       fi
14866       ;;
14867
14868     cygwin* | mingw* | pw32* | cegcc*)
14869       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14870       # as there is no search path for DLLs.
14871       hardcode_libdir_flag_spec='-L$libdir'
14872       export_dynamic_flag_spec='${wl}--export-all-symbols'
14873       allow_undefined_flag=unsupported
14874       always_export_symbols=no
14875       enable_shared_with_static_runtimes=yes
14876       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14877
14878       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14879         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14880         # If the export-symbols file already is a .def file (1st line
14881         # is EXPORTS), use it as is; otherwise, prepend...
14882         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14883           cp $export_symbols $output_objdir/$soname.def;
14884         else
14885           echo EXPORTS > $output_objdir/$soname.def;
14886           cat $export_symbols >> $output_objdir/$soname.def;
14887         fi~
14888         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14889       else
14890         ld_shlibs=no
14891       fi
14892       ;;
14893
14894     haiku*)
14895       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14896       link_all_deplibs=yes
14897       ;;
14898
14899     interix[3-9]*)
14900       hardcode_direct=no
14901       hardcode_shlibpath_var=no
14902       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14903       export_dynamic_flag_spec='${wl}-E'
14904       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14905       # Instead, shared libraries are loaded at an image base (0x10000000 by
14906       # default) and relocated if they conflict, which is a slow very memory
14907       # consuming and fragmenting process.  To avoid this, we pick a random,
14908       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14909       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14910       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14911       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'
14912       ;;
14913
14914     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14915       tmp_diet=no
14916       if test "$host_os" = linux-dietlibc; then
14917         case $cc_basename in
14918           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
14919         esac
14920       fi
14921       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14922          && test "$tmp_diet" = no
14923       then
14924         tmp_addflag=
14925         tmp_sharedflag='-shared'
14926         case $cc_basename,$host_cpu in
14927         pgcc*)                          # Portland Group C compiler
14928           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'
14929           tmp_addflag=' $pic_flag'
14930           ;;
14931         pgf77* | pgf90* | pgf95* | pgfortran*)
14932                                         # Portland Group f77 and f90 compilers
14933           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'
14934           tmp_addflag=' $pic_flag -Mnomain' ;;
14935         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
14936           tmp_addflag=' -i_dynamic' ;;
14937         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14938           tmp_addflag=' -i_dynamic -nofor_main' ;;
14939         ifc* | ifort*)                  # Intel Fortran compiler
14940           tmp_addflag=' -nofor_main' ;;
14941         lf95*)                          # Lahey Fortran 8.1
14942           whole_archive_flag_spec=
14943           tmp_sharedflag='--shared' ;;
14944         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14945           tmp_sharedflag='-qmkshrobj'
14946           tmp_addflag= ;;
14947         nvcc*)  # Cuda Compiler Driver 2.2
14948           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'
14949           compiler_needs_object=yes
14950           ;;
14951         esac
14952         case `$CC -V 2>&1 | sed 5q` in
14953         *Sun\ C*)                       # Sun C 5.9
14954           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'
14955           compiler_needs_object=yes
14956           tmp_sharedflag='-G' ;;
14957         *Sun\ F*)                       # Sun Fortran 8.3
14958           tmp_sharedflag='-G' ;;
14959         esac
14960         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14961
14962         if test "x$supports_anon_versioning" = xyes; then
14963           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14964             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14965             echo "local: *; };" >> $output_objdir/$libname.ver~
14966             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14967         fi
14968
14969         case $cc_basename in
14970         xlf* | bgf* | bgxlf* | mpixlf*)
14971           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14972           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14973           hardcode_libdir_flag_spec=
14974           hardcode_libdir_flag_spec_ld='-rpath $libdir'
14975           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14976           if test "x$supports_anon_versioning" = xyes; then
14977             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14978               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14979               echo "local: *; };" >> $output_objdir/$libname.ver~
14980               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14981           fi
14982           ;;
14983         esac
14984       else
14985         ld_shlibs=no
14986       fi
14987       ;;
14988
14989     netbsd*)
14990       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14991         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14992         wlarc=
14993       else
14994         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14995         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14996       fi
14997       ;;
14998
14999     solaris*)
15000       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15001         ld_shlibs=no
15002         cat <<_LT_EOF 1>&2
15003
15004 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15005 *** create shared libraries on Solaris systems.  Therefore, libtool
15006 *** is disabling shared libraries support.  We urge you to upgrade GNU
15007 *** binutils to release 2.9.1 or newer.  Another option is to modify
15008 *** your PATH or compiler configuration so that the native linker is
15009 *** used, and then restart.
15010
15011 _LT_EOF
15012       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15013         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15014         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15015       else
15016         ld_shlibs=no
15017       fi
15018       ;;
15019
15020     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15021       case `$LD -v 2>&1` in
15022         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15023         ld_shlibs=no
15024         cat <<_LT_EOF 1>&2
15025
15026 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15027 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15028 *** is disabling shared libraries support.  We urge you to upgrade GNU
15029 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15030 *** your PATH or compiler configuration so that the native linker is
15031 *** used, and then restart.
15032
15033 _LT_EOF
15034         ;;
15035         *)
15036           # For security reasons, it is highly recommended that you always
15037           # use absolute paths for naming shared libraries, and exclude the
15038           # DT_RUNPATH tag from executables and libraries.  But doing so
15039           # requires that you compile everything twice, which is a pain.
15040           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15041             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15042             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15043             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15044           else
15045             ld_shlibs=no
15046           fi
15047         ;;
15048       esac
15049       ;;
15050
15051     sunos4*)
15052       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15053       wlarc=
15054       hardcode_direct=yes
15055       hardcode_shlibpath_var=no
15056       ;;
15057
15058     *)
15059       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15060         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15061         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15062       else
15063         ld_shlibs=no
15064       fi
15065       ;;
15066     esac
15067
15068     if test "$ld_shlibs" = no; then
15069       runpath_var=
15070       hardcode_libdir_flag_spec=
15071       export_dynamic_flag_spec=
15072       whole_archive_flag_spec=
15073     fi
15074   else
15075     # PORTME fill in a description of your system's linker (not GNU ld)
15076     case $host_os in
15077     aix3*)
15078       allow_undefined_flag=unsupported
15079       always_export_symbols=yes
15080       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'
15081       # Note: this linker hardcodes the directories in LIBPATH if there
15082       # are no directories specified by -L.
15083       hardcode_minus_L=yes
15084       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15085         # Neither direct hardcoding nor static linking is supported with a
15086         # broken collect2.
15087         hardcode_direct=unsupported
15088       fi
15089       ;;
15090
15091     aix[4-9]*)
15092       if test "$host_cpu" = ia64; then
15093         # On IA64, the linker does run time linking by default, so we don't
15094         # have to do anything special.
15095         aix_use_runtimelinking=no
15096         exp_sym_flag='-Bexport'
15097         no_entry_flag=""
15098       else
15099         # If we're using GNU nm, then we don't want the "-C" option.
15100         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15101         # Also, AIX nm treats weak defined symbols like other global
15102         # defined symbols, whereas GNU nm marks them as "W".
15103         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15104           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'
15105         else
15106           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'
15107         fi
15108         aix_use_runtimelinking=no
15109
15110         # Test if we are trying to use run time linking or normal
15111         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15112         # need to do runtime linking.
15113         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15114           for ld_flag in $LDFLAGS; do
15115           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15116             aix_use_runtimelinking=yes
15117             break
15118           fi
15119           done
15120           ;;
15121         esac
15122
15123         exp_sym_flag='-bexport'
15124         no_entry_flag='-bnoentry'
15125       fi
15126
15127       # When large executables or shared objects are built, AIX ld can
15128       # have problems creating the table of contents.  If linking a library
15129       # or program results in "error TOC overflow" add -mminimal-toc to
15130       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15131       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15132
15133       archive_cmds=''
15134       hardcode_direct=yes
15135       hardcode_direct_absolute=yes
15136       hardcode_libdir_separator=':'
15137       link_all_deplibs=yes
15138       file_list_spec='${wl}-f,'
15139
15140       if test "$GCC" = yes; then
15141         case $host_os in aix4.[012]|aix4.[012].*)
15142         # We only want to do this on AIX 4.2 and lower, the check
15143         # below for broken collect2 doesn't work under 4.3+
15144           collect2name=`${CC} -print-prog-name=collect2`
15145           if test -f "$collect2name" &&
15146            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15147           then
15148           # We have reworked collect2
15149           :
15150           else
15151           # We have old collect2
15152           hardcode_direct=unsupported
15153           # It fails to find uninstalled libraries when the uninstalled
15154           # path is not listed in the libpath.  Setting hardcode_minus_L
15155           # to unsupported forces relinking
15156           hardcode_minus_L=yes
15157           hardcode_libdir_flag_spec='-L$libdir'
15158           hardcode_libdir_separator=
15159           fi
15160           ;;
15161         esac
15162         shared_flag='-shared'
15163         if test "$aix_use_runtimelinking" = yes; then
15164           shared_flag="$shared_flag "'${wl}-G'
15165         fi
15166       else
15167         # not using gcc
15168         if test "$host_cpu" = ia64; then
15169         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15170         # chokes on -Wl,-G. The following line is correct:
15171           shared_flag='-G'
15172         else
15173           if test "$aix_use_runtimelinking" = yes; then
15174             shared_flag='${wl}-G'
15175           else
15176             shared_flag='${wl}-bM:SRE'
15177           fi
15178         fi
15179       fi
15180
15181       export_dynamic_flag_spec='${wl}-bexpall'
15182       # It seems that -bexpall does not export symbols beginning with
15183       # underscore (_), so it is better to generate a list of symbols to export.
15184       always_export_symbols=yes
15185       if test "$aix_use_runtimelinking" = yes; then
15186         # Warning - without using the other runtime loading flags (-brtl),
15187         # -berok will link without error, but may produce a broken library.
15188         allow_undefined_flag='-berok'
15189         # Determine the default libpath from the value encoded in an
15190         # empty executable.
15191         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192 /* end confdefs.h.  */
15193
15194 int
15195 main ()
15196 {
15197
15198   ;
15199   return 0;
15200 }
15201 _ACEOF
15202 if ac_fn_c_try_link "$LINENO"; then :
15203
15204 lt_aix_libpath_sed='
15205     /Import File Strings/,/^$/ {
15206         /^0/ {
15207             s/^0  *\(.*\)$/\1/
15208             p
15209         }
15210     }'
15211 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15212 # Check for a 64-bit object if we didn't find anything.
15213 if test -z "$aix_libpath"; then
15214   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15215 fi
15216 fi
15217 rm -f core conftest.err conftest.$ac_objext \
15218     conftest$ac_exeext conftest.$ac_ext
15219 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15220
15221         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15222         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"
15223       else
15224         if test "$host_cpu" = ia64; then
15225           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15226           allow_undefined_flag="-z nodefs"
15227           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"
15228         else
15229          # Determine the default libpath from the value encoded in an
15230          # empty executable.
15231          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15232 /* end confdefs.h.  */
15233
15234 int
15235 main ()
15236 {
15237
15238   ;
15239   return 0;
15240 }
15241 _ACEOF
15242 if ac_fn_c_try_link "$LINENO"; then :
15243
15244 lt_aix_libpath_sed='
15245     /Import File Strings/,/^$/ {
15246         /^0/ {
15247             s/^0  *\(.*\)$/\1/
15248             p
15249         }
15250     }'
15251 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15252 # Check for a 64-bit object if we didn't find anything.
15253 if test -z "$aix_libpath"; then
15254   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15255 fi
15256 fi
15257 rm -f core conftest.err conftest.$ac_objext \
15258     conftest$ac_exeext conftest.$ac_ext
15259 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15260
15261          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15262           # Warning - without using the other run time loading flags,
15263           # -berok will link without error, but may produce a broken library.
15264           no_undefined_flag=' ${wl}-bernotok'
15265           allow_undefined_flag=' ${wl}-berok'
15266           if test "$with_gnu_ld" = yes; then
15267             # We only use this code for GNU lds that support --whole-archive.
15268             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15269           else
15270             # Exported symbols can be pulled into shared objects from archives
15271             whole_archive_flag_spec='$convenience'
15272           fi
15273           archive_cmds_need_lc=yes
15274           # This is similar to how AIX traditionally builds its shared libraries.
15275           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'
15276         fi
15277       fi
15278       ;;
15279
15280     amigaos*)
15281       case $host_cpu in
15282       powerpc)
15283             # see comment about AmigaOS4 .so support
15284             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15285             archive_expsym_cmds=''
15286         ;;
15287       m68k)
15288             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)'
15289             hardcode_libdir_flag_spec='-L$libdir'
15290             hardcode_minus_L=yes
15291         ;;
15292       esac
15293       ;;
15294
15295     bsdi[45]*)
15296       export_dynamic_flag_spec=-rdynamic
15297       ;;
15298
15299     cygwin* | mingw* | pw32* | cegcc*)
15300       # When not using gcc, we currently assume that we are using
15301       # Microsoft Visual C++.
15302       # hardcode_libdir_flag_spec is actually meaningless, as there is
15303       # no search path for DLLs.
15304       hardcode_libdir_flag_spec=' '
15305       allow_undefined_flag=unsupported
15306       # Tell ltmain to make .lib files, not .a files.
15307       libext=lib
15308       # Tell ltmain to make .dll files, not .so files.
15309       shrext_cmds=".dll"
15310       # FIXME: Setting linknames here is a bad hack.
15311       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15312       # The linker will automatically build a .lib file if we build a DLL.
15313       old_archive_from_new_cmds='true'
15314       # FIXME: Should let the user specify the lib program.
15315       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15316       fix_srcfile_path='`cygpath -w "$srcfile"`'
15317       enable_shared_with_static_runtimes=yes
15318       ;;
15319
15320     darwin* | rhapsody*)
15321
15322
15323   archive_cmds_need_lc=no
15324   hardcode_direct=no
15325   hardcode_automatic=yes
15326   hardcode_shlibpath_var=unsupported
15327   if test "$lt_cv_ld_force_load" = "yes"; then
15328     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\"`'
15329   else
15330     whole_archive_flag_spec=''
15331   fi
15332   link_all_deplibs=yes
15333   allow_undefined_flag="$_lt_dar_allow_undefined"
15334   case $cc_basename in
15335      ifort*) _lt_dar_can_shared=yes ;;
15336      *) _lt_dar_can_shared=$GCC ;;
15337   esac
15338   if test "$_lt_dar_can_shared" = "yes"; then
15339     output_verbose_link_cmd=func_echo_all
15340     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15341     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15342     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}"
15343     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}"
15344
15345   else
15346   ld_shlibs=no
15347   fi
15348
15349       ;;
15350
15351     dgux*)
15352       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15353       hardcode_libdir_flag_spec='-L$libdir'
15354       hardcode_shlibpath_var=no
15355       ;;
15356
15357     freebsd1*)
15358       ld_shlibs=no
15359       ;;
15360
15361     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15362     # support.  Future versions do this automatically, but an explicit c++rt0.o
15363     # does not break anything, and helps significantly (at the cost of a little
15364     # extra space).
15365     freebsd2.2*)
15366       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15367       hardcode_libdir_flag_spec='-R$libdir'
15368       hardcode_direct=yes
15369       hardcode_shlibpath_var=no
15370       ;;
15371
15372     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15373     freebsd2*)
15374       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15375       hardcode_direct=yes
15376       hardcode_minus_L=yes
15377       hardcode_shlibpath_var=no
15378       ;;
15379
15380     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15381     freebsd* | dragonfly*)
15382       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15383       hardcode_libdir_flag_spec='-R$libdir'
15384       hardcode_direct=yes
15385       hardcode_shlibpath_var=no
15386       ;;
15387
15388     hpux9*)
15389       if test "$GCC" = yes; then
15390         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'
15391       else
15392         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'
15393       fi
15394       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15395       hardcode_libdir_separator=:
15396       hardcode_direct=yes
15397
15398       # hardcode_minus_L: Not really in the search PATH,
15399       # but as the default location of the library.
15400       hardcode_minus_L=yes
15401       export_dynamic_flag_spec='${wl}-E'
15402       ;;
15403
15404     hpux10*)
15405       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15406         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15407       else
15408         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15409       fi
15410       if test "$with_gnu_ld" = no; then
15411         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15412         hardcode_libdir_flag_spec_ld='+b $libdir'
15413         hardcode_libdir_separator=:
15414         hardcode_direct=yes
15415         hardcode_direct_absolute=yes
15416         export_dynamic_flag_spec='${wl}-E'
15417         # hardcode_minus_L: Not really in the search PATH,
15418         # but as the default location of the library.
15419         hardcode_minus_L=yes
15420       fi
15421       ;;
15422
15423     hpux11*)
15424       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15425         case $host_cpu in
15426         hppa*64*)
15427           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15428           ;;
15429         ia64*)
15430           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15431           ;;
15432         *)
15433           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15434           ;;
15435         esac
15436       else
15437         case $host_cpu in
15438         hppa*64*)
15439           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15440           ;;
15441         ia64*)
15442           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15443           ;;
15444         *)
15445
15446           # Older versions of the 11.00 compiler do not understand -b yet
15447           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15448           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15449 $as_echo_n "checking if $CC understands -b... " >&6; }
15450 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15451   $as_echo_n "(cached) " >&6
15452 else
15453   lt_cv_prog_compiler__b=no
15454    save_LDFLAGS="$LDFLAGS"
15455    LDFLAGS="$LDFLAGS -b"
15456    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15457    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15458      # The linker can only warn and ignore the option if not recognized
15459      # So say no if there are warnings
15460      if test -s conftest.err; then
15461        # Append any errors to the config.log.
15462        cat conftest.err 1>&5
15463        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15464        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15465        if diff conftest.exp conftest.er2 >/dev/null; then
15466          lt_cv_prog_compiler__b=yes
15467        fi
15468      else
15469        lt_cv_prog_compiler__b=yes
15470      fi
15471    fi
15472    $RM -r conftest*
15473    LDFLAGS="$save_LDFLAGS"
15474
15475 fi
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15477 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15478
15479 if test x"$lt_cv_prog_compiler__b" = xyes; then
15480     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15481 else
15482     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15483 fi
15484
15485           ;;
15486         esac
15487       fi
15488       if test "$with_gnu_ld" = no; then
15489         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15490         hardcode_libdir_separator=:
15491
15492         case $host_cpu in
15493         hppa*64*|ia64*)
15494           hardcode_direct=no
15495           hardcode_shlibpath_var=no
15496           ;;
15497         *)
15498           hardcode_direct=yes
15499           hardcode_direct_absolute=yes
15500           export_dynamic_flag_spec='${wl}-E'
15501
15502           # hardcode_minus_L: Not really in the search PATH,
15503           # but as the default location of the library.
15504           hardcode_minus_L=yes
15505           ;;
15506         esac
15507       fi
15508       ;;
15509
15510     irix5* | irix6* | nonstopux*)
15511       if test "$GCC" = yes; then
15512         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'
15513         # Try to use the -exported_symbol ld option, if it does not
15514         # work, assume that -exports_file does not work either and
15515         # implicitly export all symbols.
15516         save_LDFLAGS="$LDFLAGS"
15517         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15518         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15519 /* end confdefs.h.  */
15520 int foo(void) {}
15521 _ACEOF
15522 if ac_fn_c_try_link "$LINENO"; then :
15523   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'
15524
15525 fi
15526 rm -f core conftest.err conftest.$ac_objext \
15527     conftest$ac_exeext conftest.$ac_ext
15528         LDFLAGS="$save_LDFLAGS"
15529       else
15530         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'
15531         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'
15532       fi
15533       archive_cmds_need_lc='no'
15534       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15535       hardcode_libdir_separator=:
15536       inherit_rpath=yes
15537       link_all_deplibs=yes
15538       ;;
15539
15540     netbsd*)
15541       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15542         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15543       else
15544         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15545       fi
15546       hardcode_libdir_flag_spec='-R$libdir'
15547       hardcode_direct=yes
15548       hardcode_shlibpath_var=no
15549       ;;
15550
15551     newsos6)
15552       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15553       hardcode_direct=yes
15554       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15555       hardcode_libdir_separator=:
15556       hardcode_shlibpath_var=no
15557       ;;
15558
15559     *nto* | *qnx*)
15560       ;;
15561
15562     openbsd*)
15563       if test -f /usr/libexec/ld.so; then
15564         hardcode_direct=yes
15565         hardcode_shlibpath_var=no
15566         hardcode_direct_absolute=yes
15567         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15568           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15569           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15570           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15571           export_dynamic_flag_spec='${wl}-E'
15572         else
15573           case $host_os in
15574            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15575              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15576              hardcode_libdir_flag_spec='-R$libdir'
15577              ;;
15578            *)
15579              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15580              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15581              ;;
15582           esac
15583         fi
15584       else
15585         ld_shlibs=no
15586       fi
15587       ;;
15588
15589     os2*)
15590       hardcode_libdir_flag_spec='-L$libdir'
15591       hardcode_minus_L=yes
15592       allow_undefined_flag=unsupported
15593       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'
15594       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15595       ;;
15596
15597     osf3*)
15598       if test "$GCC" = yes; then
15599         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15600         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'
15601       else
15602         allow_undefined_flag=' -expect_unresolved \*'
15603         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'
15604       fi
15605       archive_cmds_need_lc='no'
15606       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15607       hardcode_libdir_separator=:
15608       ;;
15609
15610     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15611       if test "$GCC" = yes; then
15612         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15613         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'
15614         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15615       else
15616         allow_undefined_flag=' -expect_unresolved \*'
15617         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'
15618         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~
15619         $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'
15620
15621         # Both c and cxx compiler support -rpath directly
15622         hardcode_libdir_flag_spec='-rpath $libdir'
15623       fi
15624       archive_cmds_need_lc='no'
15625       hardcode_libdir_separator=:
15626       ;;
15627
15628     solaris*)
15629       no_undefined_flag=' -z defs'
15630       if test "$GCC" = yes; then
15631         wlarc='${wl}'
15632         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15633         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15634           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15635       else
15636         case `$CC -V 2>&1` in
15637         *"Compilers 5.0"*)
15638           wlarc=''
15639           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15640           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15641           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15642           ;;
15643         *)
15644           wlarc='${wl}'
15645           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15646           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15647           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15648           ;;
15649         esac
15650       fi
15651       hardcode_libdir_flag_spec='-R$libdir'
15652       hardcode_shlibpath_var=no
15653       case $host_os in
15654       solaris2.[0-5] | solaris2.[0-5].*) ;;
15655       *)
15656         # The compiler driver will combine and reorder linker options,
15657         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15658         # but is careful enough not to reorder.
15659         # Supported since Solaris 2.6 (maybe 2.5.1?)
15660         if test "$GCC" = yes; then
15661           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15662         else
15663           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15664         fi
15665         ;;
15666       esac
15667       link_all_deplibs=yes
15668       ;;
15669
15670     sunos4*)
15671       if test "x$host_vendor" = xsequent; then
15672         # Use $CC to link under sequent, because it throws in some extra .o
15673         # files that make .init and .fini sections work.
15674         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15675       else
15676         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15677       fi
15678       hardcode_libdir_flag_spec='-L$libdir'
15679       hardcode_direct=yes
15680       hardcode_minus_L=yes
15681       hardcode_shlibpath_var=no
15682       ;;
15683
15684     sysv4)
15685       case $host_vendor in
15686         sni)
15687           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15688           hardcode_direct=yes # is this really true???
15689         ;;
15690         siemens)
15691           ## LD is ld it makes a PLAMLIB
15692           ## CC just makes a GrossModule.
15693           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15694           reload_cmds='$CC -r -o $output$reload_objs'
15695           hardcode_direct=no
15696         ;;
15697         motorola)
15698           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15699           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15700         ;;
15701       esac
15702       runpath_var='LD_RUN_PATH'
15703       hardcode_shlibpath_var=no
15704       ;;
15705
15706     sysv4.3*)
15707       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15708       hardcode_shlibpath_var=no
15709       export_dynamic_flag_spec='-Bexport'
15710       ;;
15711
15712     sysv4*MP*)
15713       if test -d /usr/nec; then
15714         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15715         hardcode_shlibpath_var=no
15716         runpath_var=LD_RUN_PATH
15717         hardcode_runpath_var=yes
15718         ld_shlibs=yes
15719       fi
15720       ;;
15721
15722     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15723       no_undefined_flag='${wl}-z,text'
15724       archive_cmds_need_lc=no
15725       hardcode_shlibpath_var=no
15726       runpath_var='LD_RUN_PATH'
15727
15728       if test "$GCC" = yes; then
15729         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15730         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15731       else
15732         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15733         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15734       fi
15735       ;;
15736
15737     sysv5* | sco3.2v5* | sco5v6*)
15738       # Note: We can NOT use -z defs as we might desire, because we do not
15739       # link with -lc, and that would cause any symbols used from libc to
15740       # always be unresolved, which means just about no library would
15741       # ever link correctly.  If we're not using GNU ld we use -z text
15742       # though, which does catch some bad symbols but isn't as heavy-handed
15743       # as -z defs.
15744       no_undefined_flag='${wl}-z,text'
15745       allow_undefined_flag='${wl}-z,nodefs'
15746       archive_cmds_need_lc=no
15747       hardcode_shlibpath_var=no
15748       hardcode_libdir_flag_spec='${wl}-R,$libdir'
15749       hardcode_libdir_separator=':'
15750       link_all_deplibs=yes
15751       export_dynamic_flag_spec='${wl}-Bexport'
15752       runpath_var='LD_RUN_PATH'
15753
15754       if test "$GCC" = yes; then
15755         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15756         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15757       else
15758         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15759         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15760       fi
15761       ;;
15762
15763     uts4*)
15764       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15765       hardcode_libdir_flag_spec='-L$libdir'
15766       hardcode_shlibpath_var=no
15767       ;;
15768
15769     *)
15770       ld_shlibs=no
15771       ;;
15772     esac
15773
15774     if test x$host_vendor = xsni; then
15775       case $host in
15776       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15777         export_dynamic_flag_spec='${wl}-Blargedynsym'
15778         ;;
15779       esac
15780     fi
15781   fi
15782
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15784 $as_echo "$ld_shlibs" >&6; }
15785 test "$ld_shlibs" = no && can_build_shared=no
15786
15787 with_gnu_ld=$with_gnu_ld
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803 #
15804 # Do we need to explicitly link libc?
15805 #
15806 case "x$archive_cmds_need_lc" in
15807 x|xyes)
15808   # Assume -lc should be added
15809   archive_cmds_need_lc=yes
15810
15811   if test "$enable_shared" = yes && test "$GCC" = yes; then
15812     case $archive_cmds in
15813     *'~'*)
15814       # FIXME: we may have to deal with multi-command sequences.
15815       ;;
15816     '$CC '*)
15817       # Test whether the compiler implicitly links with -lc since on some
15818       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15819       # to ld, don't add -lc before -lgcc.
15820       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15821 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15822 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15823   $as_echo_n "(cached) " >&6
15824 else
15825   $RM conftest*
15826         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15827
15828         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15829   (eval $ac_compile) 2>&5
15830   ac_status=$?
15831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15832   test $ac_status = 0; } 2>conftest.err; then
15833           soname=conftest
15834           lib=conftest
15835           libobjs=conftest.$ac_objext
15836           deplibs=
15837           wl=$lt_prog_compiler_wl
15838           pic_flag=$lt_prog_compiler_pic
15839           compiler_flags=-v
15840           linker_flags=-v
15841           verstring=
15842           output_objdir=.
15843           libname=conftest
15844           lt_save_allow_undefined_flag=$allow_undefined_flag
15845           allow_undefined_flag=
15846           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15847   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15848   ac_status=$?
15849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15850   test $ac_status = 0; }
15851           then
15852             lt_cv_archive_cmds_need_lc=no
15853           else
15854             lt_cv_archive_cmds_need_lc=yes
15855           fi
15856           allow_undefined_flag=$lt_save_allow_undefined_flag
15857         else
15858           cat conftest.err 1>&5
15859         fi
15860         $RM conftest*
15861
15862 fi
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15864 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15865       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15866       ;;
15867     esac
15868   fi
15869   ;;
15870 esac
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16029 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16030
16031 if test "$GCC" = yes; then
16032   case $host_os in
16033     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16034     *) lt_awk_arg="/^libraries:/" ;;
16035   esac
16036   case $host_os in
16037     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16038     *) lt_sed_strip_eq="s,=/,/,g" ;;
16039   esac
16040   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16041   case $lt_search_path_spec in
16042   *\;*)
16043     # if the path contains ";" then we assume it to be the separator
16044     # otherwise default to the standard path separator (i.e. ":") - it is
16045     # assumed that no part of a normal pathname contains ";" but that should
16046     # okay in the real world where ";" in dirpaths is itself problematic.
16047     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16048     ;;
16049   *)
16050     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16051     ;;
16052   esac
16053   # Ok, now we have the path, separated by spaces, we can step through it
16054   # and add multilib dir if necessary.
16055   lt_tmp_lt_search_path_spec=
16056   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16057   for lt_sys_path in $lt_search_path_spec; do
16058     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16059       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16060     else
16061       test -d "$lt_sys_path" && \
16062         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16063     fi
16064   done
16065   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16066 BEGIN {RS=" "; FS="/|\n";} {
16067   lt_foo="";
16068   lt_count=0;
16069   for (lt_i = NF; lt_i > 0; lt_i--) {
16070     if ($lt_i != "" && $lt_i != ".") {
16071       if ($lt_i == "..") {
16072         lt_count++;
16073       } else {
16074         if (lt_count == 0) {
16075           lt_foo="/" $lt_i lt_foo;
16076         } else {
16077           lt_count--;
16078         }
16079       }
16080     }
16081   }
16082   if (lt_foo != "") { lt_freq[lt_foo]++; }
16083   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16084 }'`
16085   # AWK program above erroneously prepends '/' to C:/dos/paths
16086   # for these hosts.
16087   case $host_os in
16088     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16089       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16090   esac
16091   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16092 else
16093   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16094 fi
16095 library_names_spec=
16096 libname_spec='lib$name'
16097 soname_spec=
16098 shrext_cmds=".so"
16099 postinstall_cmds=
16100 postuninstall_cmds=
16101 finish_cmds=
16102 finish_eval=
16103 shlibpath_var=
16104 shlibpath_overrides_runpath=unknown
16105 version_type=none
16106 dynamic_linker="$host_os ld.so"
16107 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16108 need_lib_prefix=unknown
16109 hardcode_into_libs=no
16110
16111 # when you set need_version to no, make sure it does not cause -set_version
16112 # flags to be left without arguments
16113 need_version=unknown
16114
16115 case $host_os in
16116 aix3*)
16117   version_type=linux
16118   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16119   shlibpath_var=LIBPATH
16120
16121   # AIX 3 has no versioning support, so we append a major version to the name.
16122   soname_spec='${libname}${release}${shared_ext}$major'
16123   ;;
16124
16125 aix[4-9]*)
16126   version_type=linux
16127   need_lib_prefix=no
16128   need_version=no
16129   hardcode_into_libs=yes
16130   if test "$host_cpu" = ia64; then
16131     # AIX 5 supports IA64
16132     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16133     shlibpath_var=LD_LIBRARY_PATH
16134   else
16135     # With GCC up to 2.95.x, collect2 would create an import file
16136     # for dependence libraries.  The import file would start with
16137     # the line `#! .'.  This would cause the generated library to
16138     # depend on `.', always an invalid library.  This was fixed in
16139     # development snapshots of GCC prior to 3.0.
16140     case $host_os in
16141       aix4 | aix4.[01] | aix4.[01].*)
16142       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16143            echo ' yes '
16144            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16145         :
16146       else
16147         can_build_shared=no
16148       fi
16149       ;;
16150     esac
16151     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16152     # soname into executable. Probably we can add versioning support to
16153     # collect2, so additional links can be useful in future.
16154     if test "$aix_use_runtimelinking" = yes; then
16155       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16156       # instead of lib<name>.a to let people know that these are not
16157       # typical AIX shared libraries.
16158       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16159     else
16160       # We preserve .a as extension for shared libraries through AIX4.2
16161       # and later when we are not doing run time linking.
16162       library_names_spec='${libname}${release}.a $libname.a'
16163       soname_spec='${libname}${release}${shared_ext}$major'
16164     fi
16165     shlibpath_var=LIBPATH
16166   fi
16167   ;;
16168
16169 amigaos*)
16170   case $host_cpu in
16171   powerpc)
16172     # Since July 2007 AmigaOS4 officially supports .so libraries.
16173     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16174     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16175     ;;
16176   m68k)
16177     library_names_spec='$libname.ixlibrary $libname.a'
16178     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16179     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'
16180     ;;
16181   esac
16182   ;;
16183
16184 beos*)
16185   library_names_spec='${libname}${shared_ext}'
16186   dynamic_linker="$host_os ld.so"
16187   shlibpath_var=LIBRARY_PATH
16188   ;;
16189
16190 bsdi[45]*)
16191   version_type=linux
16192   need_version=no
16193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16194   soname_spec='${libname}${release}${shared_ext}$major'
16195   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16196   shlibpath_var=LD_LIBRARY_PATH
16197   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16198   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16199   # the default ld.so.conf also contains /usr/contrib/lib and
16200   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16201   # libtool to hard-code these into programs
16202   ;;
16203
16204 cygwin* | mingw* | pw32* | cegcc*)
16205   version_type=windows
16206   shrext_cmds=".dll"
16207   need_version=no
16208   need_lib_prefix=no
16209
16210   case $GCC,$host_os in
16211   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16212     library_names_spec='$libname.dll.a'
16213     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16214     postinstall_cmds='base_file=`basename \${file}`~
16215       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16216       dldir=$destdir/`dirname \$dlpath`~
16217       test -d \$dldir || mkdir -p \$dldir~
16218       $install_prog $dir/$dlname \$dldir/$dlname~
16219       chmod a+x \$dldir/$dlname~
16220       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16221         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16222       fi'
16223     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16224       dlpath=$dir/\$dldll~
16225        $RM \$dlpath'
16226     shlibpath_overrides_runpath=yes
16227
16228     case $host_os in
16229     cygwin*)
16230       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16231       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16232
16233       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16234       ;;
16235     mingw* | cegcc*)
16236       # MinGW DLLs use traditional 'lib' prefix
16237       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16238       ;;
16239     pw32*)
16240       # pw32 DLLs use 'pw' prefix rather than 'lib'
16241       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16242       ;;
16243     esac
16244     ;;
16245
16246   *)
16247     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16248     ;;
16249   esac
16250   dynamic_linker='Win32 ld.exe'
16251   # FIXME: first we should search . and the directory the executable is in
16252   shlibpath_var=PATH
16253   ;;
16254
16255 darwin* | rhapsody*)
16256   dynamic_linker="$host_os dyld"
16257   version_type=darwin
16258   need_lib_prefix=no
16259   need_version=no
16260   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16261   soname_spec='${libname}${release}${major}$shared_ext'
16262   shlibpath_overrides_runpath=yes
16263   shlibpath_var=DYLD_LIBRARY_PATH
16264   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16265
16266   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16267   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16268   ;;
16269
16270 dgux*)
16271   version_type=linux
16272   need_lib_prefix=no
16273   need_version=no
16274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16275   soname_spec='${libname}${release}${shared_ext}$major'
16276   shlibpath_var=LD_LIBRARY_PATH
16277   ;;
16278
16279 freebsd1*)
16280   dynamic_linker=no
16281   ;;
16282
16283 freebsd* | dragonfly*)
16284   # DragonFly does not have aout.  When/if they implement a new
16285   # versioning mechanism, adjust this.
16286   if test -x /usr/bin/objformat; then
16287     objformat=`/usr/bin/objformat`
16288   else
16289     case $host_os in
16290     freebsd[123]*) objformat=aout ;;
16291     *) objformat=elf ;;
16292     esac
16293   fi
16294   version_type=freebsd-$objformat
16295   case $version_type in
16296     freebsd-elf*)
16297       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16298       need_version=no
16299       need_lib_prefix=no
16300       ;;
16301     freebsd-*)
16302       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16303       need_version=yes
16304       ;;
16305   esac
16306   shlibpath_var=LD_LIBRARY_PATH
16307   case $host_os in
16308   freebsd2*)
16309     shlibpath_overrides_runpath=yes
16310     ;;
16311   freebsd3.[01]* | freebsdelf3.[01]*)
16312     shlibpath_overrides_runpath=yes
16313     hardcode_into_libs=yes
16314     ;;
16315   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16316   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16317     shlibpath_overrides_runpath=no
16318     hardcode_into_libs=yes
16319     ;;
16320   *) # from 4.6 on, and DragonFly
16321     shlibpath_overrides_runpath=yes
16322     hardcode_into_libs=yes
16323     ;;
16324   esac
16325   ;;
16326
16327 gnu*)
16328   version_type=linux
16329   need_lib_prefix=no
16330   need_version=no
16331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16332   soname_spec='${libname}${release}${shared_ext}$major'
16333   shlibpath_var=LD_LIBRARY_PATH
16334   hardcode_into_libs=yes
16335   ;;
16336
16337 haiku*)
16338   version_type=linux
16339   need_lib_prefix=no
16340   need_version=no
16341   dynamic_linker="$host_os runtime_loader"
16342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16343   soname_spec='${libname}${release}${shared_ext}$major'
16344   shlibpath_var=LIBRARY_PATH
16345   shlibpath_overrides_runpath=yes
16346   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16347   hardcode_into_libs=yes
16348   ;;
16349
16350 hpux9* | hpux10* | hpux11*)
16351   # Give a soname corresponding to the major version so that dld.sl refuses to
16352   # link against other versions.
16353   version_type=sunos
16354   need_lib_prefix=no
16355   need_version=no
16356   case $host_cpu in
16357   ia64*)
16358     shrext_cmds='.so'
16359     hardcode_into_libs=yes
16360     dynamic_linker="$host_os dld.so"
16361     shlibpath_var=LD_LIBRARY_PATH
16362     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16364     soname_spec='${libname}${release}${shared_ext}$major'
16365     if test "X$HPUX_IA64_MODE" = X32; then
16366       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16367     else
16368       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16369     fi
16370     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16371     ;;
16372   hppa*64*)
16373     shrext_cmds='.sl'
16374     hardcode_into_libs=yes
16375     dynamic_linker="$host_os dld.sl"
16376     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16377     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16378     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379     soname_spec='${libname}${release}${shared_ext}$major'
16380     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16381     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16382     ;;
16383   *)
16384     shrext_cmds='.sl'
16385     dynamic_linker="$host_os dld.sl"
16386     shlibpath_var=SHLIB_PATH
16387     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16388     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16389     soname_spec='${libname}${release}${shared_ext}$major'
16390     ;;
16391   esac
16392   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16393   postinstall_cmds='chmod 555 $lib'
16394   # or fails outright, so override atomically:
16395   install_override_mode=555
16396   ;;
16397
16398 interix[3-9]*)
16399   version_type=linux
16400   need_lib_prefix=no
16401   need_version=no
16402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16403   soname_spec='${libname}${release}${shared_ext}$major'
16404   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16405   shlibpath_var=LD_LIBRARY_PATH
16406   shlibpath_overrides_runpath=no
16407   hardcode_into_libs=yes
16408   ;;
16409
16410 irix5* | irix6* | nonstopux*)
16411   case $host_os in
16412     nonstopux*) version_type=nonstopux ;;
16413     *)
16414         if test "$lt_cv_prog_gnu_ld" = yes; then
16415                 version_type=linux
16416         else
16417                 version_type=irix
16418         fi ;;
16419   esac
16420   need_lib_prefix=no
16421   need_version=no
16422   soname_spec='${libname}${release}${shared_ext}$major'
16423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16424   case $host_os in
16425   irix5* | nonstopux*)
16426     libsuff= shlibsuff=
16427     ;;
16428   *)
16429     case $LD in # libtool.m4 will add one of these switches to LD
16430     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16431       libsuff= shlibsuff= libmagic=32-bit;;
16432     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16433       libsuff=32 shlibsuff=N32 libmagic=N32;;
16434     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16435       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16436     *) libsuff= shlibsuff= libmagic=never-match;;
16437     esac
16438     ;;
16439   esac
16440   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16441   shlibpath_overrides_runpath=no
16442   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16443   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16444   hardcode_into_libs=yes
16445   ;;
16446
16447 # No shared lib support for Linux oldld, aout, or coff.
16448 linux*oldld* | linux*aout* | linux*coff*)
16449   dynamic_linker=no
16450   ;;
16451
16452 # This must be Linux ELF.
16453 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16454   version_type=linux
16455   need_lib_prefix=no
16456   need_version=no
16457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16458   soname_spec='${libname}${release}${shared_ext}$major'
16459   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16460   shlibpath_var=LD_LIBRARY_PATH
16461   shlibpath_overrides_runpath=no
16462
16463   # Some binutils ld are patched to set DT_RUNPATH
16464   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16465   $as_echo_n "(cached) " >&6
16466 else
16467   lt_cv_shlibpath_overrides_runpath=no
16468     save_LDFLAGS=$LDFLAGS
16469     save_libdir=$libdir
16470     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16471          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16472     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16473 /* end confdefs.h.  */
16474
16475 int
16476 main ()
16477 {
16478
16479   ;
16480   return 0;
16481 }
16482 _ACEOF
16483 if ac_fn_c_try_link "$LINENO"; then :
16484   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16485   lt_cv_shlibpath_overrides_runpath=yes
16486 fi
16487 fi
16488 rm -f core conftest.err conftest.$ac_objext \
16489     conftest$ac_exeext conftest.$ac_ext
16490     LDFLAGS=$save_LDFLAGS
16491     libdir=$save_libdir
16492
16493 fi
16494
16495   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16496
16497   # This implies no fast_install, which is unacceptable.
16498   # Some rework will be needed to allow for fast_install
16499   # before this can be enabled.
16500   hardcode_into_libs=yes
16501
16502   # Append ld.so.conf contents to the search path
16503   if test -f /etc/ld.so.conf; then
16504     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' ' '`
16505     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16506   fi
16507
16508   # We used to test for /lib/ld.so.1 and disable shared libraries on
16509   # powerpc, because MkLinux only supported shared libraries with the
16510   # GNU dynamic linker.  Since this was broken with cross compilers,
16511   # most powerpc-linux boxes support dynamic linking these days and
16512   # people can always --disable-shared, the test was removed, and we
16513   # assume the GNU/Linux dynamic linker is in use.
16514   dynamic_linker='GNU/Linux ld.so'
16515   ;;
16516
16517 netbsd*)
16518   version_type=sunos
16519   need_lib_prefix=no
16520   need_version=no
16521   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16522     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16523     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16524     dynamic_linker='NetBSD (a.out) ld.so'
16525   else
16526     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16527     soname_spec='${libname}${release}${shared_ext}$major'
16528     dynamic_linker='NetBSD ld.elf_so'
16529   fi
16530   shlibpath_var=LD_LIBRARY_PATH
16531   shlibpath_overrides_runpath=yes
16532   hardcode_into_libs=yes
16533   ;;
16534
16535 newsos6)
16536   version_type=linux
16537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16538   shlibpath_var=LD_LIBRARY_PATH
16539   shlibpath_overrides_runpath=yes
16540   ;;
16541
16542 *nto* | *qnx*)
16543   version_type=qnx
16544   need_lib_prefix=no
16545   need_version=no
16546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16547   soname_spec='${libname}${release}${shared_ext}$major'
16548   shlibpath_var=LD_LIBRARY_PATH
16549   shlibpath_overrides_runpath=no
16550   hardcode_into_libs=yes
16551   dynamic_linker='ldqnx.so'
16552   ;;
16553
16554 openbsd*)
16555   version_type=sunos
16556   sys_lib_dlsearch_path_spec="/usr/lib"
16557   need_lib_prefix=no
16558   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16559   case $host_os in
16560     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16561     *)                          need_version=no  ;;
16562   esac
16563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16564   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16565   shlibpath_var=LD_LIBRARY_PATH
16566   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16567     case $host_os in
16568       openbsd2.[89] | openbsd2.[89].*)
16569         shlibpath_overrides_runpath=no
16570         ;;
16571       *)
16572         shlibpath_overrides_runpath=yes
16573         ;;
16574       esac
16575   else
16576     shlibpath_overrides_runpath=yes
16577   fi
16578   ;;
16579
16580 os2*)
16581   libname_spec='$name'
16582   shrext_cmds=".dll"
16583   need_lib_prefix=no
16584   library_names_spec='$libname${shared_ext} $libname.a'
16585   dynamic_linker='OS/2 ld.exe'
16586   shlibpath_var=LIBPATH
16587   ;;
16588
16589 osf3* | osf4* | osf5*)
16590   version_type=osf
16591   need_lib_prefix=no
16592   need_version=no
16593   soname_spec='${libname}${release}${shared_ext}$major'
16594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16595   shlibpath_var=LD_LIBRARY_PATH
16596   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16597   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16598   ;;
16599
16600 rdos*)
16601   dynamic_linker=no
16602   ;;
16603
16604 solaris*)
16605   version_type=linux
16606   need_lib_prefix=no
16607   need_version=no
16608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16609   soname_spec='${libname}${release}${shared_ext}$major'
16610   shlibpath_var=LD_LIBRARY_PATH
16611   shlibpath_overrides_runpath=yes
16612   hardcode_into_libs=yes
16613   # ldd complains unless libraries are executable
16614   postinstall_cmds='chmod +x $lib'
16615   ;;
16616
16617 sunos4*)
16618   version_type=sunos
16619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16620   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16621   shlibpath_var=LD_LIBRARY_PATH
16622   shlibpath_overrides_runpath=yes
16623   if test "$with_gnu_ld" = yes; then
16624     need_lib_prefix=no
16625   fi
16626   need_version=yes
16627   ;;
16628
16629 sysv4 | sysv4.3*)
16630   version_type=linux
16631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16632   soname_spec='${libname}${release}${shared_ext}$major'
16633   shlibpath_var=LD_LIBRARY_PATH
16634   case $host_vendor in
16635     sni)
16636       shlibpath_overrides_runpath=no
16637       need_lib_prefix=no
16638       runpath_var=LD_RUN_PATH
16639       ;;
16640     siemens)
16641       need_lib_prefix=no
16642       ;;
16643     motorola)
16644       need_lib_prefix=no
16645       need_version=no
16646       shlibpath_overrides_runpath=no
16647       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16648       ;;
16649   esac
16650   ;;
16651
16652 sysv4*MP*)
16653   if test -d /usr/nec ;then
16654     version_type=linux
16655     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16656     soname_spec='$libname${shared_ext}.$major'
16657     shlibpath_var=LD_LIBRARY_PATH
16658   fi
16659   ;;
16660
16661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16662   version_type=freebsd-elf
16663   need_lib_prefix=no
16664   need_version=no
16665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16666   soname_spec='${libname}${release}${shared_ext}$major'
16667   shlibpath_var=LD_LIBRARY_PATH
16668   shlibpath_overrides_runpath=yes
16669   hardcode_into_libs=yes
16670   if test "$with_gnu_ld" = yes; then
16671     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16672   else
16673     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16674     case $host_os in
16675       sco3.2v5*)
16676         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16677         ;;
16678     esac
16679   fi
16680   sys_lib_dlsearch_path_spec='/usr/lib'
16681   ;;
16682
16683 tpf*)
16684   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16685   version_type=linux
16686   need_lib_prefix=no
16687   need_version=no
16688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16689   shlibpath_var=LD_LIBRARY_PATH
16690   shlibpath_overrides_runpath=no
16691   hardcode_into_libs=yes
16692   ;;
16693
16694 uts4*)
16695   version_type=linux
16696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16697   soname_spec='${libname}${release}${shared_ext}$major'
16698   shlibpath_var=LD_LIBRARY_PATH
16699   ;;
16700
16701 *)
16702   dynamic_linker=no
16703   ;;
16704 esac
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16706 $as_echo "$dynamic_linker" >&6; }
16707 test "$dynamic_linker" = no && can_build_shared=no
16708
16709 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16710 if test "$GCC" = yes; then
16711   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16712 fi
16713
16714 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16715   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16716 fi
16717 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16718   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16719 fi
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16813 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16814 hardcode_action=
16815 if test -n "$hardcode_libdir_flag_spec" ||
16816    test -n "$runpath_var" ||
16817    test "X$hardcode_automatic" = "Xyes" ; then
16818
16819   # We can hardcode non-existent directories.
16820   if test "$hardcode_direct" != no &&
16821      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16822      # have to relink, otherwise we might link with an installed library
16823      # when we should be linking with a yet-to-be-installed one
16824      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16825      test "$hardcode_minus_L" != no; then
16826     # Linking always hardcodes the temporary library directory.
16827     hardcode_action=relink
16828   else
16829     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16830     hardcode_action=immediate
16831   fi
16832 else
16833   # We cannot hardcode anything, or else we can only hardcode existing
16834   # directories.
16835   hardcode_action=unsupported
16836 fi
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16838 $as_echo "$hardcode_action" >&6; }
16839
16840 if test "$hardcode_action" = relink ||
16841    test "$inherit_rpath" = yes; then
16842   # Fast installation is not supported
16843   enable_fast_install=no
16844 elif test "$shlibpath_overrides_runpath" = yes ||
16845      test "$enable_shared" = no; then
16846   # Fast installation is not necessary
16847   enable_fast_install=needless
16848 fi
16849
16850
16851
16852
16853
16854
16855   if test "x$enable_dlopen" != xyes; then
16856   enable_dlopen=unknown
16857   enable_dlopen_self=unknown
16858   enable_dlopen_self_static=unknown
16859 else
16860   lt_cv_dlopen=no
16861   lt_cv_dlopen_libs=
16862
16863   case $host_os in
16864   beos*)
16865     lt_cv_dlopen="load_add_on"
16866     lt_cv_dlopen_libs=
16867     lt_cv_dlopen_self=yes
16868     ;;
16869
16870   mingw* | pw32* | cegcc*)
16871     lt_cv_dlopen="LoadLibrary"
16872     lt_cv_dlopen_libs=
16873     ;;
16874
16875   cygwin*)
16876     lt_cv_dlopen="dlopen"
16877     lt_cv_dlopen_libs=
16878     ;;
16879
16880   darwin*)
16881   # if libdl is installed we need to link against it
16882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16883 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16884 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16885   $as_echo_n "(cached) " >&6
16886 else
16887   ac_check_lib_save_LIBS=$LIBS
16888 LIBS="-ldl  $LIBS"
16889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16890 /* end confdefs.h.  */
16891
16892 /* Override any GCC internal prototype to avoid an error.
16893    Use char because int might match the return type of a GCC
16894    builtin and then its argument prototype would still apply.  */
16895 #ifdef __cplusplus
16896 extern "C"
16897 #endif
16898 char dlopen ();
16899 int
16900 main ()
16901 {
16902 return dlopen ();
16903   ;
16904   return 0;
16905 }
16906 _ACEOF
16907 if ac_fn_c_try_link "$LINENO"; then :
16908   ac_cv_lib_dl_dlopen=yes
16909 else
16910   ac_cv_lib_dl_dlopen=no
16911 fi
16912 rm -f core conftest.err conftest.$ac_objext \
16913     conftest$ac_exeext conftest.$ac_ext
16914 LIBS=$ac_check_lib_save_LIBS
16915 fi
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16917 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16918 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16919   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16920 else
16921
16922     lt_cv_dlopen="dyld"
16923     lt_cv_dlopen_libs=
16924     lt_cv_dlopen_self=yes
16925
16926 fi
16927
16928     ;;
16929
16930   *)
16931     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16932 if test "x$ac_cv_func_shl_load" = x""yes; then :
16933   lt_cv_dlopen="shl_load"
16934 else
16935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16936 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16937 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16938   $as_echo_n "(cached) " >&6
16939 else
16940   ac_check_lib_save_LIBS=$LIBS
16941 LIBS="-ldld  $LIBS"
16942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16943 /* end confdefs.h.  */
16944
16945 /* Override any GCC internal prototype to avoid an error.
16946    Use char because int might match the return type of a GCC
16947    builtin and then its argument prototype would still apply.  */
16948 #ifdef __cplusplus
16949 extern "C"
16950 #endif
16951 char shl_load ();
16952 int
16953 main ()
16954 {
16955 return shl_load ();
16956   ;
16957   return 0;
16958 }
16959 _ACEOF
16960 if ac_fn_c_try_link "$LINENO"; then :
16961   ac_cv_lib_dld_shl_load=yes
16962 else
16963   ac_cv_lib_dld_shl_load=no
16964 fi
16965 rm -f core conftest.err conftest.$ac_objext \
16966     conftest$ac_exeext conftest.$ac_ext
16967 LIBS=$ac_check_lib_save_LIBS
16968 fi
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16970 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16971 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16972   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16973 else
16974   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16975 if test "x$ac_cv_func_dlopen" = x""yes; then :
16976   lt_cv_dlopen="dlopen"
16977 else
16978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16979 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16980 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16981   $as_echo_n "(cached) " >&6
16982 else
16983   ac_check_lib_save_LIBS=$LIBS
16984 LIBS="-ldl  $LIBS"
16985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986 /* end confdefs.h.  */
16987
16988 /* Override any GCC internal prototype to avoid an error.
16989    Use char because int might match the return type of a GCC
16990    builtin and then its argument prototype would still apply.  */
16991 #ifdef __cplusplus
16992 extern "C"
16993 #endif
16994 char dlopen ();
16995 int
16996 main ()
16997 {
16998 return dlopen ();
16999   ;
17000   return 0;
17001 }
17002 _ACEOF
17003 if ac_fn_c_try_link "$LINENO"; then :
17004   ac_cv_lib_dl_dlopen=yes
17005 else
17006   ac_cv_lib_dl_dlopen=no
17007 fi
17008 rm -f core conftest.err conftest.$ac_objext \
17009     conftest$ac_exeext conftest.$ac_ext
17010 LIBS=$ac_check_lib_save_LIBS
17011 fi
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17013 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17014 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17015   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17016 else
17017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17018 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17019 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17020   $as_echo_n "(cached) " >&6
17021 else
17022   ac_check_lib_save_LIBS=$LIBS
17023 LIBS="-lsvld  $LIBS"
17024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17025 /* end confdefs.h.  */
17026
17027 /* Override any GCC internal prototype to avoid an error.
17028    Use char because int might match the return type of a GCC
17029    builtin and then its argument prototype would still apply.  */
17030 #ifdef __cplusplus
17031 extern "C"
17032 #endif
17033 char dlopen ();
17034 int
17035 main ()
17036 {
17037 return dlopen ();
17038   ;
17039   return 0;
17040 }
17041 _ACEOF
17042 if ac_fn_c_try_link "$LINENO"; then :
17043   ac_cv_lib_svld_dlopen=yes
17044 else
17045   ac_cv_lib_svld_dlopen=no
17046 fi
17047 rm -f core conftest.err conftest.$ac_objext \
17048     conftest$ac_exeext conftest.$ac_ext
17049 LIBS=$ac_check_lib_save_LIBS
17050 fi
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17052 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17053 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17054   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17055 else
17056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17057 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17058 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17059   $as_echo_n "(cached) " >&6
17060 else
17061   ac_check_lib_save_LIBS=$LIBS
17062 LIBS="-ldld  $LIBS"
17063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17064 /* end confdefs.h.  */
17065
17066 /* Override any GCC internal prototype to avoid an error.
17067    Use char because int might match the return type of a GCC
17068    builtin and then its argument prototype would still apply.  */
17069 #ifdef __cplusplus
17070 extern "C"
17071 #endif
17072 char dld_link ();
17073 int
17074 main ()
17075 {
17076 return dld_link ();
17077   ;
17078   return 0;
17079 }
17080 _ACEOF
17081 if ac_fn_c_try_link "$LINENO"; then :
17082   ac_cv_lib_dld_dld_link=yes
17083 else
17084   ac_cv_lib_dld_dld_link=no
17085 fi
17086 rm -f core conftest.err conftest.$ac_objext \
17087     conftest$ac_exeext conftest.$ac_ext
17088 LIBS=$ac_check_lib_save_LIBS
17089 fi
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17091 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17092 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17093   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17094 fi
17095
17096
17097 fi
17098
17099
17100 fi
17101
17102
17103 fi
17104
17105
17106 fi
17107
17108
17109 fi
17110
17111     ;;
17112   esac
17113
17114   if test "x$lt_cv_dlopen" != xno; then
17115     enable_dlopen=yes
17116   else
17117     enable_dlopen=no
17118   fi
17119
17120   case $lt_cv_dlopen in
17121   dlopen)
17122     save_CPPFLAGS="$CPPFLAGS"
17123     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17124
17125     save_LDFLAGS="$LDFLAGS"
17126     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17127
17128     save_LIBS="$LIBS"
17129     LIBS="$lt_cv_dlopen_libs $LIBS"
17130
17131     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17132 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17133 if test "${lt_cv_dlopen_self+set}" = set; then :
17134   $as_echo_n "(cached) " >&6
17135 else
17136           if test "$cross_compiling" = yes; then :
17137   lt_cv_dlopen_self=cross
17138 else
17139   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17140   lt_status=$lt_dlunknown
17141   cat > conftest.$ac_ext <<_LT_EOF
17142 #line 17142 "configure"
17143 #include "confdefs.h"
17144
17145 #if HAVE_DLFCN_H
17146 #include <dlfcn.h>
17147 #endif
17148
17149 #include <stdio.h>
17150
17151 #ifdef RTLD_GLOBAL
17152 #  define LT_DLGLOBAL           RTLD_GLOBAL
17153 #else
17154 #  ifdef DL_GLOBAL
17155 #    define LT_DLGLOBAL         DL_GLOBAL
17156 #  else
17157 #    define LT_DLGLOBAL         0
17158 #  endif
17159 #endif
17160
17161 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17162    find out it does not work in some platform. */
17163 #ifndef LT_DLLAZY_OR_NOW
17164 #  ifdef RTLD_LAZY
17165 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17166 #  else
17167 #    ifdef DL_LAZY
17168 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17169 #    else
17170 #      ifdef RTLD_NOW
17171 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17172 #      else
17173 #        ifdef DL_NOW
17174 #          define LT_DLLAZY_OR_NOW      DL_NOW
17175 #        else
17176 #          define LT_DLLAZY_OR_NOW      0
17177 #        endif
17178 #      endif
17179 #    endif
17180 #  endif
17181 #endif
17182
17183 /* When -fvisbility=hidden is used, assume the code has been annotated
17184    correspondingly for the symbols needed.  */
17185 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17186 void fnord () __attribute__((visibility("default")));
17187 #endif
17188
17189 void fnord () { int i=42; }
17190 int main ()
17191 {
17192   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17193   int status = $lt_dlunknown;
17194
17195   if (self)
17196     {
17197       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17198       else
17199         {
17200           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17201           else puts (dlerror ());
17202         }
17203       /* dlclose (self); */
17204     }
17205   else
17206     puts (dlerror ());
17207
17208   return status;
17209 }
17210 _LT_EOF
17211   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17212   (eval $ac_link) 2>&5
17213   ac_status=$?
17214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17215   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17216     (./conftest; exit; ) >&5 2>/dev/null
17217     lt_status=$?
17218     case x$lt_status in
17219       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17220       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17221       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17222     esac
17223   else :
17224     # compilation failed
17225     lt_cv_dlopen_self=no
17226   fi
17227 fi
17228 rm -fr conftest*
17229
17230
17231 fi
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17233 $as_echo "$lt_cv_dlopen_self" >&6; }
17234
17235     if test "x$lt_cv_dlopen_self" = xyes; then
17236       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17237       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17238 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17239 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17240   $as_echo_n "(cached) " >&6
17241 else
17242           if test "$cross_compiling" = yes; then :
17243   lt_cv_dlopen_self_static=cross
17244 else
17245   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17246   lt_status=$lt_dlunknown
17247   cat > conftest.$ac_ext <<_LT_EOF
17248 #line 17248 "configure"
17249 #include "confdefs.h"
17250
17251 #if HAVE_DLFCN_H
17252 #include <dlfcn.h>
17253 #endif
17254
17255 #include <stdio.h>
17256
17257 #ifdef RTLD_GLOBAL
17258 #  define LT_DLGLOBAL           RTLD_GLOBAL
17259 #else
17260 #  ifdef DL_GLOBAL
17261 #    define LT_DLGLOBAL         DL_GLOBAL
17262 #  else
17263 #    define LT_DLGLOBAL         0
17264 #  endif
17265 #endif
17266
17267 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17268    find out it does not work in some platform. */
17269 #ifndef LT_DLLAZY_OR_NOW
17270 #  ifdef RTLD_LAZY
17271 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17272 #  else
17273 #    ifdef DL_LAZY
17274 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17275 #    else
17276 #      ifdef RTLD_NOW
17277 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17278 #      else
17279 #        ifdef DL_NOW
17280 #          define LT_DLLAZY_OR_NOW      DL_NOW
17281 #        else
17282 #          define LT_DLLAZY_OR_NOW      0
17283 #        endif
17284 #      endif
17285 #    endif
17286 #  endif
17287 #endif
17288
17289 /* When -fvisbility=hidden is used, assume the code has been annotated
17290    correspondingly for the symbols needed.  */
17291 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17292 void fnord () __attribute__((visibility("default")));
17293 #endif
17294
17295 void fnord () { int i=42; }
17296 int main ()
17297 {
17298   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17299   int status = $lt_dlunknown;
17300
17301   if (self)
17302     {
17303       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17304       else
17305         {
17306           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17307           else puts (dlerror ());
17308         }
17309       /* dlclose (self); */
17310     }
17311   else
17312     puts (dlerror ());
17313
17314   return status;
17315 }
17316 _LT_EOF
17317   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17318   (eval $ac_link) 2>&5
17319   ac_status=$?
17320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17321   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17322     (./conftest; exit; ) >&5 2>/dev/null
17323     lt_status=$?
17324     case x$lt_status in
17325       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17326       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17327       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17328     esac
17329   else :
17330     # compilation failed
17331     lt_cv_dlopen_self_static=no
17332   fi
17333 fi
17334 rm -fr conftest*
17335
17336
17337 fi
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17339 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17340     fi
17341
17342     CPPFLAGS="$save_CPPFLAGS"
17343     LDFLAGS="$save_LDFLAGS"
17344     LIBS="$save_LIBS"
17345     ;;
17346   esac
17347
17348   case $lt_cv_dlopen_self in
17349   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17350   *) enable_dlopen_self=unknown ;;
17351   esac
17352
17353   case $lt_cv_dlopen_self_static in
17354   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17355   *) enable_dlopen_self_static=unknown ;;
17356   esac
17357 fi
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375 striplib=
17376 old_striplib=
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17378 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17379 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17380   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17381   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17383 $as_echo "yes" >&6; }
17384 else
17385 # FIXME - insert some real tests, host_os isn't really good enough
17386   case $host_os in
17387   darwin*)
17388     if test -n "$STRIP" ; then
17389       striplib="$STRIP -x"
17390       old_striplib="$STRIP -S"
17391       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17392 $as_echo "yes" >&6; }
17393     else
17394       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17395 $as_echo "no" >&6; }
17396     fi
17397     ;;
17398   *)
17399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17400 $as_echo "no" >&6; }
17401     ;;
17402   esac
17403 fi
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416   # Report which library types will actually be built
17417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17418 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17420 $as_echo "$can_build_shared" >&6; }
17421
17422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17423 $as_echo_n "checking whether to build shared libraries... " >&6; }
17424   test "$can_build_shared" = "no" && enable_shared=no
17425
17426   # On AIX, shared libraries and static libraries use the same namespace, and
17427   # are all built from PIC.
17428   case $host_os in
17429   aix3*)
17430     test "$enable_shared" = yes && enable_static=no
17431     if test -n "$RANLIB"; then
17432       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17433       postinstall_cmds='$RANLIB $lib'
17434     fi
17435     ;;
17436
17437   aix[4-9]*)
17438     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17439       test "$enable_shared" = yes && enable_static=no
17440     fi
17441     ;;
17442   esac
17443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17444 $as_echo "$enable_shared" >&6; }
17445
17446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17447 $as_echo_n "checking whether to build static libraries... " >&6; }
17448   # Make sure either enable_shared or enable_static is yes.
17449   test "$enable_shared" = yes || enable_static=yes
17450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17451 $as_echo "$enable_static" >&6; }
17452
17453
17454
17455
17456 fi
17457 ac_ext=c
17458 ac_cpp='$CPP $CPPFLAGS'
17459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17462
17463 CC="$lt_save_CC"
17464
17465       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17466     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17467     (test "X$CXX" != "Xg++"))) ; then
17468   ac_ext=cpp
17469 ac_cpp='$CXXCPP $CPPFLAGS'
17470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17474 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17475 if test -z "$CXXCPP"; then
17476   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17477   $as_echo_n "(cached) " >&6
17478 else
17479       # Double quotes because CXXCPP needs to be expanded
17480     for CXXCPP in "$CXX -E" "/lib/cpp"
17481     do
17482       ac_preproc_ok=false
17483 for ac_cxx_preproc_warn_flag in '' yes
17484 do
17485   # Use a header file that comes with gcc, so configuring glibc
17486   # with a fresh cross-compiler works.
17487   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17488   # <limits.h> exists even on freestanding compilers.
17489   # On the NeXT, cc -E runs the code through the compiler's parser,
17490   # not just through cpp. "Syntax error" is here to catch this case.
17491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492 /* end confdefs.h.  */
17493 #ifdef __STDC__
17494 # include <limits.h>
17495 #else
17496 # include <assert.h>
17497 #endif
17498                      Syntax error
17499 _ACEOF
17500 if ac_fn_cxx_try_cpp "$LINENO"; then :
17501
17502 else
17503   # Broken: fails on valid input.
17504 continue
17505 fi
17506 rm -f conftest.err conftest.$ac_ext
17507
17508   # OK, works on sane cases.  Now check whether nonexistent headers
17509   # can be detected and how.
17510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17511 /* end confdefs.h.  */
17512 #include <ac_nonexistent.h>
17513 _ACEOF
17514 if ac_fn_cxx_try_cpp "$LINENO"; then :
17515   # Broken: success on invalid input.
17516 continue
17517 else
17518   # Passes both tests.
17519 ac_preproc_ok=:
17520 break
17521 fi
17522 rm -f conftest.err conftest.$ac_ext
17523
17524 done
17525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17526 rm -f conftest.err conftest.$ac_ext
17527 if $ac_preproc_ok; then :
17528   break
17529 fi
17530
17531     done
17532     ac_cv_prog_CXXCPP=$CXXCPP
17533
17534 fi
17535   CXXCPP=$ac_cv_prog_CXXCPP
17536 else
17537   ac_cv_prog_CXXCPP=$CXXCPP
17538 fi
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17540 $as_echo "$CXXCPP" >&6; }
17541 ac_preproc_ok=false
17542 for ac_cxx_preproc_warn_flag in '' yes
17543 do
17544   # Use a header file that comes with gcc, so configuring glibc
17545   # with a fresh cross-compiler works.
17546   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17547   # <limits.h> exists even on freestanding compilers.
17548   # On the NeXT, cc -E runs the code through the compiler's parser,
17549   # not just through cpp. "Syntax error" is here to catch this case.
17550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17551 /* end confdefs.h.  */
17552 #ifdef __STDC__
17553 # include <limits.h>
17554 #else
17555 # include <assert.h>
17556 #endif
17557                      Syntax error
17558 _ACEOF
17559 if ac_fn_cxx_try_cpp "$LINENO"; then :
17560
17561 else
17562   # Broken: fails on valid input.
17563 continue
17564 fi
17565 rm -f conftest.err conftest.$ac_ext
17566
17567   # OK, works on sane cases.  Now check whether nonexistent headers
17568   # can be detected and how.
17569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h.  */
17571 #include <ac_nonexistent.h>
17572 _ACEOF
17573 if ac_fn_cxx_try_cpp "$LINENO"; then :
17574   # Broken: success on invalid input.
17575 continue
17576 else
17577   # Passes both tests.
17578 ac_preproc_ok=:
17579 break
17580 fi
17581 rm -f conftest.err conftest.$ac_ext
17582
17583 done
17584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17585 rm -f conftest.err conftest.$ac_ext
17586 if $ac_preproc_ok; then :
17587
17588 else
17589   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17591 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17592 See \`config.log' for more details." "$LINENO" 5; }
17593 fi
17594
17595 ac_ext=c
17596 ac_cpp='$CPP $CPPFLAGS'
17597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17600
17601 else
17602   _lt_caught_CXX_error=yes
17603 fi
17604
17605 ac_ext=cpp
17606 ac_cpp='$CXXCPP $CPPFLAGS'
17607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17610
17611 archive_cmds_need_lc_CXX=no
17612 allow_undefined_flag_CXX=
17613 always_export_symbols_CXX=no
17614 archive_expsym_cmds_CXX=
17615 compiler_needs_object_CXX=no
17616 export_dynamic_flag_spec_CXX=
17617 hardcode_direct_CXX=no
17618 hardcode_direct_absolute_CXX=no
17619 hardcode_libdir_flag_spec_CXX=
17620 hardcode_libdir_flag_spec_ld_CXX=
17621 hardcode_libdir_separator_CXX=
17622 hardcode_minus_L_CXX=no
17623 hardcode_shlibpath_var_CXX=unsupported
17624 hardcode_automatic_CXX=no
17625 inherit_rpath_CXX=no
17626 module_cmds_CXX=
17627 module_expsym_cmds_CXX=
17628 link_all_deplibs_CXX=unknown
17629 old_archive_cmds_CXX=$old_archive_cmds
17630 reload_flag_CXX=$reload_flag
17631 reload_cmds_CXX=$reload_cmds
17632 no_undefined_flag_CXX=
17633 whole_archive_flag_spec_CXX=
17634 enable_shared_with_static_runtimes_CXX=no
17635
17636 # Source file extension for C++ test sources.
17637 ac_ext=cpp
17638
17639 # Object file extension for compiled C++ test sources.
17640 objext=o
17641 objext_CXX=$objext
17642
17643 # No sense in running all these tests if we already determined that
17644 # the CXX compiler isn't working.  Some variables (like enable_shared)
17645 # are currently assumed to apply to all compilers on this platform,
17646 # and will be corrupted by setting them based on a non-working compiler.
17647 if test "$_lt_caught_CXX_error" != yes; then
17648   # Code to be used in simple compile tests
17649   lt_simple_compile_test_code="int some_variable = 0;"
17650
17651   # Code to be used in simple link tests
17652   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17653
17654   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17655
17656
17657
17658
17659
17660
17661 # If no C compiler was specified, use CC.
17662 LTCC=${LTCC-"$CC"}
17663
17664 # If no C compiler flags were specified, use CFLAGS.
17665 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17666
17667 # Allow CC to be a program name with arguments.
17668 compiler=$CC
17669
17670
17671   # save warnings/boilerplate of simple test code
17672   ac_outfile=conftest.$ac_objext
17673 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17674 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17675 _lt_compiler_boilerplate=`cat conftest.err`
17676 $RM conftest*
17677
17678   ac_outfile=conftest.$ac_objext
17679 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17680 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17681 _lt_linker_boilerplate=`cat conftest.err`
17682 $RM -r conftest*
17683
17684
17685   # Allow CC to be a program name with arguments.
17686   lt_save_CC=$CC
17687   lt_save_LD=$LD
17688   lt_save_GCC=$GCC
17689   GCC=$GXX
17690   lt_save_with_gnu_ld=$with_gnu_ld
17691   lt_save_path_LD=$lt_cv_path_LD
17692   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17693     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17694   else
17695     $as_unset lt_cv_prog_gnu_ld
17696   fi
17697   if test -n "${lt_cv_path_LDCXX+set}"; then
17698     lt_cv_path_LD=$lt_cv_path_LDCXX
17699   else
17700     $as_unset lt_cv_path_LD
17701   fi
17702   test -z "${LDCXX+set}" || LD=$LDCXX
17703   CC=${CXX-"c++"}
17704   compiler=$CC
17705   compiler_CXX=$CC
17706   for cc_temp in $compiler""; do
17707   case $cc_temp in
17708     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17709     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17710     \-*) ;;
17711     *) break;;
17712   esac
17713 done
17714 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17715
17716
17717   if test -n "$compiler"; then
17718     # We don't want -fno-exception when compiling C++ code, so set the
17719     # no_builtin_flag separately
17720     if test "$GXX" = yes; then
17721       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17722     else
17723       lt_prog_compiler_no_builtin_flag_CXX=
17724     fi
17725
17726     if test "$GXX" = yes; then
17727       # Set up default GNU C++ configuration
17728
17729
17730
17731 # Check whether --with-gnu-ld was given.
17732 if test "${with_gnu_ld+set}" = set; then :
17733   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17734 else
17735   with_gnu_ld=no
17736 fi
17737
17738 ac_prog=ld
17739 if test "$GCC" = yes; then
17740   # Check if gcc -print-prog-name=ld gives a path.
17741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17742 $as_echo_n "checking for ld used by $CC... " >&6; }
17743   case $host in
17744   *-*-mingw*)
17745     # gcc leaves a trailing carriage return which upsets mingw
17746     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17747   *)
17748     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17749   esac
17750   case $ac_prog in
17751     # Accept absolute paths.
17752     [\\/]* | ?:[\\/]*)
17753       re_direlt='/[^/][^/]*/\.\./'
17754       # Canonicalize the pathname of ld
17755       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17756       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17757         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17758       done
17759       test -z "$LD" && LD="$ac_prog"
17760       ;;
17761   "")
17762     # If it fails, then pretend we aren't using GCC.
17763     ac_prog=ld
17764     ;;
17765   *)
17766     # If it is relative, then search for the first ld in PATH.
17767     with_gnu_ld=unknown
17768     ;;
17769   esac
17770 elif test "$with_gnu_ld" = yes; then
17771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17772 $as_echo_n "checking for GNU ld... " >&6; }
17773 else
17774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17775 $as_echo_n "checking for non-GNU ld... " >&6; }
17776 fi
17777 if test "${lt_cv_path_LD+set}" = set; then :
17778   $as_echo_n "(cached) " >&6
17779 else
17780   if test -z "$LD"; then
17781   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17782   for ac_dir in $PATH; do
17783     IFS="$lt_save_ifs"
17784     test -z "$ac_dir" && ac_dir=.
17785     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17786       lt_cv_path_LD="$ac_dir/$ac_prog"
17787       # Check to see if the program is GNU ld.  I'd rather use --version,
17788       # but apparently some variants of GNU ld only accept -v.
17789       # Break only if it was the GNU/non-GNU ld that we prefer.
17790       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17791       *GNU* | *'with BFD'*)
17792         test "$with_gnu_ld" != no && break
17793         ;;
17794       *)
17795         test "$with_gnu_ld" != yes && break
17796         ;;
17797       esac
17798     fi
17799   done
17800   IFS="$lt_save_ifs"
17801 else
17802   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17803 fi
17804 fi
17805
17806 LD="$lt_cv_path_LD"
17807 if test -n "$LD"; then
17808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17809 $as_echo "$LD" >&6; }
17810 else
17811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17812 $as_echo "no" >&6; }
17813 fi
17814 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17816 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17817 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17818   $as_echo_n "(cached) " >&6
17819 else
17820   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17821 case `$LD -v 2>&1 </dev/null` in
17822 *GNU* | *'with BFD'*)
17823   lt_cv_prog_gnu_ld=yes
17824   ;;
17825 *)
17826   lt_cv_prog_gnu_ld=no
17827   ;;
17828 esac
17829 fi
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17831 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17832 with_gnu_ld=$lt_cv_prog_gnu_ld
17833
17834
17835
17836
17837
17838
17839
17840       # Check if GNU C++ uses GNU ld as the underlying linker, since the
17841       # archiving commands below assume that GNU ld is being used.
17842       if test "$with_gnu_ld" = yes; then
17843         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17844         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'
17845
17846         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17847         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17848
17849         # If archive_cmds runs LD, not CC, wlarc should be empty
17850         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17851         #     investigate it a little bit more. (MM)
17852         wlarc='${wl}'
17853
17854         # ancient GNU ld didn't support --whole-archive et. al.
17855         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17856           $GREP 'no-whole-archive' > /dev/null; then
17857           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17858         else
17859           whole_archive_flag_spec_CXX=
17860         fi
17861       else
17862         with_gnu_ld=no
17863         wlarc=
17864
17865         # A generic and very simple default shared library creation
17866         # command for GNU C++ for the case where it uses the native
17867         # linker, instead of GNU ld.  If possible, this setting should
17868         # overridden to take advantage of the native linker features on
17869         # the platform it is being used on.
17870         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17871       fi
17872
17873       # Commands to make compiler produce verbose output that lists
17874       # what "hidden" libraries, object files and flags are used when
17875       # linking a shared library.
17876       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17877
17878     else
17879       GXX=no
17880       with_gnu_ld=no
17881       wlarc=
17882     fi
17883
17884     # PORTME: fill in a description of your system's C++ link characteristics
17885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17886 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17887     ld_shlibs_CXX=yes
17888     case $host_os in
17889       aix3*)
17890         # FIXME: insert proper C++ library support
17891         ld_shlibs_CXX=no
17892         ;;
17893       aix[4-9]*)
17894         if test "$host_cpu" = ia64; then
17895           # On IA64, the linker does run time linking by default, so we don't
17896           # have to do anything special.
17897           aix_use_runtimelinking=no
17898           exp_sym_flag='-Bexport'
17899           no_entry_flag=""
17900         else
17901           aix_use_runtimelinking=no
17902
17903           # Test if we are trying to use run time linking or normal
17904           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17905           # need to do runtime linking.
17906           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17907             for ld_flag in $LDFLAGS; do
17908               case $ld_flag in
17909               *-brtl*)
17910                 aix_use_runtimelinking=yes
17911                 break
17912                 ;;
17913               esac
17914             done
17915             ;;
17916           esac
17917
17918           exp_sym_flag='-bexport'
17919           no_entry_flag='-bnoentry'
17920         fi
17921
17922         # When large executables or shared objects are built, AIX ld can
17923         # have problems creating the table of contents.  If linking a library
17924         # or program results in "error TOC overflow" add -mminimal-toc to
17925         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17926         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17927
17928         archive_cmds_CXX=''
17929         hardcode_direct_CXX=yes
17930         hardcode_direct_absolute_CXX=yes
17931         hardcode_libdir_separator_CXX=':'
17932         link_all_deplibs_CXX=yes
17933         file_list_spec_CXX='${wl}-f,'
17934
17935         if test "$GXX" = yes; then
17936           case $host_os in aix4.[012]|aix4.[012].*)
17937           # We only want to do this on AIX 4.2 and lower, the check
17938           # below for broken collect2 doesn't work under 4.3+
17939           collect2name=`${CC} -print-prog-name=collect2`
17940           if test -f "$collect2name" &&
17941              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17942           then
17943             # We have reworked collect2
17944             :
17945           else
17946             # We have old collect2
17947             hardcode_direct_CXX=unsupported
17948             # It fails to find uninstalled libraries when the uninstalled
17949             # path is not listed in the libpath.  Setting hardcode_minus_L
17950             # to unsupported forces relinking
17951             hardcode_minus_L_CXX=yes
17952             hardcode_libdir_flag_spec_CXX='-L$libdir'
17953             hardcode_libdir_separator_CXX=
17954           fi
17955           esac
17956           shared_flag='-shared'
17957           if test "$aix_use_runtimelinking" = yes; then
17958             shared_flag="$shared_flag "'${wl}-G'
17959           fi
17960         else
17961           # not using gcc
17962           if test "$host_cpu" = ia64; then
17963           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17964           # chokes on -Wl,-G. The following line is correct:
17965           shared_flag='-G'
17966           else
17967             if test "$aix_use_runtimelinking" = yes; then
17968               shared_flag='${wl}-G'
17969             else
17970               shared_flag='${wl}-bM:SRE'
17971             fi
17972           fi
17973         fi
17974
17975         export_dynamic_flag_spec_CXX='${wl}-bexpall'
17976         # It seems that -bexpall does not export symbols beginning with
17977         # underscore (_), so it is better to generate a list of symbols to
17978         # export.
17979         always_export_symbols_CXX=yes
17980         if test "$aix_use_runtimelinking" = yes; then
17981           # Warning - without using the other runtime loading flags (-brtl),
17982           # -berok will link without error, but may produce a broken library.
17983           allow_undefined_flag_CXX='-berok'
17984           # Determine the default libpath from the value encoded in an empty
17985           # executable.
17986           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17987 /* end confdefs.h.  */
17988
17989 int
17990 main ()
17991 {
17992
17993   ;
17994   return 0;
17995 }
17996 _ACEOF
17997 if ac_fn_cxx_try_link "$LINENO"; then :
17998
17999 lt_aix_libpath_sed='
18000     /Import File Strings/,/^$/ {
18001         /^0/ {
18002             s/^0  *\(.*\)$/\1/
18003             p
18004         }
18005     }'
18006 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18007 # Check for a 64-bit object if we didn't find anything.
18008 if test -z "$aix_libpath"; then
18009   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18010 fi
18011 fi
18012 rm -f core conftest.err conftest.$ac_objext \
18013     conftest$ac_exeext conftest.$ac_ext
18014 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18015
18016           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18017
18018           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"
18019         else
18020           if test "$host_cpu" = ia64; then
18021             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18022             allow_undefined_flag_CXX="-z nodefs"
18023             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"
18024           else
18025             # Determine the default libpath from the value encoded in an
18026             # empty executable.
18027             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18028 /* end confdefs.h.  */
18029
18030 int
18031 main ()
18032 {
18033
18034   ;
18035   return 0;
18036 }
18037 _ACEOF
18038 if ac_fn_cxx_try_link "$LINENO"; then :
18039
18040 lt_aix_libpath_sed='
18041     /Import File Strings/,/^$/ {
18042         /^0/ {
18043             s/^0  *\(.*\)$/\1/
18044             p
18045         }
18046     }'
18047 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18048 # Check for a 64-bit object if we didn't find anything.
18049 if test -z "$aix_libpath"; then
18050   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18051 fi
18052 fi
18053 rm -f core conftest.err conftest.$ac_objext \
18054     conftest$ac_exeext conftest.$ac_ext
18055 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18056
18057             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18058             # Warning - without using the other run time loading flags,
18059             # -berok will link without error, but may produce a broken library.
18060             no_undefined_flag_CXX=' ${wl}-bernotok'
18061             allow_undefined_flag_CXX=' ${wl}-berok'
18062             if test "$with_gnu_ld" = yes; then
18063               # We only use this code for GNU lds that support --whole-archive.
18064               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18065             else
18066               # Exported symbols can be pulled into shared objects from archives
18067               whole_archive_flag_spec_CXX='$convenience'
18068             fi
18069             archive_cmds_need_lc_CXX=yes
18070             # This is similar to how AIX traditionally builds its shared
18071             # libraries.
18072             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'
18073           fi
18074         fi
18075         ;;
18076
18077       beos*)
18078         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18079           allow_undefined_flag_CXX=unsupported
18080           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18081           # support --undefined.  This deserves some investigation.  FIXME
18082           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18083         else
18084           ld_shlibs_CXX=no
18085         fi
18086         ;;
18087
18088       chorus*)
18089         case $cc_basename in
18090           *)
18091           # FIXME: insert proper C++ library support
18092           ld_shlibs_CXX=no
18093           ;;
18094         esac
18095         ;;
18096
18097       cygwin* | mingw* | pw32* | cegcc*)
18098         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18099         # as there is no search path for DLLs.
18100         hardcode_libdir_flag_spec_CXX='-L$libdir'
18101         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18102         allow_undefined_flag_CXX=unsupported
18103         always_export_symbols_CXX=no
18104         enable_shared_with_static_runtimes_CXX=yes
18105
18106         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18107           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'
18108           # If the export-symbols file already is a .def file (1st line
18109           # is EXPORTS), use it as is; otherwise, prepend...
18110           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18111             cp $export_symbols $output_objdir/$soname.def;
18112           else
18113             echo EXPORTS > $output_objdir/$soname.def;
18114             cat $export_symbols >> $output_objdir/$soname.def;
18115           fi~
18116           $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'
18117         else
18118           ld_shlibs_CXX=no
18119         fi
18120         ;;
18121       darwin* | rhapsody*)
18122
18123
18124   archive_cmds_need_lc_CXX=no
18125   hardcode_direct_CXX=no
18126   hardcode_automatic_CXX=yes
18127   hardcode_shlibpath_var_CXX=unsupported
18128   if test "$lt_cv_ld_force_load" = "yes"; then
18129     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\"`'
18130   else
18131     whole_archive_flag_spec_CXX=''
18132   fi
18133   link_all_deplibs_CXX=yes
18134   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18135   case $cc_basename in
18136      ifort*) _lt_dar_can_shared=yes ;;
18137      *) _lt_dar_can_shared=$GCC ;;
18138   esac
18139   if test "$_lt_dar_can_shared" = "yes"; then
18140     output_verbose_link_cmd=func_echo_all
18141     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}"
18142     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18143     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}"
18144     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}"
18145        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18146       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}"
18147       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}"
18148     fi
18149
18150   else
18151   ld_shlibs_CXX=no
18152   fi
18153
18154         ;;
18155
18156       dgux*)
18157         case $cc_basename in
18158           ec++*)
18159             # FIXME: insert proper C++ library support
18160             ld_shlibs_CXX=no
18161             ;;
18162           ghcx*)
18163             # Green Hills C++ Compiler
18164             # FIXME: insert proper C++ library support
18165             ld_shlibs_CXX=no
18166             ;;
18167           *)
18168             # FIXME: insert proper C++ library support
18169             ld_shlibs_CXX=no
18170             ;;
18171         esac
18172         ;;
18173
18174       freebsd[12]*)
18175         # C++ shared libraries reported to be fairly broken before
18176         # switch to ELF
18177         ld_shlibs_CXX=no
18178         ;;
18179
18180       freebsd-elf*)
18181         archive_cmds_need_lc_CXX=no
18182         ;;
18183
18184       freebsd* | dragonfly*)
18185         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18186         # conventions
18187         ld_shlibs_CXX=yes
18188         ;;
18189
18190       gnu*)
18191         ;;
18192
18193       haiku*)
18194         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18195         link_all_deplibs_CXX=yes
18196         ;;
18197
18198       hpux9*)
18199         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18200         hardcode_libdir_separator_CXX=:
18201         export_dynamic_flag_spec_CXX='${wl}-E'
18202         hardcode_direct_CXX=yes
18203         hardcode_minus_L_CXX=yes # Not in the search PATH,
18204                                              # but as the default
18205                                              # location of the library.
18206
18207         case $cc_basename in
18208           CC*)
18209             # FIXME: insert proper C++ library support
18210             ld_shlibs_CXX=no
18211             ;;
18212           aCC*)
18213             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'
18214             # Commands to make compiler produce verbose output that lists
18215             # what "hidden" libraries, object files and flags are used when
18216             # linking a shared library.
18217             #
18218             # There doesn't appear to be a way to prevent this compiler from
18219             # explicitly linking system object files so we need to strip them
18220             # from the output so that they don't get included in the library
18221             # dependencies.
18222             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"'
18223             ;;
18224           *)
18225             if test "$GXX" = yes; then
18226               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'
18227             else
18228               # FIXME: insert proper C++ library support
18229               ld_shlibs_CXX=no
18230             fi
18231             ;;
18232         esac
18233         ;;
18234
18235       hpux10*|hpux11*)
18236         if test $with_gnu_ld = no; then
18237           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18238           hardcode_libdir_separator_CXX=:
18239
18240           case $host_cpu in
18241             hppa*64*|ia64*)
18242               ;;
18243             *)
18244               export_dynamic_flag_spec_CXX='${wl}-E'
18245               ;;
18246           esac
18247         fi
18248         case $host_cpu in
18249           hppa*64*|ia64*)
18250             hardcode_direct_CXX=no
18251             hardcode_shlibpath_var_CXX=no
18252             ;;
18253           *)
18254             hardcode_direct_CXX=yes
18255             hardcode_direct_absolute_CXX=yes
18256             hardcode_minus_L_CXX=yes # Not in the search PATH,
18257                                                  # but as the default
18258                                                  # location of the library.
18259             ;;
18260         esac
18261
18262         case $cc_basename in
18263           CC*)
18264             # FIXME: insert proper C++ library support
18265             ld_shlibs_CXX=no
18266             ;;
18267           aCC*)
18268             case $host_cpu in
18269               hppa*64*)
18270                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18271                 ;;
18272               ia64*)
18273                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18274                 ;;
18275               *)
18276                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18277                 ;;
18278             esac
18279             # Commands to make compiler produce verbose output that lists
18280             # what "hidden" libraries, object files and flags are used when
18281             # linking a shared library.
18282             #
18283             # There doesn't appear to be a way to prevent this compiler from
18284             # explicitly linking system object files so we need to strip them
18285             # from the output so that they don't get included in the library
18286             # dependencies.
18287             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"'
18288             ;;
18289           *)
18290             if test "$GXX" = yes; then
18291               if test $with_gnu_ld = no; then
18292                 case $host_cpu in
18293                   hppa*64*)
18294                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18295                     ;;
18296                   ia64*)
18297                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18298                     ;;
18299                   *)
18300                     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'
18301                     ;;
18302                 esac
18303               fi
18304             else
18305               # FIXME: insert proper C++ library support
18306               ld_shlibs_CXX=no
18307             fi
18308             ;;
18309         esac
18310         ;;
18311
18312       interix[3-9]*)
18313         hardcode_direct_CXX=no
18314         hardcode_shlibpath_var_CXX=no
18315         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18316         export_dynamic_flag_spec_CXX='${wl}-E'
18317         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18318         # Instead, shared libraries are loaded at an image base (0x10000000 by
18319         # default) and relocated if they conflict, which is a slow very memory
18320         # consuming and fragmenting process.  To avoid this, we pick a random,
18321         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18322         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18323         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'
18324         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'
18325         ;;
18326       irix5* | irix6*)
18327         case $cc_basename in
18328           CC*)
18329             # SGI C++
18330             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'
18331
18332             # Archives containing C++ object files must be created using
18333             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18334             # necessary to make sure instantiated templates are included
18335             # in the archive.
18336             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18337             ;;
18338           *)
18339             if test "$GXX" = yes; then
18340               if test "$with_gnu_ld" = no; then
18341                 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'
18342               else
18343                 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'
18344               fi
18345             fi
18346             link_all_deplibs_CXX=yes
18347             ;;
18348         esac
18349         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18350         hardcode_libdir_separator_CXX=:
18351         inherit_rpath_CXX=yes
18352         ;;
18353
18354       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18355         case $cc_basename in
18356           KCC*)
18357             # Kuck and Associates, Inc. (KAI) C++ Compiler
18358
18359             # KCC will only create a shared library if the output file
18360             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18361             # to its proper name (with version) after linking.
18362             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'
18363             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'
18364             # Commands to make compiler produce verbose output that lists
18365             # what "hidden" libraries, object files and flags are used when
18366             # linking a shared library.
18367             #
18368             # There doesn't appear to be a way to prevent this compiler from
18369             # explicitly linking system object files so we need to strip them
18370             # from the output so that they don't get included in the library
18371             # dependencies.
18372             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"'
18373
18374             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18375             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18376
18377             # Archives containing C++ object files must be created using
18378             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18379             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18380             ;;
18381           icpc* | ecpc* )
18382             # Intel C++
18383             with_gnu_ld=yes
18384             # version 8.0 and above of icpc choke on multiply defined symbols
18385             # if we add $predep_objects and $postdep_objects, however 7.1 and
18386             # earlier do not add the objects themselves.
18387             case `$CC -V 2>&1` in
18388               *"Version 7."*)
18389                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18390                 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'
18391                 ;;
18392               *)  # Version 8.0 or newer
18393                 tmp_idyn=
18394                 case $host_cpu in
18395                   ia64*) tmp_idyn=' -i_dynamic';;
18396                 esac
18397                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18398                 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'
18399                 ;;
18400             esac
18401             archive_cmds_need_lc_CXX=no
18402             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18403             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18404             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18405             ;;
18406           pgCC* | pgcpp*)
18407             # Portland Group C++ compiler
18408             case `$CC -V` in
18409             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18410               prelink_cmds_CXX='tpldir=Template.dir~
18411                 rm -rf $tpldir~
18412                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18413                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18414               old_archive_cmds_CXX='tpldir=Template.dir~
18415                 rm -rf $tpldir~
18416                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18417                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18418                 $RANLIB $oldlib'
18419               archive_cmds_CXX='tpldir=Template.dir~
18420                 rm -rf $tpldir~
18421                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18422                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18423               archive_expsym_cmds_CXX='tpldir=Template.dir~
18424                 rm -rf $tpldir~
18425                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18426                 $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'
18427               ;;
18428             *) # Version 6 and above use weak symbols
18429               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18430               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'
18431               ;;
18432             esac
18433
18434             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18435             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18436             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'
18437             ;;
18438           cxx*)
18439             # Compaq C++
18440             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18441             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'
18442
18443             runpath_var=LD_RUN_PATH
18444             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18445             hardcode_libdir_separator_CXX=:
18446
18447             # Commands to make compiler produce verbose output that lists
18448             # what "hidden" libraries, object files and flags are used when
18449             # linking a shared library.
18450             #
18451             # There doesn't appear to be a way to prevent this compiler from
18452             # explicitly linking system object files so we need to strip them
18453             # from the output so that they don't get included in the library
18454             # dependencies.
18455             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'
18456             ;;
18457           xl* | mpixl* | bgxl*)
18458             # IBM XL 8.0 on PPC, with GNU ld
18459             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18460             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18461             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18462             if test "x$supports_anon_versioning" = xyes; then
18463               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18464                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18465                 echo "local: *; };" >> $output_objdir/$libname.ver~
18466                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18467             fi
18468             ;;
18469           *)
18470             case `$CC -V 2>&1 | sed 5q` in
18471             *Sun\ C*)
18472               # Sun C++ 5.9
18473               no_undefined_flag_CXX=' -zdefs'
18474               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18475               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'
18476               hardcode_libdir_flag_spec_CXX='-R$libdir'
18477               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'
18478               compiler_needs_object_CXX=yes
18479
18480               # Not sure whether something based on
18481               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18482               # would be better.
18483               output_verbose_link_cmd='func_echo_all'
18484
18485               # Archives containing C++ object files must be created using
18486               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18487               # necessary to make sure instantiated templates are included
18488               # in the archive.
18489               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18490               ;;
18491             esac
18492             ;;
18493         esac
18494         ;;
18495
18496       lynxos*)
18497         # FIXME: insert proper C++ library support
18498         ld_shlibs_CXX=no
18499         ;;
18500
18501       m88k*)
18502         # FIXME: insert proper C++ library support
18503         ld_shlibs_CXX=no
18504         ;;
18505
18506       mvs*)
18507         case $cc_basename in
18508           cxx*)
18509             # FIXME: insert proper C++ library support
18510             ld_shlibs_CXX=no
18511             ;;
18512           *)
18513             # FIXME: insert proper C++ library support
18514             ld_shlibs_CXX=no
18515             ;;
18516         esac
18517         ;;
18518
18519       netbsd*)
18520         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18521           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18522           wlarc=
18523           hardcode_libdir_flag_spec_CXX='-R$libdir'
18524           hardcode_direct_CXX=yes
18525           hardcode_shlibpath_var_CXX=no
18526         fi
18527         # Workaround some broken pre-1.5 toolchains
18528         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18529         ;;
18530
18531       *nto* | *qnx*)
18532         ld_shlibs_CXX=yes
18533         ;;
18534
18535       openbsd2*)
18536         # C++ shared libraries are fairly broken
18537         ld_shlibs_CXX=no
18538         ;;
18539
18540       openbsd*)
18541         if test -f /usr/libexec/ld.so; then
18542           hardcode_direct_CXX=yes
18543           hardcode_shlibpath_var_CXX=no
18544           hardcode_direct_absolute_CXX=yes
18545           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18546           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18547           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18548             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18549             export_dynamic_flag_spec_CXX='${wl}-E'
18550             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18551           fi
18552           output_verbose_link_cmd=func_echo_all
18553         else
18554           ld_shlibs_CXX=no
18555         fi
18556         ;;
18557
18558       osf3* | osf4* | osf5*)
18559         case $cc_basename in
18560           KCC*)
18561             # Kuck and Associates, Inc. (KAI) C++ Compiler
18562
18563             # KCC will only create a shared library if the output file
18564             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18565             # to its proper name (with version) after linking.
18566             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'
18567
18568             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18569             hardcode_libdir_separator_CXX=:
18570
18571             # Archives containing C++ object files must be created using
18572             # the KAI C++ compiler.
18573             case $host in
18574               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18575               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18576             esac
18577             ;;
18578           RCC*)
18579             # Rational C++ 2.4.1
18580             # FIXME: insert proper C++ library support
18581             ld_shlibs_CXX=no
18582             ;;
18583           cxx*)
18584             case $host in
18585               osf3*)
18586                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18587                 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'
18588                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18589                 ;;
18590               *)
18591                 allow_undefined_flag_CXX=' -expect_unresolved \*'
18592                 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'
18593                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18594                   echo "-hidden">> $lib.exp~
18595                   $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~
18596                   $RM $lib.exp'
18597                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18598                 ;;
18599             esac
18600
18601             hardcode_libdir_separator_CXX=:
18602
18603             # Commands to make compiler produce verbose output that lists
18604             # what "hidden" libraries, object files and flags are used when
18605             # linking a shared library.
18606             #
18607             # There doesn't appear to be a way to prevent this compiler from
18608             # explicitly linking system object files so we need to strip them
18609             # from the output so that they don't get included in the library
18610             # dependencies.
18611             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"'
18612             ;;
18613           *)
18614             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18615               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18616               case $host in
18617                 osf3*)
18618                   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'
18619                   ;;
18620                 *)
18621                   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'
18622                   ;;
18623               esac
18624
18625               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18626               hardcode_libdir_separator_CXX=:
18627
18628               # Commands to make compiler produce verbose output that lists
18629               # what "hidden" libraries, object files and flags are used when
18630               # linking a shared library.
18631               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18632
18633             else
18634               # FIXME: insert proper C++ library support
18635               ld_shlibs_CXX=no
18636             fi
18637             ;;
18638         esac
18639         ;;
18640
18641       psos*)
18642         # FIXME: insert proper C++ library support
18643         ld_shlibs_CXX=no
18644         ;;
18645
18646       sunos4*)
18647         case $cc_basename in
18648           CC*)
18649             # Sun C++ 4.x
18650             # FIXME: insert proper C++ library support
18651             ld_shlibs_CXX=no
18652             ;;
18653           lcc*)
18654             # Lucid
18655             # FIXME: insert proper C++ library support
18656             ld_shlibs_CXX=no
18657             ;;
18658           *)
18659             # FIXME: insert proper C++ library support
18660             ld_shlibs_CXX=no
18661             ;;
18662         esac
18663         ;;
18664
18665       solaris*)
18666         case $cc_basename in
18667           CC*)
18668             # Sun C++ 4.2, 5.x and Centerline C++
18669             archive_cmds_need_lc_CXX=yes
18670             no_undefined_flag_CXX=' -zdefs'
18671             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18672             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18673               $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'
18674
18675             hardcode_libdir_flag_spec_CXX='-R$libdir'
18676             hardcode_shlibpath_var_CXX=no
18677             case $host_os in
18678               solaris2.[0-5] | solaris2.[0-5].*) ;;
18679               *)
18680                 # The compiler driver will combine and reorder linker options,
18681                 # but understands `-z linker_flag'.
18682                 # Supported since Solaris 2.6 (maybe 2.5.1?)
18683                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18684                 ;;
18685             esac
18686             link_all_deplibs_CXX=yes
18687
18688             output_verbose_link_cmd='func_echo_all'
18689
18690             # Archives containing C++ object files must be created using
18691             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18692             # necessary to make sure instantiated templates are included
18693             # in the archive.
18694             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18695             ;;
18696           gcx*)
18697             # Green Hills C++ Compiler
18698             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18699
18700             # The C++ compiler must be used to create the archive.
18701             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18702             ;;
18703           *)
18704             # GNU C++ compiler with Solaris linker
18705             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18706               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18707               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18708                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18709                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18710                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18711
18712                 # Commands to make compiler produce verbose output that lists
18713                 # what "hidden" libraries, object files and flags are used when
18714                 # linking a shared library.
18715                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18716               else
18717                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18718                 # platform.
18719                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18720                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18721                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18722
18723                 # Commands to make compiler produce verbose output that lists
18724                 # what "hidden" libraries, object files and flags are used when
18725                 # linking a shared library.
18726                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18727               fi
18728
18729               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18730               case $host_os in
18731                 solaris2.[0-5] | solaris2.[0-5].*) ;;
18732                 *)
18733                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18734                   ;;
18735               esac
18736             fi
18737             ;;
18738         esac
18739         ;;
18740
18741     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18742       no_undefined_flag_CXX='${wl}-z,text'
18743       archive_cmds_need_lc_CXX=no
18744       hardcode_shlibpath_var_CXX=no
18745       runpath_var='LD_RUN_PATH'
18746
18747       case $cc_basename in
18748         CC*)
18749           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18750           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18751           ;;
18752         *)
18753           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18754           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18755           ;;
18756       esac
18757       ;;
18758
18759       sysv5* | sco3.2v5* | sco5v6*)
18760         # Note: We can NOT use -z defs as we might desire, because we do not
18761         # link with -lc, and that would cause any symbols used from libc to
18762         # always be unresolved, which means just about no library would
18763         # ever link correctly.  If we're not using GNU ld we use -z text
18764         # though, which does catch some bad symbols but isn't as heavy-handed
18765         # as -z defs.
18766         no_undefined_flag_CXX='${wl}-z,text'
18767         allow_undefined_flag_CXX='${wl}-z,nodefs'
18768         archive_cmds_need_lc_CXX=no
18769         hardcode_shlibpath_var_CXX=no
18770         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18771         hardcode_libdir_separator_CXX=':'
18772         link_all_deplibs_CXX=yes
18773         export_dynamic_flag_spec_CXX='${wl}-Bexport'
18774         runpath_var='LD_RUN_PATH'
18775
18776         case $cc_basename in
18777           CC*)
18778             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18779             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18780             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18781               '"$old_archive_cmds_CXX"
18782             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18783               '"$reload_cmds_CXX"
18784             ;;
18785           *)
18786             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18787             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18788             ;;
18789         esac
18790       ;;
18791
18792       tandem*)
18793         case $cc_basename in
18794           NCC*)
18795             # NonStop-UX NCC 3.20
18796             # FIXME: insert proper C++ library support
18797             ld_shlibs_CXX=no
18798             ;;
18799           *)
18800             # FIXME: insert proper C++ library support
18801             ld_shlibs_CXX=no
18802             ;;
18803         esac
18804         ;;
18805
18806       vxworks*)
18807         # FIXME: insert proper C++ library support
18808         ld_shlibs_CXX=no
18809         ;;
18810
18811       *)
18812         # FIXME: insert proper C++ library support
18813         ld_shlibs_CXX=no
18814         ;;
18815     esac
18816
18817     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18818 $as_echo "$ld_shlibs_CXX" >&6; }
18819     test "$ld_shlibs_CXX" = no && can_build_shared=no
18820
18821     GCC_CXX="$GXX"
18822     LD_CXX="$LD"
18823
18824     ## CAVEAT EMPTOR:
18825     ## There is no encapsulation within the following macros, do not change
18826     ## the running order or otherwise move them around unless you know exactly
18827     ## what you are doing...
18828     # Dependencies to place before and after the object being linked:
18829 predep_objects_CXX=
18830 postdep_objects_CXX=
18831 predeps_CXX=
18832 postdeps_CXX=
18833 compiler_lib_search_path_CXX=
18834
18835 cat > conftest.$ac_ext <<_LT_EOF
18836 class Foo
18837 {
18838 public:
18839   Foo (void) { a = 0; }
18840 private:
18841   int a;
18842 };
18843 _LT_EOF
18844
18845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18846   (eval $ac_compile) 2>&5
18847   ac_status=$?
18848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18849   test $ac_status = 0; }; then
18850   # Parse the compiler output and extract the necessary
18851   # objects, libraries and library flags.
18852
18853   # Sentinel used to keep track of whether or not we are before
18854   # the conftest object file.
18855   pre_test_object_deps_done=no
18856
18857   for p in `eval "$output_verbose_link_cmd"`; do
18858     case $p in
18859
18860     -L* | -R* | -l*)
18861        # Some compilers place space between "-{L,R}" and the path.
18862        # Remove the space.
18863        if test $p = "-L" ||
18864           test $p = "-R"; then
18865          prev=$p
18866          continue
18867        else
18868          prev=
18869        fi
18870
18871        if test "$pre_test_object_deps_done" = no; then
18872          case $p in
18873          -L* | -R*)
18874            # Internal compiler library paths should come after those
18875            # provided the user.  The postdeps already come after the
18876            # user supplied libs so there is no need to process them.
18877            if test -z "$compiler_lib_search_path_CXX"; then
18878              compiler_lib_search_path_CXX="${prev}${p}"
18879            else
18880              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18881            fi
18882            ;;
18883          # The "-l" case would never come before the object being
18884          # linked, so don't bother handling this case.
18885          esac
18886        else
18887          if test -z "$postdeps_CXX"; then
18888            postdeps_CXX="${prev}${p}"
18889          else
18890            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18891          fi
18892        fi
18893        ;;
18894
18895     *.$objext)
18896        # This assumes that the test object file only shows up
18897        # once in the compiler output.
18898        if test "$p" = "conftest.$objext"; then
18899          pre_test_object_deps_done=yes
18900          continue
18901        fi
18902
18903        if test "$pre_test_object_deps_done" = no; then
18904          if test -z "$predep_objects_CXX"; then
18905            predep_objects_CXX="$p"
18906          else
18907            predep_objects_CXX="$predep_objects_CXX $p"
18908          fi
18909        else
18910          if test -z "$postdep_objects_CXX"; then
18911            postdep_objects_CXX="$p"
18912          else
18913            postdep_objects_CXX="$postdep_objects_CXX $p"
18914          fi
18915        fi
18916        ;;
18917
18918     *) ;; # Ignore the rest.
18919
18920     esac
18921   done
18922
18923   # Clean up.
18924   rm -f a.out a.exe
18925 else
18926   echo "libtool.m4: error: problem compiling CXX test program"
18927 fi
18928
18929 $RM -f confest.$objext
18930
18931 # PORTME: override above test on systems where it is broken
18932 case $host_os in
18933 interix[3-9]*)
18934   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18935   # hack all around it, let's just trust "g++" to DTRT.
18936   predep_objects_CXX=
18937   postdep_objects_CXX=
18938   postdeps_CXX=
18939   ;;
18940
18941 linux*)
18942   case `$CC -V 2>&1 | sed 5q` in
18943   *Sun\ C*)
18944     # Sun C++ 5.9
18945
18946     # The more standards-conforming stlport4 library is
18947     # incompatible with the Cstd library. Avoid specifying
18948     # it if it's in CXXFLAGS. Ignore libCrun as
18949     # -library=stlport4 depends on it.
18950     case " $CXX $CXXFLAGS " in
18951     *" -library=stlport4 "*)
18952       solaris_use_stlport4=yes
18953       ;;
18954     esac
18955
18956     if test "$solaris_use_stlport4" != yes; then
18957       postdeps_CXX='-library=Cstd -library=Crun'
18958     fi
18959     ;;
18960   esac
18961   ;;
18962
18963 solaris*)
18964   case $cc_basename in
18965   CC*)
18966     # The more standards-conforming stlport4 library is
18967     # incompatible with the Cstd library. Avoid specifying
18968     # it if it's in CXXFLAGS. Ignore libCrun as
18969     # -library=stlport4 depends on it.
18970     case " $CXX $CXXFLAGS " in
18971     *" -library=stlport4 "*)
18972       solaris_use_stlport4=yes
18973       ;;
18974     esac
18975
18976     # Adding this requires a known-good setup of shared libraries for
18977     # Sun compiler versions before 5.6, else PIC objects from an old
18978     # archive will be linked into the output, leading to subtle bugs.
18979     if test "$solaris_use_stlport4" != yes; then
18980       postdeps_CXX='-library=Cstd -library=Crun'
18981     fi
18982     ;;
18983   esac
18984   ;;
18985 esac
18986
18987
18988 case " $postdeps_CXX " in
18989 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18990 esac
18991  compiler_lib_search_dirs_CXX=
18992 if test -n "${compiler_lib_search_path_CXX}"; then
18993  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18994 fi
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026     lt_prog_compiler_wl_CXX=
19027 lt_prog_compiler_pic_CXX=
19028 lt_prog_compiler_static_CXX=
19029
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19031 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19032
19033   # C++ specific cases for pic, static, wl, etc.
19034   if test "$GXX" = yes; then
19035     lt_prog_compiler_wl_CXX='-Wl,'
19036     lt_prog_compiler_static_CXX='-static'
19037
19038     case $host_os in
19039     aix*)
19040       # All AIX code is PIC.
19041       if test "$host_cpu" = ia64; then
19042         # AIX 5 now supports IA64 processor
19043         lt_prog_compiler_static_CXX='-Bstatic'
19044       fi
19045       ;;
19046
19047     amigaos*)
19048       case $host_cpu in
19049       powerpc)
19050             # see comment about AmigaOS4 .so support
19051             lt_prog_compiler_pic_CXX='-fPIC'
19052         ;;
19053       m68k)
19054             # FIXME: we need at least 68020 code to build shared libraries, but
19055             # adding the `-m68020' flag to GCC prevents building anything better,
19056             # like `-m68040'.
19057             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19058         ;;
19059       esac
19060       ;;
19061
19062     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19063       # PIC is the default for these OSes.
19064       ;;
19065     mingw* | cygwin* | os2* | pw32* | cegcc*)
19066       # This hack is so that the source file can tell whether it is being
19067       # built for inclusion in a dll (and should export symbols for example).
19068       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19069       # (--disable-auto-import) libraries
19070       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19071       ;;
19072     darwin* | rhapsody*)
19073       # PIC is the default on this platform
19074       # Common symbols not allowed in MH_DYLIB files
19075       lt_prog_compiler_pic_CXX='-fno-common'
19076       ;;
19077     *djgpp*)
19078       # DJGPP does not support shared libraries at all
19079       lt_prog_compiler_pic_CXX=
19080       ;;
19081     haiku*)
19082       # PIC is the default for Haiku.
19083       # The "-static" flag exists, but is broken.
19084       lt_prog_compiler_static_CXX=
19085       ;;
19086     interix[3-9]*)
19087       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19088       # Instead, we relocate shared libraries at runtime.
19089       ;;
19090     sysv4*MP*)
19091       if test -d /usr/nec; then
19092         lt_prog_compiler_pic_CXX=-Kconform_pic
19093       fi
19094       ;;
19095     hpux*)
19096       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19097       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19098       # sets the default TLS model and affects inlining.
19099       case $host_cpu in
19100       hppa*64*)
19101         ;;
19102       *)
19103         lt_prog_compiler_pic_CXX='-fPIC'
19104         ;;
19105       esac
19106       ;;
19107     *qnx* | *nto*)
19108       # QNX uses GNU C++, but need to define -shared option too, otherwise
19109       # it will coredump.
19110       lt_prog_compiler_pic_CXX='-fPIC -shared'
19111       ;;
19112     *)
19113       lt_prog_compiler_pic_CXX='-fPIC'
19114       ;;
19115     esac
19116   else
19117     case $host_os in
19118       aix[4-9]*)
19119         # All AIX code is PIC.
19120         if test "$host_cpu" = ia64; then
19121           # AIX 5 now supports IA64 processor
19122           lt_prog_compiler_static_CXX='-Bstatic'
19123         else
19124           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19125         fi
19126         ;;
19127       chorus*)
19128         case $cc_basename in
19129         cxch68*)
19130           # Green Hills C++ Compiler
19131           # _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"
19132           ;;
19133         esac
19134         ;;
19135       dgux*)
19136         case $cc_basename in
19137           ec++*)
19138             lt_prog_compiler_pic_CXX='-KPIC'
19139             ;;
19140           ghcx*)
19141             # Green Hills C++ Compiler
19142             lt_prog_compiler_pic_CXX='-pic'
19143             ;;
19144           *)
19145             ;;
19146         esac
19147         ;;
19148       freebsd* | dragonfly*)
19149         # FreeBSD uses GNU C++
19150         ;;
19151       hpux9* | hpux10* | hpux11*)
19152         case $cc_basename in
19153           CC*)
19154             lt_prog_compiler_wl_CXX='-Wl,'
19155             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19156             if test "$host_cpu" != ia64; then
19157               lt_prog_compiler_pic_CXX='+Z'
19158             fi
19159             ;;
19160           aCC*)
19161             lt_prog_compiler_wl_CXX='-Wl,'
19162             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19163             case $host_cpu in
19164             hppa*64*|ia64*)
19165               # +Z the default
19166               ;;
19167             *)
19168               lt_prog_compiler_pic_CXX='+Z'
19169               ;;
19170             esac
19171             ;;
19172           *)
19173             ;;
19174         esac
19175         ;;
19176       interix*)
19177         # This is c89, which is MS Visual C++ (no shared libs)
19178         # Anyone wants to do a port?
19179         ;;
19180       irix5* | irix6* | nonstopux*)
19181         case $cc_basename in
19182           CC*)
19183             lt_prog_compiler_wl_CXX='-Wl,'
19184             lt_prog_compiler_static_CXX='-non_shared'
19185             # CC pic flag -KPIC is the default.
19186             ;;
19187           *)
19188             ;;
19189         esac
19190         ;;
19191       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19192         case $cc_basename in
19193           KCC*)
19194             # KAI C++ Compiler
19195             lt_prog_compiler_wl_CXX='--backend -Wl,'
19196             lt_prog_compiler_pic_CXX='-fPIC'
19197             ;;
19198           ecpc* )
19199             # old Intel C++ for x86_64 which still supported -KPIC.
19200             lt_prog_compiler_wl_CXX='-Wl,'
19201             lt_prog_compiler_pic_CXX='-KPIC'
19202             lt_prog_compiler_static_CXX='-static'
19203             ;;
19204           icpc* )
19205             # Intel C++, used to be incompatible with GCC.
19206             # ICC 10 doesn't accept -KPIC any more.
19207             lt_prog_compiler_wl_CXX='-Wl,'
19208             lt_prog_compiler_pic_CXX='-fPIC'
19209             lt_prog_compiler_static_CXX='-static'
19210             ;;
19211           pgCC* | pgcpp*)
19212             # Portland Group C++ compiler
19213             lt_prog_compiler_wl_CXX='-Wl,'
19214             lt_prog_compiler_pic_CXX='-fpic'
19215             lt_prog_compiler_static_CXX='-Bstatic'
19216             ;;
19217           cxx*)
19218             # Compaq C++
19219             # Make sure the PIC flag is empty.  It appears that all Alpha
19220             # Linux and Compaq Tru64 Unix objects are PIC.
19221             lt_prog_compiler_pic_CXX=
19222             lt_prog_compiler_static_CXX='-non_shared'
19223             ;;
19224           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19225             # IBM XL 8.0, 9.0 on PPC and BlueGene
19226             lt_prog_compiler_wl_CXX='-Wl,'
19227             lt_prog_compiler_pic_CXX='-qpic'
19228             lt_prog_compiler_static_CXX='-qstaticlink'
19229             ;;
19230           *)
19231             case `$CC -V 2>&1 | sed 5q` in
19232             *Sun\ C*)
19233               # Sun C++ 5.9
19234               lt_prog_compiler_pic_CXX='-KPIC'
19235               lt_prog_compiler_static_CXX='-Bstatic'
19236               lt_prog_compiler_wl_CXX='-Qoption ld '
19237               ;;
19238             esac
19239             ;;
19240         esac
19241         ;;
19242       lynxos*)
19243         ;;
19244       m88k*)
19245         ;;
19246       mvs*)
19247         case $cc_basename in
19248           cxx*)
19249             lt_prog_compiler_pic_CXX='-W c,exportall'
19250             ;;
19251           *)
19252             ;;
19253         esac
19254         ;;
19255       netbsd*)
19256         ;;
19257       *qnx* | *nto*)
19258         # QNX uses GNU C++, but need to define -shared option too, otherwise
19259         # it will coredump.
19260         lt_prog_compiler_pic_CXX='-fPIC -shared'
19261         ;;
19262       osf3* | osf4* | osf5*)
19263         case $cc_basename in
19264           KCC*)
19265             lt_prog_compiler_wl_CXX='--backend -Wl,'
19266             ;;
19267           RCC*)
19268             # Rational C++ 2.4.1
19269             lt_prog_compiler_pic_CXX='-pic'
19270             ;;
19271           cxx*)
19272             # Digital/Compaq C++
19273             lt_prog_compiler_wl_CXX='-Wl,'
19274             # Make sure the PIC flag is empty.  It appears that all Alpha
19275             # Linux and Compaq Tru64 Unix objects are PIC.
19276             lt_prog_compiler_pic_CXX=
19277             lt_prog_compiler_static_CXX='-non_shared'
19278             ;;
19279           *)
19280             ;;
19281         esac
19282         ;;
19283       psos*)
19284         ;;
19285       solaris*)
19286         case $cc_basename in
19287           CC*)
19288             # Sun C++ 4.2, 5.x and Centerline C++
19289             lt_prog_compiler_pic_CXX='-KPIC'
19290             lt_prog_compiler_static_CXX='-Bstatic'
19291             lt_prog_compiler_wl_CXX='-Qoption ld '
19292             ;;
19293           gcx*)
19294             # Green Hills C++ Compiler
19295             lt_prog_compiler_pic_CXX='-PIC'
19296             ;;
19297           *)
19298             ;;
19299         esac
19300         ;;
19301       sunos4*)
19302         case $cc_basename in
19303           CC*)
19304             # Sun C++ 4.x
19305             lt_prog_compiler_pic_CXX='-pic'
19306             lt_prog_compiler_static_CXX='-Bstatic'
19307             ;;
19308           lcc*)
19309             # Lucid
19310             lt_prog_compiler_pic_CXX='-pic'
19311             ;;
19312           *)
19313             ;;
19314         esac
19315         ;;
19316       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19317         case $cc_basename in
19318           CC*)
19319             lt_prog_compiler_wl_CXX='-Wl,'
19320             lt_prog_compiler_pic_CXX='-KPIC'
19321             lt_prog_compiler_static_CXX='-Bstatic'
19322             ;;
19323         esac
19324         ;;
19325       tandem*)
19326         case $cc_basename in
19327           NCC*)
19328             # NonStop-UX NCC 3.20
19329             lt_prog_compiler_pic_CXX='-KPIC'
19330             ;;
19331           *)
19332             ;;
19333         esac
19334         ;;
19335       vxworks*)
19336         ;;
19337       *)
19338         lt_prog_compiler_can_build_shared_CXX=no
19339         ;;
19340     esac
19341   fi
19342
19343 case $host_os in
19344   # For platforms which do not support PIC, -DPIC is meaningless:
19345   *djgpp*)
19346     lt_prog_compiler_pic_CXX=
19347     ;;
19348   *)
19349     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19350     ;;
19351 esac
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19353 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19354
19355
19356
19357 #
19358 # Check to make sure the PIC flag actually works.
19359 #
19360 if test -n "$lt_prog_compiler_pic_CXX"; then
19361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19362 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19363 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19364   $as_echo_n "(cached) " >&6
19365 else
19366   lt_cv_prog_compiler_pic_works_CXX=no
19367    ac_outfile=conftest.$ac_objext
19368    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19369    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19370    # Insert the option either (1) after the last *FLAGS variable, or
19371    # (2) before a word containing "conftest.", or (3) at the end.
19372    # Note that $ac_compile itself does not contain backslashes and begins
19373    # with a dollar sign (not a hyphen), so the echo should work correctly.
19374    # The option is referenced via a variable to avoid confusing sed.
19375    lt_compile=`echo "$ac_compile" | $SED \
19376    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19377    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19378    -e 's:$: $lt_compiler_flag:'`
19379    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19380    (eval "$lt_compile" 2>conftest.err)
19381    ac_status=$?
19382    cat conftest.err >&5
19383    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384    if (exit $ac_status) && test -s "$ac_outfile"; then
19385      # The compiler can only warn and ignore the option if not recognized
19386      # So say no if there are warnings other than the usual output.
19387      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19388      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19389      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19390        lt_cv_prog_compiler_pic_works_CXX=yes
19391      fi
19392    fi
19393    $RM conftest*
19394
19395 fi
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19397 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19398
19399 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19400     case $lt_prog_compiler_pic_CXX in
19401      "" | " "*) ;;
19402      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19403      esac
19404 else
19405     lt_prog_compiler_pic_CXX=
19406      lt_prog_compiler_can_build_shared_CXX=no
19407 fi
19408
19409 fi
19410
19411
19412
19413 #
19414 # Check to make sure the static flag actually works.
19415 #
19416 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19418 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19419 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19420   $as_echo_n "(cached) " >&6
19421 else
19422   lt_cv_prog_compiler_static_works_CXX=no
19423    save_LDFLAGS="$LDFLAGS"
19424    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19425    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19426    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19427      # The linker can only warn and ignore the option if not recognized
19428      # So say no if there are warnings
19429      if test -s conftest.err; then
19430        # Append any errors to the config.log.
19431        cat conftest.err 1>&5
19432        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19433        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19434        if diff conftest.exp conftest.er2 >/dev/null; then
19435          lt_cv_prog_compiler_static_works_CXX=yes
19436        fi
19437      else
19438        lt_cv_prog_compiler_static_works_CXX=yes
19439      fi
19440    fi
19441    $RM -r conftest*
19442    LDFLAGS="$save_LDFLAGS"
19443
19444 fi
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19446 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19447
19448 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19449     :
19450 else
19451     lt_prog_compiler_static_CXX=
19452 fi
19453
19454
19455
19456
19457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19458 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19459 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19460   $as_echo_n "(cached) " >&6
19461 else
19462   lt_cv_prog_compiler_c_o_CXX=no
19463    $RM -r conftest 2>/dev/null
19464    mkdir conftest
19465    cd conftest
19466    mkdir out
19467    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19468
19469    lt_compiler_flag="-o out/conftest2.$ac_objext"
19470    # Insert the option either (1) after the last *FLAGS variable, or
19471    # (2) before a word containing "conftest.", or (3) at the end.
19472    # Note that $ac_compile itself does not contain backslashes and begins
19473    # with a dollar sign (not a hyphen), so the echo should work correctly.
19474    lt_compile=`echo "$ac_compile" | $SED \
19475    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19476    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19477    -e 's:$: $lt_compiler_flag:'`
19478    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19479    (eval "$lt_compile" 2>out/conftest.err)
19480    ac_status=$?
19481    cat out/conftest.err >&5
19482    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19484    then
19485      # The compiler can only warn and ignore the option if not recognized
19486      # So say no if there are warnings
19487      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19488      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19489      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19490        lt_cv_prog_compiler_c_o_CXX=yes
19491      fi
19492    fi
19493    chmod u+w . 2>&5
19494    $RM conftest*
19495    # SGI C++ compiler will create directory out/ii_files/ for
19496    # template instantiation
19497    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19498    $RM out/* && rmdir out
19499    cd ..
19500    $RM -r conftest
19501    $RM conftest*
19502
19503 fi
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19505 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19506
19507
19508
19509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19510 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19511 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19512   $as_echo_n "(cached) " >&6
19513 else
19514   lt_cv_prog_compiler_c_o_CXX=no
19515    $RM -r conftest 2>/dev/null
19516    mkdir conftest
19517    cd conftest
19518    mkdir out
19519    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19520
19521    lt_compiler_flag="-o out/conftest2.$ac_objext"
19522    # Insert the option either (1) after the last *FLAGS variable, or
19523    # (2) before a word containing "conftest.", or (3) at the end.
19524    # Note that $ac_compile itself does not contain backslashes and begins
19525    # with a dollar sign (not a hyphen), so the echo should work correctly.
19526    lt_compile=`echo "$ac_compile" | $SED \
19527    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19528    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19529    -e 's:$: $lt_compiler_flag:'`
19530    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19531    (eval "$lt_compile" 2>out/conftest.err)
19532    ac_status=$?
19533    cat out/conftest.err >&5
19534    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19536    then
19537      # The compiler can only warn and ignore the option if not recognized
19538      # So say no if there are warnings
19539      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19540      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19541      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19542        lt_cv_prog_compiler_c_o_CXX=yes
19543      fi
19544    fi
19545    chmod u+w . 2>&5
19546    $RM conftest*
19547    # SGI C++ compiler will create directory out/ii_files/ for
19548    # template instantiation
19549    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19550    $RM out/* && rmdir out
19551    cd ..
19552    $RM -r conftest
19553    $RM conftest*
19554
19555 fi
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19557 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19558
19559
19560
19561
19562 hard_links="nottested"
19563 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19564   # do not overwrite the value of need_locks provided by the user
19565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19566 $as_echo_n "checking if we can lock with hard links... " >&6; }
19567   hard_links=yes
19568   $RM conftest*
19569   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19570   touch conftest.a
19571   ln conftest.a conftest.b 2>&5 || hard_links=no
19572   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19574 $as_echo "$hard_links" >&6; }
19575   if test "$hard_links" = no; then
19576     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19577 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19578     need_locks=warn
19579   fi
19580 else
19581   need_locks=no
19582 fi
19583
19584
19585
19586     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19587 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19588
19589   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19590   case $host_os in
19591   aix[4-9]*)
19592     # If we're using GNU nm, then we don't want the "-C" option.
19593     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19594     # Also, AIX nm treats weak defined symbols like other global defined
19595     # symbols, whereas GNU nm marks them as "W".
19596     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19597       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'
19598     else
19599       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'
19600     fi
19601     ;;
19602   pw32*)
19603     export_symbols_cmds_CXX="$ltdll_cmds"
19604   ;;
19605   cygwin* | mingw* | cegcc*)
19606     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'
19607   ;;
19608   *)
19609     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19610   ;;
19611   esac
19612   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19613
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19615 $as_echo "$ld_shlibs_CXX" >&6; }
19616 test "$ld_shlibs_CXX" = no && can_build_shared=no
19617
19618 with_gnu_ld_CXX=$with_gnu_ld
19619
19620
19621
19622
19623
19624
19625 #
19626 # Do we need to explicitly link libc?
19627 #
19628 case "x$archive_cmds_need_lc_CXX" in
19629 x|xyes)
19630   # Assume -lc should be added
19631   archive_cmds_need_lc_CXX=yes
19632
19633   if test "$enable_shared" = yes && test "$GCC" = yes; then
19634     case $archive_cmds_CXX in
19635     *'~'*)
19636       # FIXME: we may have to deal with multi-command sequences.
19637       ;;
19638     '$CC '*)
19639       # Test whether the compiler implicitly links with -lc since on some
19640       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19641       # to ld, don't add -lc before -lgcc.
19642       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19643 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19644 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19645   $as_echo_n "(cached) " >&6
19646 else
19647   $RM conftest*
19648         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19649
19650         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19651   (eval $ac_compile) 2>&5
19652   ac_status=$?
19653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19654   test $ac_status = 0; } 2>conftest.err; then
19655           soname=conftest
19656           lib=conftest
19657           libobjs=conftest.$ac_objext
19658           deplibs=
19659           wl=$lt_prog_compiler_wl_CXX
19660           pic_flag=$lt_prog_compiler_pic_CXX
19661           compiler_flags=-v
19662           linker_flags=-v
19663           verstring=
19664           output_objdir=.
19665           libname=conftest
19666           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19667           allow_undefined_flag_CXX=
19668           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19669   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19670   ac_status=$?
19671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19672   test $ac_status = 0; }
19673           then
19674             lt_cv_archive_cmds_need_lc_CXX=no
19675           else
19676             lt_cv_archive_cmds_need_lc_CXX=yes
19677           fi
19678           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19679         else
19680           cat conftest.err 1>&5
19681         fi
19682         $RM conftest*
19683
19684 fi
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19686 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19687       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19688       ;;
19689     esac
19690   fi
19691   ;;
19692 esac
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19758 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19759
19760 library_names_spec=
19761 libname_spec='lib$name'
19762 soname_spec=
19763 shrext_cmds=".so"
19764 postinstall_cmds=
19765 postuninstall_cmds=
19766 finish_cmds=
19767 finish_eval=
19768 shlibpath_var=
19769 shlibpath_overrides_runpath=unknown
19770 version_type=none
19771 dynamic_linker="$host_os ld.so"
19772 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19773 need_lib_prefix=unknown
19774 hardcode_into_libs=no
19775
19776 # when you set need_version to no, make sure it does not cause -set_version
19777 # flags to be left without arguments
19778 need_version=unknown
19779
19780 case $host_os in
19781 aix3*)
19782   version_type=linux
19783   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19784   shlibpath_var=LIBPATH
19785
19786   # AIX 3 has no versioning support, so we append a major version to the name.
19787   soname_spec='${libname}${release}${shared_ext}$major'
19788   ;;
19789
19790 aix[4-9]*)
19791   version_type=linux
19792   need_lib_prefix=no
19793   need_version=no
19794   hardcode_into_libs=yes
19795   if test "$host_cpu" = ia64; then
19796     # AIX 5 supports IA64
19797     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19798     shlibpath_var=LD_LIBRARY_PATH
19799   else
19800     # With GCC up to 2.95.x, collect2 would create an import file
19801     # for dependence libraries.  The import file would start with
19802     # the line `#! .'.  This would cause the generated library to
19803     # depend on `.', always an invalid library.  This was fixed in
19804     # development snapshots of GCC prior to 3.0.
19805     case $host_os in
19806       aix4 | aix4.[01] | aix4.[01].*)
19807       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19808            echo ' yes '
19809            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19810         :
19811       else
19812         can_build_shared=no
19813       fi
19814       ;;
19815     esac
19816     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19817     # soname into executable. Probably we can add versioning support to
19818     # collect2, so additional links can be useful in future.
19819     if test "$aix_use_runtimelinking" = yes; then
19820       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19821       # instead of lib<name>.a to let people know that these are not
19822       # typical AIX shared libraries.
19823       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19824     else
19825       # We preserve .a as extension for shared libraries through AIX4.2
19826       # and later when we are not doing run time linking.
19827       library_names_spec='${libname}${release}.a $libname.a'
19828       soname_spec='${libname}${release}${shared_ext}$major'
19829     fi
19830     shlibpath_var=LIBPATH
19831   fi
19832   ;;
19833
19834 amigaos*)
19835   case $host_cpu in
19836   powerpc)
19837     # Since July 2007 AmigaOS4 officially supports .so libraries.
19838     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19839     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19840     ;;
19841   m68k)
19842     library_names_spec='$libname.ixlibrary $libname.a'
19843     # Create ${libname}_ixlibrary.a entries in /sys/libs.
19844     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'
19845     ;;
19846   esac
19847   ;;
19848
19849 beos*)
19850   library_names_spec='${libname}${shared_ext}'
19851   dynamic_linker="$host_os ld.so"
19852   shlibpath_var=LIBRARY_PATH
19853   ;;
19854
19855 bsdi[45]*)
19856   version_type=linux
19857   need_version=no
19858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19859   soname_spec='${libname}${release}${shared_ext}$major'
19860   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19861   shlibpath_var=LD_LIBRARY_PATH
19862   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19863   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19864   # the default ld.so.conf also contains /usr/contrib/lib and
19865   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19866   # libtool to hard-code these into programs
19867   ;;
19868
19869 cygwin* | mingw* | pw32* | cegcc*)
19870   version_type=windows
19871   shrext_cmds=".dll"
19872   need_version=no
19873   need_lib_prefix=no
19874
19875   case $GCC,$host_os in
19876   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19877     library_names_spec='$libname.dll.a'
19878     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19879     postinstall_cmds='base_file=`basename \${file}`~
19880       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19881       dldir=$destdir/`dirname \$dlpath`~
19882       test -d \$dldir || mkdir -p \$dldir~
19883       $install_prog $dir/$dlname \$dldir/$dlname~
19884       chmod a+x \$dldir/$dlname~
19885       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19886         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19887       fi'
19888     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19889       dlpath=$dir/\$dldll~
19890        $RM \$dlpath'
19891     shlibpath_overrides_runpath=yes
19892
19893     case $host_os in
19894     cygwin*)
19895       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19896       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19897
19898       ;;
19899     mingw* | cegcc*)
19900       # MinGW DLLs use traditional 'lib' prefix
19901       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19902       ;;
19903     pw32*)
19904       # pw32 DLLs use 'pw' prefix rather than 'lib'
19905       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19906       ;;
19907     esac
19908     ;;
19909
19910   *)
19911     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19912     ;;
19913   esac
19914   dynamic_linker='Win32 ld.exe'
19915   # FIXME: first we should search . and the directory the executable is in
19916   shlibpath_var=PATH
19917   ;;
19918
19919 darwin* | rhapsody*)
19920   dynamic_linker="$host_os dyld"
19921   version_type=darwin
19922   need_lib_prefix=no
19923   need_version=no
19924   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19925   soname_spec='${libname}${release}${major}$shared_ext'
19926   shlibpath_overrides_runpath=yes
19927   shlibpath_var=DYLD_LIBRARY_PATH
19928   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19929
19930   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19931   ;;
19932
19933 dgux*)
19934   version_type=linux
19935   need_lib_prefix=no
19936   need_version=no
19937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19938   soname_spec='${libname}${release}${shared_ext}$major'
19939   shlibpath_var=LD_LIBRARY_PATH
19940   ;;
19941
19942 freebsd1*)
19943   dynamic_linker=no
19944   ;;
19945
19946 freebsd* | dragonfly*)
19947   # DragonFly does not have aout.  When/if they implement a new
19948   # versioning mechanism, adjust this.
19949   if test -x /usr/bin/objformat; then
19950     objformat=`/usr/bin/objformat`
19951   else
19952     case $host_os in
19953     freebsd[123]*) objformat=aout ;;
19954     *) objformat=elf ;;
19955     esac
19956   fi
19957   version_type=freebsd-$objformat
19958   case $version_type in
19959     freebsd-elf*)
19960       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19961       need_version=no
19962       need_lib_prefix=no
19963       ;;
19964     freebsd-*)
19965       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19966       need_version=yes
19967       ;;
19968   esac
19969   shlibpath_var=LD_LIBRARY_PATH
19970   case $host_os in
19971   freebsd2*)
19972     shlibpath_overrides_runpath=yes
19973     ;;
19974   freebsd3.[01]* | freebsdelf3.[01]*)
19975     shlibpath_overrides_runpath=yes
19976     hardcode_into_libs=yes
19977     ;;
19978   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19979   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19980     shlibpath_overrides_runpath=no
19981     hardcode_into_libs=yes
19982     ;;
19983   *) # from 4.6 on, and DragonFly
19984     shlibpath_overrides_runpath=yes
19985     hardcode_into_libs=yes
19986     ;;
19987   esac
19988   ;;
19989
19990 gnu*)
19991   version_type=linux
19992   need_lib_prefix=no
19993   need_version=no
19994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19995   soname_spec='${libname}${release}${shared_ext}$major'
19996   shlibpath_var=LD_LIBRARY_PATH
19997   hardcode_into_libs=yes
19998   ;;
19999
20000 haiku*)
20001   version_type=linux
20002   need_lib_prefix=no
20003   need_version=no
20004   dynamic_linker="$host_os runtime_loader"
20005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20006   soname_spec='${libname}${release}${shared_ext}$major'
20007   shlibpath_var=LIBRARY_PATH
20008   shlibpath_overrides_runpath=yes
20009   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20010   hardcode_into_libs=yes
20011   ;;
20012
20013 hpux9* | hpux10* | hpux11*)
20014   # Give a soname corresponding to the major version so that dld.sl refuses to
20015   # link against other versions.
20016   version_type=sunos
20017   need_lib_prefix=no
20018   need_version=no
20019   case $host_cpu in
20020   ia64*)
20021     shrext_cmds='.so'
20022     hardcode_into_libs=yes
20023     dynamic_linker="$host_os dld.so"
20024     shlibpath_var=LD_LIBRARY_PATH
20025     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20027     soname_spec='${libname}${release}${shared_ext}$major'
20028     if test "X$HPUX_IA64_MODE" = X32; then
20029       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20030     else
20031       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20032     fi
20033     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20034     ;;
20035   hppa*64*)
20036     shrext_cmds='.sl'
20037     hardcode_into_libs=yes
20038     dynamic_linker="$host_os dld.sl"
20039     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20040     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20041     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20042     soname_spec='${libname}${release}${shared_ext}$major'
20043     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20044     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20045     ;;
20046   *)
20047     shrext_cmds='.sl'
20048     dynamic_linker="$host_os dld.sl"
20049     shlibpath_var=SHLIB_PATH
20050     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20052     soname_spec='${libname}${release}${shared_ext}$major'
20053     ;;
20054   esac
20055   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20056   postinstall_cmds='chmod 555 $lib'
20057   # or fails outright, so override atomically:
20058   install_override_mode=555
20059   ;;
20060
20061 interix[3-9]*)
20062   version_type=linux
20063   need_lib_prefix=no
20064   need_version=no
20065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20066   soname_spec='${libname}${release}${shared_ext}$major'
20067   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20068   shlibpath_var=LD_LIBRARY_PATH
20069   shlibpath_overrides_runpath=no
20070   hardcode_into_libs=yes
20071   ;;
20072
20073 irix5* | irix6* | nonstopux*)
20074   case $host_os in
20075     nonstopux*) version_type=nonstopux ;;
20076     *)
20077         if test "$lt_cv_prog_gnu_ld" = yes; then
20078                 version_type=linux
20079         else
20080                 version_type=irix
20081         fi ;;
20082   esac
20083   need_lib_prefix=no
20084   need_version=no
20085   soname_spec='${libname}${release}${shared_ext}$major'
20086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20087   case $host_os in
20088   irix5* | nonstopux*)
20089     libsuff= shlibsuff=
20090     ;;
20091   *)
20092     case $LD in # libtool.m4 will add one of these switches to LD
20093     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20094       libsuff= shlibsuff= libmagic=32-bit;;
20095     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20096       libsuff=32 shlibsuff=N32 libmagic=N32;;
20097     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20098       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20099     *) libsuff= shlibsuff= libmagic=never-match;;
20100     esac
20101     ;;
20102   esac
20103   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20104   shlibpath_overrides_runpath=no
20105   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20106   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20107   hardcode_into_libs=yes
20108   ;;
20109
20110 # No shared lib support for Linux oldld, aout, or coff.
20111 linux*oldld* | linux*aout* | linux*coff*)
20112   dynamic_linker=no
20113   ;;
20114
20115 # This must be Linux ELF.
20116 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20117   version_type=linux
20118   need_lib_prefix=no
20119   need_version=no
20120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20121   soname_spec='${libname}${release}${shared_ext}$major'
20122   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20123   shlibpath_var=LD_LIBRARY_PATH
20124   shlibpath_overrides_runpath=no
20125
20126   # Some binutils ld are patched to set DT_RUNPATH
20127   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20128   $as_echo_n "(cached) " >&6
20129 else
20130   lt_cv_shlibpath_overrides_runpath=no
20131     save_LDFLAGS=$LDFLAGS
20132     save_libdir=$libdir
20133     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20134          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20135     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20136 /* end confdefs.h.  */
20137
20138 int
20139 main ()
20140 {
20141
20142   ;
20143   return 0;
20144 }
20145 _ACEOF
20146 if ac_fn_cxx_try_link "$LINENO"; then :
20147   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20148   lt_cv_shlibpath_overrides_runpath=yes
20149 fi
20150 fi
20151 rm -f core conftest.err conftest.$ac_objext \
20152     conftest$ac_exeext conftest.$ac_ext
20153     LDFLAGS=$save_LDFLAGS
20154     libdir=$save_libdir
20155
20156 fi
20157
20158   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20159
20160   # This implies no fast_install, which is unacceptable.
20161   # Some rework will be needed to allow for fast_install
20162   # before this can be enabled.
20163   hardcode_into_libs=yes
20164
20165   # Append ld.so.conf contents to the search path
20166   if test -f /etc/ld.so.conf; then
20167     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' ' '`
20168     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20169   fi
20170
20171   # We used to test for /lib/ld.so.1 and disable shared libraries on
20172   # powerpc, because MkLinux only supported shared libraries with the
20173   # GNU dynamic linker.  Since this was broken with cross compilers,
20174   # most powerpc-linux boxes support dynamic linking these days and
20175   # people can always --disable-shared, the test was removed, and we
20176   # assume the GNU/Linux dynamic linker is in use.
20177   dynamic_linker='GNU/Linux ld.so'
20178   ;;
20179
20180 netbsd*)
20181   version_type=sunos
20182   need_lib_prefix=no
20183   need_version=no
20184   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20185     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20186     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20187     dynamic_linker='NetBSD (a.out) ld.so'
20188   else
20189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20190     soname_spec='${libname}${release}${shared_ext}$major'
20191     dynamic_linker='NetBSD ld.elf_so'
20192   fi
20193   shlibpath_var=LD_LIBRARY_PATH
20194   shlibpath_overrides_runpath=yes
20195   hardcode_into_libs=yes
20196   ;;
20197
20198 newsos6)
20199   version_type=linux
20200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20201   shlibpath_var=LD_LIBRARY_PATH
20202   shlibpath_overrides_runpath=yes
20203   ;;
20204
20205 *nto* | *qnx*)
20206   version_type=qnx
20207   need_lib_prefix=no
20208   need_version=no
20209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20210   soname_spec='${libname}${release}${shared_ext}$major'
20211   shlibpath_var=LD_LIBRARY_PATH
20212   shlibpath_overrides_runpath=no
20213   hardcode_into_libs=yes
20214   dynamic_linker='ldqnx.so'
20215   ;;
20216
20217 openbsd*)
20218   version_type=sunos
20219   sys_lib_dlsearch_path_spec="/usr/lib"
20220   need_lib_prefix=no
20221   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20222   case $host_os in
20223     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20224     *)                          need_version=no  ;;
20225   esac
20226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20227   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20228   shlibpath_var=LD_LIBRARY_PATH
20229   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20230     case $host_os in
20231       openbsd2.[89] | openbsd2.[89].*)
20232         shlibpath_overrides_runpath=no
20233         ;;
20234       *)
20235         shlibpath_overrides_runpath=yes
20236         ;;
20237       esac
20238   else
20239     shlibpath_overrides_runpath=yes
20240   fi
20241   ;;
20242
20243 os2*)
20244   libname_spec='$name'
20245   shrext_cmds=".dll"
20246   need_lib_prefix=no
20247   library_names_spec='$libname${shared_ext} $libname.a'
20248   dynamic_linker='OS/2 ld.exe'
20249   shlibpath_var=LIBPATH
20250   ;;
20251
20252 osf3* | osf4* | osf5*)
20253   version_type=osf
20254   need_lib_prefix=no
20255   need_version=no
20256   soname_spec='${libname}${release}${shared_ext}$major'
20257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20258   shlibpath_var=LD_LIBRARY_PATH
20259   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20260   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20261   ;;
20262
20263 rdos*)
20264   dynamic_linker=no
20265   ;;
20266
20267 solaris*)
20268   version_type=linux
20269   need_lib_prefix=no
20270   need_version=no
20271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20272   soname_spec='${libname}${release}${shared_ext}$major'
20273   shlibpath_var=LD_LIBRARY_PATH
20274   shlibpath_overrides_runpath=yes
20275   hardcode_into_libs=yes
20276   # ldd complains unless libraries are executable
20277   postinstall_cmds='chmod +x $lib'
20278   ;;
20279
20280 sunos4*)
20281   version_type=sunos
20282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20283   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20284   shlibpath_var=LD_LIBRARY_PATH
20285   shlibpath_overrides_runpath=yes
20286   if test "$with_gnu_ld" = yes; then
20287     need_lib_prefix=no
20288   fi
20289   need_version=yes
20290   ;;
20291
20292 sysv4 | sysv4.3*)
20293   version_type=linux
20294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20295   soname_spec='${libname}${release}${shared_ext}$major'
20296   shlibpath_var=LD_LIBRARY_PATH
20297   case $host_vendor in
20298     sni)
20299       shlibpath_overrides_runpath=no
20300       need_lib_prefix=no
20301       runpath_var=LD_RUN_PATH
20302       ;;
20303     siemens)
20304       need_lib_prefix=no
20305       ;;
20306     motorola)
20307       need_lib_prefix=no
20308       need_version=no
20309       shlibpath_overrides_runpath=no
20310       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20311       ;;
20312   esac
20313   ;;
20314
20315 sysv4*MP*)
20316   if test -d /usr/nec ;then
20317     version_type=linux
20318     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20319     soname_spec='$libname${shared_ext}.$major'
20320     shlibpath_var=LD_LIBRARY_PATH
20321   fi
20322   ;;
20323
20324 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20325   version_type=freebsd-elf
20326   need_lib_prefix=no
20327   need_version=no
20328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20329   soname_spec='${libname}${release}${shared_ext}$major'
20330   shlibpath_var=LD_LIBRARY_PATH
20331   shlibpath_overrides_runpath=yes
20332   hardcode_into_libs=yes
20333   if test "$with_gnu_ld" = yes; then
20334     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20335   else
20336     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20337     case $host_os in
20338       sco3.2v5*)
20339         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20340         ;;
20341     esac
20342   fi
20343   sys_lib_dlsearch_path_spec='/usr/lib'
20344   ;;
20345
20346 tpf*)
20347   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20348   version_type=linux
20349   need_lib_prefix=no
20350   need_version=no
20351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20352   shlibpath_var=LD_LIBRARY_PATH
20353   shlibpath_overrides_runpath=no
20354   hardcode_into_libs=yes
20355   ;;
20356
20357 uts4*)
20358   version_type=linux
20359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20360   soname_spec='${libname}${release}${shared_ext}$major'
20361   shlibpath_var=LD_LIBRARY_PATH
20362   ;;
20363
20364 *)
20365   dynamic_linker=no
20366   ;;
20367 esac
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20369 $as_echo "$dynamic_linker" >&6; }
20370 test "$dynamic_linker" = no && can_build_shared=no
20371
20372 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20373 if test "$GCC" = yes; then
20374   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20375 fi
20376
20377 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20378   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20379 fi
20380 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20381   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20382 fi
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20422 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20423 hardcode_action_CXX=
20424 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20425    test -n "$runpath_var_CXX" ||
20426    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20427
20428   # We can hardcode non-existent directories.
20429   if test "$hardcode_direct_CXX" != no &&
20430      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20431      # have to relink, otherwise we might link with an installed library
20432      # when we should be linking with a yet-to-be-installed one
20433      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20434      test "$hardcode_minus_L_CXX" != no; then
20435     # Linking always hardcodes the temporary library directory.
20436     hardcode_action_CXX=relink
20437   else
20438     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20439     hardcode_action_CXX=immediate
20440   fi
20441 else
20442   # We cannot hardcode anything, or else we can only hardcode existing
20443   # directories.
20444   hardcode_action_CXX=unsupported
20445 fi
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20447 $as_echo "$hardcode_action_CXX" >&6; }
20448
20449 if test "$hardcode_action_CXX" = relink ||
20450    test "$inherit_rpath_CXX" = yes; then
20451   # Fast installation is not supported
20452   enable_fast_install=no
20453 elif test "$shlibpath_overrides_runpath" = yes ||
20454      test "$enable_shared" = no; then
20455   # Fast installation is not necessary
20456   enable_fast_install=needless
20457 fi
20458
20459
20460
20461
20462
20463
20464
20465   fi # test -n "$compiler"
20466
20467   CC=$lt_save_CC
20468   LDCXX=$LD
20469   LD=$lt_save_LD
20470   GCC=$lt_save_GCC
20471   with_gnu_ld=$lt_save_with_gnu_ld
20472   lt_cv_path_LDCXX=$lt_cv_path_LD
20473   lt_cv_path_LD=$lt_save_path_LD
20474   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20475   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20476 fi # test "$_lt_caught_CXX_error" != yes
20477
20478 ac_ext=c
20479 ac_cpp='$CPP $CPPFLAGS'
20480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499 # Only expand once:
20500
20501
20502
20503
20504
20505 # Identify the assembler which will work hand-in-glove with the newly
20506 # built GCC, so that we can examine its features.  This is the assembler
20507 # which will be driven by the driver program.
20508 #
20509 # If build != host, and we aren't building gas in-tree, we identify a
20510 # build->target assembler and hope that it will have the same features
20511 # as the host->target assembler we'll be using.
20512 gcc_cv_gas_major_version=
20513 gcc_cv_gas_minor_version=
20514 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20515
20516 if test "${gcc_cv_as+set}" = set; then :
20517
20518 else
20519
20520 if test -x "$DEFAULT_ASSEMBLER"; then
20521         gcc_cv_as="$DEFAULT_ASSEMBLER"
20522 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20523      && test -f ../gas/Makefile \
20524      && test x$build = x$host; then
20525         gcc_cv_as=../gas/as-new$build_exeext
20526 elif test -x as$build_exeext; then
20527         # Build using assembler in the current directory.
20528         gcc_cv_as=./as$build_exeext
20529 elif test -x $AS_FOR_TARGET; then
20530         gcc_cv_as="$AS_FOR_TARGET"
20531 else
20532         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20533 set dummy $AS_FOR_TARGET; ac_word=$2
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20535 $as_echo_n "checking for $ac_word... " >&6; }
20536 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20537   $as_echo_n "(cached) " >&6
20538 else
20539   case $gcc_cv_as in
20540   [\\/]* | ?:[\\/]*)
20541   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20542   ;;
20543   *)
20544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20545 for as_dir in $PATH
20546 do
20547   IFS=$as_save_IFS
20548   test -z "$as_dir" && as_dir=.
20549     for ac_exec_ext in '' $ac_executable_extensions; do
20550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20551     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20553     break 2
20554   fi
20555 done
20556   done
20557 IFS=$as_save_IFS
20558
20559   ;;
20560 esac
20561 fi
20562 gcc_cv_as=$ac_cv_path_gcc_cv_as
20563 if test -n "$gcc_cv_as"; then
20564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20565 $as_echo "$gcc_cv_as" >&6; }
20566 else
20567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20568 $as_echo "no" >&6; }
20569 fi
20570
20571
20572 fi
20573 fi
20574
20575 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20576
20577 case "$ORIGINAL_AS_FOR_TARGET" in
20578   ./as | ./as$build_exeext) ;;
20579   *) ac_config_files="$ac_config_files as:exec-tool.in"
20580  ;;
20581 esac
20582
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20584 $as_echo_n "checking what assembler to use... " >&6; }
20585 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20586   # Single tree build which includes gas.  We want to prefer it
20587   # over whatever linker top-level may have detected, since
20588   # we'll use what we're building after installation anyway.
20589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20590 $as_echo "newly built gas" >&6; }
20591   in_tree_gas=yes
20592   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20593 for f in $gcc_cv_as_bfd_srcdir/configure \
20594          $gcc_cv_as_gas_srcdir/configure \
20595          $gcc_cv_as_gas_srcdir/configure.in \
20596          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20597   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20598   if test x$gcc_cv_gas_version != x; then
20599     break
20600   fi
20601 done
20602 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20603 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20604 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20605 case $gcc_cv_gas_patch_version in
20606   "") gcc_cv_gas_patch_version="0" ;;
20607 esac
20608 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20609                             + $gcc_cv_gas_minor_version \) \* 1000 \
20610                             + $gcc_cv_gas_patch_version`
20611
20612   in_tree_gas_is_elf=no
20613   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20614      || (grep 'obj_format = multi' ../gas/Makefile \
20615          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20616   then
20617     in_tree_gas_is_elf=yes
20618   fi
20619 else
20620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20621 $as_echo "$gcc_cv_as" >&6; }
20622   in_tree_gas=no
20623 fi
20624
20625 # Identify the linker which will work hand-in-glove with the newly
20626 # built GCC, so that we can examine its features.  This is the linker
20627 # which will be driven by the driver program.
20628 #
20629 # If build != host, and we aren't building gas in-tree, we identify a
20630 # build->target linker and hope that it will have the same features
20631 # as the host->target linker we'll be using.
20632 gcc_cv_gld_major_version=
20633 gcc_cv_gld_minor_version=
20634 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20635 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20636
20637 if test "${gcc_cv_ld+set}" = set; then :
20638
20639 else
20640
20641 if test -x "$DEFAULT_LINKER"; then
20642         gcc_cv_ld="$DEFAULT_LINKER"
20643 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20644      && test -f ../ld/Makefile \
20645      && test x$build = x$host; then
20646         gcc_cv_ld=../ld/ld-new$build_exeext
20647 elif test -x collect-ld$build_exeext; then
20648         # Build using linker in the current directory.
20649         gcc_cv_ld=./collect-ld$build_exeext
20650 elif test -x $LD_FOR_TARGET; then
20651         gcc_cv_ld="$LD_FOR_TARGET"
20652 else
20653         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20654 set dummy $LD_FOR_TARGET; ac_word=$2
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20656 $as_echo_n "checking for $ac_word... " >&6; }
20657 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20658   $as_echo_n "(cached) " >&6
20659 else
20660   case $gcc_cv_ld in
20661   [\\/]* | ?:[\\/]*)
20662   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20663   ;;
20664   *)
20665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20666 for as_dir in $PATH
20667 do
20668   IFS=$as_save_IFS
20669   test -z "$as_dir" && as_dir=.
20670     for ac_exec_ext in '' $ac_executable_extensions; do
20671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20672     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20674     break 2
20675   fi
20676 done
20677   done
20678 IFS=$as_save_IFS
20679
20680   ;;
20681 esac
20682 fi
20683 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20684 if test -n "$gcc_cv_ld"; then
20685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20686 $as_echo "$gcc_cv_ld" >&6; }
20687 else
20688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20689 $as_echo "no" >&6; }
20690 fi
20691
20692
20693 fi
20694 fi
20695
20696 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20697 PLUGIN_LD=`basename $gcc_cv_ld`
20698
20699 # Check whether --with-plugin-ld was given.
20700 if test "${with_plugin_ld+set}" = set; then :
20701   withval=$with_plugin_ld; if test x"$withval" != x; then
20702    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20703    PLUGIN_LD="$withval"
20704  fi
20705 fi
20706
20707
20708
20709 cat >>confdefs.h <<_ACEOF
20710 #define PLUGIN_LD "$PLUGIN_LD"
20711 _ACEOF
20712
20713
20714 # Check to see if we are using gold instead of ld
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20716 $as_echo_n "checking whether we are using gold... " >&6; }
20717 ld_is_gold=no
20718 if test x$gcc_cv_ld != x; then
20719   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
20720      | grep "GNU gold" > /dev/null; then
20721     ld_is_gold=yes
20722   fi
20723 fi
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20725 $as_echo "$ld_is_gold" >&6; }
20726
20727 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20728
20729 case "$ORIGINAL_LD_FOR_TARGET" in
20730   ./collect-ld | ./collect-ld$build_exeext) ;;
20731   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20732  ;;
20733 esac
20734
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20736 $as_echo_n "checking what linker to use... " >&6; }
20737 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20738         # Single tree build which includes ld.  We want to prefer it
20739         # over whatever linker top-level may have detected, since
20740         # we'll use what we're building after installation anyway.
20741         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20742 $as_echo "newly built ld" >&6; }
20743         in_tree_ld=yes
20744         in_tree_ld_is_elf=no
20745         if (grep 'EMUL = .*elf' ../ld/Makefile \
20746             || grep 'EMUL = .*linux' ../ld/Makefile \
20747             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20748           in_tree_ld_is_elf=yes
20749         fi
20750         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
20751         do
20752                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20753                 if test x$gcc_cv_gld_version != x; then
20754                         break
20755                 fi
20756         done
20757         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20758         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20759 else
20760         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20761 $as_echo "$gcc_cv_ld" >&6; }
20762         in_tree_ld=no
20763 fi
20764
20765 # Figure out what nm we will be using.
20766 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20767 if test "${gcc_cv_nm+set}" = set; then :
20768
20769 else
20770
20771 if test -f $gcc_cv_binutils_srcdir/configure.in \
20772      && test -f ../binutils/Makefile \
20773      && test x$build = x$host; then
20774         gcc_cv_nm=../binutils/nm-new$build_exeext
20775 elif test -x nm$build_exeext; then
20776         gcc_cv_nm=./nm$build_exeext
20777 elif test -x $NM_FOR_TARGET; then
20778         gcc_cv_nm="$NM_FOR_TARGET"
20779 else
20780         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20781 set dummy $NM_FOR_TARGET; ac_word=$2
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20783 $as_echo_n "checking for $ac_word... " >&6; }
20784 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20785   $as_echo_n "(cached) " >&6
20786 else
20787   case $gcc_cv_nm in
20788   [\\/]* | ?:[\\/]*)
20789   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20790   ;;
20791   *)
20792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20793 for as_dir in $PATH
20794 do
20795   IFS=$as_save_IFS
20796   test -z "$as_dir" && as_dir=.
20797     for ac_exec_ext in '' $ac_executable_extensions; do
20798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20799     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20801     break 2
20802   fi
20803 done
20804   done
20805 IFS=$as_save_IFS
20806
20807   ;;
20808 esac
20809 fi
20810 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20811 if test -n "$gcc_cv_nm"; then
20812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20813 $as_echo "$gcc_cv_nm" >&6; }
20814 else
20815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20816 $as_echo "no" >&6; }
20817 fi
20818
20819
20820 fi
20821 fi
20822
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20824 $as_echo_n "checking what nm to use... " >&6; }
20825 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20826         # Single tree build which includes binutils.
20827         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20828 $as_echo "newly built nm" >&6; }
20829         in_tree_nm=yes
20830 else
20831         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20832 $as_echo "$gcc_cv_nm" >&6; }
20833         in_tree_nm=no
20834 fi
20835
20836 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20837
20838 case "$ORIGINAL_NM_FOR_TARGET" in
20839   ./nm | ./nm$build_exeext) ;;
20840   *) ac_config_files="$ac_config_files nm:exec-tool.in"
20841  ;;
20842 esac
20843
20844
20845 # Figure out what objdump we will be using.
20846 if test "${gcc_cv_objdump+set}" = set; then :
20847
20848 else
20849
20850 if test -f $gcc_cv_binutils_srcdir/configure.in \
20851      && test -f ../binutils/Makefile \
20852      && test x$build = x$host; then
20853         # Single tree build which includes binutils.
20854         gcc_cv_objdump=../binutils/objdump$build_exeext
20855 elif test -x objdump$build_exeext; then
20856         gcc_cv_objdump=./objdump$build_exeext
20857 elif test -x $OBJDUMP_FOR_TARGET; then
20858         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20859 else
20860         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20861 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20863 $as_echo_n "checking for $ac_word... " >&6; }
20864 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20865   $as_echo_n "(cached) " >&6
20866 else
20867   case $gcc_cv_objdump in
20868   [\\/]* | ?:[\\/]*)
20869   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20870   ;;
20871   *)
20872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20873 for as_dir in $PATH
20874 do
20875   IFS=$as_save_IFS
20876   test -z "$as_dir" && as_dir=.
20877     for ac_exec_ext in '' $ac_executable_extensions; do
20878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20879     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20881     break 2
20882   fi
20883 done
20884   done
20885 IFS=$as_save_IFS
20886
20887   ;;
20888 esac
20889 fi
20890 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20891 if test -n "$gcc_cv_objdump"; then
20892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20893 $as_echo "$gcc_cv_objdump" >&6; }
20894 else
20895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20896 $as_echo "no" >&6; }
20897 fi
20898
20899
20900 fi
20901 fi
20902
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20904 $as_echo_n "checking what objdump to use... " >&6; }
20905 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20906         # Single tree build which includes binutils.
20907         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20908 $as_echo "newly built objdump" >&6; }
20909 elif test x$gcc_cv_objdump = x; then
20910         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20911 $as_echo "not found" >&6; }
20912 else
20913         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20914 $as_echo "$gcc_cv_objdump" >&6; }
20915 fi
20916
20917 # Figure out what readelf we will be using.
20918 if test "${gcc_cv_readelf+set}" = set; then :
20919
20920 else
20921
20922 if test -f $gcc_cv_binutils_srcdir/configure.in \
20923      && test -f ../binutils/Makefile \
20924      && test x$build = x$host; then
20925         # Single tree build which includes binutils.
20926         gcc_cv_readelf=../binutils/readelf$build_exeext
20927 elif test -x readelf$build_exeext; then
20928         gcc_cv_readelf=./readelf$build_exeext
20929 else
20930         # Extract the first word of "readelf", so it can be a program name with args.
20931 set dummy readelf; ac_word=$2
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20933 $as_echo_n "checking for $ac_word... " >&6; }
20934 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20935   $as_echo_n "(cached) " >&6
20936 else
20937   case $gcc_cv_readelf in
20938   [\\/]* | ?:[\\/]*)
20939   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20940   ;;
20941   *)
20942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20943 for as_dir in $PATH
20944 do
20945   IFS=$as_save_IFS
20946   test -z "$as_dir" && as_dir=.
20947     for ac_exec_ext in '' $ac_executable_extensions; do
20948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20949     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20951     break 2
20952   fi
20953 done
20954   done
20955 IFS=$as_save_IFS
20956
20957   ;;
20958 esac
20959 fi
20960 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20961 if test -n "$gcc_cv_readelf"; then
20962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20963 $as_echo "$gcc_cv_readelf" >&6; }
20964 else
20965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20966 $as_echo "no" >&6; }
20967 fi
20968
20969
20970 fi
20971 fi
20972
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20974 $as_echo_n "checking what readelf to use... " >&6; }
20975 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20976         # Single tree build which includes binutils.
20977         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20978 $as_echo "newly built readelf" >&6; }
20979 elif test x$gcc_cv_readelf = x; then
20980         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20981 $as_echo "not found" >&6; }
20982 else
20983         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20984 $as_echo "$gcc_cv_readelf" >&6; }
20985 fi
20986
20987 # Figure out what assembler alignment features are present.
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20989 $as_echo_n "checking assembler flags... " >&6; }
20990 if test "${gcc_cv_as_flags+set}" = set; then :
20991   $as_echo_n "(cached) " >&6
20992 else
20993    case "$target" in
20994   i[34567]86-*-linux*)
20995         gcc_cv_as_flags="--32"
20996     ;;
20997   *)
20998     gcc_cv_as_flags=" "
20999     ;;
21000   esac
21001 fi
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21003 $as_echo "$gcc_cv_as_flags" >&6; }
21004
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21006 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21007 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21008   $as_echo_n "(cached) " >&6
21009 else
21010   gcc_cv_as_balign_and_p2align=no
21011     if test $in_tree_gas = yes; then
21012     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21013   then gcc_cv_as_balign_and_p2align=yes
21014 fi
21015   elif test x$gcc_cv_as != x; then
21016     echo '.balign 4
21017 .p2align 2' > conftest.s
21018     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21019   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21020   (eval $ac_try) 2>&5
21021   ac_status=$?
21022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21023   test $ac_status = 0; }; }
21024     then
21025         gcc_cv_as_balign_and_p2align=yes
21026     else
21027       echo "configure: failed program was" >&5
21028       cat conftest.s >&5
21029     fi
21030     rm -f conftest.o conftest.s
21031   fi
21032 fi
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21034 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21035 if test $gcc_cv_as_balign_and_p2align = yes; then
21036
21037 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21038
21039 fi
21040
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21042 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21043 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21044   $as_echo_n "(cached) " >&6
21045 else
21046   gcc_cv_as_max_skip_p2align=no
21047     if test $in_tree_gas = yes; then
21048     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21049   then gcc_cv_as_max_skip_p2align=yes
21050 fi
21051   elif test x$gcc_cv_as != x; then
21052     echo '.p2align 4,,7' > conftest.s
21053     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21054   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21055   (eval $ac_try) 2>&5
21056   ac_status=$?
21057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21058   test $ac_status = 0; }; }
21059     then
21060         gcc_cv_as_max_skip_p2align=yes
21061     else
21062       echo "configure: failed program was" >&5
21063       cat conftest.s >&5
21064     fi
21065     rm -f conftest.o conftest.s
21066   fi
21067 fi
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21069 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21070 if test $gcc_cv_as_max_skip_p2align = yes; then
21071
21072 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21073
21074 fi
21075
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21077 $as_echo_n "checking assembler for .literal16... " >&6; }
21078 if test "${gcc_cv_as_literal16+set}" = set; then :
21079   $as_echo_n "(cached) " >&6
21080 else
21081   gcc_cv_as_literal16=no
21082     if test $in_tree_gas = yes; then
21083     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21084   then gcc_cv_as_literal16=yes
21085 fi
21086   elif test x$gcc_cv_as != x; then
21087     echo '.literal16' > conftest.s
21088     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21089   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21090   (eval $ac_try) 2>&5
21091   ac_status=$?
21092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21093   test $ac_status = 0; }; }
21094     then
21095         gcc_cv_as_literal16=yes
21096     else
21097       echo "configure: failed program was" >&5
21098       cat conftest.s >&5
21099     fi
21100     rm -f conftest.o conftest.s
21101   fi
21102 fi
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21104 $as_echo "$gcc_cv_as_literal16" >&6; }
21105 if test $gcc_cv_as_literal16 = yes; then
21106
21107 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21108
21109 fi
21110
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21112 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21113 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21114   $as_echo_n "(cached) " >&6
21115 else
21116   gcc_cv_as_subsection_m1=no
21117     if test $in_tree_gas = yes; then
21118     if test $in_tree_gas_is_elf = yes \
21119   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21120   then gcc_cv_as_subsection_m1=yes
21121 fi
21122   elif test x$gcc_cv_as != x; then
21123     echo 'conftest_label1: .word 0
21124 .subsection -1
21125 conftest_label2: .word 0
21126 .previous' > conftest.s
21127     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21128   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21129   (eval $ac_try) 2>&5
21130   ac_status=$?
21131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21132   test $ac_status = 0; }; }
21133     then
21134         if test x$gcc_cv_nm != x; then
21135     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21136     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21137     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21138     then :
21139     else gcc_cv_as_subsection_m1=yes
21140     fi
21141     rm -f conftest.nm1 conftest.nm2
21142   fi
21143     else
21144       echo "configure: failed program was" >&5
21145       cat conftest.s >&5
21146     fi
21147     rm -f conftest.o conftest.s
21148   fi
21149 fi
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21151 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21152 if test $gcc_cv_as_subsection_m1 = yes; then
21153
21154 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21155
21156 fi
21157
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21159 $as_echo_n "checking assembler for .weak... " >&6; }
21160 if test "${gcc_cv_as_weak+set}" = set; then :
21161   $as_echo_n "(cached) " >&6
21162 else
21163   gcc_cv_as_weak=no
21164     if test $in_tree_gas = yes; then
21165     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21166   then gcc_cv_as_weak=yes
21167 fi
21168   elif test x$gcc_cv_as != x; then
21169     echo '      .weak foobar' > conftest.s
21170     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21171   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21172   (eval $ac_try) 2>&5
21173   ac_status=$?
21174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21175   test $ac_status = 0; }; }
21176     then
21177         gcc_cv_as_weak=yes
21178     else
21179       echo "configure: failed program was" >&5
21180       cat conftest.s >&5
21181     fi
21182     rm -f conftest.o conftest.s
21183   fi
21184 fi
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21186 $as_echo "$gcc_cv_as_weak" >&6; }
21187 if test $gcc_cv_as_weak = yes; then
21188
21189 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21190
21191 fi
21192
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21194 $as_echo_n "checking assembler for .weakref... " >&6; }
21195 if test "${gcc_cv_as_weakref+set}" = set; then :
21196   $as_echo_n "(cached) " >&6
21197 else
21198   gcc_cv_as_weakref=no
21199     if test $in_tree_gas = yes; then
21200     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21201   then gcc_cv_as_weakref=yes
21202 fi
21203   elif test x$gcc_cv_as != x; then
21204     echo '      .weakref foobar, barfnot' > conftest.s
21205     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21206   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21207   (eval $ac_try) 2>&5
21208   ac_status=$?
21209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21210   test $ac_status = 0; }; }
21211     then
21212         gcc_cv_as_weakref=yes
21213     else
21214       echo "configure: failed program was" >&5
21215       cat conftest.s >&5
21216     fi
21217     rm -f conftest.o conftest.s
21218   fi
21219 fi
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21221 $as_echo "$gcc_cv_as_weakref" >&6; }
21222 if test $gcc_cv_as_weakref = yes; then
21223
21224 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21225
21226 fi
21227
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21229 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21230 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21231   $as_echo_n "(cached) " >&6
21232 else
21233   gcc_cv_as_nsubspa_comdat=no
21234     if test $in_tree_gas = yes; then
21235     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21236   then gcc_cv_as_nsubspa_comdat=yes
21237 fi
21238   elif test x$gcc_cv_as != x; then
21239     echo '      .SPACE $TEXT$
21240         .NSUBSPA $CODE$,COMDAT' > conftest.s
21241     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21242   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21243   (eval $ac_try) 2>&5
21244   ac_status=$?
21245   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21246   test $ac_status = 0; }; }
21247     then
21248         gcc_cv_as_nsubspa_comdat=yes
21249     else
21250       echo "configure: failed program was" >&5
21251       cat conftest.s >&5
21252     fi
21253     rm -f conftest.o conftest.s
21254   fi
21255 fi
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21257 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21258 if test $gcc_cv_as_nsubspa_comdat = yes; then
21259
21260 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21261
21262 fi
21263
21264 # .hidden needs to be supported in both the assembler and the linker,
21265 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21266 # This is irritatingly difficult to feature test for; we have to check the
21267 # date string after the version number.  If we've got an in-tree
21268 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21269 # to be safe.
21270 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21272 $as_echo_n "checking assembler for .hidden... " >&6; }
21273 if test "${gcc_cv_as_hidden+set}" = set; then :
21274   $as_echo_n "(cached) " >&6
21275 else
21276   gcc_cv_as_hidden=no
21277     if test $in_tree_gas = yes; then
21278     if test $in_tree_gas_is_elf = yes \
21279   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21280   then gcc_cv_as_hidden=yes
21281 fi
21282   elif test x$gcc_cv_as != x; then
21283     echo '      .hidden foobar
21284 foobar:' > conftest.s
21285     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21286   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21287   (eval $ac_try) 2>&5
21288   ac_status=$?
21289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21290   test $ac_status = 0; }; }
21291     then
21292
21293 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21294 # STV_HIDDEN, so disable .hidden support if so.
21295 case "${target}" in
21296   i?86-*-solaris2*)
21297     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21298       cat > conftest.s <<EOF
21299 .globl hidden
21300         .hidden hidden
21301 hidden:
21302 .globl default
21303         .set    default,hidden
21304 EOF
21305       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21306         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21307         grep '\.hidden default' > /dev/null; then
21308         gcc_cv_as_hidden=no
21309       else
21310         gcc_cv_as_hidden=yes
21311       fi
21312     else
21313       # Assume bug is present if objdump is missing.
21314       gcc_cv_as_hidden=no
21315     fi
21316     ;;
21317   *)
21318     gcc_cv_as_hidden=yes
21319     ;;
21320 esac
21321     else
21322       echo "configure: failed program was" >&5
21323       cat conftest.s >&5
21324     fi
21325     rm -f conftest.o conftest.s
21326   fi
21327 fi
21328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21329 $as_echo "$gcc_cv_as_hidden" >&6; }
21330
21331
21332 # gnu_indirect_function type is an extension proposed at
21333 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21334 # selection of function implementation
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_indirect_function" >&5
21336 $as_echo_n "checking assembler for gnu_indirect_function... " >&6; }
21337 if test "${gcc_cv_as_indirect_function+set}" = set; then :
21338   $as_echo_n "(cached) " >&6
21339 else
21340   gcc_cv_as_indirect_function=no
21341     if test $in_tree_gas = yes; then
21342     if test $in_tree_gas_is_elf = yes \
21343   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
21344   then gcc_cv_as_indirect_function=yes
21345 fi
21346   elif test x$gcc_cv_as != x; then
21347     echo '      .type  Foo, @gnu_indirect_function
21348 Foo:' > conftest.s
21349     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21350   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21351   (eval $ac_try) 2>&5
21352   ac_status=$?
21353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21354   test $ac_status = 0; }; }
21355     then
21356         gcc_cv_as_indirect_function=yes
21357     else
21358       echo "configure: failed program was" >&5
21359       cat conftest.s >&5
21360     fi
21361     rm -f conftest.o conftest.s
21362   fi
21363 fi
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_indirect_function" >&5
21365 $as_echo "$gcc_cv_as_indirect_function" >&6; }
21366
21367
21368 if test $gcc_cv_as_indirect_function = yes ; then
21369
21370 $as_echo "#define HAVE_GAS_INDIRECT_FUNCTION 1" >>confdefs.h
21371
21372 fi
21373
21374 if test $in_tree_ld != yes ; then
21375   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21376   if test x"$ld_is_gold" = xyes; then
21377     gcc_cv_ld_hidden=yes
21378   elif echo "$ld_ver" | grep GNU > /dev/null; then
21379     ld_vers=`echo $ld_ver | sed -n \
21380         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21381     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'`
21382     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21383     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21384     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21385   else
21386     case "${target}" in
21387       *-*-solaris2*)
21388         #
21389         # Solaris 2 ld -V output looks like this for a regular version:
21390         #
21391         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21392         #
21393         # but test versions add stuff at the end:
21394         #
21395         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21396         #
21397         ld_ver=`$gcc_cv_ld -V 2>&1`
21398         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21399           ld_vers=`echo $ld_ver | sed -n \
21400             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21401           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21402           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21403         fi
21404         ;;
21405     esac
21406   fi
21407 fi
21408
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21410 $as_echo_n "checking linker for .hidden support... " >&6; }
21411 if test "${gcc_cv_ld_hidden+set}" = set; then :
21412   $as_echo_n "(cached) " >&6
21413 else
21414   if test $in_tree_ld = yes ; then
21415   gcc_cv_ld_hidden=no
21416   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 \
21417      && test $in_tree_ld_is_elf = yes; then
21418      gcc_cv_ld_hidden=yes
21419   fi
21420 else
21421   gcc_cv_ld_hidden=yes
21422   if echo "$ld_ver" | grep GNU > /dev/null; then
21423     if test 0"$ld_date" -lt 20020404; then
21424       if test -n "$ld_date"; then
21425         # If there was date string, but was earlier than 2002-04-04, fail
21426         gcc_cv_ld_hidden=no
21427       elif test -z "$ld_vers"; then
21428         # If there was no date string nor ld version number, something is wrong
21429         gcc_cv_ld_hidden=no
21430       else
21431         test -z "$ld_vers_patch" && ld_vers_patch=0
21432         if test "$ld_vers_major" -lt 2; then
21433           gcc_cv_ld_hidden=no
21434         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21435           gcc_cv_ld_hidden="no"
21436         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21437           gcc_cv_ld_hidden=no
21438         fi
21439       fi
21440     fi
21441   else
21442     case "${target}" in
21443       hppa64*-*-hpux* | ia64*-*-hpux*)
21444         gcc_cv_ld_hidden=yes
21445         ;;
21446       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21447         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21448         # .symbolic was only added in Solaris 9 12/02.
21449         gcc_cv_ld_hidden=yes
21450         ;;
21451       *)
21452         gcc_cv_ld_hidden=no
21453         ;;
21454     esac
21455   fi
21456 fi
21457 fi
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21459 $as_echo "$gcc_cv_ld_hidden" >&6; }
21460 libgcc_visibility=no
21461
21462
21463 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21464   libgcc_visibility=yes
21465
21466 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21467
21468 fi
21469
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21471 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21472 gcc_cv_ld_ro_rw_mix=unknown
21473 if test $in_tree_ld = yes ; then
21474   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 \
21475      && test $in_tree_ld_is_elf = yes; then
21476     gcc_cv_ld_ro_rw_mix=read-write
21477   fi
21478 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21479   echo '.section myfoosect, "a"' > conftest1.s
21480   echo '.section myfoosect, "aw"' > conftest2.s
21481   echo '.byte 1' >> conftest2.s
21482   echo '.section myfoosect, "a"' > conftest3.s
21483   echo '.byte 0' >> conftest3.s
21484   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21485      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21486      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21487      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21488         conftest2.o conftest3.o > /dev/null 2>&1; then
21489     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21490                          | sed -e '/myfoosect/!d' -e N`
21491     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21492       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21493         gcc_cv_ld_ro_rw_mix=read-only
21494       else
21495         gcc_cv_ld_ro_rw_mix=read-write
21496       fi
21497     fi
21498   fi
21499   rm -f conftest.* conftest[123].*
21500 fi
21501 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21502
21503 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21504
21505 fi
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21507 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21508
21509 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21511 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21512 if test "${gcc_cv_as_leb128+set}" = set; then :
21513   $as_echo_n "(cached) " >&6
21514 else
21515   gcc_cv_as_leb128=no
21516     if test $in_tree_gas = yes; then
21517     if test $in_tree_gas_is_elf = yes \
21518   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21519   then gcc_cv_as_leb128=yes
21520 fi
21521   elif test x$gcc_cv_as != x; then
21522     echo '      .data
21523         .uleb128 L2 - L1
21524 L1:
21525         .uleb128 1280
21526         .sleb128 -1010
21527 L2:' > conftest.s
21528     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21529   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21530   (eval $ac_try) 2>&5
21531   ac_status=$?
21532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21533   test $ac_status = 0; }; }
21534     then
21535         # GAS versions before 2.11 do not support uleb128,
21536   # despite appearing to.
21537   # ??? There exists an elf-specific test that will crash
21538   # the assembler.  Perhaps it's better to figure out whether
21539   # arbitrary sections are supported and try the test.
21540   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21541   if echo "$as_ver" | grep GNU > /dev/null; then
21542     as_vers=`echo $as_ver | sed -n \
21543         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21544     as_major=`expr "$as_vers" : '\([0-9]*\)'`
21545     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21546     if test $as_major -eq 2 && test $as_minor -lt 11
21547     then :
21548     else gcc_cv_as_leb128=yes
21549     fi
21550   fi
21551     else
21552       echo "configure: failed program was" >&5
21553       cat conftest.s >&5
21554     fi
21555     rm -f conftest.o conftest.s
21556   fi
21557 fi
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21559 $as_echo "$gcc_cv_as_leb128" >&6; }
21560 if test $gcc_cv_as_leb128 = yes; then
21561
21562 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21563
21564 fi
21565
21566 # Check if we have assembler support for unwind directives.
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21568 $as_echo_n "checking assembler for cfi directives... " >&6; }
21569 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21570   $as_echo_n "(cached) " >&6
21571 else
21572   gcc_cv_as_cfi_directive=no
21573   if test x$gcc_cv_as != x; then
21574     echo '      .text
21575         .cfi_startproc
21576         .cfi_offset 0, 0
21577         .cfi_same_value 1
21578         .cfi_def_cfa 1, 2
21579         .cfi_escape 1, 2, 3, 4, 5
21580         .cfi_endproc' > conftest.s
21581     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21582   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21583   (eval $ac_try) 2>&5
21584   ac_status=$?
21585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21586   test $ac_status = 0; }; }
21587     then
21588         case "$target" in
21589   *-*-solaris*)
21590     # If the linker used on Solaris (like Sun ld) isn't capable of merging
21591     # read-only and read-write sections, we need to make sure that the
21592     # assembler used emits read-write .eh_frame sections.
21593     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21594       if test "x$gcc_cv_objdump" != x; then
21595         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21596                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21597           gcc_cv_as_cfi_directive=no
21598         else
21599           case "$target" in
21600             i?86-*-solaris2.1[0-9]*)
21601               # On Solaris/x86, make sure that GCC and gas agree on using
21602               # read-only .eh_frame sections for 64-bit.
21603               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21604                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21605                         sed -e /.eh_frame/!d -e N | \
21606                         grep READONLY > /dev/null; then
21607                 gcc_cv_as_cfi_directive=yes
21608               else
21609                 gcc_cv_as_cfi_directive=no
21610               fi
21611               ;;
21612             *)
21613               gcc_cv_as_cfi_directive=yes
21614               ;;
21615           esac
21616         fi
21617       else
21618         # no objdump, err on the side of caution
21619         gcc_cv_as_cfi_directive=no
21620       fi
21621     else
21622       gcc_cv_as_cfi_directive=yes
21623     fi
21624     ;;
21625   *-*-*)
21626     gcc_cv_as_cfi_directive=yes
21627     ;;
21628 esac
21629     else
21630       echo "configure: failed program was" >&5
21631       cat conftest.s >&5
21632     fi
21633     rm -f conftest.o conftest.s
21634   fi
21635 fi
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21637 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21638
21639 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21641 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21642 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21643   $as_echo_n "(cached) " >&6
21644 else
21645   gcc_cv_as_cfi_advance_working=no
21646   if test x$gcc_cv_as != x; then
21647     echo '      .text
21648         .cfi_startproc
21649         .cfi_adjust_cfa_offset 64
21650         .skip 75040, 0
21651         .cfi_adjust_cfa_offset 128
21652         .cfi_endproc' > conftest.s
21653     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21654   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21655   (eval $ac_try) 2>&5
21656   ac_status=$?
21657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21658   test $ac_status = 0; }; }
21659     then
21660
21661 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
21662     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
21663    gcc_cv_as_cfi_advance_working=yes
21664 fi
21665
21666     else
21667       echo "configure: failed program was" >&5
21668       cat conftest.s >&5
21669     fi
21670     rm -f conftest.o conftest.s
21671   fi
21672 fi
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21674 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21675
21676 else
21677   # no objdump, err on the side of caution
21678   gcc_cv_as_cfi_advance_working=no
21679 fi
21680
21681 cat >>confdefs.h <<_ACEOF
21682 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21683        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21684 _ACEOF
21685
21686
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21688 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21689 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21690   $as_echo_n "(cached) " >&6
21691 else
21692   gcc_cv_as_cfi_personality_directive=no
21693   if test x$gcc_cv_as != x; then
21694     echo '      .text
21695         .cfi_startproc
21696         .cfi_personality 0, symbol
21697         .cfi_endproc' > conftest.s
21698     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21699   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21700   (eval $ac_try) 2>&5
21701   ac_status=$?
21702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21703   test $ac_status = 0; }; }
21704     then
21705         gcc_cv_as_cfi_personality_directive=yes
21706     else
21707       echo "configure: failed program was" >&5
21708       cat conftest.s >&5
21709     fi
21710     rm -f conftest.o conftest.s
21711   fi
21712 fi
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21714 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21715
21716
21717 cat >>confdefs.h <<_ACEOF
21718 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21719     then echo 1; else echo 0; fi`
21720 _ACEOF
21721
21722
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21724 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21725 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21726   $as_echo_n "(cached) " >&6
21727 else
21728   gcc_cv_as_cfi_sections_directive=no
21729   if test x$gcc_cv_as != x; then
21730     echo '      .text
21731         .cfi_sections .debug_frame, .eh_frame
21732         .cfi_startproc
21733         .cfi_endproc' > conftest.s
21734     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21735   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21736   (eval $ac_try) 2>&5
21737   ac_status=$?
21738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21739   test $ac_status = 0; }; }
21740     then
21741         case $target_os in
21742   win32 | pe | cygwin* | mingw32* | uwin*)
21743     # Need to check that we generated the correct relocation for the
21744     # .debug_frame section.  This was fixed for binutils 2.21.
21745     gcc_cv_as_cfi_sections_directive=no
21746     if test "x$gcc_cv_objdump" != x; then
21747      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
21748         grep secrel > /dev/null; then
21749       gcc_cv_as_cfi_sections_directive=yes
21750      fi
21751     fi
21752     ;;
21753   *)
21754     gcc_cv_as_cfi_sections_directive=yes
21755     ;;
21756 esac
21757     else
21758       echo "configure: failed program was" >&5
21759       cat conftest.s >&5
21760     fi
21761     rm -f conftest.o conftest.s
21762   fi
21763 fi
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21765 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21766
21767
21768 cat >>confdefs.h <<_ACEOF
21769 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21770     then echo 1; else echo 0; fi`
21771 _ACEOF
21772
21773
21774 # GAS versions up to and including 2.11.0 may mis-optimize
21775 # .eh_frame data.
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21777 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21778 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21779   $as_echo_n "(cached) " >&6
21780 else
21781   gcc_cv_as_eh_frame=no
21782     if test $in_tree_gas = yes; then
21783     if test $in_tree_gas_is_elf = yes \
21784   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21785   then gcc_cv_as_eh_frame=yes
21786 fi
21787   elif test x$gcc_cv_as != x; then
21788     echo '      .text
21789 .LFB1:
21790         .4byte  0
21791 .L1:
21792         .4byte  0
21793 .LFE1:
21794         .section        .eh_frame,"aw",@progbits
21795 __FRAME_BEGIN__:
21796         .4byte  .LECIE1-.LSCIE1
21797 .LSCIE1:
21798         .4byte  0x0
21799         .byte   0x1
21800         .ascii "z\0"
21801         .byte   0x1
21802         .byte   0x78
21803         .byte   0x1a
21804         .byte   0x0
21805         .byte   0x4
21806         .4byte  1
21807         .p2align 1
21808 .LECIE1:
21809 .LSFDE1:
21810         .4byte  .LEFDE1-.LASFDE1
21811 .LASFDE1:
21812         .4byte  .LASFDE1-__FRAME_BEGIN__
21813         .4byte  .LFB1
21814         .4byte  .LFE1-.LFB1
21815         .byte   0x4
21816         .4byte  .LFE1-.LFB1
21817         .byte   0x4
21818         .4byte  .L1-.LFB1
21819 .LEFDE1:' > conftest.s
21820     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21821   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21822   (eval $ac_try) 2>&5
21823   ac_status=$?
21824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21825   test $ac_status = 0; }; }
21826     then
21827           cat > conftest.lit <<EOF
21828  0000 10000000 00000000 017a0001 781a0004  .........z..x...
21829  0010 01000000 12000000 18000000 00000000  ................
21830  0020 08000000 04080000 0044               .........D      
21831 EOF
21832 cat > conftest.big <<EOF
21833  0000 00000010 00000000 017a0001 781a0004  .........z..x...
21834  0010 00000001 00000012 00000018 00000000  ................
21835  0020 00000008 04000000 0844               .........D      
21836 EOF
21837   # If the assembler didn't choke, and we can objdump,
21838   # and we got the correct data, then succeed.
21839   # The text in the here-document typically retains its unix-style line
21840   # endings, while the output of objdump will use host line endings.
21841   # Therefore, use diff -b for the comparisons.
21842   if test x$gcc_cv_objdump != x \
21843   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21844      | tail -3 > conftest.got \
21845   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21846     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21847   then
21848     gcc_cv_as_eh_frame=yes
21849   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21850   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21851   (eval $ac_try) 2>&5
21852   ac_status=$?
21853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21854   test $ac_status = 0; }; }; then
21855     gcc_cv_as_eh_frame=buggy
21856   else
21857     # Uh oh, what do we do now?
21858     gcc_cv_as_eh_frame=no
21859   fi
21860     else
21861       echo "configure: failed program was" >&5
21862       cat conftest.s >&5
21863     fi
21864     rm -f conftest.o conftest.s
21865   fi
21866 fi
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21868 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21869
21870
21871 if test $gcc_cv_as_eh_frame = buggy; then
21872
21873 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21874
21875 fi
21876
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21878 $as_echo_n "checking assembler for section merging support... " >&6; }
21879 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21880   $as_echo_n "(cached) " >&6
21881 else
21882   gcc_cv_as_shf_merge=no
21883     if test $in_tree_gas = yes; then
21884     if test $in_tree_gas_is_elf = yes \
21885   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21886   then gcc_cv_as_shf_merge=yes
21887 fi
21888   elif test x$gcc_cv_as != x; then
21889     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21890     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21891   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21892   (eval $ac_try) 2>&5
21893   ac_status=$?
21894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21895   test $ac_status = 0; }; }
21896     then
21897         gcc_cv_as_shf_merge=yes
21898     else
21899       echo "configure: failed program was" >&5
21900       cat conftest.s >&5
21901     fi
21902     rm -f conftest.o conftest.s
21903   fi
21904 fi
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21906 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21907
21908 if test $gcc_cv_as_shf_merge = no; then
21909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21910 $as_echo_n "checking assembler for section merging support... " >&6; }
21911 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21912   $as_echo_n "(cached) " >&6
21913 else
21914   gcc_cv_as_shf_merge=no
21915     if test $in_tree_gas = yes; then
21916     if test $in_tree_gas_is_elf = yes \
21917   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21918   then gcc_cv_as_shf_merge=yes
21919 fi
21920   elif test x$gcc_cv_as != x; then
21921     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21922     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21923   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21924   (eval $ac_try) 2>&5
21925   ac_status=$?
21926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21927   test $ac_status = 0; }; }
21928     then
21929         gcc_cv_as_shf_merge=yes
21930     else
21931       echo "configure: failed program was" >&5
21932       cat conftest.s >&5
21933     fi
21934     rm -f conftest.o conftest.s
21935   fi
21936 fi
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21938 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21939
21940 fi
21941
21942 cat >>confdefs.h <<_ACEOF
21943 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21944 _ACEOF
21945
21946
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21948 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21949 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21950   $as_echo_n "(cached) " >&6
21951 else
21952   gcc_cv_as_comdat_group=no
21953     if test $in_tree_gas = yes; then
21954     if test $in_tree_gas_is_elf = yes \
21955   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21956   then gcc_cv_as_comdat_group=yes
21957 fi
21958   elif test x$gcc_cv_as != x; then
21959     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21960     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21961   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21962   (eval $ac_try) 2>&5
21963   ac_status=$?
21964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21965   test $ac_status = 0; }; }
21966     then
21967         gcc_cv_as_comdat_group=yes
21968     else
21969       echo "configure: failed program was" >&5
21970       cat conftest.s >&5
21971     fi
21972     rm -f conftest.o conftest.s
21973   fi
21974 fi
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21976 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21977
21978 if test $gcc_cv_as_comdat_group = yes; then
21979   gcc_cv_as_comdat_group_percent=no
21980 else
21981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21982 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21983 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21984   $as_echo_n "(cached) " >&6
21985 else
21986   gcc_cv_as_comdat_group_percent=no
21987     if test $in_tree_gas = yes; then
21988     if test $in_tree_gas_is_elf = yes \
21989   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21990   then gcc_cv_as_comdat_group_percent=yes
21991 fi
21992   elif test x$gcc_cv_as != x; then
21993     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21994     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21995   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21996   (eval $ac_try) 2>&5
21997   ac_status=$?
21998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21999   test $ac_status = 0; }; }
22000     then
22001         gcc_cv_as_comdat_group_percent=yes
22002     else
22003       echo "configure: failed program was" >&5
22004       cat conftest.s >&5
22005     fi
22006     rm -f conftest.o conftest.s
22007   fi
22008 fi
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22010 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22011
22012 fi
22013 if test x"$ld_is_gold" = xyes; then
22014   comdat_group=yes
22015 elif test $in_tree_ld = yes ; then
22016   comdat_group=no
22017   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 \
22018      && test $in_tree_ld_is_elf = yes; then
22019      comdat_group=yes
22020   fi
22021 elif echo "$ld_ver" | grep GNU > /dev/null; then
22022   comdat_group=yes
22023   if test 0"$ld_date" -lt 20050308; then
22024     if test -n "$ld_date"; then
22025       # If there was date string, but was earlier than 2005-03-08, fail
22026       comdat_group=no
22027     elif test "$ld_vers_major" -lt 2; then
22028       comdat_group=no
22029     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22030       comdat_group=no
22031     fi
22032   fi
22033 else
22034   case "${target}" in
22035     *-*-solaris2.1[1-9]*)
22036       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22037       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22038       # version 1.688.
22039       #
22040       # FIXME: Maybe need to refine later when COMDAT group support with
22041       # Sun as is implemented.
22042       if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
22043         comdat_group=yes
22044       else
22045         comdat_group=no
22046       fi
22047       ;;
22048     *)
22049       # Assume linkers other than GNU ld don't support COMDAT group.
22050       comdat_group=no
22051       ;;
22052   esac
22053 fi
22054 # Allow overriding the automatic COMDAT group tests above.
22055 # Check whether --enable-comdat was given.
22056 if test "${enable_comdat+set}" = set; then :
22057   enableval=$enable_comdat; comdat_group="$enable_comdat"
22058 fi
22059
22060 if test $comdat_group = no; then
22061   gcc_cv_as_comdat_group=no
22062   gcc_cv_as_comdat_group_percent=no
22063 fi
22064
22065 cat >>confdefs.h <<_ACEOF
22066 #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`
22067 _ACEOF
22068
22069
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22071 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22072 if test "${gcc_cv_as_discriminator+set}" = set; then :
22073   $as_echo_n "(cached) " >&6
22074 else
22075   gcc_cv_as_discriminator=no
22076     if test $in_tree_gas = yes; then
22077     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22078   then gcc_cv_as_discriminator=yes
22079 fi
22080   elif test x$gcc_cv_as != x; then
22081     echo '      .text
22082         .file 1 "conf.c"
22083         .loc 1 1 0 discriminator 1' > conftest.s
22084     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22085   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22086   (eval $ac_try) 2>&5
22087   ac_status=$?
22088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22089   test $ac_status = 0; }; }
22090     then
22091         gcc_cv_as_discriminator=yes
22092     else
22093       echo "configure: failed program was" >&5
22094       cat conftest.s >&5
22095     fi
22096     rm -f conftest.o conftest.s
22097   fi
22098 fi
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22100 $as_echo "$gcc_cv_as_discriminator" >&6; }
22101 if test $gcc_cv_as_discriminator = yes; then
22102
22103 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22104
22105 fi
22106
22107 # Thread-local storage - the check is heavily parameterized.
22108 conftest_s=
22109 tls_first_major=
22110 tls_first_minor=
22111 tls_as_opt=
22112 case "$target" in
22113   alpha*-*-*)
22114     conftest_s='
22115         .section ".tdata","awT",@progbits
22116 foo:    .long   25
22117         .text
22118         ldq     $27,__tls_get_addr($29)         !literal!1
22119         lda     $16,foo($29)                    !tlsgd!1
22120         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
22121         ldq     $27,__tls_get_addr($29)         !literal!2
22122         lda     $16,foo($29)                    !tlsldm!2
22123         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
22124         ldq     $1,foo($29)                     !gotdtprel
22125         ldah    $2,foo($29)                     !dtprelhi
22126         lda     $3,foo($2)                      !dtprello
22127         lda     $4,foo($29)                     !dtprel
22128         ldq     $1,foo($29)                     !gottprel
22129         ldah    $2,foo($29)                     !tprelhi
22130         lda     $3,foo($2)                      !tprello
22131         lda     $4,foo($29)                     !tprel'
22132         tls_first_major=2
22133         tls_first_minor=13
22134         tls_as_opt=--fatal-warnings
22135         ;;
22136   cris-*-*|crisv32-*-*)
22137     conftest_s='
22138         .section ".tdata","awT",@progbits
22139 x:      .long   25
22140         .text
22141         move.d x:IE,$r10
22142         nop'
22143         tls_first_major=2
22144         tls_first_minor=20
22145         tls_as_opt=--fatal-warnings
22146         ;;
22147   frv*-*-*)
22148     conftest_s='
22149         .section ".tdata","awT",@progbits
22150 x:      .long   25
22151         .text
22152         call    #gettlsoff(x)'
22153         tls_first_major=2
22154         tls_first_minor=14
22155         ;;
22156   hppa*-*-linux*)
22157     conftest_s='
22158 t1:     .reg    %r20
22159 t2:     .reg    %r21
22160 gp:     .reg    %r19
22161         .section ".tdata","awT",@progbits
22162 foo:    .long   25
22163         .text
22164         .align  4
22165         addil LT%foo-$tls_gdidx$,gp
22166         ldo RT%foo-$tls_gdidx$(%r1),%arg0
22167         b __tls_get_addr
22168         nop
22169         addil LT%foo-$tls_ldidx$,gp
22170         b __tls_get_addr
22171         ldo RT%foo-$tls_ldidx$(%r1),%arg0
22172         addil LR%foo-$tls_dtpoff$,%ret0
22173         ldo RR%foo-$tls_dtpoff$(%r1),%t1
22174         mfctl %cr27,%t1
22175         addil LT%foo-$tls_ieoff$,gp
22176         ldw RT%foo-$tls_ieoff$(%r1),%t2
22177         add %t1,%t2,%t3
22178         mfctl %cr27,%t1
22179         addil LR%foo-$tls_leoff$,%t1
22180         ldo RR%foo-$tls_leoff$(%r1),%t2'
22181         tls_first_major=2
22182         tls_first_minor=15
22183         tls_as_opt=--fatal-warnings
22184         ;;
22185   arm*-*-*)
22186     conftest_s='
22187         .section ".tdata","awT",%progbits
22188 foo:    .long   25
22189         .text
22190 .word foo(gottpoff)
22191 .word foo(tpoff)
22192 .word foo(tlsgd)
22193 .word foo(tlsldm)
22194 .word foo(tlsldo)'
22195         tls_first_major=2
22196         tls_first_minor=17
22197         ;;
22198   i[34567]86-*-*)
22199     case "$target" in
22200       i[34567]86-*-solaris2.*)
22201         on_solaris=yes
22202         tga_func=___tls_get_addr
22203         ;;
22204       *)
22205         on_solaris=no
22206         ;;
22207     esac
22208     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22209       conftest_s='
22210         .section .tdata,"awt",@progbits'
22211       tls_first_major=0
22212       tls_first_minor=0
22213
22214 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22215
22216     else
22217       conftest_s='
22218         .section ".tdata","awT",@progbits'
22219       tls_first_major=2
22220       tls_first_minor=14
22221       tls_as_opt="--fatal-warnings"
22222     fi
22223     conftest_s="$conftest_s
22224 foo:    .long   25
22225         .text
22226         movl    %gs:0, %eax
22227         leal    foo@tlsgd(,%ebx,1), %eax
22228         leal    foo@tlsldm(%ebx), %eax
22229         leal    foo@dtpoff(%eax), %edx
22230         movl    foo@gottpoff(%ebx), %eax
22231         subl    foo@gottpoff(%ebx), %eax
22232         addl    foo@gotntpoff(%ebx), %eax
22233         movl    foo@indntpoff, %eax
22234         movl    \$foo@tpoff, %eax
22235         subl    \$foo@tpoff, %eax
22236         leal    foo@ntpoff(%ecx), %eax"
22237     ;;
22238   x86_64-*-*)
22239     conftest_s='
22240         .section ".tdata","awT",@progbits
22241 foo:    .long   25
22242         .text
22243         movq    %fs:0, %rax
22244         leaq    foo@TLSGD(%rip), %rdi
22245         leaq    foo@TLSLD(%rip), %rdi
22246         leaq    foo@DTPOFF(%rax), %rdx
22247         movq    foo@GOTTPOFF(%rip), %rax
22248         movq    $foo@TPOFF, %rax'
22249         tls_first_major=2
22250         tls_first_minor=14
22251         tls_as_opt=--fatal-warnings
22252         ;;
22253   ia64-*-*)
22254     conftest_s='
22255         .section ".tdata","awT",@progbits
22256 foo:    data8   25
22257         .text
22258         addl    r16 = @ltoff(@dtpmod(foo#)), gp
22259         addl    r17 = @ltoff(@dtprel(foo#)), gp
22260         addl    r18 = @ltoff(@tprel(foo#)), gp
22261         addl    r19 = @dtprel(foo#), gp
22262         adds    r21 = @dtprel(foo#), r13
22263         movl    r23 = @dtprel(foo#)
22264         addl    r20 = @tprel(foo#), gp
22265         adds    r22 = @tprel(foo#), r13
22266         movl    r24 = @tprel(foo#)'
22267         tls_first_major=2
22268         tls_first_minor=13
22269         tls_as_opt=--fatal-warnings
22270         ;;
22271   mips*-*-*)
22272     conftest_s='
22273         .section .tdata,"awT",@progbits
22274 x:
22275         .word 2
22276         .text
22277         addiu $4, $28, %tlsgd(x)
22278         addiu $4, $28, %tlsldm(x)
22279         lui $4, %dtprel_hi(x)
22280         addiu $4, $4, %dtprel_lo(x)
22281         lw $4, %gottprel(x)($28)
22282         lui $4, %tprel_hi(x)
22283         addiu $4, $4, %tprel_lo(x)'
22284         tls_first_major=2
22285         tls_first_minor=16
22286         tls_as_opt='-32 --fatal-warnings'
22287         ;;
22288   m68k-*-*)
22289     conftest_s='
22290         .section .tdata,"awT",@progbits
22291 x:
22292         .word 2
22293         .text
22294 foo:
22295         move.l x@TLSGD(%a5),%a0
22296         move.l x@TLSLDM(%a5),%a0
22297         move.l x@TLSLDO(%a5),%a0
22298         move.l x@TLSIE(%a5),%a0
22299         move.l x@TLSLE(%a5),%a0'
22300         tls_first_major=2
22301         tls_first_minor=19
22302         tls_as_opt='--fatal-warnings'
22303         ;;
22304   powerpc-*-*)
22305     conftest_s='
22306         .section ".tdata","awT",@progbits
22307         .align 2
22308 ld0:    .space 4
22309 ld1:    .space 4
22310 x1:     .space 4
22311 x2:     .space 4
22312 x3:     .space 4
22313         .text
22314         addi 3,31,ld0@got@tlsgd
22315         bl __tls_get_addr
22316         addi 3,31,x1@got@tlsld
22317         bl __tls_get_addr
22318         addi 9,3,x1@dtprel
22319         addis 9,3,x2@dtprel@ha
22320         addi 9,9,x2@dtprel@l
22321         lwz 9,x3@got@tprel(31)
22322         add 9,9,x@tls
22323         addi 9,2,x1@tprel
22324         addis 9,2,x2@tprel@ha
22325         addi 9,9,x2@tprel@l'
22326         tls_first_major=2
22327         tls_first_minor=14
22328         tls_as_opt="-a32 --fatal-warnings"
22329         ;;
22330   powerpc64-*-*)
22331     conftest_s='
22332         .section ".tdata","awT",@progbits
22333         .align 3
22334 ld0:    .space 8
22335 ld1:    .space 8
22336 x1:     .space 8
22337 x2:     .space 8
22338 x3:     .space 8
22339         .text
22340         addi 3,2,ld0@got@tlsgd
22341         bl .__tls_get_addr
22342         nop
22343         addi 3,2,ld1@toc
22344         bl .__tls_get_addr
22345         nop
22346         addi 3,2,x1@got@tlsld
22347         bl .__tls_get_addr
22348         nop
22349         addi 9,3,x1@dtprel
22350         bl .__tls_get_addr
22351         nop
22352         addis 9,3,x2@dtprel@ha
22353         addi 9,9,x2@dtprel@l
22354         bl .__tls_get_addr
22355         nop
22356         ld 9,x3@got@dtprel(2)
22357         add 9,9,3
22358         bl .__tls_get_addr
22359         nop'
22360         tls_first_major=2
22361         tls_first_minor=14
22362         tls_as_opt="-a64 --fatal-warnings"
22363         ;;
22364   s390-*-*)
22365     conftest_s='
22366         .section ".tdata","awT",@progbits
22367 foo:    .long   25
22368         .text
22369         .long   foo@TLSGD
22370         .long   foo@TLSLDM
22371         .long   foo@DTPOFF
22372         .long   foo@NTPOFF
22373         .long   foo@GOTNTPOFF
22374         .long   foo@INDNTPOFF
22375         l       %r1,foo@GOTNTPOFF(%r12)
22376         l       %r1,0(%r1):tls_load:foo
22377         bas     %r14,0(%r1,%r13):tls_gdcall:foo
22378         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
22379         tls_first_major=2
22380         tls_first_minor=14
22381         tls_as_opt="-m31 --fatal-warnings"
22382         ;;
22383   s390x-*-*)
22384     conftest_s='
22385         .section ".tdata","awT",@progbits
22386 foo:    .long   25
22387         .text
22388         .quad   foo@TLSGD
22389         .quad   foo@TLSLDM
22390         .quad   foo@DTPOFF
22391         .quad   foo@NTPOFF
22392         .quad   foo@GOTNTPOFF
22393         lg      %r1,foo@GOTNTPOFF(%r12)
22394         larl    %r1,foo@INDNTPOFF
22395         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
22396         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22397         tls_first_major=2
22398         tls_first_minor=14
22399         tls_as_opt="-m64 -Aesame --fatal-warnings"
22400         ;;
22401   sh-*-* | sh[34]-*-*)
22402     conftest_s='
22403         .section ".tdata","awT",@progbits
22404 foo:    .long   25
22405         .text
22406         .long   foo@TLSGD
22407         .long   foo@TLSLDM
22408         .long   foo@DTPOFF
22409         .long   foo@GOTTPOFF
22410         .long   foo@TPOFF'
22411         tls_first_major=2
22412         tls_first_minor=13
22413         tls_as_opt=--fatal-warnings
22414         ;;
22415   sparc*-*-*)
22416     case "$target" in
22417       sparc*-sun-solaris2.*)
22418         on_solaris=yes
22419         tga_func=__tls_get_addr
22420         ;;
22421       *)
22422         on_solaris=no
22423         ;;
22424     esac
22425     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22426       conftest_s='
22427         .section ".tdata",#alloc,#write,#tls'
22428         tls_first_major=0
22429         tls_first_minor=0
22430     else
22431       conftest_s='
22432         .section ".tdata","awT",@progbits'
22433         tls_first_major=2
22434         tls_first_minor=14
22435         tls_as_opt="-32 --fatal-warnings"
22436     fi
22437     conftest_s="$conftest_s
22438 foo:    .long   25
22439         .text
22440         sethi   %tgd_hi22(foo), %o0
22441         add     %o0, %tgd_lo10(foo), %o1
22442         add     %l7, %o1, %o0, %tgd_add(foo)
22443         call    __tls_get_addr, %tgd_call(foo)
22444         sethi   %tldm_hi22(foo), %l1
22445         add     %l1, %tldm_lo10(foo), %l2
22446         add     %l7, %l2, %o0, %tldm_add(foo)
22447         call    __tls_get_addr, %tldm_call(foo)
22448         sethi   %tldo_hix22(foo), %l3
22449         xor     %l3, %tldo_lox10(foo), %l4
22450         add     %o0, %l4, %l5, %tldo_add(foo)
22451         sethi   %tie_hi22(foo), %o3
22452         add     %o3, %tie_lo10(foo), %o3
22453         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22454         add     %g7, %o2, %o4, %tie_add(foo)
22455         sethi   %tle_hix22(foo), %l1
22456         xor     %l1, %tle_lox10(foo), %o5
22457         ld      [%g7 + %o5], %o1"
22458         ;;
22459   xtensa*-*-*)
22460     conftest_s='
22461         .section ".tdata","awT",@progbits
22462 foo:    .long   25
22463         .text
22464         movi    a8, foo@TLSFUNC
22465         movi    a10, foo@TLSARG
22466         callx8.tls a8, foo@TLSCALL'
22467         tls_first_major=2
22468         tls_first_minor=19
22469         ;;
22470 esac
22471 set_have_as_tls=no
22472 if test "x$enable_tls" = xno ; then
22473   : # TLS explicitly disabled.
22474 elif test "x$enable_tls" = xyes ; then
22475   set_have_as_tls=yes # TLS explicitly enabled.
22476 elif test -z "$tls_first_major"; then
22477   : # If we don't have a check, assume no support.
22478 else
22479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22480 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22481 if test "${gcc_cv_as_tls+set}" = set; then :
22482   $as_echo_n "(cached) " >&6
22483 else
22484   gcc_cv_as_tls=no
22485     if test $in_tree_gas = yes; then
22486     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22487   then gcc_cv_as_tls=yes
22488 fi
22489   elif test x$gcc_cv_as != x; then
22490     echo "$conftest_s" > conftest.s
22491     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22492   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22493   (eval $ac_try) 2>&5
22494   ac_status=$?
22495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22496   test $ac_status = 0; }; }
22497     then
22498         gcc_cv_as_tls=yes
22499     else
22500       echo "configure: failed program was" >&5
22501       cat conftest.s >&5
22502     fi
22503     rm -f conftest.o conftest.s
22504   fi
22505 fi
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22507 $as_echo "$gcc_cv_as_tls" >&6; }
22508 if test $gcc_cv_as_tls = yes; then
22509   set_have_as_tls=yes
22510 fi
22511 fi
22512 case "$target" in
22513   # TLS was introduced in the Solaris 9 FCS release and backported to
22514   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
22515   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22516   # ld and GCC don't support any longer.
22517   *-*-solaris2.*)
22518     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22519 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22520     ld_tls_support=no
22521     # Check ld and ld.so.1 TLS support.
22522     if echo "$ld_ver" | grep GNU > /dev/null; then
22523       # Assume all interesting versions of GNU ld have TLS support.
22524       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22525       ld_tls_support=yes
22526     else
22527       case "$target" in
22528         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22529         i?86-*-solaris2.8)
22530           min_tls_ld_vers_minor=280
22531           ;;
22532         # Solaris 8/SPARC ld has TLS support since version 1.272.
22533         sparc*-*-solaris2.8)
22534           min_tls_ld_vers_minor=272
22535           ;;
22536         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22537         i?86-*-solaris2.9)
22538           min_tls_ld_vers_minor=374
22539           ;;
22540         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22541         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22542           min_tls_ld_vers_minor=343
22543           ;;
22544       esac
22545       if test "$ls_vers_major" -gt 1 || \
22546         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22547         ld_tls_support=yes
22548       else
22549         set_have_as_tls=no
22550       fi
22551     fi
22552     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22553 $as_echo "$ld_tls_support" >&6; }
22554
22555     save_LIBS="$LIBS"
22556     save_LDFLAGS="$LDFLAGS"
22557     LIBS=
22558     LDFLAGS=
22559
22560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22561 $as_echo_n "checking alternate thread library... " >&6; }
22562     case "$target" in
22563       # TLS support was backported to Solaris 8 patches, but only lives in
22564       # the alternate thread library which became the default in Solaris 9.
22565       # We want to always use that, irrespective of TLS support.
22566       *-*-solaris2.8)
22567         # Take multilib subdir into account.  There's no spec to handle
22568         # this.  The 64 symlink exists since Solaris 8.
22569         lwp_dir=/usr/lib/lwp
22570         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22571         LDFLAGS="-L$lwp_dir -R$lwp_dir"
22572         ;;
22573       *-*-solaris2*)
22574         lwp_dir="none"
22575         lwp_spec=""
22576         ;;
22577     esac
22578     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22579
22580 cat >>confdefs.h <<_ACEOF
22581 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22582 _ACEOF
22583
22584     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22585 $as_echo "$lwp_dir" >&6; }
22586
22587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22588 $as_echo_n "checking library containing $tga_func... " >&6; }
22589     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22590     # (32-bit x86) only lived in libthread, so check for that.  Keep
22591     # set_have_as_tls if found, disable if not.
22592     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22594 $as_echo_n "checking for library containing $tga_func... " >&6; }
22595 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22596   $as_echo_n "(cached) " >&6
22597 else
22598   ac_func_search_save_LIBS=$LIBS
22599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22600 /* end confdefs.h.  */
22601
22602 /* Override any GCC internal prototype to avoid an error.
22603    Use char because int might match the return type of a GCC
22604    builtin and then its argument prototype would still apply.  */
22605 #ifdef __cplusplus
22606 extern "C"
22607 #endif
22608 char $tga_func ();
22609 int
22610 main ()
22611 {
22612 return $tga_func ();
22613   ;
22614   return 0;
22615 }
22616 _ACEOF
22617 for ac_lib in '' thread; do
22618   if test -z "$ac_lib"; then
22619     ac_res="none required"
22620   else
22621     ac_res=-l$ac_lib
22622     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22623   fi
22624   if ac_fn_c_try_link "$LINENO"; then :
22625   eval "$as_ac_Search=\$ac_res"
22626 fi
22627 rm -f core conftest.err conftest.$ac_objext \
22628     conftest$ac_exeext
22629   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22630   break
22631 fi
22632 done
22633 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22634
22635 else
22636   eval "$as_ac_Search=no"
22637 fi
22638 rm conftest.$ac_ext
22639 LIBS=$ac_func_search_save_LIBS
22640 fi
22641 eval ac_res=\$$as_ac_Search
22642                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22643 $as_echo "$ac_res" >&6; }
22644 eval ac_res=\$$as_ac_Search
22645 if test "$ac_res" != no; then :
22646   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22647
22648 else
22649   set_have_as_tls=no
22650 fi
22651
22652     # Clear LIBS if we cannot support TLS.
22653     if test $set_have_as_tls = no; then
22654       LIBS=
22655     fi
22656     # Always define LIB_TLS_SPEC, even without TLS support.
22657
22658 cat >>confdefs.h <<_ACEOF
22659 #define LIB_TLS_SPEC "$LIBS"
22660 _ACEOF
22661
22662     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
22663 $as_echo "$LIBS" >&6; }
22664
22665     LIBS="$save_LIBS"
22666     LDFLAGS="$save_LDFLAGS"
22667     ;;
22668 esac
22669 if test $set_have_as_tls = yes ; then
22670
22671 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22672
22673 fi
22674
22675 # Target-specific assembler checks.
22676
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22678 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22679 gcc_cv_ld_static_dynamic=no
22680 if test $in_tree_ld = yes ; then
22681   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
22682     gcc_cv_ld_static_dynamic=yes
22683   fi
22684 elif test x$gcc_cv_ld != x; then
22685         # Check if linker supports -Bstatic/-Bdynamic option
22686         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22687           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22688                 gcc_cv_ld_static_dynamic=yes
22689         fi
22690 fi
22691 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22692
22693 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22694
22695 fi
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22697 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22698
22699 if test x"$demangler_in_ld" = xyes; then
22700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22701 $as_echo_n "checking linker --demangle support... " >&6; }
22702   gcc_cv_ld_demangle=no
22703   if test $in_tree_ld = yes; then
22704     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 \
22705       gcc_cv_ld_demangle=yes
22706     fi
22707   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22708     # Check if the GNU linker supports --demangle option
22709     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22710       gcc_cv_ld_demangle=yes
22711     fi
22712   fi
22713   if test x"$gcc_cv_ld_demangle" = xyes; then
22714
22715 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22716
22717   fi
22718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22719 $as_echo "$gcc_cv_ld_demangle" >&6; }
22720 fi
22721
22722 case "$target" in
22723   # All TARGET_ABI_OSF targets.
22724   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22726 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22727 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22728   $as_echo_n "(cached) " >&6
22729 else
22730   gcc_cv_as_alpha_explicit_relocs=no
22731     if test $in_tree_gas = yes; then
22732     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22733   then gcc_cv_as_alpha_explicit_relocs=yes
22734 fi
22735   elif test x$gcc_cv_as != x; then
22736     echo '      .set nomacro
22737         .text
22738         extbl   $3, $2, $3      !lituse_bytoff!1
22739         ldq     $2, a($29)      !literal!1
22740         ldq     $4, b($29)      !literal!2
22741         ldq_u   $3, 0($2)       !lituse_base!1
22742         ldq     $27, f($29)     !literal!5
22743         jsr     $26, ($27), f   !lituse_jsr!5
22744         ldah    $29, 0($26)     !gpdisp!3
22745         lda     $0, c($29)      !gprel
22746         ldah    $1, d($29)      !gprelhigh
22747         lda     $1, d($1)       !gprellow
22748         lda     $29, 0($29)     !gpdisp!3' > conftest.s
22749     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22750   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22751   (eval $ac_try) 2>&5
22752   ac_status=$?
22753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22754   test $ac_status = 0; }; }
22755     then
22756         gcc_cv_as_alpha_explicit_relocs=yes
22757     else
22758       echo "configure: failed program was" >&5
22759       cat conftest.s >&5
22760     fi
22761     rm -f conftest.o conftest.s
22762   fi
22763 fi
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22765 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22766 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22767
22768 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22769
22770 fi
22771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22772 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22773 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22774   $as_echo_n "(cached) " >&6
22775 else
22776   gcc_cv_as_alpha_jsrdirect_relocs=no
22777     if test $in_tree_gas = yes; then
22778     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22779   then gcc_cv_as_alpha_jsrdirect_relocs=yes
22780 fi
22781   elif test x$gcc_cv_as != x; then
22782     echo '      .set nomacro
22783         .text
22784         ldq     $27, a($29)     !literal!1
22785         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
22786     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22787   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22788   (eval $ac_try) 2>&5
22789   ac_status=$?
22790   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22791   test $ac_status = 0; }; }
22792     then
22793         gcc_cv_as_alpha_jsrdirect_relocs=yes
22794     else
22795       echo "configure: failed program was" >&5
22796       cat conftest.s >&5
22797     fi
22798     rm -f conftest.o conftest.s
22799   fi
22800 fi
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22802 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22803 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22804
22805 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22806
22807 fi
22808     ;;
22809
22810   cris-*-*)
22811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22812 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22813 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22814   $as_echo_n "(cached) " >&6
22815 else
22816   gcc_cv_as_cris_no_mul_bug=no
22817     if test $in_tree_gas = yes; then
22818     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22819   then gcc_cv_as_cris_no_mul_bug=yes
22820 fi
22821   elif test x$gcc_cv_as != x; then
22822     echo '.text' > conftest.s
22823     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22824   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22825   (eval $ac_try) 2>&5
22826   ac_status=$?
22827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22828   test $ac_status = 0; }; }
22829     then
22830         gcc_cv_as_cris_no_mul_bug=yes
22831     else
22832       echo "configure: failed program was" >&5
22833       cat conftest.s >&5
22834     fi
22835     rm -f conftest.o conftest.s
22836   fi
22837 fi
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22839 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22840 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22841
22842 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22843
22844 fi
22845     ;;
22846
22847   sparc*-*-*)
22848     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22849 $as_echo_n "checking assembler for .register... " >&6; }
22850 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22851   $as_echo_n "(cached) " >&6
22852 else
22853   gcc_cv_as_sparc_register_op=no
22854   if test x$gcc_cv_as != x; then
22855     echo '.register %g2, #scratch' > conftest.s
22856     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22857   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22858   (eval $ac_try) 2>&5
22859   ac_status=$?
22860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22861   test $ac_status = 0; }; }
22862     then
22863         gcc_cv_as_sparc_register_op=yes
22864     else
22865       echo "configure: failed program was" >&5
22866       cat conftest.s >&5
22867     fi
22868     rm -f conftest.o conftest.s
22869   fi
22870 fi
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22872 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22873 if test $gcc_cv_as_sparc_register_op = yes; then
22874
22875 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22876
22877 fi
22878
22879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22880 $as_echo_n "checking assembler for -relax option... " >&6; }
22881 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22882   $as_echo_n "(cached) " >&6
22883 else
22884   gcc_cv_as_sparc_relax=no
22885   if test x$gcc_cv_as != x; then
22886     echo '.text' > conftest.s
22887     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22888   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22889   (eval $ac_try) 2>&5
22890   ac_status=$?
22891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22892   test $ac_status = 0; }; }
22893     then
22894         gcc_cv_as_sparc_relax=yes
22895     else
22896       echo "configure: failed program was" >&5
22897       cat conftest.s >&5
22898     fi
22899     rm -f conftest.o conftest.s
22900   fi
22901 fi
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22903 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22904 if test $gcc_cv_as_sparc_relax = yes; then
22905
22906 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22907
22908 fi
22909
22910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22911 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22912 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22913   $as_echo_n "(cached) " >&6
22914 else
22915   gcc_cv_as_sparc_gotdata_op=no
22916   if test x$gcc_cv_as != x; then
22917     echo '.text
22918 foo:
22919         nop
22920 bar:
22921         sethi %gdop_hix22(foo), %g1
22922         xor    %g1, %gdop_lox10(foo), %g1
22923         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22924     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22925   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22926   (eval $ac_try) 2>&5
22927   ac_status=$?
22928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22929   test $ac_status = 0; }; }
22930     then
22931         if test x$gcc_cv_ld != x \
22932        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22933          if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
22934            if test x$gcc_cv_objdump != x; then
22935              if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
22936                 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
22937                gcc_cv_as_sparc_gotdata_op=no
22938              else
22939                gcc_cv_as_sparc_gotdata_op=yes
22940              fi
22941            fi
22942          else
22943            gcc_cv_as_sparc_gotdata_op=yes
22944          fi
22945        fi
22946        rm -f conftest
22947     else
22948       echo "configure: failed program was" >&5
22949       cat conftest.s >&5
22950     fi
22951     rm -f conftest.o conftest.s
22952   fi
22953 fi
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22955 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22956 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22957
22958 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22959
22960 fi
22961
22962     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22963 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22964 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22965   $as_echo_n "(cached) " >&6
22966 else
22967   gcc_cv_as_sparc_ua_pcrel=no
22968   if test x$gcc_cv_as != x; then
22969     echo '.text
22970 foo:
22971         nop
22972 .data
22973 .align 4
22974 .byte 0
22975 .uaword %r_disp32(foo)' > conftest.s
22976     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22977   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22978   (eval $ac_try) 2>&5
22979   ac_status=$?
22980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22981   test $ac_status = 0; }; }
22982     then
22983         if test x$gcc_cv_ld != x \
22984        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22985          gcc_cv_as_sparc_ua_pcrel=yes
22986        fi
22987        rm -f conftest
22988     else
22989       echo "configure: failed program was" >&5
22990       cat conftest.s >&5
22991     fi
22992     rm -f conftest.o conftest.s
22993   fi
22994 fi
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22996 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22997 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22998
22999 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23000
23001
23002       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23003 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23004 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23005   $as_echo_n "(cached) " >&6
23006 else
23007   gcc_cv_as_sparc_ua_pcrel_hidden=no
23008   if test x$gcc_cv_as != x; then
23009     echo '.data
23010 .align 4
23011 .byte 0x31
23012 .uaword %r_disp32(foo)
23013 .byte 0x32, 0x33, 0x34
23014 .global foo
23015 .hidden foo
23016 foo:
23017 .skip 4' > conftest.s
23018     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23019   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23020   (eval $ac_try) 2>&5
23021   ac_status=$?
23022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23023   test $ac_status = 0; }; }
23024     then
23025         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23026          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23027          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23028             | grep ' 31000000 07323334' > /dev/null 2>&1; then
23029             if $gcc_cv_objdump -R conftest 2> /dev/null \
23030                | grep 'DISP32' > /dev/null 2>&1; then
23031                 :
23032             else
23033                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23034             fi
23035          fi
23036          rm -f conftest
23037     else
23038       echo "configure: failed program was" >&5
23039       cat conftest.s >&5
23040     fi
23041     rm -f conftest.o conftest.s
23042   fi
23043 fi
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23045 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23046 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23047
23048 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23049
23050 fi
23051
23052 fi # unaligned pcrel relocs
23053
23054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23055 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23056 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23057   $as_echo_n "(cached) " >&6
23058 else
23059   gcc_cv_as_sparc_offsetable_lo10=no
23060   if test x$gcc_cv_as != x; then
23061     echo '.text
23062         or %g1, %lo(ab) + 12, %g1
23063         or %g1, %lo(ab + 12), %g1' > conftest.s
23064     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23065   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23066   (eval $ac_try) 2>&5
23067   ac_status=$?
23068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23069   test $ac_status = 0; }; }
23070     then
23071         if test x$gcc_cv_objdump != x \
23072        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23073           | grep ' 82106000 82106000' > /dev/null 2>&1; then
23074          gcc_cv_as_sparc_offsetable_lo10=yes
23075        fi
23076     else
23077       echo "configure: failed program was" >&5
23078       cat conftest.s >&5
23079     fi
23080     rm -f conftest.o conftest.s
23081   fi
23082 fi
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23084 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23085 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23086
23087 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23088
23089 fi
23090     ;;
23091
23092   i[34567]86-*-* | x86_64-*-*)
23093     case $target_os in
23094       cygwin*)
23095         # Full C++ conformance when using a shared libstdc++-v3 requires some
23096         # support from the Cygwin DLL, which in more recent versions exports
23097         # wrappers to aid in interposing and redirecting operators new, delete,
23098         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
23099         # are configuring for a version of Cygwin that exports the wrappers.
23100         if test x$host = x$target; then
23101           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23102 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23103   gcc_ac_cygwin_dll_wrappers=yes
23104 else
23105   gcc_ac_cygwin_dll_wrappers=no
23106 fi
23107
23108         else
23109           # Can't check presence of libc functions during cross-compile, so
23110           # we just have to assume we're building for an up-to-date target.
23111           gcc_ac_cygwin_dll_wrappers=yes
23112         fi
23113
23114 cat >>confdefs.h <<_ACEOF
23115 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23116 _ACEOF
23117
23118     esac
23119     case $target_os in
23120       cygwin* | pe | mingw32*)
23121         # Recent binutils allows the three-operand form of ".comm" on PE.  This
23122         # definition is used unconditionally to initialise the default state of
23123         # the target option variable that governs usage of the feature.
23124         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23125 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23126 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23127   $as_echo_n "(cached) " >&6
23128 else
23129   gcc_cv_as_comm_has_align=no
23130     if test $in_tree_gas = yes; then
23131     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23132   then gcc_cv_as_comm_has_align=yes
23133 fi
23134   elif test x$gcc_cv_as != x; then
23135     echo '.comm foo,1,32' > conftest.s
23136     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23137   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23138   (eval $ac_try) 2>&5
23139   ac_status=$?
23140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23141   test $ac_status = 0; }; }
23142     then
23143         gcc_cv_as_comm_has_align=yes
23144     else
23145       echo "configure: failed program was" >&5
23146       cat conftest.s >&5
23147     fi
23148     rm -f conftest.o conftest.s
23149   fi
23150 fi
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23152 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23153
23154
23155 cat >>confdefs.h <<_ACEOF
23156 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23157 _ACEOF
23158
23159         # Used for DWARF 2 in PE
23160         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23161 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23162 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23163   $as_echo_n "(cached) " >&6
23164 else
23165   gcc_cv_as_ix86_pe_secrel32=no
23166     if test $in_tree_gas = yes; then
23167     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23168   then gcc_cv_as_ix86_pe_secrel32=yes
23169 fi
23170   elif test x$gcc_cv_as != x; then
23171     echo '.text
23172 foo:    nop
23173 .data
23174         .secrel32 foo' > conftest.s
23175     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23176   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23177   (eval $ac_try) 2>&5
23178   ac_status=$?
23179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23180   test $ac_status = 0; }; }
23181     then
23182         if test x$gcc_cv_ld != x \
23183            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23184              gcc_cv_as_ix86_pe_secrel32=yes
23185            fi
23186            rm -f conftest
23187     else
23188       echo "configure: failed program was" >&5
23189       cat conftest.s >&5
23190     fi
23191     rm -f conftest.o conftest.s
23192   fi
23193 fi
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23195 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23196 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23197
23198 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23199
23200 fi
23201         # Test if the assembler supports the extended form of the .section
23202         # directive that specifies section alignment.  LTO support uses this,
23203         # but normally only after installation, so we warn but don't fail the
23204         # configure if LTO is enabled but the assembler does not support it.
23205         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23206 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23207 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23208   $as_echo_n "(cached) " >&6
23209 else
23210   gcc_cv_as_section_has_align=no
23211     if test $in_tree_gas = yes; then
23212     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23213   then gcc_cv_as_section_has_align=yes
23214 fi
23215   elif test x$gcc_cv_as != x; then
23216     echo '.section lto_test,"dr0"' > conftest.s
23217     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23218   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23219   (eval $ac_try) 2>&5
23220   ac_status=$?
23221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23222   test $ac_status = 0; }; }
23223     then
23224         gcc_cv_as_section_has_align=yes
23225     else
23226       echo "configure: failed program was" >&5
23227       cat conftest.s >&5
23228     fi
23229     rm -f conftest.o conftest.s
23230   fi
23231 fi
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23233 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23234
23235         if test x$gcc_cv_as_section_has_align != xyes; then
23236           case ",$enable_languages," in
23237             *,lto,*)
23238               { $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
23239 $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;}
23240               ;;
23241           esac
23242         fi
23243         ;;
23244     esac
23245
23246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23247 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23248 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23249   $as_echo_n "(cached) " >&6
23250 else
23251   gcc_cv_as_ix86_filds=no
23252   if test x$gcc_cv_as != x; then
23253     echo 'filds mem; fists mem' > conftest.s
23254     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23255   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23256   (eval $ac_try) 2>&5
23257   ac_status=$?
23258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23259   test $ac_status = 0; }; }
23260     then
23261         gcc_cv_as_ix86_filds=yes
23262     else
23263       echo "configure: failed program was" >&5
23264       cat conftest.s >&5
23265     fi
23266     rm -f conftest.o conftest.s
23267   fi
23268 fi
23269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23270 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23271 if test $gcc_cv_as_ix86_filds = yes; then
23272
23273 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23274
23275 fi
23276
23277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23278 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23279 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23280   $as_echo_n "(cached) " >&6
23281 else
23282   gcc_cv_as_ix86_fildq=no
23283   if test x$gcc_cv_as != x; then
23284     echo 'fildq mem; fistpq mem' > conftest.s
23285     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23286   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23287   (eval $ac_try) 2>&5
23288   ac_status=$?
23289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23290   test $ac_status = 0; }; }
23291     then
23292         gcc_cv_as_ix86_fildq=yes
23293     else
23294       echo "configure: failed program was" >&5
23295       cat conftest.s >&5
23296     fi
23297     rm -f conftest.o conftest.s
23298   fi
23299 fi
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23301 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23302 if test $gcc_cv_as_ix86_fildq = yes; then
23303
23304 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23305
23306 fi
23307
23308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23309 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23310 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23311   $as_echo_n "(cached) " >&6
23312 else
23313   gcc_cv_as_ix86_cmov_sun_syntax=no
23314   if test x$gcc_cv_as != x; then
23315     echo 'cmovl.l %edx, %eax' > conftest.s
23316     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23317   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23318   (eval $ac_try) 2>&5
23319   ac_status=$?
23320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23321   test $ac_status = 0; }; }
23322     then
23323         gcc_cv_as_ix86_cmov_sun_syntax=yes
23324     else
23325       echo "configure: failed program was" >&5
23326       cat conftest.s >&5
23327     fi
23328     rm -f conftest.o conftest.s
23329   fi
23330 fi
23331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23332 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23333 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23334
23335 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23336
23337 fi
23338
23339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23340 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23341 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23342   $as_echo_n "(cached) " >&6
23343 else
23344   gcc_cv_as_ix86_ffreep=no
23345   if test x$gcc_cv_as != x; then
23346     echo 'ffreep %st(1)' > conftest.s
23347     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23348   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23349   (eval $ac_try) 2>&5
23350   ac_status=$?
23351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23352   test $ac_status = 0; }; }
23353     then
23354         gcc_cv_as_ix86_ffreep=yes
23355     else
23356       echo "configure: failed program was" >&5
23357       cat conftest.s >&5
23358     fi
23359     rm -f conftest.o conftest.s
23360   fi
23361 fi
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23363 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23364 if test $gcc_cv_as_ix86_ffreep = yes; then
23365
23366 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23367
23368 fi
23369
23370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23371 $as_echo_n "checking assembler for .quad directive... " >&6; }
23372 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23373   $as_echo_n "(cached) " >&6
23374 else
23375   gcc_cv_as_ix86_quad=no
23376   if test x$gcc_cv_as != x; then
23377     echo '.quad 0' > conftest.s
23378     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23379   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23380   (eval $ac_try) 2>&5
23381   ac_status=$?
23382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23383   test $ac_status = 0; }; }
23384     then
23385         gcc_cv_as_ix86_quad=yes
23386     else
23387       echo "configure: failed program was" >&5
23388       cat conftest.s >&5
23389     fi
23390     rm -f conftest.o conftest.s
23391   fi
23392 fi
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23394 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23395 if test $gcc_cv_as_ix86_quad = yes; then
23396
23397 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23398
23399 fi
23400
23401     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23402 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23403 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23404   $as_echo_n "(cached) " >&6
23405 else
23406   gcc_cv_as_ix86_sahf=no
23407   if test x$gcc_cv_as != x; then
23408     echo '.code64
23409        sahf' > conftest.s
23410     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23411   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23412   (eval $ac_try) 2>&5
23413   ac_status=$?
23414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23415   test $ac_status = 0; }; }
23416     then
23417         gcc_cv_as_ix86_sahf=yes
23418     else
23419       echo "configure: failed program was" >&5
23420       cat conftest.s >&5
23421     fi
23422     rm -f conftest.o conftest.s
23423   fi
23424 fi
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23426 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23427 if test $gcc_cv_as_ix86_sahf = yes; then
23428
23429 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23430
23431 fi
23432
23433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23434 $as_echo_n "checking assembler for swap suffix... " >&6; }
23435 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23436   $as_echo_n "(cached) " >&6
23437 else
23438   gcc_cv_as_ix86_swap=no
23439   if test x$gcc_cv_as != x; then
23440     echo 'movl.s %esp, %ebp' > conftest.s
23441     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23442   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23443   (eval $ac_try) 2>&5
23444   ac_status=$?
23445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23446   test $ac_status = 0; }; }
23447     then
23448         gcc_cv_as_ix86_swap=yes
23449     else
23450       echo "configure: failed program was" >&5
23451       cat conftest.s >&5
23452     fi
23453     rm -f conftest.o conftest.s
23454   fi
23455 fi
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23457 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23458 if test $gcc_cv_as_ix86_swap = yes; then
23459
23460 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23461
23462 fi
23463
23464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23465 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23466 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23467   $as_echo_n "(cached) " >&6
23468 else
23469   gcc_cv_as_ix86_diff_sect_delta=no
23470   if test x$gcc_cv_as != x; then
23471     echo '.section .rodata
23472 .L1:
23473         .long .L2-.L1
23474         .long .L3-.L1
23475         .text
23476 .L3:    nop
23477 .L2:    nop' > conftest.s
23478     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -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         gcc_cv_as_ix86_diff_sect_delta=yes
23486     else
23487       echo "configure: failed program was" >&5
23488       cat conftest.s >&5
23489     fi
23490     rm -f conftest.o conftest.s
23491   fi
23492 fi
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23494 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23495 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23496
23497 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23498
23499 fi
23500
23501     # These two are used unconditionally by i386.[ch]; it is to be defined
23502     # to 1 if the feature is present, 0 otherwise.
23503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23504 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23505 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23506   $as_echo_n "(cached) " >&6
23507 else
23508   gcc_cv_as_ix86_gotoff_in_data=no
23509     if test $in_tree_gas = yes; then
23510     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23511   then gcc_cv_as_ix86_gotoff_in_data=yes
23512 fi
23513   elif test x$gcc_cv_as != x; then
23514     echo '      .text
23515 .L0:
23516         nop
23517         .data
23518         .long .L0@GOTOFF' > conftest.s
23519     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23520   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23521   (eval $ac_try) 2>&5
23522   ac_status=$?
23523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23524   test $ac_status = 0; }; }
23525     then
23526         gcc_cv_as_ix86_gotoff_in_data=yes
23527     else
23528       echo "configure: failed program was" >&5
23529       cat conftest.s >&5
23530     fi
23531     rm -f conftest.o conftest.s
23532   fi
23533 fi
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23535 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23536
23537
23538 cat >>confdefs.h <<_ACEOF
23539 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23540 _ACEOF
23541
23542
23543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23544 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23545 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23546   $as_echo_n "(cached) " >&6
23547 else
23548   gcc_cv_as_ix86_rep_lock_prefix=no
23549   if test x$gcc_cv_as != x; then
23550     echo 'rep movsl
23551          lock addl %edi, (%eax,%esi)
23552          lock orl $0, (%esp)' > conftest.s
23553     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23554   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23555   (eval $ac_try) 2>&5
23556   ac_status=$?
23557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23558   test $ac_status = 0; }; }
23559     then
23560         gcc_cv_as_ix86_rep_lock_prefix=yes
23561     else
23562       echo "configure: failed program was" >&5
23563       cat conftest.s >&5
23564     fi
23565     rm -f conftest.o conftest.s
23566   fi
23567 fi
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23569 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23570 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23571
23572 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23573
23574 fi
23575
23576     ;;
23577
23578   ia64*-*-*)
23579     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23580 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23581 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23582   $as_echo_n "(cached) " >&6
23583 else
23584   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23585     if test $in_tree_gas = yes; then
23586     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23587   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23588 fi
23589   elif test x$gcc_cv_as != x; then
23590     echo '      .text
23591         addl r15 = @ltoffx(x#), gp
23592         ;;
23593         ld8.mov r16 = [r15], x#' > conftest.s
23594     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23595   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23596   (eval $ac_try) 2>&5
23597   ac_status=$?
23598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23599   test $ac_status = 0; }; }
23600     then
23601         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23602     else
23603       echo "configure: failed program was" >&5
23604       cat conftest.s >&5
23605     fi
23606     rm -f conftest.o conftest.s
23607   fi
23608 fi
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23610 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23611 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23612
23613 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23614
23615 fi
23616
23617     ;;
23618
23619   powerpc*-*-*)
23620     case $target in
23621       *-*-aix*) conftest_s='    .machine "pwr5"
23622         .csect .text[PR]
23623         mfcr 3,128';;
23624       *-*-darwin*)
23625         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23626 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23627 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23628   $as_echo_n "(cached) " >&6
23629 else
23630   gcc_cv_as_machine_directive=no
23631   if test x$gcc_cv_as != x; then
23632     echo '      .machine ppc7400' > conftest.s
23633     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23634   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23635   (eval $ac_try) 2>&5
23636   ac_status=$?
23637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23638   test $ac_status = 0; }; }
23639     then
23640         gcc_cv_as_machine_directive=yes
23641     else
23642       echo "configure: failed program was" >&5
23643       cat conftest.s >&5
23644     fi
23645     rm -f conftest.o conftest.s
23646   fi
23647 fi
23648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23649 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23650
23651         if test x$gcc_cv_as_machine_directive != xyes; then
23652           echo "*** This target requires an assembler supporting \".machine\"" >&2
23653           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23654           test x$build = x$target && exit 1
23655         fi
23656         conftest_s='    .text
23657         mfcr r3,128';;
23658       *) conftest_s='   .machine power4
23659         .text
23660         mfcr 3,128';;
23661     esac
23662
23663     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23664 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23665 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23666   $as_echo_n "(cached) " >&6
23667 else
23668   gcc_cv_as_powerpc_mfcrf=no
23669     if test $in_tree_gas = yes; then
23670     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23671   then gcc_cv_as_powerpc_mfcrf=yes
23672 fi
23673   elif test x$gcc_cv_as != x; then
23674     echo "$conftest_s" > conftest.s
23675     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23676   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23677   (eval $ac_try) 2>&5
23678   ac_status=$?
23679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23680   test $ac_status = 0; }; }
23681     then
23682         gcc_cv_as_powerpc_mfcrf=yes
23683     else
23684       echo "configure: failed program was" >&5
23685       cat conftest.s >&5
23686     fi
23687     rm -f conftest.o conftest.s
23688   fi
23689 fi
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23691 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23692 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23693
23694 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23695
23696 fi
23697
23698     case $target in
23699       *-*-aix*) conftest_s='    .machine "pwr5"
23700         .csect .text[PR]
23701         popcntb 3,3';;
23702       *) conftest_s='   .machine power5
23703         .text
23704         popcntb 3,3';;
23705     esac
23706
23707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23708 $as_echo_n "checking assembler for popcntb support... " >&6; }
23709 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23710   $as_echo_n "(cached) " >&6
23711 else
23712   gcc_cv_as_powerpc_popcntb=no
23713     if test $in_tree_gas = yes; then
23714     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23715   then gcc_cv_as_powerpc_popcntb=yes
23716 fi
23717   elif test x$gcc_cv_as != x; then
23718     echo "$conftest_s" > conftest.s
23719     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23720   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23721   (eval $ac_try) 2>&5
23722   ac_status=$?
23723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23724   test $ac_status = 0; }; }
23725     then
23726         gcc_cv_as_powerpc_popcntb=yes
23727     else
23728       echo "configure: failed program was" >&5
23729       cat conftest.s >&5
23730     fi
23731     rm -f conftest.o conftest.s
23732   fi
23733 fi
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23735 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23736 if test $gcc_cv_as_powerpc_popcntb = yes; then
23737
23738 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23739
23740 fi
23741
23742     case $target in
23743       *-*-aix*) conftest_s='    .machine "pwr5x"
23744         .csect .text[PR]
23745         frin 1,1';;
23746       *) conftest_s='   .machine power5
23747         .text
23748         frin 1,1';;
23749     esac
23750
23751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23752 $as_echo_n "checking assembler for fp round support... " >&6; }
23753 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23754   $as_echo_n "(cached) " >&6
23755 else
23756   gcc_cv_as_powerpc_fprnd=no
23757     if test $in_tree_gas = yes; then
23758     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23759   then gcc_cv_as_powerpc_fprnd=yes
23760 fi
23761   elif test x$gcc_cv_as != x; then
23762     echo "$conftest_s" > conftest.s
23763     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23764   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23765   (eval $ac_try) 2>&5
23766   ac_status=$?
23767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23768   test $ac_status = 0; }; }
23769     then
23770         gcc_cv_as_powerpc_fprnd=yes
23771     else
23772       echo "configure: failed program was" >&5
23773       cat conftest.s >&5
23774     fi
23775     rm -f conftest.o conftest.s
23776   fi
23777 fi
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23779 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23780 if test $gcc_cv_as_powerpc_fprnd = yes; then
23781
23782 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23783
23784 fi
23785
23786     case $target in
23787       *-*-aix*) conftest_s='    .machine "pwr6"
23788         .csect .text[PR]
23789         mffgpr 1,3';;
23790       *) conftest_s='   .machine power6
23791         .text
23792         mffgpr 1,3';;
23793     esac
23794
23795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23796 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23797 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23798   $as_echo_n "(cached) " >&6
23799 else
23800   gcc_cv_as_powerpc_mfpgpr=no
23801     if test $in_tree_gas = yes; then
23802     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23803   then gcc_cv_as_powerpc_mfpgpr=yes
23804 fi
23805   elif test x$gcc_cv_as != x; then
23806     echo "$conftest_s" > conftest.s
23807     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23808   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23809   (eval $ac_try) 2>&5
23810   ac_status=$?
23811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23812   test $ac_status = 0; }; }
23813     then
23814         gcc_cv_as_powerpc_mfpgpr=yes
23815     else
23816       echo "configure: failed program was" >&5
23817       cat conftest.s >&5
23818     fi
23819     rm -f conftest.o conftest.s
23820   fi
23821 fi
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23823 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23824 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23825
23826 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23827
23828 fi
23829
23830     case $target in
23831       *-*-aix*) conftest_s='    .csect .text[PR]
23832 LCF..0:
23833         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23834       *-*-darwin*)
23835         conftest_s='    .text
23836 LCF0:
23837         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23838       *) conftest_s='   .text
23839 .LCF0:
23840         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23841     esac
23842
23843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23844 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23845 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23846   $as_echo_n "(cached) " >&6
23847 else
23848   gcc_cv_as_powerpc_rel16=no
23849     if test $in_tree_gas = yes; then
23850     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23851   then gcc_cv_as_powerpc_rel16=yes
23852 fi
23853   elif test x$gcc_cv_as != x; then
23854     echo "$conftest_s" > conftest.s
23855     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_rel16=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_powerpc_rel16" >&5
23871 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23872 if test $gcc_cv_as_powerpc_rel16 = yes; then
23873
23874 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23875
23876 fi
23877
23878     case $target in
23879       *-*-aix*) conftest_s='    .machine "pwr6"
23880         .csect .text[PR]
23881         cmpb 3,4,5';;
23882       *) conftest_s='   .machine power6
23883         .text
23884         cmpb 3,4,5';;
23885     esac
23886
23887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23888 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23889 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23890   $as_echo_n "(cached) " >&6
23891 else
23892   gcc_cv_as_powerpc_cmpb=no
23893     if test $in_tree_gas = yes; then
23894     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23895   then gcc_cv_as_powerpc_cmpb=yes
23896 fi
23897   elif test x$gcc_cv_as != x; then
23898     echo "$conftest_s" > conftest.s
23899     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23900   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23901   (eval $ac_try) 2>&5
23902   ac_status=$?
23903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23904   test $ac_status = 0; }; }
23905     then
23906         gcc_cv_as_powerpc_cmpb=yes
23907     else
23908       echo "configure: failed program was" >&5
23909       cat conftest.s >&5
23910     fi
23911     rm -f conftest.o conftest.s
23912   fi
23913 fi
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23915 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23916 if test $gcc_cv_as_powerpc_cmpb = yes; then
23917
23918 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23919
23920 fi
23921
23922     case $target in
23923       *-*-aix*) conftest_s='    .machine "pwr6"
23924         .csect .text[PR]
23925         dadd 1,2,3';;
23926       *) conftest_s='   .machine power6
23927         .text
23928         dadd 1,2,3';;
23929     esac
23930
23931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23932 $as_echo_n "checking assembler for decimal float support... " >&6; }
23933 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23934   $as_echo_n "(cached) " >&6
23935 else
23936   gcc_cv_as_powerpc_dfp=no
23937     if test $in_tree_gas = yes; then
23938     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23939   then gcc_cv_as_powerpc_dfp=yes
23940 fi
23941   elif test x$gcc_cv_as != x; then
23942     echo "$conftest_s" > conftest.s
23943     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23944   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23945   (eval $ac_try) 2>&5
23946   ac_status=$?
23947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23948   test $ac_status = 0; }; }
23949     then
23950         gcc_cv_as_powerpc_dfp=yes
23951     else
23952       echo "configure: failed program was" >&5
23953       cat conftest.s >&5
23954     fi
23955     rm -f conftest.o conftest.s
23956   fi
23957 fi
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23959 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23960 if test $gcc_cv_as_powerpc_dfp = yes; then
23961
23962 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23963
23964 fi
23965
23966     case $target in
23967       *-*-aix*) conftest_s='    .machine "pwr7"
23968         .csect .text[PR]
23969         lxvd2x 1,2,3';;
23970       *) conftest_s='   .machine power7
23971         .text
23972         lxvd2x 1,2,3';;
23973     esac
23974
23975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23976 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23977 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23978   $as_echo_n "(cached) " >&6
23979 else
23980   gcc_cv_as_powerpc_vsx=no
23981     if test $in_tree_gas = yes; then
23982     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23983   then gcc_cv_as_powerpc_vsx=yes
23984 fi
23985   elif test x$gcc_cv_as != x; then
23986     echo "$conftest_s" > conftest.s
23987     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23988   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23989   (eval $ac_try) 2>&5
23990   ac_status=$?
23991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23992   test $ac_status = 0; }; }
23993     then
23994         gcc_cv_as_powerpc_vsx=yes
23995     else
23996       echo "configure: failed program was" >&5
23997       cat conftest.s >&5
23998     fi
23999     rm -f conftest.o conftest.s
24000   fi
24001 fi
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24003 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24004 if test $gcc_cv_as_powerpc_vsx = yes; then
24005
24006 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24007
24008 fi
24009
24010     case $target in
24011       *-*-aix*) conftest_s='    .machine "pwr7"
24012         .csect .text[PR]
24013         popcntd 3,3';;
24014       *) conftest_s='   .machine power7
24015         .text
24016         popcntd 3,3';;
24017     esac
24018
24019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24020 $as_echo_n "checking assembler for popcntd support... " >&6; }
24021 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24022   $as_echo_n "(cached) " >&6
24023 else
24024   gcc_cv_as_powerpc_popcntd=no
24025     if test $in_tree_gas = yes; then
24026     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24027   then gcc_cv_as_powerpc_popcntd=yes
24028 fi
24029   elif test x$gcc_cv_as != x; then
24030     echo "$conftest_s" > conftest.s
24031     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24032   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24033   (eval $ac_try) 2>&5
24034   ac_status=$?
24035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24036   test $ac_status = 0; }; }
24037     then
24038         gcc_cv_as_powerpc_popcntd=yes
24039     else
24040       echo "configure: failed program was" >&5
24041       cat conftest.s >&5
24042     fi
24043     rm -f conftest.o conftest.s
24044   fi
24045 fi
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24047 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24048 if test $gcc_cv_as_powerpc_popcntd = yes; then
24049
24050 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24051
24052 fi
24053
24054     case $target in
24055       *-*-aix*) conftest_s='    .csect .text[PR]
24056         lwsync';;
24057       *) conftest_s='   .text
24058         lwsync';;
24059     esac
24060
24061     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24062 $as_echo_n "checking assembler for lwsync support... " >&6; }
24063 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24064   $as_echo_n "(cached) " >&6
24065 else
24066   gcc_cv_as_powerpc_lwsync=no
24067     if test $in_tree_gas = yes; then
24068     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24069   then gcc_cv_as_powerpc_lwsync=yes
24070 fi
24071   elif test x$gcc_cv_as != x; then
24072     echo "$conftest_s" > conftest.s
24073     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24074   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24075   (eval $ac_try) 2>&5
24076   ac_status=$?
24077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24078   test $ac_status = 0; }; }
24079     then
24080         gcc_cv_as_powerpc_lwsync=yes
24081     else
24082       echo "configure: failed program was" >&5
24083       cat conftest.s >&5
24084     fi
24085     rm -f conftest.o conftest.s
24086   fi
24087 fi
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24089 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24090 if test $gcc_cv_as_powerpc_lwsync = yes; then
24091
24092 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24093
24094 fi
24095
24096     case $target in
24097       *-*-aix*) conftest_s='    .machine "476"
24098         .csect .text[PR]
24099         dci 0';;
24100       *) conftest_s='   .machine "476"
24101         .text
24102         dci 0';;
24103     esac
24104
24105     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24106 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24107 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24108   $as_echo_n "(cached) " >&6
24109 else
24110   gcc_cv_as_powerpc_dci=no
24111     if test $in_tree_gas = yes; then
24112     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24113   then gcc_cv_as_powerpc_dci=yes
24114 fi
24115   elif test x$gcc_cv_as != x; then
24116     echo "$conftest_s" > conftest.s
24117     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24118   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24119   (eval $ac_try) 2>&5
24120   ac_status=$?
24121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24122   test $ac_status = 0; }; }
24123     then
24124         gcc_cv_as_powerpc_dci=yes
24125     else
24126       echo "configure: failed program was" >&5
24127       cat conftest.s >&5
24128     fi
24129     rm -f conftest.o conftest.s
24130   fi
24131 fi
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24133 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24134 if test $gcc_cv_as_powerpc_dci = yes; then
24135
24136 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24137
24138 fi
24139
24140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24141 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24142 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24143   $as_echo_n "(cached) " >&6
24144 else
24145   gcc_cv_as_powerpc_gnu_attribute=no
24146     if test $in_tree_gas = yes; then
24147     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24148   then gcc_cv_as_powerpc_gnu_attribute=yes
24149 fi
24150   elif test x$gcc_cv_as != x; then
24151     echo '.gnu_attribute 4,1' > conftest.s
24152     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24153   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24154   (eval $ac_try) 2>&5
24155   ac_status=$?
24156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24157   test $ac_status = 0; }; }
24158     then
24159         gcc_cv_as_powerpc_gnu_attribute=yes
24160     else
24161       echo "configure: failed program was" >&5
24162       cat conftest.s >&5
24163     fi
24164     rm -f conftest.o conftest.s
24165   fi
24166 fi
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24168 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24169 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24170
24171 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24172
24173 fi
24174
24175     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24176 $as_echo_n "checking assembler for tls marker support... " >&6; }
24177 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24178   $as_echo_n "(cached) " >&6
24179 else
24180   gcc_cv_as_powerpc_tls_markers=no
24181     if test $in_tree_gas = yes; then
24182     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24183   then gcc_cv_as_powerpc_tls_markers=yes
24184 fi
24185   elif test x$gcc_cv_as != x; then
24186     echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24187     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24188   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24189   (eval $ac_try) 2>&5
24190   ac_status=$?
24191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24192   test $ac_status = 0; }; }
24193     then
24194         gcc_cv_as_powerpc_tls_markers=yes
24195     else
24196       echo "configure: failed program was" >&5
24197       cat conftest.s >&5
24198     fi
24199     rm -f conftest.o conftest.s
24200   fi
24201 fi
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24203 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24204 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24205
24206 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24207
24208 fi
24209
24210     case $target in
24211       *-*-aix*)
24212         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24213 $as_echo_n "checking assembler for .ref support... " >&6; }
24214 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24215   $as_echo_n "(cached) " >&6
24216 else
24217   gcc_cv_as_aix_ref=no
24218     if test $in_tree_gas = yes; then
24219     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24220   then :
24221 fi
24222   elif test x$gcc_cv_as != x; then
24223     echo '      .csect stuff[rw]
24224              stuff:
24225                 .long 1
24226                 .extern sym
24227                 .ref sym
24228           ' > conftest.s
24229     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24230   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24231   (eval $ac_try) 2>&5
24232   ac_status=$?
24233   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24234   test $ac_status = 0; }; }
24235     then
24236         gcc_cv_as_aix_ref=yes
24237     else
24238       echo "configure: failed program was" >&5
24239       cat conftest.s >&5
24240     fi
24241     rm -f conftest.o conftest.s
24242   fi
24243 fi
24244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24245 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24246 if test $gcc_cv_as_aix_ref = yes; then
24247
24248 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24249
24250 fi
24251         ;;
24252     esac
24253     ;;
24254
24255   mips*-*-*)
24256     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24257 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24258 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24259   $as_echo_n "(cached) " >&6
24260 else
24261   gcc_cv_as_mips_explicit_relocs=no
24262     if test $in_tree_gas = yes; then
24263     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24264   then gcc_cv_as_mips_explicit_relocs=yes
24265 fi
24266   elif test x$gcc_cv_as != x; then
24267     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
24268     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24269   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24270   (eval $ac_try) 2>&5
24271   ac_status=$?
24272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24273   test $ac_status = 0; }; }
24274     then
24275         gcc_cv_as_mips_explicit_relocs=yes
24276     else
24277       echo "configure: failed program was" >&5
24278       cat conftest.s >&5
24279     fi
24280     rm -f conftest.o conftest.s
24281   fi
24282 fi
24283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24284 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24285 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24286   if test x$target_cpu_default = x
24287        then target_cpu_default=MASK_EXPLICIT_RELOCS
24288        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24289        fi
24290 fi
24291     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24292 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24293 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24294   $as_echo_n "(cached) " >&6
24295 else
24296   gcc_cv_as_mips_no_shared=no
24297     if test $in_tree_gas = yes; then
24298     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24299   then gcc_cv_as_mips_no_shared=yes
24300 fi
24301   elif test x$gcc_cv_as != x; then
24302     echo 'nop' > conftest.s
24303     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24304   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24305   (eval $ac_try) 2>&5
24306   ac_status=$?
24307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24308   test $ac_status = 0; }; }
24309     then
24310         gcc_cv_as_mips_no_shared=yes
24311     else
24312       echo "configure: failed program was" >&5
24313       cat conftest.s >&5
24314     fi
24315     rm -f conftest.o conftest.s
24316   fi
24317 fi
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24319 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24320 if test $gcc_cv_as_mips_no_shared = yes; then
24321
24322 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24323
24324 fi
24325
24326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24327 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24328 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24329   $as_echo_n "(cached) " >&6
24330 else
24331   gcc_cv_as_mips_gnu_attribute=no
24332     if test $in_tree_gas = yes; then
24333     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24334   then gcc_cv_as_mips_gnu_attribute=yes
24335 fi
24336   elif test x$gcc_cv_as != x; then
24337     echo '.gnu_attribute 4,1' > conftest.s
24338     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24339   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24340   (eval $ac_try) 2>&5
24341   ac_status=$?
24342   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24343   test $ac_status = 0; }; }
24344     then
24345         gcc_cv_as_mips_gnu_attribute=yes
24346     else
24347       echo "configure: failed program was" >&5
24348       cat conftest.s >&5
24349     fi
24350     rm -f conftest.o conftest.s
24351   fi
24352 fi
24353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24354 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24355 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24356
24357 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24358
24359 fi
24360
24361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24362 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24363 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24364   $as_echo_n "(cached) " >&6
24365 else
24366   gcc_cv_as_mips_dtprelword=no
24367     if test $in_tree_gas = yes; then
24368     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24369   then gcc_cv_as_mips_dtprelword=yes
24370 fi
24371   elif test x$gcc_cv_as != x; then
24372     echo '.section .tdata,"awT",@progbits
24373 x:
24374         .word 2
24375         .text
24376         .dtprelword x+0x8000' > conftest.s
24377     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24378   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24379   (eval $ac_try) 2>&5
24380   ac_status=$?
24381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24382   test $ac_status = 0; }; }
24383     then
24384         gcc_cv_as_mips_dtprelword=yes
24385     else
24386       echo "configure: failed program was" >&5
24387       cat conftest.s >&5
24388     fi
24389     rm -f conftest.o conftest.s
24390   fi
24391 fi
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24393 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24394 if test $gcc_cv_as_mips_dtprelword = yes; then
24395
24396 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24397
24398 fi
24399
24400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24401 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24402     gcc_cv_as_ld_jalr_reloc=no
24403     if test $gcc_cv_as_mips_explicit_relocs = yes; then
24404       if test $in_tree_ld = yes ; then
24405         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 \
24406            && test $in_tree_ld_is_elf = yes; then
24407           gcc_cv_as_ld_jalr_reloc=yes
24408         fi
24409       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24410         echo '  .ent x' > conftest.s
24411         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
24412         echo '  ld $25,%call16(y)($28)' >> conftest.s
24413         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
24414         echo '1:        jalr $25' >> conftest.s
24415         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
24416         echo '1:        jalr $25' >> conftest.s
24417         echo '  .end x' >> conftest.s
24418         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24419            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24420           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24421              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24422             gcc_cv_as_ld_jalr_reloc=yes
24423           fi
24424         fi
24425         rm -f conftest.*
24426       fi
24427     fi
24428     if test $gcc_cv_as_ld_jalr_reloc = yes; then
24429       if test x$target_cpu_default = x; then
24430         target_cpu_default=MASK_RELAX_PIC_CALLS
24431       else
24432         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24433       fi
24434     fi
24435     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24436 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24437
24438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24439 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24440 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24441   $as_echo_n "(cached) " >&6
24442 else
24443   gcc_cv_ld_mips_personality_relaxation=no
24444        if test $in_tree_ld = yes ; then
24445          if test "$gcc_cv_gld_major_version" -eq 2 \
24446                  -a "$gcc_cv_gld_minor_version" -ge 21 \
24447                  -o "$gcc_cv_gld_major_version" -gt 2; then
24448            gcc_cv_ld_mips_personality_relaxation=yes
24449          fi
24450        elif test x$gcc_cv_as != x \
24451                  -a x$gcc_cv_ld != x \
24452                  -a x$gcc_cv_readelf != x ; then
24453          cat > conftest.s <<EOF
24454         .cfi_startproc
24455         .cfi_personality 0x80,indirect_ptr
24456         .ent test
24457 test:
24458         nop
24459         .end test
24460         .cfi_endproc
24461
24462         .section .data,"aw",@progbits
24463 indirect_ptr:
24464         .dc.a personality
24465 EOF
24466          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24467             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24468            if $gcc_cv_readelf -d conftest 2>&1 \
24469               | grep TEXTREL > /dev/null 2>&1; then
24470              :
24471            elif $gcc_cv_readelf --relocs conftest 2>&1 \
24472                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24473              :
24474            else
24475              gcc_cv_ld_mips_personality_relaxation=yes
24476            fi
24477          fi
24478        fi
24479        rm -f conftest.s conftest.o conftest
24480 fi
24481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24482 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24483     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24484
24485 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24486
24487     fi
24488     ;;
24489 esac
24490
24491 # Mips and HP-UX need the GNU assembler.
24492 # Linux on IA64 might be able to use the Intel assembler.
24493
24494 case "$target" in
24495   mips*-*-* | *-*-hpux* )
24496     if test x$gas_flag = xyes \
24497        || test x"$host" != x"$build" \
24498        || test ! -x "$gcc_cv_as" \
24499        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24500       :
24501     else
24502       echo "*** This configuration requires the GNU assembler" >&2
24503       exit 1
24504     fi
24505     ;;
24506 esac
24507
24508 # ??? Not all targets support dwarf2 debug_line, even within a version
24509 # of gas.  Moreover, we need to emit a valid instruction to trigger any
24510 # info to the output file.  So, as supported targets are added to gas 2.11,
24511 # add some instruction here to (also) show we expect this might work.
24512 # ??? Once 2.11 is released, probably need to add first known working
24513 # version to the per-target configury.
24514 case "$target" in
24515   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
24516   | x86_64*-*-* | hppa*-*-* | arm*-*-* \
24517   | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
24518   | spu-*-* | fido*-*-* | m32c-*-*)
24519     insn="nop"
24520     ;;
24521   ia64*-*-* | s390*-*-*)
24522     insn="nop 0"
24523     ;;
24524   mmix-*-*)
24525     insn="swym 0"
24526     ;;
24527 esac
24528 if test x"$insn" != x; then
24529  conftest_s="\
24530         .file 1 \"conftest.s\"
24531         .loc 1 3 0
24532         $insn"
24533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24534 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24535 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24536   $as_echo_n "(cached) " >&6
24537 else
24538   gcc_cv_as_dwarf2_debug_line=no
24539     if test $in_tree_gas = yes; then
24540     if test $in_tree_gas_is_elf = yes \
24541   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24542   then gcc_cv_as_dwarf2_debug_line=yes
24543 fi
24544   elif test x$gcc_cv_as != x; then
24545     echo "$conftest_s" > conftest.s
24546     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24547   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24548   (eval $ac_try) 2>&5
24549   ac_status=$?
24550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24551   test $ac_status = 0; }; }
24552     then
24553         if test x$gcc_cv_objdump != x \
24554    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24555       | grep debug_line > /dev/null 2>&1; then
24556      gcc_cv_as_dwarf2_debug_line=yes
24557    fi
24558     else
24559       echo "configure: failed program was" >&5
24560       cat conftest.s >&5
24561     fi
24562     rm -f conftest.o conftest.s
24563   fi
24564 fi
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24566 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24567
24568
24569 # The .debug_line file table must be in the exact order that
24570 # we specified the files, since these indices are also used
24571 # by DW_AT_decl_file.  Approximate this test by testing if
24572 # the assembler bitches if the same index is assigned twice.
24573  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24574 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24575 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24576   $as_echo_n "(cached) " >&6
24577 else
24578   gcc_cv_as_dwarf2_file_buggy=no
24579   if test x$gcc_cv_as != x; then
24580     echo '      .file 1 "foo.s"
24581         .file 1 "bar.s"' > conftest.s
24582     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24583   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24584   (eval $ac_try) 2>&5
24585   ac_status=$?
24586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24587   test $ac_status = 0; }; }
24588     then
24589         gcc_cv_as_dwarf2_file_buggy=yes
24590     else
24591       echo "configure: failed program was" >&5
24592       cat conftest.s >&5
24593     fi
24594     rm -f conftest.o conftest.s
24595   fi
24596 fi
24597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24598 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24599
24600
24601  if test $gcc_cv_as_dwarf2_debug_line = yes \
24602  && test $gcc_cv_as_dwarf2_file_buggy = no; then
24603
24604 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24605
24606  fi
24607
24608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24609 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24610 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24611   $as_echo_n "(cached) " >&6
24612 else
24613   gcc_cv_as_gdwarf2_flag=no
24614     if test $in_tree_gas = yes; then
24615     if test $in_tree_gas_is_elf = yes \
24616   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24617   then gcc_cv_as_gdwarf2_flag=yes
24618 fi
24619   elif test x$gcc_cv_as != x; then
24620     echo "$insn" > conftest.s
24621     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24622   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24623   (eval $ac_try) 2>&5
24624   ac_status=$?
24625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24626   test $ac_status = 0; }; }
24627     then
24628         gcc_cv_as_gdwarf2_flag=yes
24629     else
24630       echo "configure: failed program was" >&5
24631       cat conftest.s >&5
24632     fi
24633     rm -f conftest.o conftest.s
24634   fi
24635 fi
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24637 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24638 if test $gcc_cv_as_gdwarf2_flag = yes; then
24639
24640 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24641
24642 fi
24643
24644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24645 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24646 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24647   $as_echo_n "(cached) " >&6
24648 else
24649   gcc_cv_as_gstabs_flag=no
24650     if test $in_tree_gas = yes; then
24651     if test $in_tree_gas_is_elf = yes \
24652   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24653   then gcc_cv_as_gstabs_flag=yes
24654 fi
24655   elif test x$gcc_cv_as != x; then
24656     echo "$insn" > conftest.s
24657     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24658   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24659   (eval $ac_try) 2>&5
24660   ac_status=$?
24661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24662   test $ac_status = 0; }; }
24663     then
24664         # The native Solaris 9/Intel assembler doesn't understand --gstabs
24665    # and warns about it, but still exits successfully.  So check for
24666    # this.
24667    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24668   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24669   (eval $ac_try) 2>&5
24670   ac_status=$?
24671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24672   test $ac_status = 0; }; }
24673    then :
24674    else gcc_cv_as_gstabs_flag=yes
24675    fi
24676     else
24677       echo "configure: failed program was" >&5
24678       cat conftest.s >&5
24679     fi
24680     rm -f conftest.o conftest.s
24681   fi
24682 fi
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24684 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24685 if test $gcc_cv_as_gstabs_flag = yes; then
24686
24687 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24688
24689 fi
24690
24691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24692 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24693 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24694   $as_echo_n "(cached) " >&6
24695 else
24696   gcc_cv_as_debug_prefix_map_flag=no
24697     if test $in_tree_gas = yes; then
24698     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24699   then gcc_cv_as_debug_prefix_map_flag=yes
24700 fi
24701   elif test x$gcc_cv_as != x; then
24702     echo "$insn" > conftest.s
24703     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24704   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24705   (eval $ac_try) 2>&5
24706   ac_status=$?
24707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24708   test $ac_status = 0; }; }
24709     then
24710         gcc_cv_as_debug_prefix_map_flag=yes
24711     else
24712       echo "configure: failed program was" >&5
24713       cat conftest.s >&5
24714     fi
24715     rm -f conftest.o conftest.s
24716   fi
24717 fi
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24719 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24720 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24721
24722 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24723
24724 fi
24725 fi
24726
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24728 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24729 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24730   $as_echo_n "(cached) " >&6
24731 else
24732   gcc_cv_as_lcomm_with_alignment=no
24733   if test x$gcc_cv_as != x; then
24734     echo '.lcomm bar,4,16' > conftest.s
24735     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24736   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24737   (eval $ac_try) 2>&5
24738   ac_status=$?
24739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24740   test $ac_status = 0; }; }
24741     then
24742         gcc_cv_as_lcomm_with_alignment=yes
24743     else
24744       echo "configure: failed program was" >&5
24745       cat conftest.s >&5
24746     fi
24747     rm -f conftest.o conftest.s
24748   fi
24749 fi
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24751 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24752 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24753
24754 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24755
24756 fi
24757
24758 # Check whether --enable-gnu-unique-object was given.
24759 if test "${enable_gnu_unique_object+set}" = set; then :
24760   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24761     yes | no) ;;
24762     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24763 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24764   esac
24765 else
24766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24767 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24768 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24769   $as_echo_n "(cached) " >&6
24770 else
24771   gcc_cv_as_gnu_unique_object=no
24772     if test $in_tree_gas = yes; then
24773     if test $in_tree_gas_is_elf = yes \
24774   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24775   then gcc_cv_as_gnu_unique_object=yes
24776 fi
24777   elif test x$gcc_cv_as != x; then
24778     echo '.type foo, @gnu_unique_object' > conftest.s
24779     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24780   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24781   (eval $ac_try) 2>&5
24782   ac_status=$?
24783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24784   test $ac_status = 0; }; }
24785     then
24786         gcc_cv_as_gnu_unique_object=yes
24787     else
24788       echo "configure: failed program was" >&5
24789       cat conftest.s >&5
24790     fi
24791     rm -f conftest.o conftest.s
24792   fi
24793 fi
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24795 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24796 if test $gcc_cv_as_gnu_unique_object = yes; then
24797   # Also check for ld.so support, i.e. glibc 2.11 or higher.
24798    if test x$host = x$build -a x$host = x$target &&
24799        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24800       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
24801       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24802       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24803       if test "$glibcnum" -ge 2011 ; then
24804         enable_gnu_unique_object=yes
24805       fi
24806     fi
24807 fi
24808 fi
24809
24810 if test x$enable_gnu_unique_object = xyes; then
24811
24812 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24813
24814 fi
24815
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24817 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24818 if test "${gcc_cv_as_line_zero+set}" = set; then :
24819   $as_echo_n "(cached) " >&6
24820 else
24821   gcc_cv_as_line_zero=no
24822   if test $in_tree_gas = yes; then
24823     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24824   then gcc_cv_as_line_zero=yes
24825 fi
24826   elif test "x$gcc_cv_as" != x; then
24827     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24828     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24829   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24830   (eval $ac_try) 2>&5
24831   ac_status=$?
24832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24833   test $ac_status = 0; }; } &&
24834        test "x`cat conftest.out`" = x
24835     then
24836       gcc_cv_as_line_zero=yes
24837     else
24838       echo "configure: failed program was" >&5
24839       cat conftest.s >&5
24840       echo "configure: error output was" >&5
24841       cat conftest.out >&5
24842     fi
24843     rm -f conftest.o conftest.s conftest.out
24844   fi
24845 fi
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24847 $as_echo "$gcc_cv_as_line_zero" >&6; }
24848 if test "x$gcc_cv_as_line_zero" = xyes; then
24849
24850 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24851
24852 fi
24853
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24855 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24856 gcc_cv_ld_eh_frame_hdr=no
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 12 -o "$gcc_cv_gld_major_version" -gt 2 \
24859      && test $in_tree_ld_is_elf = yes; then
24860     gcc_cv_ld_eh_frame_hdr=yes
24861   fi
24862 elif test x$gcc_cv_ld != x; then
24863         # Check if linker supports --eh-frame-hdr option
24864         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24865                 gcc_cv_ld_eh_frame_hdr=yes
24866         fi
24867 fi
24868
24869 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24870
24871 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24872
24873 fi
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24875 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24876
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24878 $as_echo_n "checking linker position independent executable support... " >&6; }
24879 gcc_cv_ld_pie=no
24880 if test $in_tree_ld = yes ; then
24881   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 \
24882      && test $in_tree_ld_is_elf = yes; then
24883     gcc_cv_ld_pie=yes
24884   fi
24885 elif test x$gcc_cv_ld != x; then
24886         # Check if linker supports -pie option
24887         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24888                 gcc_cv_ld_pie=yes
24889         fi
24890 fi
24891 if test x"$gcc_cv_ld_pie" = xyes; then
24892
24893 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24894
24895 fi
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24897 $as_echo "$gcc_cv_ld_pie" >&6; }
24898
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24900 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24901 gcc_cv_ld_eh_gc_sections=no
24902 if test $in_tree_ld = yes ; then
24903   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 \
24904      && test $in_tree_ld_is_elf = yes; then
24905     gcc_cv_ld_eh_gc_sections=yes
24906   fi
24907 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24908   cat > conftest.s <<EOF
24909         .section        .text
24910 .globl _start
24911         .type _start, @function
24912 _start:
24913         .long foo
24914         .size _start, .-_start
24915         .section        .text.foo,"ax",@progbits
24916         .type foo, @function
24917 foo:
24918         .long 0
24919         .size foo, .-foo
24920         .section        .gcc_except_table.foo,"a",@progbits
24921 .L0:
24922         .long 0
24923         .section        .eh_frame,"a",@progbits
24924         .long .L0
24925 EOF
24926   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24927     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24928          | grep "gc-sections option ignored" > /dev/null; then
24929       gcc_cv_ld_eh_gc_sections=no
24930     elif $gcc_cv_objdump -h conftest 2> /dev/null \
24931          | grep gcc_except_table > /dev/null; then
24932       gcc_cv_ld_eh_gc_sections=yes
24933       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24934       if test x$gcc_cv_as_comdat_group != xyes; then
24935         gcc_cv_ld_eh_gc_sections=no
24936         cat > conftest.s <<EOF
24937         .section        .text
24938 .globl _start
24939         .type _start, @function
24940 _start:
24941         .long foo
24942         .size _start, .-_start
24943         .section        .gnu.linkonce.t.foo,"ax",@progbits
24944         .type foo, @function
24945 foo:
24946         .long 0
24947         .size foo, .-foo
24948         .section        .gcc_except_table.foo,"a",@progbits
24949 .L0:
24950         .long 0
24951         .section        .eh_frame,"a",@progbits
24952         .long .L0
24953 EOF
24954         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24955           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24956                | grep "gc-sections option ignored" > /dev/null; then
24957             gcc_cv_ld_eh_gc_sections=no
24958           elif $gcc_cv_objdump -h conftest 2> /dev/null \
24959                | grep gcc_except_table > /dev/null; then
24960             gcc_cv_ld_eh_gc_sections=yes
24961           fi
24962         fi
24963       fi
24964     fi
24965   fi
24966   rm -f conftest.s conftest.o conftest
24967 fi
24968 case "$target" in
24969   hppa*-*-linux*)
24970     # ??? This apparently exposes a binutils bug with PC-relative relocations.
24971     gcc_cv_ld_eh_gc_sections=no
24972     ;;
24973 esac
24974 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24975
24976 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24977
24978 fi
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24980 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24981
24982 # --------
24983 # UNSORTED
24984 # --------
24985
24986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24987 $as_echo_n "checking linker --as-needed support... " >&6; }
24988 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24989   $as_echo_n "(cached) " >&6
24990 else
24991   gcc_cv_ld_as_needed=no
24992 if test $in_tree_ld = yes ; then
24993   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 \
24994      && test $in_tree_ld_is_elf = yes; then
24995     gcc_cv_ld_as_needed=yes
24996   fi
24997 elif test x$gcc_cv_ld != x; then
24998         # Check if linker supports --as-needed and --no-as-needed options
24999         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25000                 gcc_cv_ld_as_needed=yes
25001         fi
25002 fi
25003
25004 fi
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25006 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25007 if test x"$gcc_cv_ld_as_needed" = xyes; then
25008
25009 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25010
25011 fi
25012
25013 case "$target:$tm_file" in
25014   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25016 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25017 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25018   $as_echo_n "(cached) " >&6
25019 else
25020   gcc_cv_ld_no_dot_syms=no
25021     if test $in_tree_ld = yes ; then
25022       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
25023         gcc_cv_ld_no_dot_syms=yes
25024       fi
25025     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25026       cat > conftest1.s <<EOF
25027         .text
25028         bl .foo
25029 EOF
25030       cat > conftest2.s <<EOF
25031         .section ".opd","aw"
25032         .align 3
25033         .globl foo
25034         .type foo,@function
25035 foo:
25036         .quad .LEfoo,.TOC.@tocbase,0
25037         .text
25038 .LEfoo:
25039         blr
25040         .size foo,.-.LEfoo
25041 EOF
25042       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25043          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25044          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25045         gcc_cv_ld_no_dot_syms=yes
25046       fi
25047       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25048     fi
25049
25050 fi
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25052 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25053     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25054
25055 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25056
25057     fi
25058
25059     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25060 $as_echo_n "checking linker large toc support... " >&6; }
25061 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25062   $as_echo_n "(cached) " >&6
25063 else
25064   gcc_cv_ld_large_toc=no
25065     if test $in_tree_ld = yes ; then
25066       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
25067         gcc_cv_ld_large_toc=yes
25068       fi
25069     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25070       cat > conftest.s <<EOF
25071         .section ".tbss","awT",@nobits
25072         .align 3
25073 ie0:    .space 8
25074         .global _start
25075         .text
25076 _start:
25077         addis 9,13,ie0@got@tprel@ha
25078         ld 9,ie0@got@tprel@l(9)
25079 EOF
25080       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25081          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25082         gcc_cv_ld_large_toc=yes
25083       fi
25084       rm -f conftest conftest.o conftest.s
25085     fi
25086
25087 fi
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25089 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25090     if test x"$gcc_cv_ld_large_toc" = xyes; then
25091
25092 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25093
25094     fi
25095     ;;
25096 esac
25097
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25099 $as_echo_n "checking linker --build-id support... " >&6; }
25100 if test "${gcc_cv_ld_buildid+set}" = set; then :
25101   $as_echo_n "(cached) " >&6
25102 else
25103   gcc_cv_ld_buildid=no
25104   if test $in_tree_ld = yes ; then
25105     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25106        "$gcc_cv_gld_minor_version" -ge 18 -o \
25107        "$gcc_cv_gld_major_version" -gt 2 \
25108        && test $in_tree_ld_is_elf = yes; then
25109       gcc_cv_ld_buildid=yes
25110     fi
25111   elif test x$gcc_cv_ld != x; then
25112     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25113       gcc_cv_ld_buildid=yes
25114     fi
25115   fi
25116 fi
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25118 $as_echo "$gcc_cv_ld_buildid" >&6; }
25119 if test x"$gcc_cv_ld_buildid" = xyes; then
25120
25121 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25122
25123 fi
25124
25125 # Check whether --enable-linker-build-id was given.
25126 if test "${enable_linker_build_id+set}" = set; then :
25127   enableval=$enable_linker_build_id;
25128 else
25129   enable_linker_build_id=no
25130 fi
25131
25132
25133 if test x"$enable_linker_build_id" = xyes; then
25134   if test x"$gcc_cv_ld_buildid" = xyes; then
25135
25136 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25137
25138   else
25139     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25140 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25141   fi
25142 fi
25143
25144 # In binutils 2.21, GNU ld gained support for new emulations fully
25145 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25147 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25148 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25149   $as_echo_n "(cached) " >&6
25150 else
25151   gcc_cv_ld_sol2_emulation=no
25152   if test $in_tree_ld = yes ; then
25153     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25154        "$gcc_cv_gld_minor_version" -ge 21 -o \
25155        "$gcc_cv_gld_major_version" -gt 2 \
25156        && test $in_tree_ld_is_elf = yes; then
25157       gcc_cv_ld_sol2_emulation=yes
25158     fi
25159   elif test x$gcc_cv_ld != x; then
25160     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25161        grep _sol2 > /dev/null; then
25162       gcc_cv_ld_sol2_emulation=yes
25163     fi
25164   fi
25165 fi
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25167 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25168 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25169
25170 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25171
25172 fi
25173
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25175 $as_echo_n "checking linker --sysroot support... " >&6; }
25176 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25177   $as_echo_n "(cached) " >&6
25178 else
25179   gcc_cv_ld_sysroot=no
25180   if test $in_tree_ld = yes ; then
25181       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
25182         gcc_cv_ld_sysroot=yes
25183       fi
25184   elif test x$gcc_cv_ld != x; then
25185     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25186       gcc_cv_ld_sysroot=yes
25187     fi
25188   fi
25189 fi
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25191 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25192 if test x"$gcc_cv_ld_sysroot" = xyes; then
25193
25194 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25195
25196 fi
25197
25198 if test x$with_sysroot = x && test x$host = x$target \
25199    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25200    && test "$prefix" != "NONE"; then
25201
25202 cat >>confdefs.h <<_ACEOF
25203 #define PREFIX_INCLUDE_DIR "$prefix/include"
25204 _ACEOF
25205
25206 fi
25207
25208 # Test for stack protector support in target C library.
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25210 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25211 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25212   $as_echo_n "(cached) " >&6
25213 else
25214   gcc_cv_libc_provides_ssp=no
25215     case "$target" in
25216        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25217       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25218         if test "x$with_headers" != x; then
25219           glibc_header_dir=$with_headers
25220         elif test "x$with_sysroot" = x; then
25221           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25222         elif test "x$with_build_sysroot" != "x"; then
25223           glibc_header_dir="${with_build_sysroot}/usr/include"
25224         elif test "x$with_sysroot" = xyes; then
25225           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25226         else
25227           glibc_header_dir="${with_sysroot}/usr/include"
25228         fi
25229       else
25230         glibc_header_dir=/usr/include
25231       fi
25232       # glibc 2.4 and later provides __stack_chk_fail and
25233       # either __stack_chk_guard, or TLS access to stack guard canary.
25234       if test -f $glibc_header_dir/features.h \
25235          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
25236             $glibc_header_dir/features.h > /dev/null; then
25237         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
25238            $glibc_header_dir/features.h > /dev/null; then
25239           gcc_cv_libc_provides_ssp=yes
25240         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
25241              $glibc_header_dir/features.h > /dev/null \
25242              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
25243              $glibc_header_dir/features.h > /dev/null; then
25244           gcc_cv_libc_provides_ssp=yes
25245         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
25246              $glibc_header_dir/features.h > /dev/null && \
25247              test -f $glibc_header_dir/bits/uClibc_config.h && \
25248              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
25249              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
25250           gcc_cv_libc_provides_ssp=yes
25251         fi
25252       fi
25253         ;;
25254        *-*-gnu*)
25255          # Avoid complicated tests (see
25256          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25257          # simply assert that glibc does provide this, which is true for all
25258          # realistically usable GNU/Hurd configurations.
25259          gcc_cv_libc_provides_ssp=yes;;
25260        *-*-darwin* | *-*-freebsd*)
25261          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25262 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25263   gcc_cv_libc_provides_ssp=yes
25264 else
25265   echo "no __stack_chk_fail on this target"
25266 fi
25267
25268         ;;
25269   *) gcc_cv_libc_provides_ssp=no ;;
25270     esac
25271 fi
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25273 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25274
25275 if test x$gcc_cv_libc_provides_ssp = xyes; then
25276
25277 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25278
25279 fi
25280
25281 # Check if TFmode long double should be used by default or not.
25282 # Some glibc targets used DFmode long double, but with glibc 2.4
25283 # and later they can use TFmode.
25284 case "$target" in
25285   powerpc*-*-linux* | \
25286   powerpc*-*-gnu* | \
25287   sparc*-*-linux* | \
25288   s390*-*-linux* | \
25289   alpha*-*-linux*)
25290
25291 # Check whether --with-long-double-128 was given.
25292 if test "${with_long_double_128+set}" = set; then :
25293   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25294 else
25295   gcc_cv_target_ldbl128=no
25296       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25297         if test "x$with_sysroot" = x; then
25298           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25299         elif test "x$with_build_sysroot" != "x"; then
25300           glibc_header_dir="${with_build_sysroot}/usr/include"
25301         elif test "x$with_sysroot" = xyes; then
25302           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25303         else
25304           glibc_header_dir="${with_sysroot}/usr/include"
25305         fi
25306       else
25307         glibc_header_dir=/usr/include
25308       fi
25309       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25310         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25311       && gcc_cv_target_ldbl128=yes
25312
25313 fi
25314
25315     ;;
25316 esac
25317 if test x$gcc_cv_target_ldbl128 = xyes; then
25318
25319 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25320
25321 fi
25322
25323 # Find out what GC implementation we want, or may, use.
25324
25325 # Check whether --with-gc was given.
25326 if test "${with_gc+set}" = set; then :
25327   withval=$with_gc; case "$withval" in
25328   page)
25329     GGC=ggc-$withval
25330     ;;
25331   zone)
25332     GGC=ggc-$withval
25333
25334 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25335
25336     ;;
25337   *)
25338     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25339     ;;
25340 esac
25341 else
25342   GGC=ggc-page
25343 fi
25344
25345
25346 echo "Using $GGC for garbage collection."
25347
25348 # Libraries to use on the host.  This will normally be set by the top
25349 # level Makefile.  Here we simply capture the value for our Makefile.
25350 if test -z "${HOST_LIBS+set}"; then
25351   HOST_LIBS=
25352 fi
25353
25354
25355 # Use the system's zlib library.
25356 zlibdir=-L../zlib
25357 zlibinc="-I\$(srcdir)/../zlib"
25358
25359 # Check whether --with-system-zlib was given.
25360 if test "${with_system_zlib+set}" = set; then :
25361   withval=$with_system_zlib; zlibdir=
25362 zlibinc=
25363
25364 fi
25365
25366
25367
25368
25369
25370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25371 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25372     # Check whether --enable-maintainer-mode was given.
25373 if test "${enable_maintainer_mode+set}" = set; then :
25374   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25375 else
25376   maintainer_mode=no
25377 fi
25378
25379
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25381 $as_echo "$maintainer_mode" >&6; }
25382
25383 if test "$maintainer_mode" = "yes"; then
25384   MAINT=''
25385 else
25386   MAINT='#'
25387 fi
25388
25389 # --------------
25390 # Language hooks
25391 # --------------
25392
25393 # Make empty files to contain the specs and options for each language.
25394 # Then add #include lines to for a compiler that has specs and/or options.
25395
25396 subdirs=
25397 lang_opt_files=
25398 lang_specs_files=
25399 lang_tree_files=
25400 # These (without "all_") are set in each config-lang.in.
25401 # `language' must be a single word so is spelled singularly.
25402 all_languages=
25403 all_compilers=
25404 all_outputs='Makefile gccbug'
25405 # List of language makefile fragments.
25406 all_lang_makefrags=
25407 # Additional files for gengtype
25408 all_gtfiles="$target_gtfiles"
25409
25410 # These are the languages that are set in --enable-languages,
25411 # and are available in the GCC tree.
25412 all_selected_languages=
25413
25414 # Add the language fragments.
25415 # Languages are added via two mechanisms.  Some information must be
25416 # recorded in makefile variables, these are defined in config-lang.in.
25417 # We accumulate them and plug them into the main Makefile.
25418 # The other mechanism is a set of hooks for each of the main targets
25419 # like `clean', `install', etc.
25420
25421 language_hooks="Make-hooks"
25422
25423 for lang in ${srcdir}/*/config-lang.in
25424 do
25425         test "$lang" = "${srcdir}/*/config-lang.in" && continue
25426
25427         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
25428         if test "x$lang_alias" = x
25429         then
25430               echo "$lang doesn't set \$language." 1>&2
25431               exit 1
25432         fi
25433         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25434         subdirs="$subdirs $subdir"
25435
25436         # $gcc_subdir is where the gcc integration files are to be found
25437         # for a language, both for internal compiler purposes (compiler
25438         # sources implementing front-end to GCC tree converters), and for
25439         # build infrastructure purposes (Make-lang.in, etc.)
25440         #
25441         # This will be <subdir> (relative to $srcdir) if a line like
25442         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25443         # is found in <langdir>/config-lang.in, and will remain <langdir>
25444         # otherwise.
25445         #
25446         # Except for the language alias (fetched above), the regular
25447         # "config-lang.in" contents are always retrieved from $gcc_subdir,
25448         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25449         # only this and the language alias.
25450
25451         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
25452         if [ "$gcc_subdir" = "" ]; then
25453            gcc_subdir="$subdir"
25454         fi
25455
25456         case ",$enable_languages," in
25457         *,$lang_alias,*)
25458             all_selected_languages="$all_selected_languages $lang_alias"
25459             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25460                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25461             fi
25462             ;;
25463         esac
25464
25465         language=
25466         boot_language=
25467         compilers=
25468         outputs=
25469         gtfiles=
25470         subdir_requires=
25471         . ${srcdir}/$gcc_subdir/config-lang.in
25472         if test "x$language" = x
25473         then
25474                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25475                 exit 1
25476         fi
25477
25478         ok=:
25479         case ",$enable_languages," in
25480                 *,$lang_alias,*) ;;
25481                 *)
25482                         for i in $subdir_requires; do
25483                                 test -f "${srcdir}/$i/config-lang.in" && continue
25484                                 ok=false
25485                                 break
25486                         done
25487                 ;;
25488         esac
25489         $ok || continue
25490
25491         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25492         if test -f $srcdir/$gcc_subdir/lang.opt; then
25493             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25494         fi
25495         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25496             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25497         fi
25498         all_languages="$all_languages $language"
25499         all_compilers="$all_compilers $compilers"
25500         all_outputs="$all_outputs $outputs"
25501         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25502         case ",$enable_languages," in
25503                 *,lto,*)
25504
25505 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25506
25507                     enable_lto=yes
25508
25509                     # LTO needs to speak the platform's object file format, and has a
25510                     # number of implementations of the required binary file access APIs.
25511                     # ELF is the most common, and default.  We only link libelf if ELF
25512                     # is indeed the selected format.
25513                     LTO_BINARY_READER=${lto_binary_reader}
25514                     LTO_USE_LIBELF=-lelf
25515                     if test "x$lto_binary_reader" != "xlto-elf" ; then
25516                       LTO_USE_LIBELF=
25517                     fi
25518
25519
25520                     ;;
25521                 *) ;;
25522         esac
25523 done
25524
25525 # Pick up gtfiles for c
25526 gtfiles=
25527 . ${srcdir}/c-config-lang.in
25528 all_gtfiles="$all_gtfiles [c] $gtfiles"
25529
25530 check_languages=
25531 for language in $all_selected_languages
25532 do
25533         check_languages="$check_languages check-$language"
25534 done
25535
25536 # We link each language in with a set of hooks, reached indirectly via
25537 # lang.${target}.  Only do so for selected languages.
25538
25539 rm -f Make-hooks
25540 touch Make-hooks
25541 target_list="all.cross start.encap rest.encap tags \
25542         install-common install-man install-info install-pdf install-html dvi \
25543         pdf html uninstall info man srcextra srcman srcinfo \
25544         mostlyclean clean distclean maintainer-clean install-plugin"
25545
25546 for t in $target_list
25547 do
25548         x=
25549         for lang in $all_selected_languages
25550         do
25551                 x="$x $lang.$t"
25552         done
25553         echo "lang.$t: $x" >> Make-hooks
25554 done
25555
25556 # --------
25557 # UNSORTED
25558 # --------
25559
25560 # Create .gdbinit.
25561
25562 echo "dir ." > .gdbinit
25563 echo "dir ${srcdir}" >> .gdbinit
25564 if test x$gdb_needs_out_file_path = xyes
25565 then
25566         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25567 fi
25568 if test "x$subdirs" != x; then
25569         for s in $subdirs
25570         do
25571                 echo "dir ${srcdir}/$s" >> .gdbinit
25572         done
25573 fi
25574 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25575
25576 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25577
25578
25579
25580 # Find a directory in which to install a shared libgcc.
25581
25582 # Check whether --enable-version-specific-runtime-libs was given.
25583 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25584   enableval=$enable_version_specific_runtime_libs;
25585 fi
25586
25587
25588
25589 # Check whether --with-slibdir was given.
25590 if test "${with_slibdir+set}" = set; then :
25591   withval=$with_slibdir; slibdir="$with_slibdir"
25592 else
25593   if test "${enable_version_specific_runtime_libs+set}" = set; then
25594   slibdir='$(libsubdir)'
25595 elif test "$host" != "$target"; then
25596   slibdir='$(build_tooldir)/lib'
25597 else
25598   slibdir='$(libdir)'
25599 fi
25600 fi
25601
25602
25603
25604 # Substitute configuration variables
25605
25606
25607
25608
25609
25610
25611
25612
25613
25614
25615
25616
25617
25618
25619
25620
25621
25622
25623
25624
25625
25626
25627
25628
25629
25630
25631
25632
25633
25634
25635
25636
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
25647
25648
25649
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659
25660
25661
25662
25663
25664
25665
25666
25667 # Echo link setup.
25668 if test x${build} = x${host} ; then
25669   if test x${host} = x${target} ; then
25670     echo "Links are now set up to build a native compiler for ${target}." 1>&2
25671   else
25672     echo "Links are now set up to build a cross-compiler" 1>&2
25673     echo " from ${host} to ${target}." 1>&2
25674   fi
25675 else
25676   if test x${host} = x${target} ; then
25677     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25678     echo " for ${target}." 1>&2
25679   else
25680     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25681     echo " from ${host} to ${target}." 1>&2
25682   fi
25683 fi
25684
25685
25686
25687
25688
25689
25690
25691
25692
25693 if test "x${CLOOGLIBS}" != "x" ; then
25694
25695 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25696
25697 fi
25698
25699
25700
25701 if test "x${LIBELFLIBS}" != "x" ; then
25702
25703 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25704
25705 fi
25706
25707 # Check for plugin support
25708 # Check whether --enable-plugin was given.
25709 if test "${enable_plugin+set}" = set; then :
25710   enableval=$enable_plugin; enable_plugin=$enableval
25711 else
25712   enable_plugin=yes; default_plugin=yes
25713 fi
25714
25715
25716 pluginlibs=
25717
25718 case "${host}" in
25719   *-*-darwin*)
25720     if test x$build = x$host; then
25721       export_sym_check="nm${exeext} -g"
25722     elif test x$host = x$target; then
25723       export_sym_check="$gcc_cv_nm -g"
25724     else
25725       export_sym_check=
25726     fi
25727   ;;
25728   *)
25729     if test x$build = x$host; then
25730       export_sym_check="objdump${exeext} -T"
25731     elif test x$host = x$target; then
25732       export_sym_check="$gcc_cv_objdump -T"
25733     else
25734       export_sym_check=
25735     fi
25736   ;;
25737 esac
25738
25739 if test x"$enable_plugin" = x"yes"; then
25740
25741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25742 $as_echo_n "checking for exported symbols... " >&6; }
25743   if test "x$export_sym_check" != x; then
25744     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25745     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25746     if $export_sym_check conftest | grep foobar > /dev/null; then
25747       : # No need to use a flag
25748       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25749 $as_echo "yes" >&6; }
25750     else
25751       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25752 $as_echo "yes" >&6; }
25753       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25754 $as_echo_n "checking for -rdynamic... " >&6; }
25755       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25756       if $export_sym_check conftest | grep foobar > /dev/null; then
25757         plugin_rdynamic=yes
25758         pluginlibs="-rdynamic"
25759       else
25760         plugin_rdynamic=no
25761         enable_plugin=no
25762       fi
25763       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25764 $as_echo "$plugin_rdynamic" >&6; }
25765     fi
25766   else
25767     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
25768 $as_echo "unable to check" >&6; }
25769   fi
25770
25771   # Check -ldl
25772   saved_LIBS="$LIBS"
25773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25774 $as_echo_n "checking for library containing dlopen... " >&6; }
25775 if test "${ac_cv_search_dlopen+set}" = set; then :
25776   $as_echo_n "(cached) " >&6
25777 else
25778   ac_func_search_save_LIBS=$LIBS
25779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25780 /* end confdefs.h.  */
25781
25782 /* Override any GCC internal prototype to avoid an error.
25783    Use char because int might match the return type of a GCC
25784    builtin and then its argument prototype would still apply.  */
25785 #ifdef __cplusplus
25786 extern "C"
25787 #endif
25788 char dlopen ();
25789 int
25790 main ()
25791 {
25792 return dlopen ();
25793   ;
25794   return 0;
25795 }
25796 _ACEOF
25797 for ac_lib in '' dl; do
25798   if test -z "$ac_lib"; then
25799     ac_res="none required"
25800   else
25801     ac_res=-l$ac_lib
25802     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25803   fi
25804   if ac_fn_c_try_link "$LINENO"; then :
25805   ac_cv_search_dlopen=$ac_res
25806 fi
25807 rm -f core conftest.err conftest.$ac_objext \
25808     conftest$ac_exeext
25809   if test "${ac_cv_search_dlopen+set}" = set; then :
25810   break
25811 fi
25812 done
25813 if test "${ac_cv_search_dlopen+set}" = set; then :
25814
25815 else
25816   ac_cv_search_dlopen=no
25817 fi
25818 rm conftest.$ac_ext
25819 LIBS=$ac_func_search_save_LIBS
25820 fi
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25822 $as_echo "$ac_cv_search_dlopen" >&6; }
25823 ac_res=$ac_cv_search_dlopen
25824 if test "$ac_res" != no; then :
25825   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25826
25827 fi
25828
25829   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25830     pluginlibs="$pluginlibs -ldl"
25831   fi
25832   LIBS="$saved_LIBS"
25833
25834   # Check that we can build shared objects with -fPIC -shared
25835   saved_LDFLAGS="$LDFLAGS"
25836   case "${host}" in
25837     *-*-darwin*)
25838       LDFLAGS="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
25839     ;;
25840     *)
25841       LDFLAGS="$LDFLAGS -fPIC -shared"
25842     ;;
25843   esac
25844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25845 $as_echo_n "checking for -fPIC -shared... " >&6; }
25846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25847 /* end confdefs.h.  */
25848 extern int X;
25849 int
25850 main ()
25851 {
25852 return X == 0;
25853   ;
25854   return 0;
25855 }
25856 _ACEOF
25857 if ac_fn_c_try_link "$LINENO"; then :
25858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25859 $as_echo "yes" >&6; }; have_pic_shared=yes
25860 else
25861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25862 $as_echo "no" >&6; }; have_pic_shared=no
25863 fi
25864 rm -f core conftest.err conftest.$ac_objext \
25865     conftest$ac_exeext conftest.$ac_ext
25866   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25867     pluginlibs=
25868     enable_plugin=no
25869   fi
25870   LDFLAGS="$saved_LDFLAGS"
25871
25872   # If plugin support had been requested but not available, fail.
25873   if test x"$enable_plugin" = x"no" ; then
25874     if test x"$default_plugin" != x"yes"; then
25875       as_fn_error "
25876 Building GCC with plugin support requires a host that supports
25877 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25878     fi
25879   fi
25880 fi
25881
25882
25883
25884 if test x"$enable_plugin" = x"yes"; then
25885
25886 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25887
25888 fi
25889
25890 # Configure the subdirectories
25891 # AC_CONFIG_SUBDIRS($subdirs)
25892
25893 # Create the Makefile
25894 # and configure language subdirectories
25895 ac_config_files="$ac_config_files $all_outputs"
25896
25897
25898 ac_config_commands="$ac_config_commands default"
25899
25900 cat >confcache <<\_ACEOF
25901 # This file is a shell script that caches the results of configure
25902 # tests run on this system so they can be shared between configure
25903 # scripts and configure runs, see configure's option --config-cache.
25904 # It is not useful on other systems.  If it contains results you don't
25905 # want to keep, you may remove or edit it.
25906 #
25907 # config.status only pays attention to the cache file if you give it
25908 # the --recheck option to rerun configure.
25909 #
25910 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25911 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25912 # following values.
25913
25914 _ACEOF
25915
25916 # The following way of writing the cache mishandles newlines in values,
25917 # but we know of no workaround that is simple, portable, and efficient.
25918 # So, we kill variables containing newlines.
25919 # Ultrix sh set writes to stderr and can't be redirected directly,
25920 # and sets the high bit in the cache file unless we assign to the vars.
25921 (
25922   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25923     eval ac_val=\$$ac_var
25924     case $ac_val in #(
25925     *${as_nl}*)
25926       case $ac_var in #(
25927       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25928 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25929       esac
25930       case $ac_var in #(
25931       _ | IFS | as_nl) ;; #(
25932       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25933       *) { eval $ac_var=; unset $ac_var;} ;;
25934       esac ;;
25935     esac
25936   done
25937
25938   (set) 2>&1 |
25939     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25940     *${as_nl}ac_space=\ *)
25941       # `set' does not quote correctly, so add quotes: double-quote
25942       # substitution turns \\\\ into \\, and sed turns \\ into \.
25943       sed -n \
25944         "s/'/'\\\\''/g;
25945           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25946       ;; #(
25947     *)
25948       # `set' quotes correctly as required by POSIX, so do not add quotes.
25949       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25950       ;;
25951     esac |
25952     sort
25953 ) |
25954   sed '
25955      /^ac_cv_env_/b end
25956      t clear
25957      :clear
25958      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25959      t end
25960      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25961      :end' >>confcache
25962 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25963   if test -w "$cache_file"; then
25964     test "x$cache_file" != "x/dev/null" &&
25965       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25966 $as_echo "$as_me: updating cache $cache_file" >&6;}
25967     cat confcache >$cache_file
25968   else
25969     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25970 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25971   fi
25972 fi
25973 rm -f confcache
25974
25975 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25976 # Let make expand exec_prefix.
25977 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25978
25979 DEFS=-DHAVE_CONFIG_H
25980
25981 ac_libobjs=
25982 ac_ltlibobjs=
25983 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25984   # 1. Remove the extension, and $U if already installed.
25985   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25986   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25987   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25988   #    will be set to the directory where LIBOBJS objects are built.
25989   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25990   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25991 done
25992 LIBOBJS=$ac_libobjs
25993
25994 LTLIBOBJS=$ac_ltlibobjs
25995
25996
25997
25998
25999 : ${CONFIG_STATUS=./config.status}
26000 ac_write_fail=0
26001 ac_clean_files_save=$ac_clean_files
26002 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26004 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26005 as_write_fail=0
26006 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26007 #! $SHELL
26008 # Generated by $as_me.
26009 # Run this file to recreate the current configuration.
26010 # Compiler output produced by configure, useful for debugging
26011 # configure, is in config.log if it exists.
26012
26013 debug=false
26014 ac_cs_recheck=false
26015 ac_cs_silent=false
26016
26017 SHELL=\${CONFIG_SHELL-$SHELL}
26018 export SHELL
26019 _ASEOF
26020 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26021 ## -------------------- ##
26022 ## M4sh Initialization. ##
26023 ## -------------------- ##
26024
26025 # Be more Bourne compatible
26026 DUALCASE=1; export DUALCASE # for MKS sh
26027 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26028   emulate sh
26029   NULLCMD=:
26030   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26031   # is contrary to our usage.  Disable this feature.
26032   alias -g '${1+"$@"}'='"$@"'
26033   setopt NO_GLOB_SUBST
26034 else
26035   case `(set -o) 2>/dev/null` in #(
26036   *posix*) :
26037     set -o posix ;; #(
26038   *) :
26039      ;;
26040 esac
26041 fi
26042
26043
26044 as_nl='
26045 '
26046 export as_nl
26047 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26048 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26049 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26050 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26051 # Prefer a ksh shell builtin over an external printf program on Solaris,
26052 # but without wasting forks for bash or zsh.
26053 if test -z "$BASH_VERSION$ZSH_VERSION" \
26054     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26055   as_echo='print -r --'
26056   as_echo_n='print -rn --'
26057 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26058   as_echo='printf %s\n'
26059   as_echo_n='printf %s'
26060 else
26061   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26062     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26063     as_echo_n='/usr/ucb/echo -n'
26064   else
26065     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26066     as_echo_n_body='eval
26067       arg=$1;
26068       case $arg in #(
26069       *"$as_nl"*)
26070         expr "X$arg" : "X\\(.*\\)$as_nl";
26071         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26072       esac;
26073       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26074     '
26075     export as_echo_n_body
26076     as_echo_n='sh -c $as_echo_n_body as_echo'
26077   fi
26078   export as_echo_body
26079   as_echo='sh -c $as_echo_body as_echo'
26080 fi
26081
26082 # The user is always right.
26083 if test "${PATH_SEPARATOR+set}" != set; then
26084   PATH_SEPARATOR=:
26085   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26086     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26087       PATH_SEPARATOR=';'
26088   }
26089 fi
26090
26091
26092 # IFS
26093 # We need space, tab and new line, in precisely that order.  Quoting is
26094 # there to prevent editors from complaining about space-tab.
26095 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26096 # splitting by setting IFS to empty value.)
26097 IFS=" ""        $as_nl"
26098
26099 # Find who we are.  Look in the path if we contain no directory separator.
26100 case $0 in #((
26101   *[\\/]* ) as_myself=$0 ;;
26102   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26103 for as_dir in $PATH
26104 do
26105   IFS=$as_save_IFS
26106   test -z "$as_dir" && as_dir=.
26107     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26108   done
26109 IFS=$as_save_IFS
26110
26111      ;;
26112 esac
26113 # We did not find ourselves, most probably we were run as `sh COMMAND'
26114 # in which case we are not to be found in the path.
26115 if test "x$as_myself" = x; then
26116   as_myself=$0
26117 fi
26118 if test ! -f "$as_myself"; then
26119   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26120   exit 1
26121 fi
26122
26123 # Unset variables that we do not need and which cause bugs (e.g. in
26124 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26125 # suppresses any "Segmentation fault" message there.  '((' could
26126 # trigger a bug in pdksh 5.2.14.
26127 for as_var in BASH_ENV ENV MAIL MAILPATH
26128 do eval test x\${$as_var+set} = xset \
26129   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26130 done
26131 PS1='$ '
26132 PS2='> '
26133 PS4='+ '
26134
26135 # NLS nuisances.
26136 LC_ALL=C
26137 export LC_ALL
26138 LANGUAGE=C
26139 export LANGUAGE
26140
26141 # CDPATH.
26142 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26143
26144
26145 # as_fn_error ERROR [LINENO LOG_FD]
26146 # ---------------------------------
26147 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26148 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26149 # script with status $?, using 1 if that was 0.
26150 as_fn_error ()
26151 {
26152   as_status=$?; test $as_status -eq 0 && as_status=1
26153   if test "$3"; then
26154     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26155     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26156   fi
26157   $as_echo "$as_me: error: $1" >&2
26158   as_fn_exit $as_status
26159 } # as_fn_error
26160
26161
26162 # as_fn_set_status STATUS
26163 # -----------------------
26164 # Set $? to STATUS, without forking.
26165 as_fn_set_status ()
26166 {
26167   return $1
26168 } # as_fn_set_status
26169
26170 # as_fn_exit STATUS
26171 # -----------------
26172 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26173 as_fn_exit ()
26174 {
26175   set +e
26176   as_fn_set_status $1
26177   exit $1
26178 } # as_fn_exit
26179
26180 # as_fn_unset VAR
26181 # ---------------
26182 # Portably unset VAR.
26183 as_fn_unset ()
26184 {
26185   { eval $1=; unset $1;}
26186 }
26187 as_unset=as_fn_unset
26188 # as_fn_append VAR VALUE
26189 # ----------------------
26190 # Append the text in VALUE to the end of the definition contained in VAR. Take
26191 # advantage of any shell optimizations that allow amortized linear growth over
26192 # repeated appends, instead of the typical quadratic growth present in naive
26193 # implementations.
26194 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26195   eval 'as_fn_append ()
26196   {
26197     eval $1+=\$2
26198   }'
26199 else
26200   as_fn_append ()
26201   {
26202     eval $1=\$$1\$2
26203   }
26204 fi # as_fn_append
26205
26206 # as_fn_arith ARG...
26207 # ------------------
26208 # Perform arithmetic evaluation on the ARGs, and store the result in the
26209 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26210 # must be portable across $(()) and expr.
26211 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26212   eval 'as_fn_arith ()
26213   {
26214     as_val=$(( $* ))
26215   }'
26216 else
26217   as_fn_arith ()
26218   {
26219     as_val=`expr "$@" || test $? -eq 1`
26220   }
26221 fi # as_fn_arith
26222
26223
26224 if expr a : '\(a\)' >/dev/null 2>&1 &&
26225    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26226   as_expr=expr
26227 else
26228   as_expr=false
26229 fi
26230
26231 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26232   as_basename=basename
26233 else
26234   as_basename=false
26235 fi
26236
26237 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26238   as_dirname=dirname
26239 else
26240   as_dirname=false
26241 fi
26242
26243 as_me=`$as_basename -- "$0" ||
26244 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26245          X"$0" : 'X\(//\)$' \| \
26246          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26247 $as_echo X/"$0" |
26248     sed '/^.*\/\([^/][^/]*\)\/*$/{
26249             s//\1/
26250             q
26251           }
26252           /^X\/\(\/\/\)$/{
26253             s//\1/
26254             q
26255           }
26256           /^X\/\(\/\).*/{
26257             s//\1/
26258             q
26259           }
26260           s/.*/./; q'`
26261
26262 # Avoid depending upon Character Ranges.
26263 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26264 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26265 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26266 as_cr_digits='0123456789'
26267 as_cr_alnum=$as_cr_Letters$as_cr_digits
26268
26269 ECHO_C= ECHO_N= ECHO_T=
26270 case `echo -n x` in #(((((
26271 -n*)
26272   case `echo 'xy\c'` in
26273   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26274   xy)  ECHO_C='\c';;
26275   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26276        ECHO_T=' ';;
26277   esac;;
26278 *)
26279   ECHO_N='-n';;
26280 esac
26281
26282 rm -f conf$$ conf$$.exe conf$$.file
26283 if test -d conf$$.dir; then
26284   rm -f conf$$.dir/conf$$.file
26285 else
26286   rm -f conf$$.dir
26287   mkdir conf$$.dir 2>/dev/null
26288 fi
26289 if (echo >conf$$.file) 2>/dev/null; then
26290   if ln -s conf$$.file conf$$ 2>/dev/null; then
26291     as_ln_s='ln -s'
26292     # ... but there are two gotchas:
26293     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26294     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26295     # In both cases, we have to default to `cp -p'.
26296     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26297       as_ln_s='cp -p'
26298   elif ln conf$$.file conf$$ 2>/dev/null; then
26299     as_ln_s=ln
26300   else
26301     as_ln_s='cp -p'
26302   fi
26303 else
26304   as_ln_s='cp -p'
26305 fi
26306 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26307 rmdir conf$$.dir 2>/dev/null
26308
26309
26310 # as_fn_mkdir_p
26311 # -------------
26312 # Create "$as_dir" as a directory, including parents if necessary.
26313 as_fn_mkdir_p ()
26314 {
26315
26316   case $as_dir in #(
26317   -*) as_dir=./$as_dir;;
26318   esac
26319   test -d "$as_dir" || eval $as_mkdir_p || {
26320     as_dirs=
26321     while :; do
26322       case $as_dir in #(
26323       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26324       *) as_qdir=$as_dir;;
26325       esac
26326       as_dirs="'$as_qdir' $as_dirs"
26327       as_dir=`$as_dirname -- "$as_dir" ||
26328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26329          X"$as_dir" : 'X\(//\)[^/]' \| \
26330          X"$as_dir" : 'X\(//\)$' \| \
26331          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26332 $as_echo X"$as_dir" |
26333     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26334             s//\1/
26335             q
26336           }
26337           /^X\(\/\/\)[^/].*/{
26338             s//\1/
26339             q
26340           }
26341           /^X\(\/\/\)$/{
26342             s//\1/
26343             q
26344           }
26345           /^X\(\/\).*/{
26346             s//\1/
26347             q
26348           }
26349           s/.*/./; q'`
26350       test -d "$as_dir" && break
26351     done
26352     test -z "$as_dirs" || eval "mkdir $as_dirs"
26353   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26354
26355
26356 } # as_fn_mkdir_p
26357 if mkdir -p . 2>/dev/null; then
26358   as_mkdir_p='mkdir -p "$as_dir"'
26359 else
26360   test -d ./-p && rmdir ./-p
26361   as_mkdir_p=false
26362 fi
26363
26364 if test -x / >/dev/null 2>&1; then
26365   as_test_x='test -x'
26366 else
26367   if ls -dL / >/dev/null 2>&1; then
26368     as_ls_L_option=L
26369   else
26370     as_ls_L_option=
26371   fi
26372   as_test_x='
26373     eval sh -c '\''
26374       if test -d "$1"; then
26375         test -d "$1/.";
26376       else
26377         case $1 in #(
26378         -*)set "./$1";;
26379         esac;
26380         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26381         ???[sx]*):;;*)false;;esac;fi
26382     '\'' sh
26383   '
26384 fi
26385 as_executable_p=$as_test_x
26386
26387 # Sed expression to map a string onto a valid CPP name.
26388 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26389
26390 # Sed expression to map a string onto a valid variable name.
26391 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26392
26393
26394 exec 6>&1
26395 ## ----------------------------------- ##
26396 ## Main body of $CONFIG_STATUS script. ##
26397 ## ----------------------------------- ##
26398 _ASEOF
26399 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26400
26401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26402 # Save the log message, to keep $0 and so on meaningful, and to
26403 # report actual input values of CONFIG_FILES etc. instead of their
26404 # values after options handling.
26405 ac_log="
26406 This file was extended by $as_me, which was
26407 generated by GNU Autoconf 2.64.  Invocation command line was
26408
26409   CONFIG_FILES    = $CONFIG_FILES
26410   CONFIG_HEADERS  = $CONFIG_HEADERS
26411   CONFIG_LINKS    = $CONFIG_LINKS
26412   CONFIG_COMMANDS = $CONFIG_COMMANDS
26413   $ $0 $@
26414
26415 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26416 "
26417
26418 _ACEOF
26419
26420 case $ac_config_files in *"
26421 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26422 esac
26423
26424 case $ac_config_headers in *"
26425 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26426 esac
26427
26428
26429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26430 # Files that config.status was made for.
26431 config_files="$ac_config_files"
26432 config_headers="$ac_config_headers"
26433 config_commands="$ac_config_commands"
26434
26435 _ACEOF
26436
26437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26438 ac_cs_usage="\
26439 \`$as_me' instantiates files and other configuration actions
26440 from templates according to the current configuration.  Unless the files
26441 and actions are specified as TAGs, all are instantiated by default.
26442
26443 Usage: $0 [OPTION]... [TAG]...
26444
26445   -h, --help       print this help, then exit
26446   -V, --version    print version number and configuration settings, then exit
26447   -q, --quiet, --silent
26448                    do not print progress messages
26449   -d, --debug      don't remove temporary files
26450       --recheck    update $as_me by reconfiguring in the same conditions
26451       --file=FILE[:TEMPLATE]
26452                    instantiate the configuration file FILE
26453       --header=FILE[:TEMPLATE]
26454                    instantiate the configuration header FILE
26455
26456 Configuration files:
26457 $config_files
26458
26459 Configuration headers:
26460 $config_headers
26461
26462 Configuration commands:
26463 $config_commands
26464
26465 Report bugs to the package provider."
26466
26467 _ACEOF
26468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26469 ac_cs_version="\\
26470 config.status
26471 configured by $0, generated by GNU Autoconf 2.64,
26472   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26473
26474 Copyright (C) 2009 Free Software Foundation, Inc.
26475 This config.status script is free software; the Free Software Foundation
26476 gives unlimited permission to copy, distribute and modify it."
26477
26478 ac_pwd='$ac_pwd'
26479 srcdir='$srcdir'
26480 AWK='$AWK'
26481 test -n "\$AWK" || AWK=awk
26482 _ACEOF
26483
26484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26485 # The default lists apply if the user does not specify any file.
26486 ac_need_defaults=:
26487 while test $# != 0
26488 do
26489   case $1 in
26490   --*=*)
26491     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26492     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26493     ac_shift=:
26494     ;;
26495   *)
26496     ac_option=$1
26497     ac_optarg=$2
26498     ac_shift=shift
26499     ;;
26500   esac
26501
26502   case $ac_option in
26503   # Handling of the options.
26504   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26505     ac_cs_recheck=: ;;
26506   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26507     $as_echo "$ac_cs_version"; exit ;;
26508   --debug | --debu | --deb | --de | --d | -d )
26509     debug=: ;;
26510   --file | --fil | --fi | --f )
26511     $ac_shift
26512     case $ac_optarg in
26513     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26514     esac
26515     as_fn_append CONFIG_FILES " '$ac_optarg'"
26516     ac_need_defaults=false;;
26517   --header | --heade | --head | --hea )
26518     $ac_shift
26519     case $ac_optarg in
26520     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26521     esac
26522     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26523     ac_need_defaults=false;;
26524   --he | --h)
26525     # Conflict between --help and --header
26526     as_fn_error "ambiguous option: \`$1'
26527 Try \`$0 --help' for more information.";;
26528   --help | --hel | -h )
26529     $as_echo "$ac_cs_usage"; exit ;;
26530   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26531   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26532     ac_cs_silent=: ;;
26533
26534   # This is an error.
26535   -*) as_fn_error "unrecognized option: \`$1'
26536 Try \`$0 --help' for more information." ;;
26537
26538   *) as_fn_append ac_config_targets " $1"
26539      ac_need_defaults=false ;;
26540
26541   esac
26542   shift
26543 done
26544
26545 ac_configure_extra_args=
26546
26547 if $ac_cs_silent; then
26548   exec 6>/dev/null
26549   ac_configure_extra_args="$ac_configure_extra_args --silent"
26550 fi
26551
26552 _ACEOF
26553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26554 if \$ac_cs_recheck; then
26555   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26556   shift
26557   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26558   CONFIG_SHELL='$SHELL'
26559   export CONFIG_SHELL
26560   exec "\$@"
26561 fi
26562
26563 _ACEOF
26564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26565 exec 5>>config.log
26566 {
26567   echo
26568   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26569 ## Running $as_me. ##
26570 _ASBOX
26571   $as_echo "$ac_log"
26572 } >&5
26573
26574 _ACEOF
26575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26576 #
26577 # INIT-COMMANDS
26578 #
26579 subdirs='$subdirs'
26580
26581 _ACEOF
26582
26583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26584
26585 # Handling of arguments.
26586 for ac_config_target in $ac_config_targets
26587 do
26588   case $ac_config_target in
26589     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26590     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26591     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26592     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26593     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26594     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26595
26596   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26597   esac
26598 done
26599
26600
26601 # If the user did not use the arguments to specify the items to instantiate,
26602 # then the envvar interface is used.  Set only those that are not.
26603 # We use the long form for the default assignment because of an extremely
26604 # bizarre bug on SunOS 4.1.3.
26605 if $ac_need_defaults; then
26606   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26607   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26608   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26609 fi
26610
26611 # Have a temporary directory for convenience.  Make it in the build tree
26612 # simply because there is no reason against having it here, and in addition,
26613 # creating and moving files from /tmp can sometimes cause problems.
26614 # Hook for its removal unless debugging.
26615 # Note that there is a small window in which the directory will not be cleaned:
26616 # after its creation but before its name has been assigned to `$tmp'.
26617 $debug ||
26618 {
26619   tmp=
26620   trap 'exit_status=$?
26621   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26622 ' 0
26623   trap 'as_fn_exit 1' 1 2 13 15
26624 }
26625 # Create a (secure) tmp directory for tmp files.
26626
26627 {
26628   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26629   test -n "$tmp" && test -d "$tmp"
26630 }  ||
26631 {
26632   tmp=./conf$$-$RANDOM
26633   (umask 077 && mkdir "$tmp")
26634 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26635
26636 # Set up the scripts for CONFIG_FILES section.
26637 # No need to generate them if there are no CONFIG_FILES.
26638 # This happens for instance with `./config.status config.h'.
26639 if test -n "$CONFIG_FILES"; then
26640
26641 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26642   ac_cs_awk_getline=:
26643   ac_cs_awk_pipe_init=
26644   ac_cs_awk_read_file='
26645       while ((getline aline < (F[key])) > 0)
26646         print(aline)
26647       close(F[key])'
26648   ac_cs_awk_pipe_fini=
26649 else
26650   ac_cs_awk_getline=false
26651   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26652   ac_cs_awk_read_file='
26653       print "|#_!!_#|"
26654       print "cat " F[key] " &&"
26655       '$ac_cs_awk_pipe_init
26656   # The final `:' finishes the AND list.
26657   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26658 fi
26659 ac_cr=`echo X | tr X '\015'`
26660 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26661 # But we know of no other shell where ac_cr would be empty at this
26662 # point, so we can use a bashism as a fallback.
26663 if test "x$ac_cr" = x; then
26664   eval ac_cr=\$\'\\r\'
26665 fi
26666 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26667 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26668   ac_cs_awk_cr='\r'
26669 else
26670   ac_cs_awk_cr=$ac_cr
26671 fi
26672
26673 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26674 _ACEOF
26675
26676 # Create commands to substitute file output variables.
26677 {
26678   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26679   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26680   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26681   echo "_ACAWK" &&
26682   echo "_ACEOF"
26683 } >conf$$files.sh &&
26684 . ./conf$$files.sh ||
26685   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26686 rm -f conf$$files.sh
26687
26688 {
26689   echo "cat >conf$$subs.awk <<_ACEOF" &&
26690   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26691   echo "_ACEOF"
26692 } >conf$$subs.sh ||
26693   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26694 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26695 ac_delim='%!_!# '
26696 for ac_last_try in false false false false false :; do
26697   . ./conf$$subs.sh ||
26698     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26699
26700   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26701   if test $ac_delim_n = $ac_delim_num; then
26702     break
26703   elif $ac_last_try; then
26704     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26705   else
26706     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26707   fi
26708 done
26709 rm -f conf$$subs.sh
26710
26711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26712 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26713 _ACEOF
26714 sed -n '
26715 h
26716 s/^/S["/; s/!.*/"]=/
26717 p
26718 g
26719 s/^[^!]*!//
26720 :repl
26721 t repl
26722 s/'"$ac_delim"'$//
26723 t delim
26724 :nl
26725 h
26726 s/\(.\{148\}\).*/\1/
26727 t more1
26728 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26729 p
26730 n
26731 b repl
26732 :more1
26733 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26734 p
26735 g
26736 s/.\{148\}//
26737 t nl
26738 :delim
26739 h
26740 s/\(.\{148\}\).*/\1/
26741 t more2
26742 s/["\\]/\\&/g; s/^/"/; s/$/"/
26743 p
26744 b
26745 :more2
26746 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26747 p
26748 g
26749 s/.\{148\}//
26750 t delim
26751 ' <conf$$subs.awk | sed '
26752 /^[^""]/{
26753   N
26754   s/\n//
26755 }
26756 ' >>$CONFIG_STATUS || ac_write_fail=1
26757 rm -f conf$$subs.awk
26758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26759 _ACAWK
26760 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26761   for (key in S) S_is_set[key] = 1
26762   FS = "\a"
26763   \$ac_cs_awk_pipe_init
26764 }
26765 {
26766   line = $ 0
26767   nfields = split(line, field, "@")
26768   substed = 0
26769   len = length(field[1])
26770   for (i = 2; i < nfields; i++) {
26771     key = field[i]
26772     keylen = length(key)
26773     if (S_is_set[key]) {
26774       value = S[key]
26775       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26776       len += length(value) + length(field[++i])
26777       substed = 1
26778     } else
26779       len += 1 + keylen
26780   }
26781   if (nfields == 3 && !substed) {
26782     key = field[2]
26783     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
26784       \$ac_cs_awk_read_file
26785       next
26786     }
26787   }
26788   print line
26789 }
26790 \$ac_cs_awk_pipe_fini
26791 _ACAWK
26792 _ACEOF
26793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26794 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26795   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26796 else
26797   cat
26798 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26799   || as_fn_error "could not setup config files machinery" "$LINENO" 5
26800 _ACEOF
26801
26802 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26803 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26804 # trailing colons and then remove the whole line if VPATH becomes empty
26805 # (actually we leave an empty line to preserve line numbers).
26806 if test "x$srcdir" = x.; then
26807   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26808 s/:*\$(srcdir):*/:/
26809 s/:*\${srcdir}:*/:/
26810 s/:*@srcdir@:*/:/
26811 s/^\([^=]*=[     ]*\):*/\1/
26812 s/:*$//
26813 s/^[^=]*=[       ]*$//
26814 }'
26815 fi
26816
26817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26818 fi # test -n "$CONFIG_FILES"
26819
26820 # Set up the scripts for CONFIG_HEADERS section.
26821 # No need to generate them if there are no CONFIG_HEADERS.
26822 # This happens for instance with `./config.status Makefile'.
26823 if test -n "$CONFIG_HEADERS"; then
26824 cat >"$tmp/defines.awk" <<\_ACAWK ||
26825 BEGIN {
26826 _ACEOF
26827
26828 # Transform confdefs.h into an awk script `defines.awk', embedded as
26829 # here-document in config.status, that substitutes the proper values into
26830 # config.h.in to produce config.h.
26831
26832 # Create a delimiter string that does not exist in confdefs.h, to ease
26833 # handling of long lines.
26834 ac_delim='%!_!# '
26835 for ac_last_try in false false :; do
26836   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26837   if test -z "$ac_t"; then
26838     break
26839   elif $ac_last_try; then
26840     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26841   else
26842     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26843   fi
26844 done
26845
26846 # For the awk script, D is an array of macro values keyed by name,
26847 # likewise P contains macro parameters if any.  Preserve backslash
26848 # newline sequences.
26849
26850 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26851 sed -n '
26852 s/.\{148\}/&'"$ac_delim"'/g
26853 t rset
26854 :rset
26855 s/^[     ]*#[    ]*define[       ][      ]*/ /
26856 t def
26857 d
26858 :def
26859 s/\\$//
26860 t bsnl
26861 s/["\\]/\\&/g
26862 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26863 D["\1"]=" \3"/p
26864 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26865 d
26866 :bsnl
26867 s/["\\]/\\&/g
26868 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26869 D["\1"]=" \3\\\\\\n"\\/p
26870 t cont
26871 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26872 t cont
26873 d
26874 :cont
26875 n
26876 s/.\{148\}/&'"$ac_delim"'/g
26877 t clear
26878 :clear
26879 s/\\$//
26880 t bsnlc
26881 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26882 d
26883 :bsnlc
26884 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26885 b cont
26886 ' <confdefs.h | sed '
26887 s/'"$ac_delim"'/"\\\
26888 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26889
26890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26891   for (key in D) D_is_set[key] = 1
26892   FS = "\a"
26893 }
26894 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26895   line = \$ 0
26896   split(line, arg, " ")
26897   if (arg[1] == "#") {
26898     defundef = arg[2]
26899     mac1 = arg[3]
26900   } else {
26901     defundef = substr(arg[1], 2)
26902     mac1 = arg[2]
26903   }
26904   split(mac1, mac2, "(") #)
26905   macro = mac2[1]
26906   prefix = substr(line, 1, index(line, defundef) - 1)
26907   if (D_is_set[macro]) {
26908     # Preserve the white space surrounding the "#".
26909     print prefix "define", macro P[macro] D[macro]
26910     next
26911   } else {
26912     # Replace #undef with comments.  This is necessary, for example,
26913     # in the case of _POSIX_SOURCE, which is predefined and required
26914     # on some systems where configure will not decide to define it.
26915     if (defundef == "undef") {
26916       print "/*", prefix defundef, macro, "*/"
26917       next
26918     }
26919   }
26920 }
26921 { print }
26922 _ACAWK
26923 _ACEOF
26924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26925   as_fn_error "could not setup config headers machinery" "$LINENO" 5
26926 fi # test -n "$CONFIG_HEADERS"
26927
26928
26929 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26930 shift
26931 for ac_tag
26932 do
26933   case $ac_tag in
26934   :[FHLC]) ac_mode=$ac_tag; continue;;
26935   esac
26936   case $ac_mode$ac_tag in
26937   :[FHL]*:*);;
26938   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26939   :[FH]-) ac_tag=-:-;;
26940   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26941   esac
26942   ac_save_IFS=$IFS
26943   IFS=:
26944   set x $ac_tag
26945   IFS=$ac_save_IFS
26946   shift
26947   ac_file=$1
26948   shift
26949
26950   case $ac_mode in
26951   :L) ac_source=$1;;
26952   :[FH])
26953     ac_file_inputs=
26954     for ac_f
26955     do
26956       case $ac_f in
26957       -) ac_f="$tmp/stdin";;
26958       *) # Look for the file first in the build tree, then in the source tree
26959          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26960          # because $ac_f cannot contain `:'.
26961          test -f "$ac_f" ||
26962            case $ac_f in
26963            [\\/$]*) false;;
26964            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26965            esac ||
26966            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26967       esac
26968       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26969       as_fn_append ac_file_inputs " '$ac_f'"
26970     done
26971
26972     # Let's still pretend it is `configure' which instantiates (i.e., don't
26973     # use $as_me), people would be surprised to read:
26974     #    /* config.h.  Generated by config.status.  */
26975     configure_input='Generated from '`
26976           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26977         `' by configure.'
26978     if test x"$ac_file" != x-; then
26979       configure_input="$ac_file.  $configure_input"
26980       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26981 $as_echo "$as_me: creating $ac_file" >&6;}
26982     fi
26983     # Neutralize special characters interpreted by sed in replacement strings.
26984     case $configure_input in #(
26985     *\&* | *\|* | *\\* )
26986        ac_sed_conf_input=`$as_echo "$configure_input" |
26987        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26988     *) ac_sed_conf_input=$configure_input;;
26989     esac
26990
26991     case $ac_tag in
26992     *:-:* | *:-) cat >"$tmp/stdin" \
26993       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26994     esac
26995     ;;
26996   esac
26997
26998   ac_dir=`$as_dirname -- "$ac_file" ||
26999 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27000          X"$ac_file" : 'X\(//\)[^/]' \| \
27001          X"$ac_file" : 'X\(//\)$' \| \
27002          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27003 $as_echo X"$ac_file" |
27004     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27005             s//\1/
27006             q
27007           }
27008           /^X\(\/\/\)[^/].*/{
27009             s//\1/
27010             q
27011           }
27012           /^X\(\/\/\)$/{
27013             s//\1/
27014             q
27015           }
27016           /^X\(\/\).*/{
27017             s//\1/
27018             q
27019           }
27020           s/.*/./; q'`
27021   as_dir="$ac_dir"; as_fn_mkdir_p
27022   ac_builddir=.
27023
27024 case "$ac_dir" in
27025 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27026 *)
27027   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27028   # A ".." for each directory in $ac_dir_suffix.
27029   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27030   case $ac_top_builddir_sub in
27031   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27032   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27033   esac ;;
27034 esac
27035 ac_abs_top_builddir=$ac_pwd
27036 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27037 # for backward compatibility:
27038 ac_top_builddir=$ac_top_build_prefix
27039
27040 case $srcdir in
27041   .)  # We are building in place.
27042     ac_srcdir=.
27043     ac_top_srcdir=$ac_top_builddir_sub
27044     ac_abs_top_srcdir=$ac_pwd ;;
27045   [\\/]* | ?:[\\/]* )  # Absolute name.
27046     ac_srcdir=$srcdir$ac_dir_suffix;
27047     ac_top_srcdir=$srcdir
27048     ac_abs_top_srcdir=$srcdir ;;
27049   *) # Relative name.
27050     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27051     ac_top_srcdir=$ac_top_build_prefix$srcdir
27052     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27053 esac
27054 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27055
27056
27057   case $ac_mode in
27058   :F)
27059   #
27060   # CONFIG_FILE
27061   #
27062
27063 _ACEOF
27064
27065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27066 # If the template does not know about datarootdir, expand it.
27067 # FIXME: This hack should be removed a few years after 2.60.
27068 ac_datarootdir_hack=; ac_datarootdir_seen=
27069 ac_sed_dataroot='
27070 /datarootdir/ {
27071   p
27072   q
27073 }
27074 /@datadir@/p
27075 /@docdir@/p
27076 /@infodir@/p
27077 /@localedir@/p
27078 /@mandir@/p'
27079 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27080 *datarootdir*) ac_datarootdir_seen=yes;;
27081 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27082   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27083 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27084 _ACEOF
27085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27086   ac_datarootdir_hack='
27087   s&@datadir@&$datadir&g
27088   s&@docdir@&$docdir&g
27089   s&@infodir@&$infodir&g
27090   s&@localedir@&$localedir&g
27091   s&@mandir@&$mandir&g
27092   s&\\\${datarootdir}&$datarootdir&g' ;;
27093 esac
27094 _ACEOF
27095
27096 # Neutralize VPATH when `$srcdir' = `.'.
27097 # Shell code in configure.ac might set extrasub.
27098 # FIXME: do we really want to maintain this feature?
27099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27100 ac_sed_extra="$ac_vpsub
27101 $extrasub
27102 _ACEOF
27103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27104 :t
27105 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27106 s|@configure_input@|$ac_sed_conf_input|;t t
27107 s&@top_builddir@&$ac_top_builddir_sub&;t t
27108 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27109 s&@srcdir@&$ac_srcdir&;t t
27110 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27111 s&@top_srcdir@&$ac_top_srcdir&;t t
27112 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27113 s&@builddir@&$ac_builddir&;t t
27114 s&@abs_builddir@&$ac_abs_builddir&;t t
27115 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27116 $ac_datarootdir_hack
27117 "
27118 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27119 if $ac_cs_awk_getline; then
27120   $AWK -f "$tmp/subs.awk"
27121 else
27122   $AWK -f "$tmp/subs.awk" | $SHELL
27123 fi >$tmp/out \
27124   || as_fn_error "could not create $ac_file" "$LINENO" 5
27125
27126 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27127   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27128   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27129   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27130 which seems to be undefined.  Please make sure it is defined." >&5
27131 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27132 which seems to be undefined.  Please make sure it is defined." >&2;}
27133
27134   rm -f "$tmp/stdin"
27135   case $ac_file in
27136   -) cat "$tmp/out" && rm -f "$tmp/out";;
27137   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27138   esac \
27139   || as_fn_error "could not create $ac_file" "$LINENO" 5
27140  ;;
27141   :H)
27142   #
27143   # CONFIG_HEADER
27144   #
27145   if test x"$ac_file" != x-; then
27146     {
27147       $as_echo "/* $configure_input  */" \
27148       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27149     } >"$tmp/config.h" \
27150       || as_fn_error "could not create $ac_file" "$LINENO" 5
27151     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27152       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27153 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27154     else
27155       rm -f "$ac_file"
27156       mv "$tmp/config.h" "$ac_file" \
27157         || as_fn_error "could not create $ac_file" "$LINENO" 5
27158     fi
27159   else
27160     $as_echo "/* $configure_input  */" \
27161       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27162       || as_fn_error "could not create -" "$LINENO" 5
27163   fi
27164  ;;
27165
27166   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27167 $as_echo "$as_me: executing $ac_file commands" >&6;}
27168  ;;
27169   esac
27170
27171
27172   case $ac_file$ac_mode in
27173     "as":F) chmod +x as ;;
27174     "collect-ld":F) chmod +x collect-ld ;;
27175     "nm":F) chmod +x nm ;;
27176     "default":C)
27177 case ${CONFIG_HEADERS} in
27178   *auto-host.h:config.in*)
27179   echo > cstamp-h ;;
27180 esac
27181 # Make sure all the subdirs exist.
27182 for d in $subdirs doc build c-family
27183 do
27184     test -d $d || mkdir $d
27185 done
27186  ;;
27187
27188   esac
27189 done # for ac_tag
27190
27191
27192 as_fn_exit 0
27193 _ACEOF
27194 ac_clean_files=$ac_clean_files_save
27195
27196 test $ac_write_fail = 0 ||
27197   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27198
27199
27200 # configure is writing to config.log, and then calls config.status.
27201 # config.status does its own redirection, appending to config.log.
27202 # Unfortunately, on DOS this fails, as config.log is still kept open
27203 # by configure, so config.status won't be able to write to it; its
27204 # output is simply discarded.  So we exec the FD to /dev/null,
27205 # effectively closing config.log, so it can be properly (re)opened and
27206 # appended to by config.status.  When coming back to configure, we
27207 # need to make the FD available again.
27208 if test "$no_create" != yes; then
27209   ac_cs_success=:
27210   ac_config_status_args=
27211   test "$silent" = yes &&
27212     ac_config_status_args="$ac_config_status_args --quiet"
27213   exec 5>/dev/null
27214   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27215   exec 5>>config.log
27216   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27217   # would make configure fail if this is the last instruction.
27218   $ac_cs_success || as_fn_exit $?
27219 fi
27220 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27221   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27222 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27223 fi
27224