OSDN Git Service

Check in support for Xilinx MicroBlaze processor.
[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 CONFIGURE_SPECS
763 CROSS_SYSTEM_HEADER_DIR
764 TARGET_SYSTEM_ROOT_DEFINE
765 TARGET_SYSTEM_ROOT
766 enable_shared
767 enable_fixed_point
768 enable_decimal_float
769 enable_multilib
770 ENABLE_BUILD_WITH_CXX
771 coverage_flags
772 valgrind_command
773 valgrind_path_defines
774 valgrind_path
775 TREEBROWSER
776 nocommon_flag
777 warn_cxxflags
778 warn_cflags
779 c_strict_warn
780 strict_warn
781 c_loose_warn
782 loose_warn
783 EGREP
784 GREP
785 CPP
786 OUTPUT_OPTION
787 NO_MINUS_C_MINUS_O
788 GNATMAKE
789 GNATBIND
790 ac_ct_CXX
791 CXXFLAGS
792 CXX
793 OBJEXT
794 EXEEXT
795 ac_ct_CC
796 CPPFLAGS
797 LDFLAGS
798 CFLAGS
799 CC
800 GENINSRC
801 target_subdir
802 host_subdir
803 build_subdir
804 build_libsubdir
805 target_noncanonical
806 target_os
807 target_vendor
808 target_cpu
809 target
810 host_os
811 host_vendor
812 host_cpu
813 host
814 build_os
815 build_vendor
816 build_cpu
817 build
818 target_alias
819 host_alias
820 build_alias
821 LIBS
822 ECHO_T
823 ECHO_N
824 ECHO_C
825 DEFS
826 mandir
827 localedir
828 libdir
829 psdir
830 pdfdir
831 dvidir
832 htmldir
833 infodir
834 docdir
835 oldincludedir
836 includedir
837 localstatedir
838 sharedstatedir
839 sysconfdir
840 datadir
841 datarootdir
842 libexecdir
843 sbindir
844 bindir
845 program_transform_name
846 prefix
847 exec_prefix
848 PACKAGE_URL
849 PACKAGE_BUGREPORT
850 PACKAGE_STRING
851 PACKAGE_VERSION
852 PACKAGE_TARNAME
853 PACKAGE_NAME
854 PATH_SEPARATOR
855 SHELL'
856 ac_subst_files='language_hooks'
857 ac_user_opts='
858 enable_option_checking
859 with_build_libsubdir
860 with_local_prefix
861 with_gxx_include_dir
862 with_cpp_install_dir
863 enable_generated_files_in_srcdir
864 with_gnu_ld
865 with_ld
866 with_demangler_in_ld
867 with_gnu_as
868 with_as
869 enable_werror_always
870 enable_checking
871 enable_coverage
872 enable_gather_detailed_mem_stats
873 enable_build_with_cxx
874 with_stabs
875 enable_multilib
876 enable___cxa_atexit
877 enable_decimal_float
878 enable_fixed_point
879 enable_threads
880 enable_tls
881 enable_objc_gc
882 with_dwarf2
883 enable_shared
884 with_build_sysroot
885 with_sysroot
886 with_specs
887 with_pkgversion
888 with_bugurl
889 enable_languages
890 with_multilib_list
891 enable_rpath
892 with_libiconv_prefix
893 enable_initfini_array
894 enable_sjlj_exceptions
895 with_system_libunwind
896 enable_secureplt
897 enable_leading_mingw64_underscores
898 enable_cld
899 enable_frame_pointer
900 enable_win32_registry
901 enable_static
902 with_pic
903 enable_fast_install
904 enable_libtool_lock
905 with_plugin_ld
906 enable_gnu_indirect_function
907 enable_comdat
908 enable_gnu_unique_object
909 enable_linker_build_id
910 with_long_double_128
911 with_gc
912 with_system_zlib
913 enable_maintainer_mode
914 enable_version_specific_runtime_libs
915 with_slibdir
916 enable_plugin
917 '
918       ac_precious_vars='build_alias
919 host_alias
920 target_alias
921 CC
922 CFLAGS
923 LDFLAGS
924 LIBS
925 CPPFLAGS
926 CXX
927 CXXFLAGS
928 CCC
929 CPP
930 CXXCPP
931 GMPLIBS
932 GMPINC
933 PPLLIBS
934 PPLINC
935 CLOOGLIBS
936 CLOOGINC
937 LIBELFLIBS
938 LIBELFINC'
939
940
941 # Initialize some variables set by options.
942 ac_init_help=
943 ac_init_version=false
944 ac_unrecognized_opts=
945 ac_unrecognized_sep=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
948 cache_file=/dev/null
949 exec_prefix=NONE
950 no_create=
951 no_recursion=
952 prefix=NONE
953 program_prefix=NONE
954 program_suffix=NONE
955 program_transform_name=s,x,x,
956 silent=
957 site=
958 srcdir=
959 verbose=
960 x_includes=NONE
961 x_libraries=NONE
962
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE}'
980 infodir='${datarootdir}/info'
981 htmldir='${docdir}'
982 dvidir='${docdir}'
983 pdfdir='${docdir}'
984 psdir='${docdir}'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
988
989 ac_prev=
990 ac_dashdash=
991 for ac_option
992 do
993   # If the previous option needs an argument, assign it.
994   if test -n "$ac_prev"; then
995     eval $ac_prev=\$ac_option
996     ac_prev=
997     continue
998   fi
999
1000   case $ac_option in
1001   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002   *)    ac_optarg=yes ;;
1003   esac
1004
1005   # Accept the important Cygnus configure options, so we can diagnose typos.
1006
1007   case $ac_dashdash$ac_option in
1008   --)
1009     ac_dashdash=yes ;;
1010
1011   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012     ac_prev=bindir ;;
1013   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014     bindir=$ac_optarg ;;
1015
1016   -build | --build | --buil | --bui | --bu)
1017     ac_prev=build_alias ;;
1018   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019     build_alias=$ac_optarg ;;
1020
1021   -cache-file | --cache-file | --cache-fil | --cache-fi \
1022   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023     ac_prev=cache_file ;;
1024   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026     cache_file=$ac_optarg ;;
1027
1028   --config-cache | -C)
1029     cache_file=config.cache ;;
1030
1031   -datadir | --datadir | --datadi | --datad)
1032     ac_prev=datadir ;;
1033   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034     datadir=$ac_optarg ;;
1035
1036   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037   | --dataroo | --dataro | --datar)
1038     ac_prev=datarootdir ;;
1039   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041     datarootdir=$ac_optarg ;;
1042
1043   -disable-* | --disable-*)
1044     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045     # Reject names that are not valid shell variable names.
1046     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047       as_fn_error "invalid feature name: $ac_useropt"
1048     ac_useropt_orig=$ac_useropt
1049     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050     case $ac_user_opts in
1051       *"
1052 "enable_$ac_useropt"
1053 "*) ;;
1054       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055          ac_unrecognized_sep=', ';;
1056     esac
1057     eval enable_$ac_useropt=no ;;
1058
1059   -docdir | --docdir | --docdi | --doc | --do)
1060     ac_prev=docdir ;;
1061   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062     docdir=$ac_optarg ;;
1063
1064   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065     ac_prev=dvidir ;;
1066   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067     dvidir=$ac_optarg ;;
1068
1069   -enable-* | --enable-*)
1070     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071     # Reject names that are not valid shell variable names.
1072     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073       as_fn_error "invalid feature name: $ac_useropt"
1074     ac_useropt_orig=$ac_useropt
1075     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076     case $ac_user_opts in
1077       *"
1078 "enable_$ac_useropt"
1079 "*) ;;
1080       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081          ac_unrecognized_sep=', ';;
1082     esac
1083     eval enable_$ac_useropt=\$ac_optarg ;;
1084
1085   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087   | --exec | --exe | --ex)
1088     ac_prev=exec_prefix ;;
1089   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091   | --exec=* | --exe=* | --ex=*)
1092     exec_prefix=$ac_optarg ;;
1093
1094   -gas | --gas | --ga | --g)
1095     # Obsolete; use --with-gas.
1096     with_gas=yes ;;
1097
1098   -help | --help | --hel | --he | -h)
1099     ac_init_help=long ;;
1100   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101     ac_init_help=recursive ;;
1102   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103     ac_init_help=short ;;
1104
1105   -host | --host | --hos | --ho)
1106     ac_prev=host_alias ;;
1107   -host=* | --host=* | --hos=* | --ho=*)
1108     host_alias=$ac_optarg ;;
1109
1110   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111     ac_prev=htmldir ;;
1112   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113   | --ht=*)
1114     htmldir=$ac_optarg ;;
1115
1116   -includedir | --includedir | --includedi | --included | --include \
1117   | --includ | --inclu | --incl | --inc)
1118     ac_prev=includedir ;;
1119   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120   | --includ=* | --inclu=* | --incl=* | --inc=*)
1121     includedir=$ac_optarg ;;
1122
1123   -infodir | --infodir | --infodi | --infod | --info | --inf)
1124     ac_prev=infodir ;;
1125   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126     infodir=$ac_optarg ;;
1127
1128   -libdir | --libdir | --libdi | --libd)
1129     ac_prev=libdir ;;
1130   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131     libdir=$ac_optarg ;;
1132
1133   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134   | --libexe | --libex | --libe)
1135     ac_prev=libexecdir ;;
1136   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137   | --libexe=* | --libex=* | --libe=*)
1138     libexecdir=$ac_optarg ;;
1139
1140   -localedir | --localedir | --localedi | --localed | --locale)
1141     ac_prev=localedir ;;
1142   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143     localedir=$ac_optarg ;;
1144
1145   -localstatedir | --localstatedir | --localstatedi | --localstated \
1146   | --localstate | --localstat | --localsta | --localst | --locals)
1147     ac_prev=localstatedir ;;
1148   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150     localstatedir=$ac_optarg ;;
1151
1152   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153     ac_prev=mandir ;;
1154   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155     mandir=$ac_optarg ;;
1156
1157   -nfp | --nfp | --nf)
1158     # Obsolete; use --without-fp.
1159     with_fp=no ;;
1160
1161   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162   | --no-cr | --no-c | -n)
1163     no_create=yes ;;
1164
1165   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167     no_recursion=yes ;;
1168
1169   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171   | --oldin | --oldi | --old | --ol | --o)
1172     ac_prev=oldincludedir ;;
1173   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176     oldincludedir=$ac_optarg ;;
1177
1178   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179     ac_prev=prefix ;;
1180   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181     prefix=$ac_optarg ;;
1182
1183   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184   | --program-pre | --program-pr | --program-p)
1185     ac_prev=program_prefix ;;
1186   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188     program_prefix=$ac_optarg ;;
1189
1190   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191   | --program-suf | --program-su | --program-s)
1192     ac_prev=program_suffix ;;
1193   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195     program_suffix=$ac_optarg ;;
1196
1197   -program-transform-name | --program-transform-name \
1198   | --program-transform-nam | --program-transform-na \
1199   | --program-transform-n | --program-transform- \
1200   | --program-transform | --program-transfor \
1201   | --program-transfo | --program-transf \
1202   | --program-trans | --program-tran \
1203   | --progr-tra | --program-tr | --program-t)
1204     ac_prev=program_transform_name ;;
1205   -program-transform-name=* | --program-transform-name=* \
1206   | --program-transform-nam=* | --program-transform-na=* \
1207   | --program-transform-n=* | --program-transform-=* \
1208   | --program-transform=* | --program-transfor=* \
1209   | --program-transfo=* | --program-transf=* \
1210   | --program-trans=* | --program-tran=* \
1211   | --progr-tra=* | --program-tr=* | --program-t=*)
1212     program_transform_name=$ac_optarg ;;
1213
1214   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215     ac_prev=pdfdir ;;
1216   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217     pdfdir=$ac_optarg ;;
1218
1219   -psdir | --psdir | --psdi | --psd | --ps)
1220     ac_prev=psdir ;;
1221   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222     psdir=$ac_optarg ;;
1223
1224   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225   | -silent | --silent | --silen | --sile | --sil)
1226     silent=yes ;;
1227
1228   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229     ac_prev=sbindir ;;
1230   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231   | --sbi=* | --sb=*)
1232     sbindir=$ac_optarg ;;
1233
1234   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236   | --sharedst | --shareds | --shared | --share | --shar \
1237   | --sha | --sh)
1238     ac_prev=sharedstatedir ;;
1239   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242   | --sha=* | --sh=*)
1243     sharedstatedir=$ac_optarg ;;
1244
1245   -site | --site | --sit)
1246     ac_prev=site ;;
1247   -site=* | --site=* | --sit=*)
1248     site=$ac_optarg ;;
1249
1250   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251     ac_prev=srcdir ;;
1252   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253     srcdir=$ac_optarg ;;
1254
1255   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256   | --syscon | --sysco | --sysc | --sys | --sy)
1257     ac_prev=sysconfdir ;;
1258   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260     sysconfdir=$ac_optarg ;;
1261
1262   -target | --target | --targe | --targ | --tar | --ta | --t)
1263     ac_prev=target_alias ;;
1264   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265     target_alias=$ac_optarg ;;
1266
1267   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268     verbose=yes ;;
1269
1270   -version | --version | --versio | --versi | --vers | -V)
1271     ac_init_version=: ;;
1272
1273   -with-* | --with-*)
1274     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275     # Reject names that are not valid shell variable names.
1276     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277       as_fn_error "invalid package name: $ac_useropt"
1278     ac_useropt_orig=$ac_useropt
1279     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280     case $ac_user_opts in
1281       *"
1282 "with_$ac_useropt"
1283 "*) ;;
1284       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285          ac_unrecognized_sep=', ';;
1286     esac
1287     eval with_$ac_useropt=\$ac_optarg ;;
1288
1289   -without-* | --without-*)
1290     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293       as_fn_error "invalid package name: $ac_useropt"
1294     ac_useropt_orig=$ac_useropt
1295     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296     case $ac_user_opts in
1297       *"
1298 "with_$ac_useropt"
1299 "*) ;;
1300       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301          ac_unrecognized_sep=', ';;
1302     esac
1303     eval with_$ac_useropt=no ;;
1304
1305   --x)
1306     # Obsolete; use --with-x.
1307     with_x=yes ;;
1308
1309   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310   | --x-incl | --x-inc | --x-in | --x-i)
1311     ac_prev=x_includes ;;
1312   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314     x_includes=$ac_optarg ;;
1315
1316   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318     ac_prev=x_libraries ;;
1319   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321     x_libraries=$ac_optarg ;;
1322
1323   -*) as_fn_error "unrecognized option: \`$ac_option'
1324 Try \`$0 --help' for more information."
1325     ;;
1326
1327   *=*)
1328     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329     # Reject names that are not valid shell variable names.
1330     case $ac_envvar in #(
1331       '' | [0-9]* | *[!_$as_cr_alnum]* )
1332       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1333     esac
1334     eval $ac_envvar=\$ac_optarg
1335     export $ac_envvar ;;
1336
1337   *)
1338     # FIXME: should be removed in autoconf 3.0.
1339     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343     ;;
1344
1345   esac
1346 done
1347
1348 if test -n "$ac_prev"; then
1349   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350   as_fn_error "missing argument to $ac_option"
1351 fi
1352
1353 if test -n "$ac_unrecognized_opts"; then
1354   case $enable_option_checking in
1355     no) ;;
1356     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1357     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358   esac
1359 fi
1360
1361 # Check all directory arguments for consistency.
1362 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363                 datadir sysconfdir sharedstatedir localstatedir includedir \
1364                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365                 libdir localedir mandir
1366 do
1367   eval ac_val=\$$ac_var
1368   # Remove trailing slashes.
1369   case $ac_val in
1370     */ )
1371       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372       eval $ac_var=\$ac_val;;
1373   esac
1374   # Be sure to have absolute directory names.
1375   case $ac_val in
1376     [\\/$]* | ?:[\\/]* )  continue;;
1377     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378   esac
1379   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1380 done
1381
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1385 build=$build_alias
1386 host=$host_alias
1387 target=$target_alias
1388
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x; then
1391   if test "x$build_alias" = x; then
1392     cross_compiling=maybe
1393     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394     If a cross compiler is detected then cross compile mode will be used." >&2
1395   elif test "x$build_alias" != "x$host_alias"; then
1396     cross_compiling=yes
1397   fi
1398 fi
1399
1400 ac_tool_prefix=
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403 test "$silent" = yes && exec 6>/dev/null
1404
1405
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409   as_fn_error "working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411   as_fn_error "pwd does not report name of working directory"
1412
1413
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416   ac_srcdir_defaulted=yes
1417   # Try the directory containing this script, then the parent directory.
1418   ac_confdir=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420          X"$as_myself" : 'X\(//\)[^/]' \| \
1421          X"$as_myself" : 'X\(//\)$' \| \
1422          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425             s//\1/
1426             q
1427           }
1428           /^X\(\/\/\)[^/].*/{
1429             s//\1/
1430             q
1431           }
1432           /^X\(\/\/\)$/{
1433             s//\1/
1434             q
1435           }
1436           /^X\(\/\).*/{
1437             s//\1/
1438             q
1439           }
1440           s/.*/./; q'`
1441   srcdir=$ac_confdir
1442   if test ! -r "$srcdir/$ac_unique_file"; then
1443     srcdir=..
1444   fi
1445 else
1446   ac_srcdir_defaulted=no
1447 fi
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1451 fi
1452 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 ac_abs_confdir=`(
1454         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1455         pwd)`
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1458   srcdir=.
1459 fi
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1463 case $srcdir in
1464 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 esac
1466 for ac_var in $ac_precious_vars; do
1467   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468   eval ac_env_${ac_var}_value=\$${ac_var}
1469   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471 done
1472
1473 #
1474 # Report the --help message.
1475 #
1476 if test "$ac_init_help" = "long"; then
1477   # Omit some internal or obsolete options to make the list less imposing.
1478   # This message is too long to be a string in the A/UX 3.1 sh.
1479   cat <<_ACEOF
1480 \`configure' configures this package to adapt to many kinds of systems.
1481
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE.  See below for descriptions of some of the useful variables.
1486
1487 Defaults for the options are specified in brackets.
1488
1489 Configuration:
1490   -h, --help              display this help and exit
1491       --help=short        display options specific to this package
1492       --help=recursive    display the short help of all the included packages
1493   -V, --version           display version information and exit
1494   -q, --quiet, --silent   do not print \`checking...' messages
1495       --cache-file=FILE   cache test results in FILE [disabled]
1496   -C, --config-cache      alias for \`--cache-file=config.cache'
1497   -n, --no-create         do not create output files
1498       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1499
1500 Installation directories:
1501   --prefix=PREFIX         install architecture-independent files in PREFIX
1502                           [$ac_default_prefix]
1503   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1504                           [PREFIX]
1505
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1510
1511 For better control, use the options below.
1512
1513 Fine tuning of the installation directories:
1514   --bindir=DIR            user executables [EPREFIX/bin]
1515   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1516   --libexecdir=DIR        program executables [EPREFIX/libexec]
1517   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1518   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1519   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1520   --libdir=DIR            object code libraries [EPREFIX/lib]
1521   --includedir=DIR        C header files [PREFIX/include]
1522   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1523   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1524   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1525   --infodir=DIR           info documentation [DATAROOTDIR/info]
1526   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1527   --mandir=DIR            man documentation [DATAROOTDIR/man]
1528   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1529   --htmldir=DIR           html documentation [DOCDIR]
1530   --dvidir=DIR            dvi documentation [DOCDIR]
1531   --pdfdir=DIR            pdf documentation [DOCDIR]
1532   --psdir=DIR             ps documentation [DOCDIR]
1533 _ACEOF
1534
1535   cat <<\_ACEOF
1536
1537 Program names:
1538   --program-prefix=PREFIX            prepend PREFIX to installed program names
1539   --program-suffix=SUFFIX            append SUFFIX to installed program names
1540   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1541
1542 System types:
1543   --build=BUILD     configure for building on BUILD [guessed]
1544   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1545   --target=TARGET   configure for building compilers for TARGET [HOST]
1546 _ACEOF
1547 fi
1548
1549 if test -n "$ac_init_help"; then
1550
1551   cat <<\_ACEOF
1552
1553 Optional Features:
1554   --disable-option-checking  ignore unrecognized --enable/--with options
1555   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1556   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1557   --enable-generated-files-in-srcdir
1558                           put copies of generated files in source dir
1559                           intended for creating source tarballs for users
1560                           without texinfo bison or flex.
1561   --enable-werror-always  enable -Werror despite compiler version
1562   --enable-checking=LIST
1563                           enable expensive run-time checks.  With LIST,
1564                           enable only specific categories of checks.
1565                           Categories are: yes,no,all,none,release.
1566                           Flags are: assert,df,fold,gc,gcac,gimple,misc,
1567                           rtlflag,rtl,runtime,tree,valgrind,types.
1568   --enable-coverage=LEVEL
1569                           enable compiler's code coverage collection.
1570                           Use to measure compiler performance and locate
1571                           unused parts of the compiler. With LEVEL, specify
1572                           optimization. Values are opt, noopt,
1573                           default is noopt
1574   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1575   --enable-build-with-cxx build with C++ compiler instead of C compiler
1576   --enable-multilib       enable library support for multiple ABIs
1577   --enable-__cxa_atexit   enable __cxa_atexit for C++
1578   --enable-decimal-float={no,yes,bid,dpd}
1579                         enable decimal float extension to C.  Selecting 'bid'
1580                         or 'dpd' choses which decimal floating point format
1581                         to use
1582   --enable-fixed-point    enable fixed-point arithmetic extension to C
1583   --enable-threads        enable thread usage for target GCC
1584   --enable-threads=LIB    use LIB thread package for target GCC
1585   --enable-tls            enable or disable generation of tls code
1586                           overriding the assembler check for tls support
1587   --enable-objc-gc        enable the use of Boehm's garbage collector with
1588                           the GNU Objective-C runtime
1589   --disable-shared        don't provide a shared libgcc
1590   --enable-languages=LIST specify which front-ends to build
1591   --disable-rpath         do not hardcode runtime library paths
1592   --enable-initfini-array       use .init_array/.fini_array sections
1593   --enable-sjlj-exceptions
1594                           arrange to use setjmp/longjmp exception handling
1595   --enable-secureplt      enable -msecure-plt by default for PowerPC
1596   --enable-leading-mingw64-underscores
1597                           Enable leading underscores on 64 bit mingw targets
1598   --enable-cld            enable -mcld by default for 32bit x86
1599   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit x86
1600   --disable-win32-registry
1601                           disable lookup of installation paths in the
1602                           Registry on Windows hosts
1603   --enable-win32-registry enable registry lookup (default)
1604   --enable-win32-registry=KEY
1605                           use KEY instead of GCC version as the last portion
1606                           of the registry key
1607   --enable-shared[=PKGS]  build shared libraries [default=yes]
1608   --enable-static[=PKGS]  build static libraries [default=yes]
1609   --enable-fast-install[=PKGS]
1610                           optimize for fast installation [default=yes]
1611   --disable-libtool-lock  avoid locking (might break parallel builds)
1612   --enable-gnu-indirect-function
1613                           enable the use of the @gnu_indirect_function to
1614                           glibc systems
1615   --enable-comdat         enable COMDAT group support
1616   --enable-gnu-unique-object    enable the use of the @gnu_unique_object ELF extension on
1617                                 glibc systems
1618   --enable-linker-build-id
1619                           compiler will always pass --build-id to linker
1620   --enable-maintainer-mode
1621                           enable make rules and dependencies not useful
1622                           (and sometimes confusing) to the casual installer
1623   --enable-version-specific-runtime-libs
1624                           specify that runtime libraries should be
1625                           installed in a compiler-specific directory
1626   --enable-plugin         enable plugin support
1627
1628 Optional Packages:
1629   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1630   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1631   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1632   --with-local-prefix=DIR specifies directory to put local include
1633   --with-gxx-include-dir=DIR
1634                           specifies directory to put g++ header files
1635   --with-cpp-install-dir=DIR
1636                           install the user visible C preprocessor in DIR
1637                           (relative to PREFIX) as well as PREFIX/bin
1638   --with-gnu-ld           arrange to work with GNU ld.
1639   --with-ld               arrange to use the specified ld (full pathname)
1640   --with-demangler-in-ld  try to use demangler in GNU ld.
1641   --with-gnu-as           arrange to work with GNU as
1642   --with-as               arrange to use the specified as (full pathname)
1643   --with-stabs            arrange to use stabs instead of host debug format
1644   --with-dwarf2           force the default debug format to be DWARF 2
1645   --with-build-sysroot=sysroot
1646                           use sysroot as the system root during the build
1647   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1648   --with-specs=SPECS      add SPECS to driver command-line processing
1649   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1650   --with-bugurl=URL       Direct users to URL to report a bug
1651   --with-multilib-list    Select multilibs (SH only)
1652   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1653   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1654   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1655   --with-system-libunwind use installed libunwind
1656   --with-pic              try to use only PIC/non-PIC objects [default=use
1657                           both]
1658   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1659   --with-plugin-ld=[ARG]  specify the plugin linker
1660   --with-long-double-128  Use 128-bit long double by default.
1661   --with-gc={page,zone}   choose the garbage collection mechanism to use
1662                           with the compiler
1663   --with-system-zlib      use installed libz
1664   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1665
1666 Some influential environment variables:
1667   CC          C compiler command
1668   CFLAGS      C compiler flags
1669   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1670               nonstandard directory <lib dir>
1671   LIBS        libraries to pass to the linker, e.g. -l<library>
1672   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1673               you have headers in a nonstandard directory <include dir>
1674   CXX         C++ compiler command
1675   CXXFLAGS    C++ compiler flags
1676   CPP         C preprocessor
1677   CXXCPP      C++ preprocessor
1678   GMPLIBS     How to link GMP
1679   GMPINC      How to find GMP include files
1680   PPLLIBS     How to link PPL
1681   PPLINC      How to find PPL include files
1682   CLOOGLIBS   How to link CLOOG
1683   CLOOGINC    How to find CLOOG include files
1684   LIBELFLIBS  How to link libelf
1685   LIBELFINC   How to find libelf include files
1686
1687 Use these variables to override the choices made by `configure' or to help
1688 it to find libraries and programs with nonstandard names/locations.
1689
1690 Report bugs to the package provider.
1691 _ACEOF
1692 ac_status=$?
1693 fi
1694
1695 if test "$ac_init_help" = "recursive"; then
1696   # If there are subdirs, report their specific --help.
1697   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1698     test -d "$ac_dir" ||
1699       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1700       continue
1701     ac_builddir=.
1702
1703 case "$ac_dir" in
1704 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705 *)
1706   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1707   # A ".." for each directory in $ac_dir_suffix.
1708   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1709   case $ac_top_builddir_sub in
1710   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1712   esac ;;
1713 esac
1714 ac_abs_top_builddir=$ac_pwd
1715 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1716 # for backward compatibility:
1717 ac_top_builddir=$ac_top_build_prefix
1718
1719 case $srcdir in
1720   .)  # We are building in place.
1721     ac_srcdir=.
1722     ac_top_srcdir=$ac_top_builddir_sub
1723     ac_abs_top_srcdir=$ac_pwd ;;
1724   [\\/]* | ?:[\\/]* )  # Absolute name.
1725     ac_srcdir=$srcdir$ac_dir_suffix;
1726     ac_top_srcdir=$srcdir
1727     ac_abs_top_srcdir=$srcdir ;;
1728   *) # Relative name.
1729     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1730     ac_top_srcdir=$ac_top_build_prefix$srcdir
1731     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1732 esac
1733 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1734
1735     cd "$ac_dir" || { ac_status=$?; continue; }
1736     # Check for guested configure.
1737     if test -f "$ac_srcdir/configure.gnu"; then
1738       echo &&
1739       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1740     elif test -f "$ac_srcdir/configure"; then
1741       echo &&
1742       $SHELL "$ac_srcdir/configure" --help=recursive
1743     else
1744       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1745     fi || ac_status=$?
1746     cd "$ac_pwd" || { ac_status=$?; break; }
1747   done
1748 fi
1749
1750 test -n "$ac_init_help" && exit $ac_status
1751 if $ac_init_version; then
1752   cat <<\_ACEOF
1753 configure
1754 generated by GNU Autoconf 2.64
1755
1756 Copyright (C) 2009 Free Software Foundation, Inc.
1757 This configure script is free software; the Free Software Foundation
1758 gives unlimited permission to copy, distribute and modify it.
1759 _ACEOF
1760   exit
1761 fi
1762
1763 ## ------------------------ ##
1764 ## Autoconf initialization. ##
1765 ## ------------------------ ##
1766
1767 # ac_fn_c_try_compile LINENO
1768 # --------------------------
1769 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_compile ()
1771 {
1772   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773   rm -f conftest.$ac_objext
1774   if { { ac_try="$ac_compile"
1775 case "(($ac_try" in
1776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777   *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781   (eval "$ac_compile") 2>conftest.err
1782   ac_status=$?
1783   if test -s conftest.err; then
1784     grep -v '^ *+' conftest.err >conftest.er1
1785     cat conftest.er1 >&5
1786     mv -f conftest.er1 conftest.err
1787   fi
1788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789   test $ac_status = 0; } && {
1790          test -z "$ac_c_werror_flag" ||
1791          test ! -s conftest.err
1792        } && test -s conftest.$ac_objext; then :
1793   ac_retval=0
1794 else
1795   $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798         ac_retval=1
1799 fi
1800   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801   return $ac_retval
1802
1803 } # ac_fn_c_try_compile
1804
1805 # ac_fn_cxx_try_compile LINENO
1806 # ----------------------------
1807 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1808 ac_fn_cxx_try_compile ()
1809 {
1810   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811   rm -f conftest.$ac_objext
1812   if { { ac_try="$ac_compile"
1813 case "(($ac_try" in
1814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815   *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819   (eval "$ac_compile") 2>conftest.err
1820   ac_status=$?
1821   if test -s conftest.err; then
1822     grep -v '^ *+' conftest.err >conftest.er1
1823     cat conftest.er1 >&5
1824     mv -f conftest.er1 conftest.err
1825   fi
1826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827   test $ac_status = 0; } && {
1828          test -z "$ac_cxx_werror_flag" ||
1829          test ! -s conftest.err
1830        } && test -s conftest.$ac_objext; then :
1831   ac_retval=0
1832 else
1833   $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1835
1836         ac_retval=1
1837 fi
1838   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839   return $ac_retval
1840
1841 } # ac_fn_cxx_try_compile
1842
1843 # ac_fn_c_try_cpp LINENO
1844 # ----------------------
1845 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_c_try_cpp ()
1847 {
1848   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849   if { { ac_try="$ac_cpp conftest.$ac_ext"
1850 case "(($ac_try" in
1851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852   *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1857   ac_status=$?
1858   if test -s conftest.err; then
1859     grep -v '^ *+' conftest.err >conftest.er1
1860     cat conftest.er1 >&5
1861     mv -f conftest.er1 conftest.err
1862   fi
1863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864   test $ac_status = 0; } >/dev/null && {
1865          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1866          test ! -s conftest.err
1867        }; then :
1868   ac_retval=0
1869 else
1870   $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1872
1873     ac_retval=1
1874 fi
1875   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876   return $ac_retval
1877
1878 } # ac_fn_c_try_cpp
1879
1880 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1881 # -------------------------------------------------------
1882 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1883 # the include files in INCLUDES and setting the cache variable VAR
1884 # accordingly.
1885 ac_fn_c_check_header_mongrel ()
1886 {
1887   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1892   $as_echo_n "(cached) " >&6
1893 fi
1894 eval ac_res=\$$3
1895                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 else
1898   # Is the header compilable?
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1900 $as_echo_n "checking $2 usability... " >&6; }
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h.  */
1903 $4
1904 #include <$2>
1905 _ACEOF
1906 if ac_fn_c_try_compile "$LINENO"; then :
1907   ac_header_compiler=yes
1908 else
1909   ac_header_compiler=no
1910 fi
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1913 $as_echo "$ac_header_compiler" >&6; }
1914
1915 # Is the header present?
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1917 $as_echo_n "checking $2 presence... " >&6; }
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h.  */
1920 #include <$2>
1921 _ACEOF
1922 if ac_fn_c_try_cpp "$LINENO"; then :
1923   ac_header_preproc=yes
1924 else
1925   ac_header_preproc=no
1926 fi
1927 rm -f conftest.err conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1929 $as_echo "$ac_header_preproc" >&6; }
1930
1931 # So?  What about this header?
1932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1933   yes:no: )
1934     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1935 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1936     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1937 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1938     ;;
1939   no:yes:* )
1940     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1941 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1942     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1943 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1944     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1945 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1946     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1947 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1948     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1949 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950     ;;
1951 esac
1952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1955   $as_echo_n "(cached) " >&6
1956 else
1957   eval "$3=\$ac_header_compiler"
1958 fi
1959 eval ac_res=\$$3
1960                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1962 fi
1963   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964
1965 } # ac_fn_c_check_header_mongrel
1966
1967 # ac_fn_c_try_run LINENO
1968 # ----------------------
1969 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1970 # that executables *can* be run.
1971 ac_fn_c_try_run ()
1972 {
1973   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974   if { { ac_try="$ac_link"
1975 case "(($ac_try" in
1976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977   *) ac_try_echo=$ac_try;;
1978 esac
1979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980 $as_echo "$ac_try_echo"; } >&5
1981   (eval "$ac_link") 2>&5
1982   ac_status=$?
1983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1985   { { case "(($ac_try" in
1986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987   *) ac_try_echo=$ac_try;;
1988 esac
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991   (eval "$ac_try") 2>&5
1992   ac_status=$?
1993   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994   test $ac_status = 0; }; }; then :
1995   ac_retval=0
1996 else
1997   $as_echo "$as_me: program exited with status $ac_status" >&5
1998        $as_echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2000
2001        ac_retval=$ac_status
2002 fi
2003   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2004   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2005   return $ac_retval
2006
2007 } # ac_fn_c_try_run
2008
2009 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2010 # -------------------------------------------------------
2011 # Tests whether HEADER exists and can be compiled using the include files in
2012 # INCLUDES, setting the cache variable VAR accordingly.
2013 ac_fn_c_check_header_compile ()
2014 {
2015   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2019   $as_echo_n "(cached) " >&6
2020 else
2021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h.  */
2023 $4
2024 #include <$2>
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027   eval "$3=yes"
2028 else
2029   eval "$3=no"
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 fi
2033 eval ac_res=\$$3
2034                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037
2038 } # ac_fn_c_check_header_compile
2039
2040 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2041 # --------------------------------------------
2042 # Tries to find the compile-time value of EXPR in a program that includes
2043 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2044 # computed
2045 ac_fn_c_compute_int ()
2046 {
2047   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048   if test "$cross_compiling" = yes; then
2049     # Depending upon the size, compute the lo and hi bounds.
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h.  */
2052 $4
2053 int
2054 main ()
2055 {
2056 static int test_array [1 - 2 * !(($2) >= 0)];
2057 test_array [0] = 0
2058
2059   ;
2060   return 0;
2061 }
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064   ac_lo=0 ac_mid=0
2065   while :; do
2066     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h.  */
2068 $4
2069 int
2070 main ()
2071 {
2072 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2073 test_array [0] = 0
2074
2075   ;
2076   return 0;
2077 }
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080   ac_hi=$ac_mid; break
2081 else
2082   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2083                         if test $ac_lo -le $ac_mid; then
2084                           ac_lo= ac_hi=
2085                           break
2086                         fi
2087                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2088 fi
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090   done
2091 else
2092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h.  */
2094 $4
2095 int
2096 main ()
2097 {
2098 static int test_array [1 - 2 * !(($2) < 0)];
2099 test_array [0] = 0
2100
2101   ;
2102   return 0;
2103 }
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106   ac_hi=-1 ac_mid=-1
2107   while :; do
2108     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h.  */
2110 $4
2111 int
2112 main ()
2113 {
2114 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2115 test_array [0] = 0
2116
2117   ;
2118   return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122   ac_lo=$ac_mid; break
2123 else
2124   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2125                         if test $ac_mid -le $ac_hi; then
2126                           ac_lo= ac_hi=
2127                           break
2128                         fi
2129                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132   done
2133 else
2134   ac_lo= ac_hi=
2135 fi
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 # Binary search between lo and hi bounds.
2140 while test "x$ac_lo" != "x$ac_hi"; do
2141   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h.  */
2144 $4
2145 int
2146 main ()
2147 {
2148 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2149 test_array [0] = 0
2150
2151   ;
2152   return 0;
2153 }
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156   ac_hi=$ac_mid
2157 else
2158   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2159 fi
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 done
2162 case $ac_lo in #((
2163 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2164 '') ac_retval=1 ;;
2165 esac
2166   else
2167     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h.  */
2169 $4
2170 static long int longval () { return $2; }
2171 static unsigned long int ulongval () { return $2; }
2172 #include <stdio.h>
2173 #include <stdlib.h>
2174 int
2175 main ()
2176 {
2177
2178   FILE *f = fopen ("conftest.val", "w");
2179   if (! f)
2180     return 1;
2181   if (($2) < 0)
2182     {
2183       long int i = longval ();
2184       if (i != ($2))
2185         return 1;
2186       fprintf (f, "%ld", i);
2187     }
2188   else
2189     {
2190       unsigned long int i = ulongval ();
2191       if (i != ($2))
2192         return 1;
2193       fprintf (f, "%lu", i);
2194     }
2195   /* Do not output a trailing newline, as this causes \r\n confusion
2196      on some platforms.  */
2197   return ferror (f) || fclose (f) != 0;
2198
2199   ;
2200   return 0;
2201 }
2202 _ACEOF
2203 if ac_fn_c_try_run "$LINENO"; then :
2204   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2205 else
2206   ac_retval=1
2207 fi
2208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2209   conftest.$ac_objext conftest.beam conftest.$ac_ext
2210 rm -f conftest.val
2211
2212   fi
2213   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2214   return $ac_retval
2215
2216 } # ac_fn_c_compute_int
2217
2218 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2219 # -------------------------------------------
2220 # Tests whether TYPE exists after having included INCLUDES, setting cache
2221 # variable VAR accordingly.
2222 ac_fn_c_check_type ()
2223 {
2224   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 $as_echo_n "checking for $2... " >&6; }
2227 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2228   $as_echo_n "(cached) " >&6
2229 else
2230   eval "$3=no"
2231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h.  */
2233 $4
2234 int
2235 main ()
2236 {
2237 if (sizeof ($2))
2238          return 0;
2239   ;
2240   return 0;
2241 }
2242 _ACEOF
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h.  */
2246 $4
2247 int
2248 main ()
2249 {
2250 if (sizeof (($2)))
2251             return 0;
2252   ;
2253   return 0;
2254 }
2255 _ACEOF
2256 if ac_fn_c_try_compile "$LINENO"; then :
2257
2258 else
2259   eval "$3=yes"
2260 fi
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 fi
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 fi
2265 eval ac_res=\$$3
2266                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2267 $as_echo "$ac_res" >&6; }
2268   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2269
2270 } # ac_fn_c_check_type
2271
2272 # ac_fn_c_find_intX_t LINENO BITS VAR
2273 # -----------------------------------
2274 # Finds a signed integer type with width BITS, setting cache variable VAR
2275 # accordingly.
2276 ac_fn_c_find_intX_t ()
2277 {
2278   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2280 $as_echo_n "checking for int$2_t... " >&6; }
2281 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2282   $as_echo_n "(cached) " >&6
2283 else
2284   eval "$3=no"
2285      for ac_type in int$2_t 'int' 'long int' \
2286          'long long int' 'short int' 'signed char'; do
2287        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h.  */
2289 $ac_includes_default
2290 int
2291 main ()
2292 {
2293 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2294 test_array [0] = 0
2295
2296   ;
2297   return 0;
2298 }
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h.  */
2303 $ac_includes_default
2304 int
2305 main ()
2306 {
2307 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2308                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2309 test_array [0] = 0
2310
2311   ;
2312   return 0;
2313 }
2314 _ACEOF
2315 if ac_fn_c_try_compile "$LINENO"; then :
2316
2317 else
2318   case $ac_type in #(
2319   int$2_t) :
2320     eval "$3=yes" ;; #(
2321   *) :
2322     eval "$3=\$ac_type" ;;
2323 esac
2324 fi
2325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326 fi
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328        eval as_val=\$$3
2329    if test "x$as_val" = x""no; then :
2330
2331 else
2332   break
2333 fi
2334      done
2335 fi
2336 eval ac_res=\$$3
2337                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2338 $as_echo "$ac_res" >&6; }
2339   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2340
2341 } # ac_fn_c_find_intX_t
2342
2343 # ac_fn_c_try_link LINENO
2344 # -----------------------
2345 # Try to link conftest.$ac_ext, and return whether this succeeded.
2346 ac_fn_c_try_link ()
2347 {
2348   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2349   rm -f conftest.$ac_objext conftest$ac_exeext
2350   if { { ac_try="$ac_link"
2351 case "(($ac_try" in
2352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2353   *) ac_try_echo=$ac_try;;
2354 esac
2355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2356 $as_echo "$ac_try_echo"; } >&5
2357   (eval "$ac_link") 2>conftest.err
2358   ac_status=$?
2359   if test -s conftest.err; then
2360     grep -v '^ *+' conftest.err >conftest.er1
2361     cat conftest.er1 >&5
2362     mv -f conftest.er1 conftest.err
2363   fi
2364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2365   test $ac_status = 0; } && {
2366          test -z "$ac_c_werror_flag" ||
2367          test ! -s conftest.err
2368        } && test -s conftest$ac_exeext && {
2369          test "$cross_compiling" = yes ||
2370          $as_test_x conftest$ac_exeext
2371        }; then :
2372   ac_retval=0
2373 else
2374   $as_echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2376
2377         ac_retval=1
2378 fi
2379   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2380   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2381   # interfere with the next link command; also delete a directory that is
2382   # left behind by Apple's compiler.  We do this before executing the actions.
2383   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2384   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2385   return $ac_retval
2386
2387 } # ac_fn_c_try_link
2388
2389 # ac_fn_c_find_uintX_t LINENO BITS VAR
2390 # ------------------------------------
2391 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2392 # accordingly.
2393 ac_fn_c_find_uintX_t ()
2394 {
2395   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2397 $as_echo_n "checking for uint$2_t... " >&6; }
2398 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2399   $as_echo_n "(cached) " >&6
2400 else
2401   eval "$3=no"
2402      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2403          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2404        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h.  */
2406 $ac_includes_default
2407 int
2408 main ()
2409 {
2410 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2411 test_array [0] = 0
2412
2413   ;
2414   return 0;
2415 }
2416 _ACEOF
2417 if ac_fn_c_try_compile "$LINENO"; then :
2418   case $ac_type in #(
2419   uint$2_t) :
2420     eval "$3=yes" ;; #(
2421   *) :
2422     eval "$3=\$ac_type" ;;
2423 esac
2424 fi
2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426        eval as_val=\$$3
2427    if test "x$as_val" = x""no; then :
2428
2429 else
2430   break
2431 fi
2432      done
2433 fi
2434 eval ac_res=\$$3
2435                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2436 $as_echo "$ac_res" >&6; }
2437   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2438
2439 } # ac_fn_c_find_uintX_t
2440
2441 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2442 # ----------------------------------------------
2443 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2444 ac_fn_c_check_header_preproc ()
2445 {
2446   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2448 $as_echo_n "checking for $2... " >&6; }
2449 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2450   $as_echo_n "(cached) " >&6
2451 else
2452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h.  */
2454 #include <$2>
2455 _ACEOF
2456 if ac_fn_c_try_cpp "$LINENO"; then :
2457   eval "$3=yes"
2458 else
2459   eval "$3=no"
2460 fi
2461 rm -f conftest.err conftest.$ac_ext
2462 fi
2463 eval ac_res=\$$3
2464                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2465 $as_echo "$ac_res" >&6; }
2466   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2467
2468 } # ac_fn_c_check_header_preproc
2469
2470 # ac_fn_c_check_func LINENO FUNC VAR
2471 # ----------------------------------
2472 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2473 ac_fn_c_check_func ()
2474 {
2475   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2477 $as_echo_n "checking for $2... " >&6; }
2478 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2479   $as_echo_n "(cached) " >&6
2480 else
2481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482 /* end confdefs.h.  */
2483 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2485 #define $2 innocuous_$2
2486
2487 /* System header to define __stub macros and hopefully few prototypes,
2488     which can conflict with char $2 (); below.
2489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2490     <limits.h> exists even on freestanding compilers.  */
2491
2492 #ifdef __STDC__
2493 # include <limits.h>
2494 #else
2495 # include <assert.h>
2496 #endif
2497
2498 #undef $2
2499
2500 /* Override any GCC internal prototype to avoid an error.
2501    Use char because int might match the return type of a GCC
2502    builtin and then its argument prototype would still apply.  */
2503 #ifdef __cplusplus
2504 extern "C"
2505 #endif
2506 char $2 ();
2507 /* The GNU C library defines this for functions which it implements
2508     to always fail with ENOSYS.  Some functions are actually named
2509     something starting with __ and the normal name is an alias.  */
2510 #if defined __stub_$2 || defined __stub___$2
2511 choke me
2512 #endif
2513
2514 int
2515 main ()
2516 {
2517 return $2 ();
2518   ;
2519   return 0;
2520 }
2521 _ACEOF
2522 if ac_fn_c_try_link "$LINENO"; then :
2523   eval "$3=yes"
2524 else
2525   eval "$3=no"
2526 fi
2527 rm -f core conftest.err conftest.$ac_objext \
2528     conftest$ac_exeext conftest.$ac_ext
2529 fi
2530 eval ac_res=\$$3
2531                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2532 $as_echo "$ac_res" >&6; }
2533   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2534
2535 } # ac_fn_c_check_func
2536
2537 # ac_fn_cxx_try_cpp LINENO
2538 # ------------------------
2539 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2540 ac_fn_cxx_try_cpp ()
2541 {
2542   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543   if { { ac_try="$ac_cpp conftest.$ac_ext"
2544 case "(($ac_try" in
2545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546   *) ac_try_echo=$ac_try;;
2547 esac
2548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2549 $as_echo "$ac_try_echo"; } >&5
2550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2551   ac_status=$?
2552   if test -s conftest.err; then
2553     grep -v '^ *+' conftest.err >conftest.er1
2554     cat conftest.er1 >&5
2555     mv -f conftest.er1 conftest.err
2556   fi
2557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2558   test $ac_status = 0; } >/dev/null && {
2559          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2560          test ! -s conftest.err
2561        }; then :
2562   ac_retval=0
2563 else
2564   $as_echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2566
2567     ac_retval=1
2568 fi
2569   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2570   return $ac_retval
2571
2572 } # ac_fn_cxx_try_cpp
2573
2574 # ac_fn_cxx_try_link LINENO
2575 # -------------------------
2576 # Try to link conftest.$ac_ext, and return whether this succeeded.
2577 ac_fn_cxx_try_link ()
2578 {
2579   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2580   rm -f conftest.$ac_objext conftest$ac_exeext
2581   if { { ac_try="$ac_link"
2582 case "(($ac_try" in
2583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584   *) ac_try_echo=$ac_try;;
2585 esac
2586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2587 $as_echo "$ac_try_echo"; } >&5
2588   (eval "$ac_link") 2>conftest.err
2589   ac_status=$?
2590   if test -s conftest.err; then
2591     grep -v '^ *+' conftest.err >conftest.er1
2592     cat conftest.er1 >&5
2593     mv -f conftest.er1 conftest.err
2594   fi
2595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2596   test $ac_status = 0; } && {
2597          test -z "$ac_cxx_werror_flag" ||
2598          test ! -s conftest.err
2599        } && test -s conftest$ac_exeext && {
2600          test "$cross_compiling" = yes ||
2601          $as_test_x conftest$ac_exeext
2602        }; then :
2603   ac_retval=0
2604 else
2605   $as_echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608         ac_retval=1
2609 fi
2610   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2611   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2612   # interfere with the next link command; also delete a directory that is
2613   # left behind by Apple's compiler.  We do this before executing the actions.
2614   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2615   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2616   return $ac_retval
2617
2618 } # ac_fn_cxx_try_link
2619 cat >config.log <<_ACEOF
2620 This file contains any messages produced by compilers while
2621 running configure, to aid debugging if configure makes a mistake.
2622
2623 It was created by $as_me, which was
2624 generated by GNU Autoconf 2.64.  Invocation command line was
2625
2626   $ $0 $@
2627
2628 _ACEOF
2629 exec 5>>config.log
2630 {
2631 cat <<_ASUNAME
2632 ## --------- ##
2633 ## Platform. ##
2634 ## --------- ##
2635
2636 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2637 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2638 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2639 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2640 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2641
2642 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2643 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2644
2645 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2646 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2647 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2648 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2649 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2650 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2651 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2652
2653 _ASUNAME
2654
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2657 do
2658   IFS=$as_save_IFS
2659   test -z "$as_dir" && as_dir=.
2660     $as_echo "PATH: $as_dir"
2661   done
2662 IFS=$as_save_IFS
2663
2664 } >&5
2665
2666 cat >&5 <<_ACEOF
2667
2668
2669 ## ----------- ##
2670 ## Core tests. ##
2671 ## ----------- ##
2672
2673 _ACEOF
2674
2675
2676 # Keep a trace of the command line.
2677 # Strip out --no-create and --no-recursion so they do not pile up.
2678 # Strip out --silent because we don't want to record it for future runs.
2679 # Also quote any args containing shell meta-characters.
2680 # Make two passes to allow for proper duplicate-argument suppression.
2681 ac_configure_args=
2682 ac_configure_args0=
2683 ac_configure_args1=
2684 ac_must_keep_next=false
2685 for ac_pass in 1 2
2686 do
2687   for ac_arg
2688   do
2689     case $ac_arg in
2690     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2691     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2692     | -silent | --silent | --silen | --sile | --sil)
2693       continue ;;
2694     *\'*)
2695       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2696     esac
2697     case $ac_pass in
2698     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2699     2)
2700       as_fn_append ac_configure_args1 " '$ac_arg'"
2701       if test $ac_must_keep_next = true; then
2702         ac_must_keep_next=false # Got value, back to normal.
2703       else
2704         case $ac_arg in
2705           *=* | --config-cache | -C | -disable-* | --disable-* \
2706           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2707           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2708           | -with-* | --with-* | -without-* | --without-* | --x)
2709             case "$ac_configure_args0 " in
2710               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2711             esac
2712             ;;
2713           -* ) ac_must_keep_next=true ;;
2714         esac
2715       fi
2716       as_fn_append ac_configure_args " '$ac_arg'"
2717       ;;
2718     esac
2719   done
2720 done
2721 { ac_configure_args0=; unset ac_configure_args0;}
2722 { ac_configure_args1=; unset ac_configure_args1;}
2723
2724 # When interrupted or exit'd, cleanup temporary files, and complete
2725 # config.log.  We remove comments because anyway the quotes in there
2726 # would cause problems or look ugly.
2727 # WARNING: Use '\'' to represent an apostrophe within the trap.
2728 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2729 trap 'exit_status=$?
2730   # Save into config.log some information that might help in debugging.
2731   {
2732     echo
2733
2734     cat <<\_ASBOX
2735 ## ---------------- ##
2736 ## Cache variables. ##
2737 ## ---------------- ##
2738 _ASBOX
2739     echo
2740     # The following way of writing the cache mishandles newlines in values,
2741 (
2742   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2743     eval ac_val=\$$ac_var
2744     case $ac_val in #(
2745     *${as_nl}*)
2746       case $ac_var in #(
2747       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2748 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2749       esac
2750       case $ac_var in #(
2751       _ | IFS | as_nl) ;; #(
2752       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2753       *) { eval $ac_var=; unset $ac_var;} ;;
2754       esac ;;
2755     esac
2756   done
2757   (set) 2>&1 |
2758     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2759     *${as_nl}ac_space=\ *)
2760       sed -n \
2761         "s/'\''/'\''\\\\'\'''\''/g;
2762           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2763       ;; #(
2764     *)
2765       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2766       ;;
2767     esac |
2768     sort
2769 )
2770     echo
2771
2772     cat <<\_ASBOX
2773 ## ----------------- ##
2774 ## Output variables. ##
2775 ## ----------------- ##
2776 _ASBOX
2777     echo
2778     for ac_var in $ac_subst_vars
2779     do
2780       eval ac_val=\$$ac_var
2781       case $ac_val in
2782       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2783       esac
2784       $as_echo "$ac_var='\''$ac_val'\''"
2785     done | sort
2786     echo
2787
2788     if test -n "$ac_subst_files"; then
2789       cat <<\_ASBOX
2790 ## ------------------- ##
2791 ## File substitutions. ##
2792 ## ------------------- ##
2793 _ASBOX
2794       echo
2795       for ac_var in $ac_subst_files
2796       do
2797         eval ac_val=\$$ac_var
2798         case $ac_val in
2799         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2800         esac
2801         $as_echo "$ac_var='\''$ac_val'\''"
2802       done | sort
2803       echo
2804     fi
2805
2806     if test -s confdefs.h; then
2807       cat <<\_ASBOX
2808 ## ----------- ##
2809 ## confdefs.h. ##
2810 ## ----------- ##
2811 _ASBOX
2812       echo
2813       cat confdefs.h
2814       echo
2815     fi
2816     test "$ac_signal" != 0 &&
2817       $as_echo "$as_me: caught signal $ac_signal"
2818     $as_echo "$as_me: exit $exit_status"
2819   } >&5
2820   rm -f core *.core core.conftest.* &&
2821     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2822     exit $exit_status
2823 ' 0
2824 for ac_signal in 1 2 13 15; do
2825   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2826 done
2827 ac_signal=0
2828
2829 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2830 rm -f -r conftest* confdefs.h
2831
2832 $as_echo "/* confdefs.h */" > confdefs.h
2833
2834 # Predefined preprocessor variables.
2835
2836 cat >>confdefs.h <<_ACEOF
2837 #define PACKAGE_NAME "$PACKAGE_NAME"
2838 _ACEOF
2839
2840 cat >>confdefs.h <<_ACEOF
2841 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2842 _ACEOF
2843
2844 cat >>confdefs.h <<_ACEOF
2845 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2846 _ACEOF
2847
2848 cat >>confdefs.h <<_ACEOF
2849 #define PACKAGE_STRING "$PACKAGE_STRING"
2850 _ACEOF
2851
2852 cat >>confdefs.h <<_ACEOF
2853 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2854 _ACEOF
2855
2856 cat >>confdefs.h <<_ACEOF
2857 #define PACKAGE_URL "$PACKAGE_URL"
2858 _ACEOF
2859
2860
2861 # Let the site file select an alternate cache file if it wants to.
2862 # Prefer an explicitly selected file to automatically selected ones.
2863 ac_site_file1=NONE
2864 ac_site_file2=NONE
2865 if test -n "$CONFIG_SITE"; then
2866   ac_site_file1=$CONFIG_SITE
2867 elif test "x$prefix" != xNONE; then
2868   ac_site_file1=$prefix/share/config.site
2869   ac_site_file2=$prefix/etc/config.site
2870 else
2871   ac_site_file1=$ac_default_prefix/share/config.site
2872   ac_site_file2=$ac_default_prefix/etc/config.site
2873 fi
2874 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2875 do
2876   test "x$ac_site_file" = xNONE && continue
2877   if test -r "$ac_site_file"; then
2878     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2879 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2880     sed 's/^/| /' "$ac_site_file" >&5
2881     . "$ac_site_file"
2882   fi
2883 done
2884
2885 if test -r "$cache_file"; then
2886   # Some versions of bash will fail to source /dev/null (special
2887   # files actually), so we avoid doing that.
2888   if test -f "$cache_file"; then
2889     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2890 $as_echo "$as_me: loading cache $cache_file" >&6;}
2891     case $cache_file in
2892       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2893       *)                      . "./$cache_file";;
2894     esac
2895   fi
2896 else
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2898 $as_echo "$as_me: creating cache $cache_file" >&6;}
2899   >$cache_file
2900 fi
2901
2902 # Check that the precious variables saved in the cache have kept the same
2903 # value.
2904 ac_cache_corrupted=false
2905 for ac_var in $ac_precious_vars; do
2906   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2907   eval ac_new_set=\$ac_env_${ac_var}_set
2908   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2909   eval ac_new_val=\$ac_env_${ac_var}_value
2910   case $ac_old_set,$ac_new_set in
2911     set,)
2912       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2913 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2914       ac_cache_corrupted=: ;;
2915     ,set)
2916       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2917 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2918       ac_cache_corrupted=: ;;
2919     ,);;
2920     *)
2921       if test "x$ac_old_val" != "x$ac_new_val"; then
2922         # differences in whitespace do not lead to failure.
2923         ac_old_val_w=`echo x $ac_old_val`
2924         ac_new_val_w=`echo x $ac_new_val`
2925         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2926           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2927 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2928           ac_cache_corrupted=:
2929         else
2930           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2931 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2932           eval $ac_var=\$ac_old_val
2933         fi
2934         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2935 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2936         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2937 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2938       fi;;
2939   esac
2940   # Pass precious variables to config.status.
2941   if test "$ac_new_set" = set; then
2942     case $ac_new_val in
2943     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2944     *) ac_arg=$ac_var=$ac_new_val ;;
2945     esac
2946     case " $ac_configure_args " in
2947       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2948       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2949     esac
2950   fi
2951 done
2952 if $ac_cache_corrupted; then
2953   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2955   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2956 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2957   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2958 fi
2959 ## -------------------- ##
2960 ## Main body of script. ##
2961 ## -------------------- ##
2962
2963 ac_ext=c
2964 ac_cpp='$CPP $CPPFLAGS'
2965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2968
2969
2970
2971
2972
2973
2974 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2975
2976
2977 gcc_version=`cat $srcdir/BASE-VER`
2978
2979 # Determine the host, build, and target systems
2980 ac_aux_dir=
2981 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2982   for ac_t in install-sh install.sh shtool; do
2983     if test -f "$ac_dir/$ac_t"; then
2984       ac_aux_dir=$ac_dir
2985       ac_install_sh="$ac_aux_dir/$ac_t -c"
2986       break 2
2987     fi
2988   done
2989 done
2990 if test -z "$ac_aux_dir"; then
2991   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2992 fi
2993
2994 # These three variables are undocumented and unsupported,
2995 # and are intended to be withdrawn in a future Autoconf release.
2996 # They can cause serious problems if a builder's source tree is in a directory
2997 # whose full name contains unusual characters.
2998 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2999 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3000 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3001
3002
3003 # Make sure we can run config.sub.
3004 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3005   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3006
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3008 $as_echo_n "checking build system type... " >&6; }
3009 if test "${ac_cv_build+set}" = set; then :
3010   $as_echo_n "(cached) " >&6
3011 else
3012   ac_build_alias=$build_alias
3013 test "x$ac_build_alias" = x &&
3014   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3015 test "x$ac_build_alias" = x &&
3016   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3017 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3018   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3019
3020 fi
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3022 $as_echo "$ac_cv_build" >&6; }
3023 case $ac_cv_build in
3024 *-*-*) ;;
3025 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3026 esac
3027 build=$ac_cv_build
3028 ac_save_IFS=$IFS; IFS='-'
3029 set x $ac_cv_build
3030 shift
3031 build_cpu=$1
3032 build_vendor=$2
3033 shift; shift
3034 # Remember, the first character of IFS is used to create $*,
3035 # except with old shells:
3036 build_os=$*
3037 IFS=$ac_save_IFS
3038 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3039
3040
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3042 $as_echo_n "checking host system type... " >&6; }
3043 if test "${ac_cv_host+set}" = set; then :
3044   $as_echo_n "(cached) " >&6
3045 else
3046   if test "x$host_alias" = x; then
3047   ac_cv_host=$ac_cv_build
3048 else
3049   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3050     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3051 fi
3052
3053 fi
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3055 $as_echo "$ac_cv_host" >&6; }
3056 case $ac_cv_host in
3057 *-*-*) ;;
3058 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3059 esac
3060 host=$ac_cv_host
3061 ac_save_IFS=$IFS; IFS='-'
3062 set x $ac_cv_host
3063 shift
3064 host_cpu=$1
3065 host_vendor=$2
3066 shift; shift
3067 # Remember, the first character of IFS is used to create $*,
3068 # except with old shells:
3069 host_os=$*
3070 IFS=$ac_save_IFS
3071 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3072
3073
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3075 $as_echo_n "checking target system type... " >&6; }
3076 if test "${ac_cv_target+set}" = set; then :
3077   $as_echo_n "(cached) " >&6
3078 else
3079   if test "x$target_alias" = x; then
3080   ac_cv_target=$ac_cv_host
3081 else
3082   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3083     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3084 fi
3085
3086 fi
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3088 $as_echo "$ac_cv_target" >&6; }
3089 case $ac_cv_target in
3090 *-*-*) ;;
3091 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3092 esac
3093 target=$ac_cv_target
3094 ac_save_IFS=$IFS; IFS='-'
3095 set x $ac_cv_target
3096 shift
3097 target_cpu=$1
3098 target_vendor=$2
3099 shift; shift
3100 # Remember, the first character of IFS is used to create $*,
3101 # except with old shells:
3102 target_os=$*
3103 IFS=$ac_save_IFS
3104 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3105
3106
3107 # The aliases save the names the user supplied, while $host etc.
3108 # will get canonicalized.
3109 test -n "$target_alias" &&
3110   test "$program_prefix$program_suffix$program_transform_name" = \
3111     NONENONEs,x,x, &&
3112   program_prefix=${target_alias}-
3113
3114 # Determine the noncanonical target name, for directory use.
3115  case ${build_alias} in
3116   "") build_noncanonical=${build} ;;
3117   *) build_noncanonical=${build_alias} ;;
3118 esac
3119
3120  case ${host_alias} in
3121   "") host_noncanonical=${build_noncanonical} ;;
3122   *) host_noncanonical=${host_alias} ;;
3123 esac
3124
3125  case ${target_alias} in
3126   "") target_noncanonical=${host_noncanonical} ;;
3127   *) target_noncanonical=${target_alias} ;;
3128 esac
3129
3130
3131
3132
3133 # Determine the target- and build-specific subdirectories
3134
3135 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3136 # have matching libraries, they should use host libraries: Makefile.tpl
3137 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3138 # However, they still use the build modules, because the corresponding
3139 # host modules (e.g. bison) are only built for the host when bootstrap
3140 # finishes. So:
3141 # - build_subdir is where we find build modules, and never changes.
3142 # - build_libsubdir is where we find build libraries, and can be overridden.
3143
3144 # Prefix 'build-' so this never conflicts with target_subdir.
3145 build_subdir="build-${build_noncanonical}"
3146
3147 # Check whether --with-build-libsubdir was given.
3148 if test "${with_build_libsubdir+set}" = set; then :
3149   withval=$with_build_libsubdir; build_libsubdir="$withval"
3150 else
3151   build_libsubdir="$build_subdir"
3152 fi
3153
3154 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3155 if ( test $srcdir = . && test -d gcc ) \
3156    || test -d $srcdir/../host-${host_noncanonical}; then
3157   host_subdir="host-${host_noncanonical}"
3158 else
3159   host_subdir=.
3160 fi
3161 # No prefix.
3162 target_subdir=${target_noncanonical}
3163
3164
3165 # Set program_transform_name
3166 test "$program_prefix" != NONE &&
3167   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3168 # Use a double $ so make ignores it.
3169 test "$program_suffix" != NONE &&
3170   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3171 # Double any \ or $.
3172 # By default was `s,x,x', remove it if useless.
3173 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3174 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3175
3176
3177 # Check for bogus environment variables.
3178 # Test if LIBRARY_PATH contains the notation for the current directory
3179 # since this would lead to problems installing/building glibc.
3180 # LIBRARY_PATH contains the current directory if one of the following
3181 # is true:
3182 # - one of the terminals (":" and ";") is the first or last sign
3183 # - two terminals occur directly after each other
3184 # - the path contains an element with a dot in it
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3186 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3187 case ${LIBRARY_PATH} in
3188   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3189     library_path_setting="contains current directory"
3190     ;;
3191   *)
3192     library_path_setting="ok"
3193     ;;
3194 esac
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3196 $as_echo "$library_path_setting" >&6; }
3197 if test "$library_path_setting" != "ok"; then
3198 as_fn_error "
3199 *** LIBRARY_PATH shouldn't contain the current directory when
3200 *** building gcc. Please change the environment variable
3201 *** and run configure again." "$LINENO" 5
3202 fi
3203
3204 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3205 # since this would lead to problems installing/building glibc.
3206 # GCC_EXEC_PREFIX contains the current directory if one of the following
3207 # is true:
3208 # - one of the terminals (":" and ";") is the first or last sign
3209 # - two terminals occur directly after each other
3210 # - the path contains an element with a dot in it
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3212 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3213 case ${GCC_EXEC_PREFIX} in
3214   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3215     gcc_exec_prefix_setting="contains current directory"
3216     ;;
3217   *)
3218     gcc_exec_prefix_setting="ok"
3219     ;;
3220 esac
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3222 $as_echo "$gcc_exec_prefix_setting" >&6; }
3223 if test "$gcc_exec_prefix_setting" != "ok"; then
3224 as_fn_error "
3225 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3226 *** building gcc. Please change the environment variable
3227 *** and run configure again." "$LINENO" 5
3228 fi
3229
3230 # -----------
3231 # Directories
3232 # -----------
3233
3234 # Specify the local prefix
3235 local_prefix=
3236
3237 # Check whether --with-local-prefix was given.
3238 if test "${with_local_prefix+set}" = set; then :
3239   withval=$with_local_prefix; case "${withval}" in
3240 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3241 no)     ;;
3242 *)      local_prefix=$with_local_prefix ;;
3243 esac
3244 fi
3245
3246
3247 # Default local prefix if it is empty
3248 if test x$local_prefix = x; then
3249         local_prefix=/usr/local
3250 fi
3251
3252 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3253 # passed in by the toplevel make and thus we'd get different behavior
3254 # depending on where we built the sources.
3255 gcc_gxx_include_dir=
3256 # Specify the g++ header file directory
3257
3258 # Check whether --with-gxx-include-dir was given.
3259 if test "${with_gxx_include_dir+set}" = set; then :
3260   withval=$with_gxx_include_dir; case "${withval}" in
3261 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3262 no)     ;;
3263 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3264 esac
3265 fi
3266
3267
3268 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3269 if test x${gcc_gxx_include_dir} = x; then
3270   if test x${enable_version_specific_runtime_libs} = xyes; then
3271     gcc_gxx_include_dir='${libsubdir}/include/c++'
3272   else
3273     libstdcxx_incdir='include/c++/$(version)'
3274     if test x$host != x$target; then
3275        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3276     fi
3277     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3278   fi
3279 fi
3280
3281
3282 # Check whether --with-cpp_install_dir was given.
3283 if test "${with_cpp_install_dir+set}" = set; then :
3284   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3285   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3286 elif test x$withval != xno; then
3287   cpp_install_dir=$withval
3288 fi
3289 fi
3290
3291
3292 # We would like to our source tree to be readonly.  However when releases or
3293 # pre-releases are generated, the flex/bison generated files as well as the
3294 # various formats of manuals need to be included along with the rest of the
3295 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3296 # just that.
3297
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3299 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3300     # Check whether --enable-generated-files-in-srcdir was given.
3301 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3302   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3303 else
3304   generated_files_in_srcdir=no
3305 fi
3306
3307
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3309 $as_echo "$generated_files_in_srcdir" >&6; }
3310
3311 if test "$generated_files_in_srcdir" = "yes"; then
3312   GENINSRC=''
3313 else
3314   GENINSRC='#'
3315 fi
3316
3317
3318 # -------------------
3319 # Find default linker
3320 # -------------------
3321
3322 # With GNU ld
3323
3324 # Check whether --with-gnu-ld was given.
3325 if test "${with_gnu_ld+set}" = set; then :
3326   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3327 else
3328   gnu_ld_flag=no
3329 fi
3330
3331
3332 # With pre-defined ld
3333
3334 # Check whether --with-ld was given.
3335 if test "${with_ld+set}" = set; then :
3336   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3337 fi
3338
3339 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3340   if test ! -x "$DEFAULT_LINKER"; then
3341     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3342   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3343     gnu_ld_flag=yes
3344   fi
3345
3346 cat >>confdefs.h <<_ACEOF
3347 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3348 _ACEOF
3349
3350 fi
3351
3352 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3353
3354 cat >>confdefs.h <<_ACEOF
3355 #define HAVE_GNU_LD $gnu_ld
3356 _ACEOF
3357
3358
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3360 $as_echo_n "checking whether a default linker was specified... " >&6; }
3361 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3362   if test x"$gnu_ld_flag" = x"no"; then
3363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3364 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3365   else
3366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3367 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3368   fi
3369 else
3370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3372 fi
3373
3374 # With demangler in GNU ld
3375
3376 # Check whether --with-demangler-in-ld was given.
3377 if test "${with_demangler_in_ld+set}" = set; then :
3378   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3379 else
3380   demangler_in_ld=no
3381 fi
3382
3383
3384 # ----------------------
3385 # Find default assembler
3386 # ----------------------
3387
3388 # With GNU as
3389
3390 # Check whether --with-gnu-as was given.
3391 if test "${with_gnu_as+set}" = set; then :
3392   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3393 else
3394   gas_flag=no
3395 fi
3396
3397
3398
3399 # Check whether --with-as was given.
3400 if test "${with_as+set}" = set; then :
3401   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3402 fi
3403
3404 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3405   if test ! -x "$DEFAULT_ASSEMBLER"; then
3406     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3407   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3408     gas_flag=yes
3409   fi
3410
3411 cat >>confdefs.h <<_ACEOF
3412 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3413 _ACEOF
3414
3415 fi
3416
3417 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3418
3419 cat >>confdefs.h <<_ACEOF
3420 #define HAVE_GNU_AS $gnu_as
3421 _ACEOF
3422
3423
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3425 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3426 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3427   if test x"$gas_flag" = x"no"; then
3428     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3429 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3430   else
3431     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3432 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3433   fi
3434 else
3435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3437 fi
3438
3439 # ---------------
3440 # Find C compiler
3441 # ---------------
3442
3443 # If a non-executable a.out is present (e.g. created by GNU as above even if
3444 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3445 # file, even when creating an executable, so an execution test fails.
3446 # Remove possible default executable files to avoid this.
3447 #
3448 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3449 # Autoconf includes it.
3450 rm -f a.out a.exe b.out
3451
3452 # Find the native compiler
3453 ac_ext=c
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458 if test -n "$ac_tool_prefix"; then
3459   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3460 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if test "${ac_cv_prog_CC+set}" = set; then :
3464   $as_echo_n "(cached) " >&6
3465 else
3466   if test -n "$CC"; then
3467   ac_cv_prog_CC="$CC" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472   IFS=$as_save_IFS
3473   test -z "$as_dir" && as_dir=.
3474     for ac_exec_ext in '' $ac_executable_extensions; do
3475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478     break 2
3479   fi
3480 done
3481   done
3482 IFS=$as_save_IFS
3483
3484 fi
3485 fi
3486 CC=$ac_cv_prog_CC
3487 if test -n "$CC"; then
3488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3490 else
3491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3493 fi
3494
3495
3496 fi
3497 if test -z "$ac_cv_prog_CC"; then
3498   ac_ct_CC=$CC
3499   # Extract the first word of "gcc", so it can be a program name with args.
3500 set dummy gcc; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3504   $as_echo_n "(cached) " >&6
3505 else
3506   if test -n "$ac_ct_CC"; then
3507   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3511 do
3512   IFS=$as_save_IFS
3513   test -z "$as_dir" && as_dir=.
3514     for ac_exec_ext in '' $ac_executable_extensions; do
3515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3516     ac_cv_prog_ac_ct_CC="gcc"
3517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518     break 2
3519   fi
3520 done
3521   done
3522 IFS=$as_save_IFS
3523
3524 fi
3525 fi
3526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3527 if test -n "$ac_ct_CC"; then
3528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529 $as_echo "$ac_ct_CC" >&6; }
3530 else
3531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3533 fi
3534
3535   if test "x$ac_ct_CC" = x; then
3536     CC=""
3537   else
3538     case $cross_compiling:$ac_tool_warned in
3539 yes:)
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542 ac_tool_warned=yes ;;
3543 esac
3544     CC=$ac_ct_CC
3545   fi
3546 else
3547   CC="$ac_cv_prog_CC"
3548 fi
3549
3550 if test -z "$CC"; then
3551           if test -n "$ac_tool_prefix"; then
3552     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3553 set dummy ${ac_tool_prefix}cc; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if test "${ac_cv_prog_CC+set}" = set; then :
3557   $as_echo_n "(cached) " >&6
3558 else
3559   if test -n "$CC"; then
3560   ac_cv_prog_CC="$CC" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3564 do
3565   IFS=$as_save_IFS
3566   test -z "$as_dir" && as_dir=.
3567     for ac_exec_ext in '' $ac_executable_extensions; do
3568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569     ac_cv_prog_CC="${ac_tool_prefix}cc"
3570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571     break 2
3572   fi
3573 done
3574   done
3575 IFS=$as_save_IFS
3576
3577 fi
3578 fi
3579 CC=$ac_cv_prog_CC
3580 if test -n "$CC"; then
3581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582 $as_echo "$CC" >&6; }
3583 else
3584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3586 fi
3587
3588
3589   fi
3590 fi
3591 if test -z "$CC"; then
3592   # Extract the first word of "cc", so it can be a program name with args.
3593 set dummy cc; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if test "${ac_cv_prog_CC+set}" = set; then :
3597   $as_echo_n "(cached) " >&6
3598 else
3599   if test -n "$CC"; then
3600   ac_cv_prog_CC="$CC" # Let the user override the test.
3601 else
3602   ac_prog_rejected=no
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3605 do
3606   IFS=$as_save_IFS
3607   test -z "$as_dir" && as_dir=.
3608     for ac_exec_ext in '' $ac_executable_extensions; do
3609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3610     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3611        ac_prog_rejected=yes
3612        continue
3613      fi
3614     ac_cv_prog_CC="cc"
3615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616     break 2
3617   fi
3618 done
3619   done
3620 IFS=$as_save_IFS
3621
3622 if test $ac_prog_rejected = yes; then
3623   # We found a bogon in the path, so make sure we never use it.
3624   set dummy $ac_cv_prog_CC
3625   shift
3626   if test $# != 0; then
3627     # We chose a different compiler from the bogus one.
3628     # However, it has the same basename, so the bogon will be chosen
3629     # first if we set CC to just the basename; use the full file name.
3630     shift
3631     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3632   fi
3633 fi
3634 fi
3635 fi
3636 CC=$ac_cv_prog_CC
3637 if test -n "$CC"; then
3638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3639 $as_echo "$CC" >&6; }
3640 else
3641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3643 fi
3644
3645
3646 fi
3647 if test -z "$CC"; then
3648   if test -n "$ac_tool_prefix"; then
3649   for ac_prog in cl.exe
3650   do
3651     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if test "${ac_cv_prog_CC+set}" = set; then :
3656   $as_echo_n "(cached) " >&6
3657 else
3658   if test -n "$CC"; then
3659   ac_cv_prog_CC="$CC" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664   IFS=$as_save_IFS
3665   test -z "$as_dir" && as_dir=.
3666     for ac_exec_ext in '' $ac_executable_extensions; do
3667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3668     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670     break 2
3671   fi
3672 done
3673   done
3674 IFS=$as_save_IFS
3675
3676 fi
3677 fi
3678 CC=$ac_cv_prog_CC
3679 if test -n "$CC"; then
3680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 $as_echo "$CC" >&6; }
3682 else
3683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3685 fi
3686
3687
3688     test -n "$CC" && break
3689   done
3690 fi
3691 if test -z "$CC"; then
3692   ac_ct_CC=$CC
3693   for ac_prog in cl.exe
3694 do
3695   # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3700   $as_echo_n "(cached) " >&6
3701 else
3702   if test -n "$ac_ct_CC"; then
3703   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708   IFS=$as_save_IFS
3709   test -z "$as_dir" && as_dir=.
3710     for ac_exec_ext in '' $ac_executable_extensions; do
3711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712     ac_cv_prog_ac_ct_CC="$ac_prog"
3713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714     break 2
3715   fi
3716 done
3717   done
3718 IFS=$as_save_IFS
3719
3720 fi
3721 fi
3722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3723 if test -n "$ac_ct_CC"; then
3724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3725 $as_echo "$ac_ct_CC" >&6; }
3726 else
3727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3729 fi
3730
3731
3732   test -n "$ac_ct_CC" && break
3733 done
3734
3735   if test "x$ac_ct_CC" = x; then
3736     CC=""
3737   else
3738     case $cross_compiling:$ac_tool_warned in
3739 yes:)
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3742 ac_tool_warned=yes ;;
3743 esac
3744     CC=$ac_ct_CC
3745   fi
3746 fi
3747
3748 fi
3749
3750
3751 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error "no acceptable C compiler found in \$PATH
3754 See \`config.log' for more details." "$LINENO" 5; }
3755
3756 # Provide some information about the compiler.
3757 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3758 set X $ac_compile
3759 ac_compiler=$2
3760 for ac_option in --version -v -V -qversion; do
3761   { { ac_try="$ac_compiler $ac_option >&5"
3762 case "(($ac_try" in
3763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764   *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3769   ac_status=$?
3770   if test -s conftest.err; then
3771     sed '10a\
3772 ... rest of stderr output deleted ...
3773          10q' conftest.err >conftest.er1
3774     cat conftest.er1 >&5
3775     rm -f conftest.er1 conftest.err
3776   fi
3777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778   test $ac_status = 0; }
3779 done
3780
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h.  */
3783
3784 int
3785 main ()
3786 {
3787
3788   ;
3789   return 0;
3790 }
3791 _ACEOF
3792 ac_clean_files_save=$ac_clean_files
3793 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3794 # Try to create an executable without -o first, disregard a.out.
3795 # It will help us diagnose broken compilers, and finding out an intuition
3796 # of exeext.
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3798 $as_echo_n "checking for C compiler default output file name... " >&6; }
3799 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3800
3801 # The possible output files:
3802 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3803
3804 ac_rmfiles=
3805 for ac_file in $ac_files
3806 do
3807   case $ac_file in
3808     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3809     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3810   esac
3811 done
3812 rm -f $ac_rmfiles
3813
3814 if { { ac_try="$ac_link_default"
3815 case "(($ac_try" in
3816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817   *) ac_try_echo=$ac_try;;
3818 esac
3819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821   (eval "$ac_link_default") 2>&5
3822   ac_status=$?
3823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824   test $ac_status = 0; }; then :
3825   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3826 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3827 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3828 # so that the user can short-circuit this test for compilers unknown to
3829 # Autoconf.
3830 for ac_file in $ac_files ''
3831 do
3832   test -f "$ac_file" || continue
3833   case $ac_file in
3834     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3835         ;;
3836     [ab].out )
3837         # We found the default executable, but exeext='' is most
3838         # certainly right.
3839         break;;
3840     *.* )
3841         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3842         then :; else
3843            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3844         fi
3845         # We set ac_cv_exeext here because the later test for it is not
3846         # safe: cross compilers may not add the suffix if given an `-o'
3847         # argument, so we may need to know it at that point already.
3848         # Even if this section looks crufty: it has the advantage of
3849         # actually working.
3850         break;;
3851     * )
3852         break;;
3853   esac
3854 done
3855 test "$ac_cv_exeext" = no && ac_cv_exeext=
3856
3857 else
3858   ac_file=''
3859 fi
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3861 $as_echo "$ac_file" >&6; }
3862 if test -z "$ac_file"; then :
3863   $as_echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3865
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 { as_fn_set_status 77
3869 as_fn_error "C compiler cannot create executables
3870 See \`config.log' for more details." "$LINENO" 5; }; }
3871 fi
3872 ac_exeext=$ac_cv_exeext
3873
3874 # Check that the compiler produces executables we can run.  If not, either
3875 # the compiler is broken, or we cross compile.
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3877 $as_echo_n "checking whether the C compiler works... " >&6; }
3878 # If not cross compiling, check that we can run a simple program.
3879 if test "$cross_compiling" != yes; then
3880   if { ac_try='./$ac_file'
3881   { { case "(($ac_try" in
3882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883   *) ac_try_echo=$ac_try;;
3884 esac
3885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886 $as_echo "$ac_try_echo"; } >&5
3887   (eval "$ac_try") 2>&5
3888   ac_status=$?
3889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890   test $ac_status = 0; }; }; then
3891     cross_compiling=no
3892   else
3893     if test "$cross_compiling" = maybe; then
3894         cross_compiling=yes
3895     else
3896         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3898 as_fn_error "cannot run C compiled programs.
3899 If you meant to cross compile, use \`--host'.
3900 See \`config.log' for more details." "$LINENO" 5; }
3901     fi
3902   fi
3903 fi
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3905 $as_echo "yes" >&6; }
3906
3907 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3908 ac_clean_files=$ac_clean_files_save
3909 # Check that the compiler produces executables we can run.  If not, either
3910 # the compiler is broken, or we cross compile.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3912 $as_echo_n "checking whether we are cross compiling... " >&6; }
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3914 $as_echo "$cross_compiling" >&6; }
3915
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3917 $as_echo_n "checking for suffix of executables... " >&6; }
3918 if { { ac_try="$ac_link"
3919 case "(($ac_try" in
3920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921   *) ac_try_echo=$ac_try;;
3922 esac
3923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924 $as_echo "$ac_try_echo"; } >&5
3925   (eval "$ac_link") 2>&5
3926   ac_status=$?
3927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3928   test $ac_status = 0; }; then :
3929   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3930 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3931 # work properly (i.e., refer to `conftest.exe'), while it won't with
3932 # `rm'.
3933 for ac_file in conftest.exe conftest conftest.*; do
3934   test -f "$ac_file" || continue
3935   case $ac_file in
3936     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3937     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3938           break;;
3939     * ) break;;
3940   esac
3941 done
3942 else
3943   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3945 as_fn_error "cannot compute suffix of executables: cannot compile and link
3946 See \`config.log' for more details." "$LINENO" 5; }
3947 fi
3948 rm -f conftest$ac_cv_exeext
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3950 $as_echo "$ac_cv_exeext" >&6; }
3951
3952 rm -f conftest.$ac_ext
3953 EXEEXT=$ac_cv_exeext
3954 ac_exeext=$EXEEXT
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3956 $as_echo_n "checking for suffix of object files... " >&6; }
3957 if test "${ac_cv_objext+set}" = set; then :
3958   $as_echo_n "(cached) " >&6
3959 else
3960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h.  */
3962
3963 int
3964 main ()
3965 {
3966
3967   ;
3968   return 0;
3969 }
3970 _ACEOF
3971 rm -f conftest.o conftest.obj
3972 if { { ac_try="$ac_compile"
3973 case "(($ac_try" in
3974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975   *) ac_try_echo=$ac_try;;
3976 esac
3977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3978 $as_echo "$ac_try_echo"; } >&5
3979   (eval "$ac_compile") 2>&5
3980   ac_status=$?
3981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3982   test $ac_status = 0; }; then :
3983   for ac_file in conftest.o conftest.obj conftest.*; do
3984   test -f "$ac_file" || continue;
3985   case $ac_file in
3986     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3987     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3988        break;;
3989   esac
3990 done
3991 else
3992   $as_echo "$as_me: failed program was:" >&5
3993 sed 's/^/| /' conftest.$ac_ext >&5
3994
3995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3997 as_fn_error "cannot compute suffix of object files: cannot compile
3998 See \`config.log' for more details." "$LINENO" 5; }
3999 fi
4000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4001 fi
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4003 $as_echo "$ac_cv_objext" >&6; }
4004 OBJEXT=$ac_cv_objext
4005 ac_objext=$OBJEXT
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4007 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4008 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4009   $as_echo_n "(cached) " >&6
4010 else
4011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h.  */
4013
4014 int
4015 main ()
4016 {
4017 #ifndef __GNUC__
4018        choke me
4019 #endif
4020
4021   ;
4022   return 0;
4023 }
4024 _ACEOF
4025 if ac_fn_c_try_compile "$LINENO"; then :
4026   ac_compiler_gnu=yes
4027 else
4028   ac_compiler_gnu=no
4029 fi
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4032
4033 fi
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4035 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4036 if test $ac_compiler_gnu = yes; then
4037   GCC=yes
4038 else
4039   GCC=
4040 fi
4041 ac_test_CFLAGS=${CFLAGS+set}
4042 ac_save_CFLAGS=$CFLAGS
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4044 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4045 if test "${ac_cv_prog_cc_g+set}" = set; then :
4046   $as_echo_n "(cached) " >&6
4047 else
4048   ac_save_c_werror_flag=$ac_c_werror_flag
4049    ac_c_werror_flag=yes
4050    ac_cv_prog_cc_g=no
4051    CFLAGS="-g"
4052    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h.  */
4054
4055 int
4056 main ()
4057 {
4058
4059   ;
4060   return 0;
4061 }
4062 _ACEOF
4063 if ac_fn_c_try_compile "$LINENO"; then :
4064   ac_cv_prog_cc_g=yes
4065 else
4066   CFLAGS=""
4067       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h.  */
4069
4070 int
4071 main ()
4072 {
4073
4074   ;
4075   return 0;
4076 }
4077 _ACEOF
4078 if ac_fn_c_try_compile "$LINENO"; then :
4079
4080 else
4081   ac_c_werror_flag=$ac_save_c_werror_flag
4082          CFLAGS="-g"
4083          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h.  */
4085
4086 int
4087 main ()
4088 {
4089
4090   ;
4091   return 0;
4092 }
4093 _ACEOF
4094 if ac_fn_c_try_compile "$LINENO"; then :
4095   ac_cv_prog_cc_g=yes
4096 fi
4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098 fi
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 fi
4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102    ac_c_werror_flag=$ac_save_c_werror_flag
4103 fi
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4105 $as_echo "$ac_cv_prog_cc_g" >&6; }
4106 if test "$ac_test_CFLAGS" = set; then
4107   CFLAGS=$ac_save_CFLAGS
4108 elif test $ac_cv_prog_cc_g = yes; then
4109   if test "$GCC" = yes; then
4110     CFLAGS="-g -O2"
4111   else
4112     CFLAGS="-g"
4113   fi
4114 else
4115   if test "$GCC" = yes; then
4116     CFLAGS="-O2"
4117   else
4118     CFLAGS=
4119   fi
4120 fi
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4122 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4123 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4124   $as_echo_n "(cached) " >&6
4125 else
4126   ac_cv_prog_cc_c89=no
4127 ac_save_CC=$CC
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h.  */
4130 #include <stdarg.h>
4131 #include <stdio.h>
4132 #include <sys/types.h>
4133 #include <sys/stat.h>
4134 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4135 struct buf { int x; };
4136 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4137 static char *e (p, i)
4138      char **p;
4139      int i;
4140 {
4141   return p[i];
4142 }
4143 static char *f (char * (*g) (char **, int), char **p, ...)
4144 {
4145   char *s;
4146   va_list v;
4147   va_start (v,p);
4148   s = g (p, va_arg (v,int));
4149   va_end (v);
4150   return s;
4151 }
4152
4153 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4154    function prototypes and stuff, but not '\xHH' hex character constants.
4155    These don't provoke an error unfortunately, instead are silently treated
4156    as 'x'.  The following induces an error, until -std is added to get
4157    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4158    array size at least.  It's necessary to write '\x00'==0 to get something
4159    that's true only with -std.  */
4160 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4161
4162 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4163    inside strings and character constants.  */
4164 #define FOO(x) 'x'
4165 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4166
4167 int test (int i, double x);
4168 struct s1 {int (*f) (int a);};
4169 struct s2 {int (*f) (double a);};
4170 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4171 int argc;
4172 char **argv;
4173 int
4174 main ()
4175 {
4176 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4177   ;
4178   return 0;
4179 }
4180 _ACEOF
4181 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4182         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4183 do
4184   CC="$ac_save_CC $ac_arg"
4185   if ac_fn_c_try_compile "$LINENO"; then :
4186   ac_cv_prog_cc_c89=$ac_arg
4187 fi
4188 rm -f core conftest.err conftest.$ac_objext
4189   test "x$ac_cv_prog_cc_c89" != "xno" && break
4190 done
4191 rm -f conftest.$ac_ext
4192 CC=$ac_save_CC
4193
4194 fi
4195 # AC_CACHE_VAL
4196 case "x$ac_cv_prog_cc_c89" in
4197   x)
4198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4199 $as_echo "none needed" >&6; } ;;
4200   xno)
4201     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4202 $as_echo "unsupported" >&6; } ;;
4203   *)
4204     CC="$CC $ac_cv_prog_cc_c89"
4205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4206 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4207 esac
4208 if test "x$ac_cv_prog_cc_c89" != xno; then :
4209
4210 fi
4211
4212 ac_ext=c
4213 ac_cpp='$CPP $CPPFLAGS'
4214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217
4218 if test "x$CC" != xcc; then
4219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4220 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4221 else
4222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4223 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4224 fi
4225 set dummy $CC; ac_cc=`$as_echo "$2" |
4226                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4227 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4228   $as_echo_n "(cached) " >&6
4229 else
4230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h.  */
4232
4233 int
4234 main ()
4235 {
4236
4237   ;
4238   return 0;
4239 }
4240 _ACEOF
4241 # Make sure it works both with $CC and with simple cc.
4242 # We do the test twice because some compilers refuse to overwrite an
4243 # existing .o file with -o, though they will create one.
4244 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4245 rm -f conftest2.*
4246 if { { case "(($ac_try" in
4247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248   *) ac_try_echo=$ac_try;;
4249 esac
4250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4251 $as_echo "$ac_try_echo"; } >&5
4252   (eval "$ac_try") 2>&5
4253   ac_status=$?
4254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4255   test $ac_status = 0; } &&
4256    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258   *) ac_try_echo=$ac_try;;
4259 esac
4260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261 $as_echo "$ac_try_echo"; } >&5
4262   (eval "$ac_try") 2>&5
4263   ac_status=$?
4264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265   test $ac_status = 0; };
4266 then
4267   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4268   if test "x$CC" != xcc; then
4269     # Test first that cc exists at all.
4270     if { ac_try='cc -c conftest.$ac_ext >&5'
4271   { { case "(($ac_try" in
4272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273   *) ac_try_echo=$ac_try;;
4274 esac
4275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4276 $as_echo "$ac_try_echo"; } >&5
4277   (eval "$ac_try") 2>&5
4278   ac_status=$?
4279   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4280   test $ac_status = 0; }; }; then
4281       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4282       rm -f conftest2.*
4283       if { { case "(($ac_try" in
4284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285   *) ac_try_echo=$ac_try;;
4286 esac
4287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4288 $as_echo "$ac_try_echo"; } >&5
4289   (eval "$ac_try") 2>&5
4290   ac_status=$?
4291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4292   test $ac_status = 0; } &&
4293          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295   *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299   (eval "$ac_try") 2>&5
4300   ac_status=$?
4301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302   test $ac_status = 0; };
4303       then
4304         # cc works too.
4305         :
4306       else
4307         # cc exists but doesn't like -o.
4308         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4309       fi
4310     fi
4311   fi
4312 else
4313   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4314 fi
4315 rm -f core conftest*
4316
4317 fi
4318 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4320 $as_echo "yes" >&6; }
4321 else
4322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323 $as_echo "no" >&6; }
4324
4325 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4326
4327 fi
4328
4329 # expand $ac_aux_dir to an absolute path
4330 am_aux_dir=`cd $ac_aux_dir && pwd`
4331
4332 # FIXME: we rely on the cache variable name because
4333 # there is no other way.
4334 set dummy $CC
4335 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4336 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4337 if test "$am_t" != yes; then
4338    # Losing compiler, so override with the script.
4339    # FIXME: It is wrong to rewrite CC.
4340    # But if we don't then we get into trouble of one sort or another.
4341    # A longer-term fix would be to have automake use am__CC in this case,
4342    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4343    CC="$am_aux_dir/compile $CC"
4344 fi
4345
4346
4347 ac_ext=cpp
4348 ac_cpp='$CXXCPP $CPPFLAGS'
4349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4352 if test -z "$CXX"; then
4353   if test -n "$CCC"; then
4354     CXX=$CCC
4355   else
4356     if test -n "$ac_tool_prefix"; then
4357   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4358   do
4359     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4360 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if test "${ac_cv_prog_CXX+set}" = set; then :
4364   $as_echo_n "(cached) " >&6
4365 else
4366   if test -n "$CXX"; then
4367   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372   IFS=$as_save_IFS
4373   test -z "$as_dir" && as_dir=.
4374     for ac_exec_ext in '' $ac_executable_extensions; do
4375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378     break 2
4379   fi
4380 done
4381   done
4382 IFS=$as_save_IFS
4383
4384 fi
4385 fi
4386 CXX=$ac_cv_prog_CXX
4387 if test -n "$CXX"; then
4388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4389 $as_echo "$CXX" >&6; }
4390 else
4391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4393 fi
4394
4395
4396     test -n "$CXX" && break
4397   done
4398 fi
4399 if test -z "$CXX"; then
4400   ac_ct_CXX=$CXX
4401   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4402 do
4403   # Extract the first word of "$ac_prog", so it can be a program name with args.
4404 set dummy $ac_prog; ac_word=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4408   $as_echo_n "(cached) " >&6
4409 else
4410   if test -n "$ac_ct_CXX"; then
4411   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4415 do
4416   IFS=$as_save_IFS
4417   test -z "$as_dir" && as_dir=.
4418     for ac_exec_ext in '' $ac_executable_extensions; do
4419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420     ac_cv_prog_ac_ct_CXX="$ac_prog"
4421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422     break 2
4423   fi
4424 done
4425   done
4426 IFS=$as_save_IFS
4427
4428 fi
4429 fi
4430 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4431 if test -n "$ac_ct_CXX"; then
4432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4433 $as_echo "$ac_ct_CXX" >&6; }
4434 else
4435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4437 fi
4438
4439
4440   test -n "$ac_ct_CXX" && break
4441 done
4442
4443   if test "x$ac_ct_CXX" = x; then
4444     CXX="g++"
4445   else
4446     case $cross_compiling:$ac_tool_warned in
4447 yes:)
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4450 ac_tool_warned=yes ;;
4451 esac
4452     CXX=$ac_ct_CXX
4453   fi
4454 fi
4455
4456   fi
4457 fi
4458 # Provide some information about the compiler.
4459 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4460 set X $ac_compile
4461 ac_compiler=$2
4462 for ac_option in --version -v -V -qversion; do
4463   { { ac_try="$ac_compiler $ac_option >&5"
4464 case "(($ac_try" in
4465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466   *) ac_try_echo=$ac_try;;
4467 esac
4468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4469 $as_echo "$ac_try_echo"; } >&5
4470   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4471   ac_status=$?
4472   if test -s conftest.err; then
4473     sed '10a\
4474 ... rest of stderr output deleted ...
4475          10q' conftest.err >conftest.er1
4476     cat conftest.er1 >&5
4477     rm -f conftest.er1 conftest.err
4478   fi
4479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4480   test $ac_status = 0; }
4481 done
4482
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4484 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4485 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4486   $as_echo_n "(cached) " >&6
4487 else
4488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h.  */
4490
4491 int
4492 main ()
4493 {
4494 #ifndef __GNUC__
4495        choke me
4496 #endif
4497
4498   ;
4499   return 0;
4500 }
4501 _ACEOF
4502 if ac_fn_cxx_try_compile "$LINENO"; then :
4503   ac_compiler_gnu=yes
4504 else
4505   ac_compiler_gnu=no
4506 fi
4507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4509
4510 fi
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4512 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4513 if test $ac_compiler_gnu = yes; then
4514   GXX=yes
4515 else
4516   GXX=
4517 fi
4518 ac_test_CXXFLAGS=${CXXFLAGS+set}
4519 ac_save_CXXFLAGS=$CXXFLAGS
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4521 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4522 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4523   $as_echo_n "(cached) " >&6
4524 else
4525   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4526    ac_cxx_werror_flag=yes
4527    ac_cv_prog_cxx_g=no
4528    CXXFLAGS="-g"
4529    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h.  */
4531
4532 int
4533 main ()
4534 {
4535
4536   ;
4537   return 0;
4538 }
4539 _ACEOF
4540 if ac_fn_cxx_try_compile "$LINENO"; then :
4541   ac_cv_prog_cxx_g=yes
4542 else
4543   CXXFLAGS=""
4544       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h.  */
4546
4547 int
4548 main ()
4549 {
4550
4551   ;
4552   return 0;
4553 }
4554 _ACEOF
4555 if ac_fn_cxx_try_compile "$LINENO"; then :
4556
4557 else
4558   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4559          CXXFLAGS="-g"
4560          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h.  */
4562
4563 int
4564 main ()
4565 {
4566
4567   ;
4568   return 0;
4569 }
4570 _ACEOF
4571 if ac_fn_cxx_try_compile "$LINENO"; then :
4572   ac_cv_prog_cxx_g=yes
4573 fi
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 fi
4576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577 fi
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4580 fi
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4582 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4583 if test "$ac_test_CXXFLAGS" = set; then
4584   CXXFLAGS=$ac_save_CXXFLAGS
4585 elif test $ac_cv_prog_cxx_g = yes; then
4586   if test "$GXX" = yes; then
4587     CXXFLAGS="-g -O2"
4588   else
4589     CXXFLAGS="-g"
4590   fi
4591 else
4592   if test "$GXX" = yes; then
4593     CXXFLAGS="-O2"
4594   else
4595     CXXFLAGS=
4596   fi
4597 fi
4598 ac_ext=c
4599 ac_cpp='$CPP $CPPFLAGS'
4600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4603
4604
4605
4606
4607 if test -n "$ac_tool_prefix"; then
4608   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4609 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4613   $as_echo_n "(cached) " >&6
4614 else
4615   if test -n "$GNATBIND"; then
4616   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4620 do
4621   IFS=$as_save_IFS
4622   test -z "$as_dir" && as_dir=.
4623     for ac_exec_ext in '' $ac_executable_extensions; do
4624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627     break 2
4628   fi
4629 done
4630   done
4631 IFS=$as_save_IFS
4632
4633 fi
4634 fi
4635 GNATBIND=$ac_cv_prog_GNATBIND
4636 if test -n "$GNATBIND"; then
4637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4638 $as_echo "$GNATBIND" >&6; }
4639 else
4640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4642 fi
4643
4644
4645 fi
4646 if test -z "$ac_cv_prog_GNATBIND"; then
4647   ac_ct_GNATBIND=$GNATBIND
4648   # Extract the first word of "gnatbind", so it can be a program name with args.
4649 set dummy gnatbind; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4653   $as_echo_n "(cached) " >&6
4654 else
4655   if test -n "$ac_ct_GNATBIND"; then
4656   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661   IFS=$as_save_IFS
4662   test -z "$as_dir" && as_dir=.
4663     for ac_exec_ext in '' $ac_executable_extensions; do
4664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667     break 2
4668   fi
4669 done
4670   done
4671 IFS=$as_save_IFS
4672
4673 fi
4674 fi
4675 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4676 if test -n "$ac_ct_GNATBIND"; then
4677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4678 $as_echo "$ac_ct_GNATBIND" >&6; }
4679 else
4680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4682 fi
4683
4684   if test "x$ac_ct_GNATBIND" = x; then
4685     GNATBIND="no"
4686   else
4687     case $cross_compiling:$ac_tool_warned in
4688 yes:)
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4691 ac_tool_warned=yes ;;
4692 esac
4693     GNATBIND=$ac_ct_GNATBIND
4694   fi
4695 else
4696   GNATBIND="$ac_cv_prog_GNATBIND"
4697 fi
4698
4699 if test -n "$ac_tool_prefix"; then
4700   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4701 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4705   $as_echo_n "(cached) " >&6
4706 else
4707   if test -n "$GNATMAKE"; then
4708   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4709 else
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4712 do
4713   IFS=$as_save_IFS
4714   test -z "$as_dir" && as_dir=.
4715     for ac_exec_ext in '' $ac_executable_extensions; do
4716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719     break 2
4720   fi
4721 done
4722   done
4723 IFS=$as_save_IFS
4724
4725 fi
4726 fi
4727 GNATMAKE=$ac_cv_prog_GNATMAKE
4728 if test -n "$GNATMAKE"; then
4729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4730 $as_echo "$GNATMAKE" >&6; }
4731 else
4732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4734 fi
4735
4736
4737 fi
4738 if test -z "$ac_cv_prog_GNATMAKE"; then
4739   ac_ct_GNATMAKE=$GNATMAKE
4740   # Extract the first word of "gnatmake", so it can be a program name with args.
4741 set dummy gnatmake; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4745   $as_echo_n "(cached) " >&6
4746 else
4747   if test -n "$ac_ct_GNATMAKE"; then
4748   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755     for ac_exec_ext in '' $ac_executable_extensions; do
4756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762   done
4763 IFS=$as_save_IFS
4764
4765 fi
4766 fi
4767 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4768 if test -n "$ac_ct_GNATMAKE"; then
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4770 $as_echo "$ac_ct_GNATMAKE" >&6; }
4771 else
4772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4774 fi
4775
4776   if test "x$ac_ct_GNATMAKE" = x; then
4777     GNATMAKE="no"
4778   else
4779     case $cross_compiling:$ac_tool_warned in
4780 yes:)
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4783 ac_tool_warned=yes ;;
4784 esac
4785     GNATMAKE=$ac_ct_GNATMAKE
4786   fi
4787 else
4788   GNATMAKE="$ac_cv_prog_GNATMAKE"
4789 fi
4790
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4792 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4793 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4794   $as_echo_n "(cached) " >&6
4795 else
4796   cat >conftest.adb <<EOF
4797 procedure conftest is begin null; end conftest;
4798 EOF
4799 acx_cv_cc_gcc_supports_ada=no
4800 # There is a bug in old released versions of GCC which causes the
4801 # driver to exit successfully when the appropriate language module
4802 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4803 # Therefore we must check for the error message as well as an
4804 # unsuccessful exit.
4805 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4806 # given a .adb file, but produce no object file.  So we must check
4807 # if an object file was really produced to guard against this.
4808 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4809 if test x"$errors" = x && test -f conftest.$ac_objext; then
4810   acx_cv_cc_gcc_supports_ada=yes
4811 fi
4812 rm -f conftest.*
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4815 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4816
4817 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4818   have_gnat=yes
4819 else
4820   have_gnat=no
4821 fi
4822
4823
4824 # autoconf is lame and doesn't give us any substitution variable for this.
4825 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4826   NO_MINUS_C_MINUS_O=yes
4827 else
4828   OUTPUT_OPTION='-o $@'
4829 fi
4830
4831
4832
4833 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4834 # optimizations to be activated explicitly by the toplevel.
4835 case "$CC" in
4836   */prev-gcc/xgcc*) ;;
4837   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4838 esac
4839
4840
4841 # -------------------------
4842 # Check C compiler features
4843 # -------------------------
4844
4845
4846 ac_ext=c
4847 ac_cpp='$CPP $CPPFLAGS'
4848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4852 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4853 # On Suns, sometimes $CPP names a directory.
4854 if test -n "$CPP" && test -d "$CPP"; then
4855   CPP=
4856 fi
4857 if test -z "$CPP"; then
4858   if test "${ac_cv_prog_CPP+set}" = set; then :
4859   $as_echo_n "(cached) " >&6
4860 else
4861       # Double quotes because CPP needs to be expanded
4862     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4863     do
4864       ac_preproc_ok=false
4865 for ac_c_preproc_warn_flag in '' yes
4866 do
4867   # Use a header file that comes with gcc, so configuring glibc
4868   # with a fresh cross-compiler works.
4869   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4870   # <limits.h> exists even on freestanding compilers.
4871   # On the NeXT, cc -E runs the code through the compiler's parser,
4872   # not just through cpp. "Syntax error" is here to catch this case.
4873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h.  */
4875 #ifdef __STDC__
4876 # include <limits.h>
4877 #else
4878 # include <assert.h>
4879 #endif
4880                      Syntax error
4881 _ACEOF
4882 if ac_fn_c_try_cpp "$LINENO"; then :
4883
4884 else
4885   # Broken: fails on valid input.
4886 continue
4887 fi
4888 rm -f conftest.err conftest.$ac_ext
4889
4890   # OK, works on sane cases.  Now check whether nonexistent headers
4891   # can be detected and how.
4892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h.  */
4894 #include <ac_nonexistent.h>
4895 _ACEOF
4896 if ac_fn_c_try_cpp "$LINENO"; then :
4897   # Broken: success on invalid input.
4898 continue
4899 else
4900   # Passes both tests.
4901 ac_preproc_ok=:
4902 break
4903 fi
4904 rm -f conftest.err conftest.$ac_ext
4905
4906 done
4907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4908 rm -f conftest.err conftest.$ac_ext
4909 if $ac_preproc_ok; then :
4910   break
4911 fi
4912
4913     done
4914     ac_cv_prog_CPP=$CPP
4915
4916 fi
4917   CPP=$ac_cv_prog_CPP
4918 else
4919   ac_cv_prog_CPP=$CPP
4920 fi
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4922 $as_echo "$CPP" >&6; }
4923 ac_preproc_ok=false
4924 for ac_c_preproc_warn_flag in '' yes
4925 do
4926   # Use a header file that comes with gcc, so configuring glibc
4927   # with a fresh cross-compiler works.
4928   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4929   # <limits.h> exists even on freestanding compilers.
4930   # On the NeXT, cc -E runs the code through the compiler's parser,
4931   # not just through cpp. "Syntax error" is here to catch this case.
4932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h.  */
4934 #ifdef __STDC__
4935 # include <limits.h>
4936 #else
4937 # include <assert.h>
4938 #endif
4939                      Syntax error
4940 _ACEOF
4941 if ac_fn_c_try_cpp "$LINENO"; then :
4942
4943 else
4944   # Broken: fails on valid input.
4945 continue
4946 fi
4947 rm -f conftest.err conftest.$ac_ext
4948
4949   # OK, works on sane cases.  Now check whether nonexistent headers
4950   # can be detected and how.
4951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h.  */
4953 #include <ac_nonexistent.h>
4954 _ACEOF
4955 if ac_fn_c_try_cpp "$LINENO"; then :
4956   # Broken: success on invalid input.
4957 continue
4958 else
4959   # Passes both tests.
4960 ac_preproc_ok=:
4961 break
4962 fi
4963 rm -f conftest.err conftest.$ac_ext
4964
4965 done
4966 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4967 rm -f conftest.err conftest.$ac_ext
4968 if $ac_preproc_ok; then :
4969
4970 else
4971   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4973 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4974 See \`config.log' for more details." "$LINENO" 5; }
4975 fi
4976
4977 ac_ext=c
4978 ac_cpp='$CPP $CPPFLAGS'
4979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982
4983
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4985 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4986 if test "${ac_cv_path_GREP+set}" = set; then :
4987   $as_echo_n "(cached) " >&6
4988 else
4989   if test -z "$GREP"; then
4990   ac_path_GREP_found=false
4991   # Loop through the user's path and test for each of PROGNAME-LIST
4992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4994 do
4995   IFS=$as_save_IFS
4996   test -z "$as_dir" && as_dir=.
4997     for ac_prog in grep ggrep; do
4998     for ac_exec_ext in '' $ac_executable_extensions; do
4999       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5000       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5001 # Check for GNU ac_path_GREP and select it if it is found.
5002   # Check for GNU $ac_path_GREP
5003 case `"$ac_path_GREP" --version 2>&1` in
5004 *GNU*)
5005   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5006 *)
5007   ac_count=0
5008   $as_echo_n 0123456789 >"conftest.in"
5009   while :
5010   do
5011     cat "conftest.in" "conftest.in" >"conftest.tmp"
5012     mv "conftest.tmp" "conftest.in"
5013     cp "conftest.in" "conftest.nl"
5014     $as_echo 'GREP' >> "conftest.nl"
5015     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5016     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5017     as_fn_arith $ac_count + 1 && ac_count=$as_val
5018     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5019       # Best one so far, save it but keep looking for a better one
5020       ac_cv_path_GREP="$ac_path_GREP"
5021       ac_path_GREP_max=$ac_count
5022     fi
5023     # 10*(2^10) chars as input seems more than enough
5024     test $ac_count -gt 10 && break
5025   done
5026   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5027 esac
5028
5029       $ac_path_GREP_found && break 3
5030     done
5031   done
5032   done
5033 IFS=$as_save_IFS
5034   if test -z "$ac_cv_path_GREP"; then
5035     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5036   fi
5037 else
5038   ac_cv_path_GREP=$GREP
5039 fi
5040
5041 fi
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5043 $as_echo "$ac_cv_path_GREP" >&6; }
5044  GREP="$ac_cv_path_GREP"
5045
5046
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5048 $as_echo_n "checking for egrep... " >&6; }
5049 if test "${ac_cv_path_EGREP+set}" = set; then :
5050   $as_echo_n "(cached) " >&6
5051 else
5052   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5053    then ac_cv_path_EGREP="$GREP -E"
5054    else
5055      if test -z "$EGREP"; then
5056   ac_path_EGREP_found=false
5057   # Loop through the user's path and test for each of PROGNAME-LIST
5058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5060 do
5061   IFS=$as_save_IFS
5062   test -z "$as_dir" && as_dir=.
5063     for ac_prog in egrep; do
5064     for ac_exec_ext in '' $ac_executable_extensions; do
5065       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5066       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5067 # Check for GNU ac_path_EGREP and select it if it is found.
5068   # Check for GNU $ac_path_EGREP
5069 case `"$ac_path_EGREP" --version 2>&1` in
5070 *GNU*)
5071   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5072 *)
5073   ac_count=0
5074   $as_echo_n 0123456789 >"conftest.in"
5075   while :
5076   do
5077     cat "conftest.in" "conftest.in" >"conftest.tmp"
5078     mv "conftest.tmp" "conftest.in"
5079     cp "conftest.in" "conftest.nl"
5080     $as_echo 'EGREP' >> "conftest.nl"
5081     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5082     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5083     as_fn_arith $ac_count + 1 && ac_count=$as_val
5084     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5085       # Best one so far, save it but keep looking for a better one
5086       ac_cv_path_EGREP="$ac_path_EGREP"
5087       ac_path_EGREP_max=$ac_count
5088     fi
5089     # 10*(2^10) chars as input seems more than enough
5090     test $ac_count -gt 10 && break
5091   done
5092   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5093 esac
5094
5095       $ac_path_EGREP_found && break 3
5096     done
5097   done
5098   done
5099 IFS=$as_save_IFS
5100   if test -z "$ac_cv_path_EGREP"; then
5101     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5102   fi
5103 else
5104   ac_cv_path_EGREP=$EGREP
5105 fi
5106
5107    fi
5108 fi
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5110 $as_echo "$ac_cv_path_EGREP" >&6; }
5111  EGREP="$ac_cv_path_EGREP"
5112
5113
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5115 $as_echo_n "checking for ANSI C header files... " >&6; }
5116 if test "${ac_cv_header_stdc+set}" = set; then :
5117   $as_echo_n "(cached) " >&6
5118 else
5119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h.  */
5121 #include <stdlib.h>
5122 #include <stdarg.h>
5123 #include <string.h>
5124 #include <float.h>
5125
5126 int
5127 main ()
5128 {
5129
5130   ;
5131   return 0;
5132 }
5133 _ACEOF
5134 if ac_fn_c_try_compile "$LINENO"; then :
5135   ac_cv_header_stdc=yes
5136 else
5137   ac_cv_header_stdc=no
5138 fi
5139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140
5141 if test $ac_cv_header_stdc = yes; then
5142   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h.  */
5145 #include <string.h>
5146
5147 _ACEOF
5148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5149   $EGREP "memchr" >/dev/null 2>&1; then :
5150
5151 else
5152   ac_cv_header_stdc=no
5153 fi
5154 rm -f conftest*
5155
5156 fi
5157
5158 if test $ac_cv_header_stdc = yes; then
5159   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h.  */
5162 #include <stdlib.h>
5163
5164 _ACEOF
5165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5166   $EGREP "free" >/dev/null 2>&1; then :
5167
5168 else
5169   ac_cv_header_stdc=no
5170 fi
5171 rm -f conftest*
5172
5173 fi
5174
5175 if test $ac_cv_header_stdc = yes; then
5176   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5177   if test "$cross_compiling" = yes; then :
5178   :
5179 else
5180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h.  */
5182 #include <ctype.h>
5183 #include <stdlib.h>
5184 #if ((' ' & 0x0FF) == 0x020)
5185 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5186 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5187 #else
5188 # define ISLOWER(c) \
5189                    (('a' <= (c) && (c) <= 'i') \
5190                      || ('j' <= (c) && (c) <= 'r') \
5191                      || ('s' <= (c) && (c) <= 'z'))
5192 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5193 #endif
5194
5195 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5196 int
5197 main ()
5198 {
5199   int i;
5200   for (i = 0; i < 256; i++)
5201     if (XOR (islower (i), ISLOWER (i))
5202         || toupper (i) != TOUPPER (i))
5203       return 2;
5204   return 0;
5205 }
5206 _ACEOF
5207 if ac_fn_c_try_run "$LINENO"; then :
5208
5209 else
5210   ac_cv_header_stdc=no
5211 fi
5212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5213   conftest.$ac_objext conftest.beam conftest.$ac_ext
5214 fi
5215
5216 fi
5217 fi
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5219 $as_echo "$ac_cv_header_stdc" >&6; }
5220 if test $ac_cv_header_stdc = yes; then
5221
5222 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5223
5224 fi
5225
5226 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5227 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5228                   inttypes.h stdint.h unistd.h
5229 do :
5230   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5231 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5232 "
5233 eval as_val=\$$as_ac_Header
5234    if test "x$as_val" = x""yes; then :
5235   cat >>confdefs.h <<_ACEOF
5236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5237 _ACEOF
5238
5239 fi
5240
5241 done
5242
5243
5244
5245   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5246 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5247   MINIX=yes
5248 else
5249   MINIX=
5250 fi
5251
5252
5253   if test "$MINIX" = yes; then
5254
5255 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5256
5257
5258 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5259
5260
5261 $as_echo "#define _MINIX 1" >>confdefs.h
5262
5263   fi
5264
5265
5266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5267 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5268 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5269   $as_echo_n "(cached) " >&6
5270 else
5271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h.  */
5273
5274 #         define __EXTENSIONS__ 1
5275           $ac_includes_default
5276 int
5277 main ()
5278 {
5279
5280   ;
5281   return 0;
5282 }
5283 _ACEOF
5284 if ac_fn_c_try_compile "$LINENO"; then :
5285   ac_cv_safe_to_define___extensions__=yes
5286 else
5287   ac_cv_safe_to_define___extensions__=no
5288 fi
5289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 fi
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5292 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5293   test $ac_cv_safe_to_define___extensions__ = yes &&
5294     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5295
5296   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5297
5298   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5299
5300   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5301
5302   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5303
5304
5305 ac_ext=c
5306 ac_cpp='$CPP $CPPFLAGS'
5307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5311 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5312 # On Suns, sometimes $CPP names a directory.
5313 if test -n "$CPP" && test -d "$CPP"; then
5314   CPP=
5315 fi
5316 if test -z "$CPP"; then
5317   if test "${ac_cv_prog_CPP+set}" = set; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320       # Double quotes because CPP needs to be expanded
5321     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5322     do
5323       ac_preproc_ok=false
5324 for ac_c_preproc_warn_flag in '' yes
5325 do
5326   # Use a header file that comes with gcc, so configuring glibc
5327   # with a fresh cross-compiler works.
5328   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5329   # <limits.h> exists even on freestanding compilers.
5330   # On the NeXT, cc -E runs the code through the compiler's parser,
5331   # not just through cpp. "Syntax error" is here to catch this case.
5332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h.  */
5334 #ifdef __STDC__
5335 # include <limits.h>
5336 #else
5337 # include <assert.h>
5338 #endif
5339                      Syntax error
5340 _ACEOF
5341 if ac_fn_c_try_cpp "$LINENO"; then :
5342
5343 else
5344   # Broken: fails on valid input.
5345 continue
5346 fi
5347 rm -f conftest.err conftest.$ac_ext
5348
5349   # OK, works on sane cases.  Now check whether nonexistent headers
5350   # can be detected and how.
5351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h.  */
5353 #include <ac_nonexistent.h>
5354 _ACEOF
5355 if ac_fn_c_try_cpp "$LINENO"; then :
5356   # Broken: success on invalid input.
5357 continue
5358 else
5359   # Passes both tests.
5360 ac_preproc_ok=:
5361 break
5362 fi
5363 rm -f conftest.err conftest.$ac_ext
5364
5365 done
5366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5367 rm -f conftest.err conftest.$ac_ext
5368 if $ac_preproc_ok; then :
5369   break
5370 fi
5371
5372     done
5373     ac_cv_prog_CPP=$CPP
5374
5375 fi
5376   CPP=$ac_cv_prog_CPP
5377 else
5378   ac_cv_prog_CPP=$CPP
5379 fi
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5381 $as_echo "$CPP" >&6; }
5382 ac_preproc_ok=false
5383 for ac_c_preproc_warn_flag in '' yes
5384 do
5385   # Use a header file that comes with gcc, so configuring glibc
5386   # with a fresh cross-compiler works.
5387   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5388   # <limits.h> exists even on freestanding compilers.
5389   # On the NeXT, cc -E runs the code through the compiler's parser,
5390   # not just through cpp. "Syntax error" is here to catch this case.
5391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h.  */
5393 #ifdef __STDC__
5394 # include <limits.h>
5395 #else
5396 # include <assert.h>
5397 #endif
5398                      Syntax error
5399 _ACEOF
5400 if ac_fn_c_try_cpp "$LINENO"; then :
5401
5402 else
5403   # Broken: fails on valid input.
5404 continue
5405 fi
5406 rm -f conftest.err conftest.$ac_ext
5407
5408   # OK, works on sane cases.  Now check whether nonexistent headers
5409   # can be detected and how.
5410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h.  */
5412 #include <ac_nonexistent.h>
5413 _ACEOF
5414 if ac_fn_c_try_cpp "$LINENO"; then :
5415   # Broken: success on invalid input.
5416 continue
5417 else
5418   # Passes both tests.
5419 ac_preproc_ok=:
5420 break
5421 fi
5422 rm -f conftest.err conftest.$ac_ext
5423
5424 done
5425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5426 rm -f conftest.err conftest.$ac_ext
5427 if $ac_preproc_ok; then :
5428
5429 else
5430   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5432 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5433 See \`config.log' for more details." "$LINENO" 5; }
5434 fi
5435
5436 ac_ext=c
5437 ac_cpp='$CPP $CPPFLAGS'
5438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5441
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5443 $as_echo_n "checking for inline... " >&6; }
5444 if test "${ac_cv_c_inline+set}" = set; then :
5445   $as_echo_n "(cached) " >&6
5446 else
5447   ac_cv_c_inline=no
5448 for ac_kw in inline __inline__ __inline; do
5449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h.  */
5451 #ifndef __cplusplus
5452 typedef int foo_t;
5453 static $ac_kw foo_t static_foo () {return 0; }
5454 $ac_kw foo_t foo () {return 0; }
5455 #endif
5456
5457 _ACEOF
5458 if ac_fn_c_try_compile "$LINENO"; then :
5459   ac_cv_c_inline=$ac_kw
5460 fi
5461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462   test "$ac_cv_c_inline" != no && break
5463 done
5464
5465 fi
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5467 $as_echo "$ac_cv_c_inline" >&6; }
5468
5469 case $ac_cv_c_inline in
5470   inline | yes) ;;
5471   *)
5472     case $ac_cv_c_inline in
5473       no) ac_val=;;
5474       *) ac_val=$ac_cv_c_inline;;
5475     esac
5476     cat >>confdefs.h <<_ACEOF
5477 #ifndef __cplusplus
5478 #define inline $ac_val
5479 #endif
5480 _ACEOF
5481     ;;
5482 esac
5483
5484
5485 # sizeof(char) is 1 by definition.
5486 # The cast to long int works around a bug in the HP C Compiler
5487 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5488 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5489 # This bug is HP SR number 8606223364.
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5491 $as_echo_n "checking size of void *... " >&6; }
5492 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5493   $as_echo_n "(cached) " >&6
5494 else
5495   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5496
5497 else
5498   if test "$ac_cv_type_void_p" = yes; then
5499      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5501 { as_fn_set_status 77
5502 as_fn_error "cannot compute sizeof (void *)
5503 See \`config.log' for more details." "$LINENO" 5; }; }
5504    else
5505      ac_cv_sizeof_void_p=0
5506    fi
5507 fi
5508
5509 fi
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5511 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5512
5513
5514
5515 cat >>confdefs.h <<_ACEOF
5516 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5517 _ACEOF
5518
5519
5520 # The cast to long int works around a bug in the HP C Compiler
5521 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5522 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5523 # This bug is HP SR number 8606223364.
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5525 $as_echo_n "checking size of short... " >&6; }
5526 if test "${ac_cv_sizeof_short+set}" = set; then :
5527   $as_echo_n "(cached) " >&6
5528 else
5529   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5530
5531 else
5532   if test "$ac_cv_type_short" = yes; then
5533      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5535 { as_fn_set_status 77
5536 as_fn_error "cannot compute sizeof (short)
5537 See \`config.log' for more details." "$LINENO" 5; }; }
5538    else
5539      ac_cv_sizeof_short=0
5540    fi
5541 fi
5542
5543 fi
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5545 $as_echo "$ac_cv_sizeof_short" >&6; }
5546
5547
5548
5549 cat >>confdefs.h <<_ACEOF
5550 #define SIZEOF_SHORT $ac_cv_sizeof_short
5551 _ACEOF
5552
5553
5554 # The cast to long int works around a bug in the HP C Compiler
5555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5557 # This bug is HP SR number 8606223364.
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5559 $as_echo_n "checking size of int... " >&6; }
5560 if test "${ac_cv_sizeof_int+set}" = set; then :
5561   $as_echo_n "(cached) " >&6
5562 else
5563   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5564
5565 else
5566   if test "$ac_cv_type_int" = yes; then
5567      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5569 { as_fn_set_status 77
5570 as_fn_error "cannot compute sizeof (int)
5571 See \`config.log' for more details." "$LINENO" 5; }; }
5572    else
5573      ac_cv_sizeof_int=0
5574    fi
5575 fi
5576
5577 fi
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5579 $as_echo "$ac_cv_sizeof_int" >&6; }
5580
5581
5582
5583 cat >>confdefs.h <<_ACEOF
5584 #define SIZEOF_INT $ac_cv_sizeof_int
5585 _ACEOF
5586
5587
5588 # The cast to long int works around a bug in the HP C Compiler
5589 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5590 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5591 # This bug is HP SR number 8606223364.
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5593 $as_echo_n "checking size of long... " >&6; }
5594 if test "${ac_cv_sizeof_long+set}" = set; then :
5595   $as_echo_n "(cached) " >&6
5596 else
5597   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5598
5599 else
5600   if test "$ac_cv_type_long" = yes; then
5601      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5603 { as_fn_set_status 77
5604 as_fn_error "cannot compute sizeof (long)
5605 See \`config.log' for more details." "$LINENO" 5; }; }
5606    else
5607      ac_cv_sizeof_long=0
5608    fi
5609 fi
5610
5611 fi
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5613 $as_echo "$ac_cv_sizeof_long" >&6; }
5614
5615
5616
5617 cat >>confdefs.h <<_ACEOF
5618 #define SIZEOF_LONG $ac_cv_sizeof_long
5619 _ACEOF
5620
5621
5622 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5623 if test "x$ac_cv_type_long_long" = x""yes; then :
5624
5625 cat >>confdefs.h <<_ACEOF
5626 #define HAVE_LONG_LONG 1
5627 _ACEOF
5628
5629 # The cast to long int works around a bug in the HP C Compiler
5630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5632 # This bug is HP SR number 8606223364.
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5634 $as_echo_n "checking size of long long... " >&6; }
5635 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5636   $as_echo_n "(cached) " >&6
5637 else
5638   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5639
5640 else
5641   if test "$ac_cv_type_long_long" = yes; then
5642      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5644 { as_fn_set_status 77
5645 as_fn_error "cannot compute sizeof (long long)
5646 See \`config.log' for more details." "$LINENO" 5; }; }
5647    else
5648      ac_cv_sizeof_long_long=0
5649    fi
5650 fi
5651
5652 fi
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5654 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5655
5656
5657
5658 cat >>confdefs.h <<_ACEOF
5659 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5660 _ACEOF
5661
5662
5663 fi
5664
5665 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5666 if test "x$ac_cv_type___int64" = x""yes; then :
5667
5668 cat >>confdefs.h <<_ACEOF
5669 #define HAVE___INT64 1
5670 _ACEOF
5671
5672 # The cast to long int works around a bug in the HP C Compiler
5673 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5674 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5675 # This bug is HP SR number 8606223364.
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5677 $as_echo_n "checking size of __int64... " >&6; }
5678 if test "${ac_cv_sizeof___int64+set}" = set; then :
5679   $as_echo_n "(cached) " >&6
5680 else
5681   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5682
5683 else
5684   if test "$ac_cv_type___int64" = yes; then
5685      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5687 { as_fn_set_status 77
5688 as_fn_error "cannot compute sizeof (__int64)
5689 See \`config.log' for more details." "$LINENO" 5; }; }
5690    else
5691      ac_cv_sizeof___int64=0
5692    fi
5693 fi
5694
5695 fi
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5697 $as_echo "$ac_cv_sizeof___int64" >&6; }
5698
5699
5700
5701 cat >>confdefs.h <<_ACEOF
5702 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5703 _ACEOF
5704
5705
5706 fi
5707
5708 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5709 case $ac_cv_c_int8_t in #(
5710   no|yes) ;; #(
5711   *)
5712
5713 cat >>confdefs.h <<_ACEOF
5714 #define int8_t $ac_cv_c_int8_t
5715 _ACEOF
5716 ;;
5717 esac
5718
5719 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5720 case $ac_cv_c_int16_t in #(
5721   no|yes) ;; #(
5722   *)
5723
5724 cat >>confdefs.h <<_ACEOF
5725 #define int16_t $ac_cv_c_int16_t
5726 _ACEOF
5727 ;;
5728 esac
5729
5730 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5731 case $ac_cv_c_int32_t in #(
5732   no|yes) ;; #(
5733   *)
5734
5735 cat >>confdefs.h <<_ACEOF
5736 #define int32_t $ac_cv_c_int32_t
5737 _ACEOF
5738 ;;
5739 esac
5740
5741 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5742 case $ac_cv_c_int64_t in #(
5743   no|yes) ;; #(
5744   *)
5745
5746 cat >>confdefs.h <<_ACEOF
5747 #define int64_t $ac_cv_c_int64_t
5748 _ACEOF
5749 ;;
5750 esac
5751
5752
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5754 $as_echo_n "checking for long long int... " >&6; }
5755 if test "${ac_cv_type_long_long_int+set}" = set; then :
5756   $as_echo_n "(cached) " >&6
5757 else
5758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h.  */
5760
5761   /* For now, do not test the preprocessor; as of 2007 there are too many
5762          implementations with broken preprocessors.  Perhaps this can
5763          be revisited in 2012.  In the meantime, code should not expect
5764          #if to work with literals wider than 32 bits.  */
5765       /* Test literals.  */
5766       long long int ll = 9223372036854775807ll;
5767       long long int nll = -9223372036854775807LL;
5768       unsigned long long int ull = 18446744073709551615ULL;
5769       /* Test constant expressions.   */
5770       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5771                      ? 1 : -1)];
5772       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5773                      ? 1 : -1)];
5774       int i = 63;
5775 int
5776 main ()
5777 {
5778 /* Test availability of runtime routines for shift and division.  */
5779       long long int llmax = 9223372036854775807ll;
5780       unsigned long long int ullmax = 18446744073709551615ull;
5781       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5782               | (llmax / ll) | (llmax % ll)
5783               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5784               | (ullmax / ull) | (ullmax % ull));
5785   ;
5786   return 0;
5787 }
5788
5789 _ACEOF
5790 if ac_fn_c_try_link "$LINENO"; then :
5791                         if test "$cross_compiling" = yes; then :
5792   ac_cv_type_long_long_int=yes
5793 else
5794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h.  */
5796 #include <limits.h>
5797                #ifndef LLONG_MAX
5798                # define HALF \
5799                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5800                # define LLONG_MAX (HALF - 1 + HALF)
5801                #endif
5802 int
5803 main ()
5804 {
5805 long long int n = 1;
5806                int i;
5807                for (i = 0; ; i++)
5808                  {
5809                    long long int m = n << i;
5810                    if (m >> i != n)
5811                      return 1;
5812                    if (LLONG_MAX / 2 < m)
5813                      break;
5814                  }
5815                return 0;
5816   ;
5817   return 0;
5818 }
5819 _ACEOF
5820 if ac_fn_c_try_run "$LINENO"; then :
5821   ac_cv_type_long_long_int=yes
5822 else
5823   ac_cv_type_long_long_int=no
5824 fi
5825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5826   conftest.$ac_objext conftest.beam conftest.$ac_ext
5827 fi
5828
5829 else
5830   ac_cv_type_long_long_int=no
5831 fi
5832 rm -f core conftest.err conftest.$ac_objext \
5833     conftest$ac_exeext conftest.$ac_ext
5834 fi
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5836 $as_echo "$ac_cv_type_long_long_int" >&6; }
5837   if test $ac_cv_type_long_long_int = yes; then
5838
5839 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5840
5841   fi
5842
5843
5844
5845   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5846 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5847
5848 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5849
5850 else
5851   test $ac_cv_type_long_long_int = yes \
5852        && ac_type='long long int' \
5853        || ac_type='long int'
5854
5855 cat >>confdefs.h <<_ACEOF
5856 #define intmax_t $ac_type
5857 _ACEOF
5858
5859 fi
5860
5861
5862
5863   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5864 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5865
5866 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5867
5868 else
5869   for ac_type in 'int' 'long int' 'long long int'; do
5870        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871 /* end confdefs.h.  */
5872 $ac_includes_default
5873 int
5874 main ()
5875 {
5876 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5877 test_array [0] = 0
5878
5879   ;
5880   return 0;
5881 }
5882 _ACEOF
5883 if ac_fn_c_try_compile "$LINENO"; then :
5884
5885 cat >>confdefs.h <<_ACEOF
5886 #define intptr_t $ac_type
5887 _ACEOF
5888
5889           ac_type=
5890 fi
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892        test -z "$ac_type" && break
5893      done
5894 fi
5895
5896
5897 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5898 case $ac_cv_c_uint8_t in #(
5899   no|yes) ;; #(
5900   *)
5901
5902 $as_echo "#define _UINT8_T 1" >>confdefs.h
5903
5904
5905 cat >>confdefs.h <<_ACEOF
5906 #define uint8_t $ac_cv_c_uint8_t
5907 _ACEOF
5908 ;;
5909   esac
5910
5911 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5912 case $ac_cv_c_uint16_t in #(
5913   no|yes) ;; #(
5914   *)
5915
5916
5917 cat >>confdefs.h <<_ACEOF
5918 #define uint16_t $ac_cv_c_uint16_t
5919 _ACEOF
5920 ;;
5921   esac
5922
5923 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5924 case $ac_cv_c_uint32_t in #(
5925   no|yes) ;; #(
5926   *)
5927
5928 $as_echo "#define _UINT32_T 1" >>confdefs.h
5929
5930
5931 cat >>confdefs.h <<_ACEOF
5932 #define uint32_t $ac_cv_c_uint32_t
5933 _ACEOF
5934 ;;
5935   esac
5936
5937 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5938 case $ac_cv_c_uint64_t in #(
5939   no|yes) ;; #(
5940   *)
5941
5942 $as_echo "#define _UINT64_T 1" >>confdefs.h
5943
5944
5945 cat >>confdefs.h <<_ACEOF
5946 #define uint64_t $ac_cv_c_uint64_t
5947 _ACEOF
5948 ;;
5949   esac
5950
5951
5952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5953 $as_echo_n "checking for unsigned long long int... " >&6; }
5954 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5955   $as_echo_n "(cached) " >&6
5956 else
5957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h.  */
5959
5960   /* For now, do not test the preprocessor; as of 2007 there are too many
5961          implementations with broken preprocessors.  Perhaps this can
5962          be revisited in 2012.  In the meantime, code should not expect
5963          #if to work with literals wider than 32 bits.  */
5964       /* Test literals.  */
5965       long long int ll = 9223372036854775807ll;
5966       long long int nll = -9223372036854775807LL;
5967       unsigned long long int ull = 18446744073709551615ULL;
5968       /* Test constant expressions.   */
5969       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5970                      ? 1 : -1)];
5971       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5972                      ? 1 : -1)];
5973       int i = 63;
5974 int
5975 main ()
5976 {
5977 /* Test availability of runtime routines for shift and division.  */
5978       long long int llmax = 9223372036854775807ll;
5979       unsigned long long int ullmax = 18446744073709551615ull;
5980       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5981               | (llmax / ll) | (llmax % ll)
5982               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5983               | (ullmax / ull) | (ullmax % ull));
5984   ;
5985   return 0;
5986 }
5987
5988 _ACEOF
5989 if ac_fn_c_try_link "$LINENO"; then :
5990   ac_cv_type_unsigned_long_long_int=yes
5991 else
5992   ac_cv_type_unsigned_long_long_int=no
5993 fi
5994 rm -f core conftest.err conftest.$ac_objext \
5995     conftest$ac_exeext conftest.$ac_ext
5996 fi
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5998 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5999   if test $ac_cv_type_unsigned_long_long_int = yes; then
6000
6001 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6002
6003   fi
6004
6005
6006
6007   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6008 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6009
6010 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6011
6012 else
6013   test $ac_cv_type_unsigned_long_long_int = yes \
6014        && ac_type='unsigned long long int' \
6015        || ac_type='unsigned long int'
6016
6017 cat >>confdefs.h <<_ACEOF
6018 #define uintmax_t $ac_type
6019 _ACEOF
6020
6021 fi
6022
6023
6024
6025   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6026 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6027
6028 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6029
6030 else
6031   for ac_type in 'unsigned int' 'unsigned long int' \
6032         'unsigned long long int'; do
6033        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h.  */
6035 $ac_includes_default
6036 int
6037 main ()
6038 {
6039 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6040 test_array [0] = 0
6041
6042   ;
6043   return 0;
6044 }
6045 _ACEOF
6046 if ac_fn_c_try_compile "$LINENO"; then :
6047
6048 cat >>confdefs.h <<_ACEOF
6049 #define uintptr_t $ac_type
6050 _ACEOF
6051
6052           ac_type=
6053 fi
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055        test -z "$ac_type" && break
6056      done
6057 fi
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073 # ---------------------
6074 # Warnings and checking
6075 # ---------------------
6076
6077 # Check $CC warning features (if it's GCC).
6078 # We want to use -pedantic, but we don't want warnings about
6079 # * 'long long'
6080 # * variadic macros
6081 # * overlong strings
6082 # So, we only use -pedantic if we can disable those warnings.
6083
6084 loose_warn=
6085 save_CFLAGS="$CFLAGS"
6086 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6087   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6088
6089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6090 $as_echo_n "checking whether $CC supports $option... " >&6; }
6091 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6092   $as_echo_n "(cached) " >&6
6093 else
6094   CFLAGS="$option"
6095     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h.  */
6097
6098 int
6099 main ()
6100 {
6101
6102   ;
6103   return 0;
6104 }
6105 _ACEOF
6106 if ac_fn_c_try_compile "$LINENO"; then :
6107   eval "$as_acx_Woption=yes"
6108 else
6109   eval "$as_acx_Woption=no"
6110 fi
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6112
6113 fi
6114 eval ac_res=\$$as_acx_Woption
6115                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6116 $as_echo "$ac_res" >&6; }
6117   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6118   loose_warn="$loose_warn${loose_warn:+ }$option"
6119 fi
6120   done
6121 CFLAGS="$save_CFLAGS"
6122
6123 c_loose_warn=
6124 save_CFLAGS="$CFLAGS"
6125 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6126   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6127
6128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6129 $as_echo_n "checking whether $CC supports $option... " >&6; }
6130 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6131   $as_echo_n "(cached) " >&6
6132 else
6133   CFLAGS="$option"
6134     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h.  */
6136
6137 int
6138 main ()
6139 {
6140
6141   ;
6142   return 0;
6143 }
6144 _ACEOF
6145 if ac_fn_c_try_compile "$LINENO"; then :
6146   eval "$as_acx_Woption=yes"
6147 else
6148   eval "$as_acx_Woption=no"
6149 fi
6150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6151
6152 fi
6153 eval ac_res=\$$as_acx_Woption
6154                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6155 $as_echo "$ac_res" >&6; }
6156   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6157   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6158 fi
6159   done
6160 CFLAGS="$save_CFLAGS"
6161
6162 strict_warn=
6163 save_CFLAGS="$CFLAGS"
6164 for option in -Wmissing-format-attribute; do
6165   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6166
6167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6168 $as_echo_n "checking whether $CC supports $option... " >&6; }
6169 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6170   $as_echo_n "(cached) " >&6
6171 else
6172   CFLAGS="$option"
6173     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h.  */
6175
6176 int
6177 main ()
6178 {
6179
6180   ;
6181   return 0;
6182 }
6183 _ACEOF
6184 if ac_fn_c_try_compile "$LINENO"; then :
6185   eval "$as_acx_Woption=yes"
6186 else
6187   eval "$as_acx_Woption=no"
6188 fi
6189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6190
6191 fi
6192 eval ac_res=\$$as_acx_Woption
6193                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6194 $as_echo "$ac_res" >&6; }
6195   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6196   strict_warn="$strict_warn${strict_warn:+ }$option"
6197 fi
6198   done
6199 CFLAGS="$save_CFLAGS"
6200
6201 c_strict_warn=
6202 save_CFLAGS="$CFLAGS"
6203 for option in -Wold-style-definition -Wc++-compat; do
6204   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6205
6206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6207 $as_echo_n "checking whether $CC supports $option... " >&6; }
6208 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6209   $as_echo_n "(cached) " >&6
6210 else
6211   CFLAGS="$option"
6212     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h.  */
6214
6215 int
6216 main ()
6217 {
6218
6219   ;
6220   return 0;
6221 }
6222 _ACEOF
6223 if ac_fn_c_try_compile "$LINENO"; then :
6224   eval "$as_acx_Woption=yes"
6225 else
6226   eval "$as_acx_Woption=no"
6227 fi
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229
6230 fi
6231 eval ac_res=\$$as_acx_Woption
6232                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6233 $as_echo "$ac_res" >&6; }
6234   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6235   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6236 fi
6237   done
6238 CFLAGS="$save_CFLAGS"
6239
6240 if test "$GCC" = yes; then :
6241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6242 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6243 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6244   $as_echo_n "(cached) " >&6
6245 else
6246   save_CFLAGS="$CFLAGS"
6247 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h.  */
6250
6251 int
6252 main ()
6253 {
6254
6255   ;
6256   return 0;
6257 }
6258 _ACEOF
6259 if ac_fn_c_try_compile "$LINENO"; then :
6260   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6261 else
6262   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6263 fi
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 CFLAGS="$save_CFLAGS"
6266 fi
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6268 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6269 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6270   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6271 fi
6272
6273 fi
6274
6275 # Check whether --enable-werror-always was given.
6276 if test "${enable_werror_always+set}" = set; then :
6277   enableval=$enable_werror_always;
6278 else
6279   enable_werror_always=no
6280 fi
6281
6282 if test $enable_werror_always = yes; then :
6283   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6284 fi
6285
6286
6287
6288 # The above macros do nothing if the compiler is not GCC.  However, the
6289 # Makefile has more goo to add other flags, so these variables are used
6290 # to enable warnings only for GCC.
6291 warn_cflags=
6292 warn_cxxflags=
6293 if test "x$GCC" = "xyes"; then
6294   warn_cflags='$(GCC_WARN_CFLAGS)'
6295   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6296 fi
6297
6298
6299
6300 # Enable expensive internal checks
6301 is_release=
6302 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6303   is_release=yes
6304 fi
6305
6306 # Check whether --enable-checking was given.
6307 if test "${enable_checking+set}" = set; then :
6308   enableval=$enable_checking; ac_checking_flags="${enableval}"
6309 else
6310
6311 # Determine the default checks.
6312 if test x$is_release = x ; then
6313   ac_checking_flags=yes
6314 else
6315   ac_checking_flags=release
6316 fi
6317 fi
6318
6319 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6320 for check in release $ac_checking_flags
6321 do
6322         case $check in
6323         # these set all the flags to specific states
6324         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6325                         ac_fold_checking= ; ac_gc_checking=1 ;
6326                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6327                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6328                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6329                         ac_types_checking=1 ;;
6330         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6331                         ac_fold_checking= ; ac_gc_checking= ;
6332                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6333                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6334                         ac_tree_checking= ; ac_valgrind_checking= ;
6335                         ac_types_checking= ;;
6336         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6337                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6338                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6339                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6340                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6341                         ac_types_checking=1 ;;
6342         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6343                         ac_fold_checking= ; ac_gc_checking= ;
6344                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6345                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6346                         ac_tree_checking= ; ac_valgrind_checking= ;
6347                         ac_types_checking= ;;
6348         # these enable particular checks
6349         assert)         ac_assert_checking=1 ;;
6350         df)             ac_df_checking=1 ;;
6351         fold)           ac_fold_checking=1 ;;
6352         gc)             ac_gc_checking=1 ;;
6353         gcac)           ac_gc_always_collect=1 ;;
6354         gimple)         ac_gimple_checking=1 ;;
6355         misc)           ac_checking=1 ;;
6356         rtl)            ac_rtl_checking=1 ;;
6357         rtlflag)        ac_rtlflag_checking=1 ;;
6358         runtime)        ac_runtime_checking=1 ;;
6359         tree)           ac_tree_checking=1 ;;
6360         types)          ac_types_checking=1 ;;
6361         valgrind)       ac_valgrind_checking=1 ;;
6362         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6363         esac
6364 done
6365 IFS="$ac_save_IFS"
6366
6367 nocommon_flag=""
6368 if test x$ac_checking != x ; then
6369
6370 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6371
6372   nocommon_flag=-fno-common
6373 fi
6374
6375 if test x$ac_df_checking != x ; then
6376
6377 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6378
6379 fi
6380 if test x$ac_assert_checking != x ; then
6381
6382 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6383
6384 fi
6385 if test x$ac_gimple_checking != x ; then
6386
6387 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6388
6389 fi
6390
6391 if test x$ac_runtime_checking != x ; then
6392
6393 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6394
6395 fi
6396 if test x$ac_tree_checking != x ; then
6397
6398 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6399
6400   TREEBROWSER=tree-browser.o
6401 fi
6402 if test x$ac_types_checking != x ; then
6403
6404 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6405
6406 fi
6407
6408 if test x$ac_rtl_checking != x ; then
6409
6410 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6411
6412 fi
6413 if test x$ac_rtlflag_checking != x ; then
6414
6415 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6416
6417 fi
6418 if test x$ac_gc_checking != x ; then
6419
6420 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6421
6422 fi
6423 if test x$ac_gc_always_collect != x ; then
6424
6425 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6426
6427 fi
6428 if test x$ac_fold_checking != x ; then
6429
6430 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6431
6432 fi
6433 valgrind_path_defines=
6434 valgrind_command=
6435
6436 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6437 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6438   have_valgrind_h=yes
6439 else
6440   have_valgrind_h=no
6441 fi
6442
6443
6444
6445 if test x$ac_valgrind_checking != x ; then
6446   # It is certainly possible that there's valgrind but no valgrind.h.
6447   # GCC relies on making annotations so we must have both.
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6449 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h.  */
6452 #include <valgrind/memcheck.h>
6453 #ifndef VALGRIND_DISCARD
6454 #error VALGRIND_DISCARD not defined
6455 #endif
6456 _ACEOF
6457 if ac_fn_c_try_cpp "$LINENO"; then :
6458   gcc_cv_header_valgrind_memcheck_h=yes
6459 else
6460   gcc_cv_header_valgrind_memcheck_h=no
6461 fi
6462 rm -f conftest.err conftest.$ac_ext
6463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6464 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6466 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h.  */
6469 #include <memcheck.h>
6470 #ifndef VALGRIND_DISCARD
6471 #error VALGRIND_DISCARD not defined
6472 #endif
6473 _ACEOF
6474 if ac_fn_c_try_cpp "$LINENO"; then :
6475   gcc_cv_header_memcheck_h=yes
6476 else
6477   gcc_cv_header_memcheck_h=no
6478 fi
6479 rm -f conftest.err conftest.$ac_ext
6480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6481 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6482
6483 # Prepare PATH_SEPARATOR.
6484 # The user is always right.
6485 if test "${PATH_SEPARATOR+set}" != set; then
6486   echo "#! /bin/sh" >conf$$.sh
6487   echo  "exit 0"   >>conf$$.sh
6488   chmod +x conf$$.sh
6489   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6490     PATH_SEPARATOR=';'
6491   else
6492     PATH_SEPARATOR=:
6493   fi
6494   rm -f conf$$.sh
6495 fi
6496
6497 # Find out how to test for executable files. Don't use a zero-byte file,
6498 # as systems may use methods other than mode bits to determine executability.
6499 cat >conf$$.file <<_ASEOF
6500 #! /bin/sh
6501 exit 0
6502 _ASEOF
6503 chmod +x conf$$.file
6504 if test -x conf$$.file >/dev/null 2>&1; then
6505   ac_executable_p="test -x"
6506 else
6507   ac_executable_p="test -f"
6508 fi
6509 rm -f conf$$.file
6510
6511 # Extract the first word of "valgrind", so it can be a program name with args.
6512 set dummy valgrind; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6516   $as_echo_n "(cached) " >&6
6517 else
6518   case "$valgrind_path" in
6519   [\\/]* | ?:[\\/]*)
6520     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6521     ;;
6522   *)
6523     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6524     for ac_dir in $PATH; do
6525       IFS="$ac_save_IFS"
6526       test -z "$ac_dir" && ac_dir=.
6527       for ac_exec_ext in '' $ac_executable_extensions; do
6528         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6529           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6530             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6531             break 2
6532           fi
6533         fi
6534       done
6535     done
6536     IFS="$ac_save_IFS"
6537     ;;
6538 esac
6539 fi
6540 valgrind_path="$ac_cv_path_valgrind_path"
6541 if test -n "$valgrind_path"; then
6542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6543 $as_echo "$valgrind_path" >&6; }
6544 else
6545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6547 fi
6548
6549   if test "x$valgrind_path" = "x" \
6550     || (test $have_valgrind_h = no \
6551         && test $gcc_cv_header_memcheck_h = no \
6552         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6553         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6554   fi
6555   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6556   valgrind_command="$valgrind_path -q"
6557
6558 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6559
6560   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6561
6562 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6563
6564   fi
6565   if test $gcc_cv_header_memcheck_h = yes; then
6566
6567 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6568
6569   fi
6570 fi
6571
6572
6573
6574 # Enable code coverage collection
6575 # Check whether --enable-coverage was given.
6576 if test "${enable_coverage+set}" = set; then :
6577   enableval=$enable_coverage; case "${enableval}" in
6578   yes|noopt)
6579     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6580     ;;
6581   opt)
6582     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6583     ;;
6584   no)
6585     # a.k.a. --disable-coverage
6586     coverage_flags=""
6587     ;;
6588   *)
6589     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6590     ;;
6591 esac
6592 else
6593   coverage_flags=""
6594 fi
6595
6596
6597
6598 # Check whether --enable-gather-detailed-mem-stats was given.
6599 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6600   enableval=$enable_gather_detailed_mem_stats;
6601 else
6602   enable_gather_detailed_mem_stats=no
6603 fi
6604
6605 if test x$enable_gather_detailed_mem_stats = xyes ; then
6606
6607 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6608
6609 fi
6610
6611 # -------------------------------
6612 # Miscenalleous configure options
6613 # -------------------------------
6614
6615 # See if we are building gcc with C++.
6616 # Check whether --enable-build-with-cxx was given.
6617 if test "${enable_build_with_cxx+set}" = set; then :
6618   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6619 else
6620   ENABLE_BUILD_WITH_CXX=no
6621 fi
6622
6623
6624
6625 # With stabs
6626
6627 # Check whether --with-stabs was given.
6628 if test "${with_stabs+set}" = set; then :
6629   withval=$with_stabs; stabs="$with_stabs"
6630 else
6631   stabs=no
6632 fi
6633
6634
6635 # Determine whether or not multilibs are enabled.
6636 # Check whether --enable-multilib was given.
6637 if test "${enable_multilib+set}" = set; then :
6638   enableval=$enable_multilib;
6639 else
6640   enable_multilib=yes
6641 fi
6642
6643
6644
6645 # Enable __cxa_atexit for C++.
6646 # Check whether --enable-__cxa_atexit was given.
6647 if test "${enable___cxa_atexit+set}" = set; then :
6648   enableval=$enable___cxa_atexit;
6649 fi
6650
6651
6652 # Enable C extension for decimal float if target supports it.
6653
6654 # Check whether --enable-decimal-float was given.
6655 if test "${enable_decimal_float+set}" = set; then :
6656   enableval=$enable_decimal_float;
6657   case $enable_decimal_float in
6658     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6659     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6660 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6661   esac
6662
6663 else
6664
6665   case $target in
6666     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6667     i?86*-*-mingw* | x86_64*-*-mingw* | \
6668     i?86*-*-cygwin*)
6669       enable_decimal_float=yes
6670       ;;
6671     *)
6672       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6673 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6674       enable_decimal_float=no
6675       ;;
6676   esac
6677
6678 fi
6679
6680
6681 # x86's use BID format instead of DPD
6682 case x$enable_decimal_float in
6683   xyes)
6684     case $target in
6685       i?86*-*-* | x86_64*-*-*)
6686         enable_decimal_float=bid
6687         ;;
6688       *)
6689         enable_decimal_float=dpd
6690         ;;
6691     esac
6692     default_decimal_float=$enable_decimal_float
6693     ;;
6694   xno)
6695     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6696     # dependency on libdecnumber.
6697     default_decimal_float=dpd
6698     ;;
6699 esac
6700
6701
6702
6703
6704 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6705
6706 cat >>confdefs.h <<_ACEOF
6707 #define ENABLE_DECIMAL_FLOAT $dfp
6708 _ACEOF
6709
6710
6711 # Use default_decimal_float for dependency.
6712 enable_decimal_float=$default_decimal_float
6713
6714 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6715
6716 cat >>confdefs.h <<_ACEOF
6717 #define ENABLE_DECIMAL_BID_FORMAT $bid
6718 _ACEOF
6719
6720
6721 # Enable C extension for fixed-point arithmetic.
6722 # Check whether --enable-fixed-point was given.
6723 if test "${enable_fixed_point+set}" = set; then :
6724   enableval=$enable_fixed_point;
6725
6726 else
6727
6728   case $target in
6729     mips*-*-*)
6730       case $host in
6731         mips*-sgi-irix*)
6732           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6733 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6734           enable_fixed_point=no
6735           ;;
6736         *)
6737           enable_fixed_point=yes
6738           ;;
6739       esac
6740       ;;
6741     *)
6742       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6743 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6744       enable_fixed_point=no
6745       ;;
6746   esac
6747
6748 fi
6749
6750
6751
6752 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6753
6754 cat >>confdefs.h <<_ACEOF
6755 #define ENABLE_FIXED_POINT $fixedpoint
6756 _ACEOF
6757
6758
6759 # Enable threads
6760 # Pass with no value to take the default
6761 # Pass with a value to specify a thread package
6762 # Check whether --enable-threads was given.
6763 if test "${enable_threads+set}" = set; then :
6764   enableval=$enable_threads;
6765 else
6766   enable_threads=''
6767 fi
6768
6769
6770 # Check whether --enable-tls was given.
6771 if test "${enable_tls+set}" = set; then :
6772   enableval=$enable_tls;
6773   case $enable_tls in
6774     yes | no) ;;
6775     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6776 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6777   esac
6778
6779 else
6780   enable_tls=''
6781 fi
6782
6783
6784 # Check whether --enable-objc-gc was given.
6785 if test "${enable_objc_gc+set}" = set; then :
6786   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6787         objc_boehm_gc=''
6788 else
6789         objc_boehm_gc=1
6790 fi
6791 else
6792   objc_boehm_gc=''
6793 fi
6794
6795
6796
6797 # Check whether --with-dwarf2 was given.
6798 if test "${with_dwarf2+set}" = set; then :
6799   withval=$with_dwarf2; dwarf2="$with_dwarf2"
6800 else
6801   dwarf2=no
6802 fi
6803
6804
6805 # Check whether --enable-shared was given.
6806 if test "${enable_shared+set}" = set; then :
6807   enableval=$enable_shared;
6808   case $enable_shared in
6809   yes | no) ;;
6810   *)
6811     enable_shared=no
6812     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6813     for pkg in $enableval; do
6814       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6815         enable_shared=yes
6816       fi
6817     done
6818     IFS="$ac_save_ifs"
6819     ;;
6820   esac
6821
6822 else
6823   enable_shared=yes
6824 fi
6825
6826
6827
6828
6829 # Check whether --with-build-sysroot was given.
6830 if test "${with_build_sysroot+set}" = set; then :
6831   withval=$with_build_sysroot;
6832 fi
6833
6834
6835
6836 # Check whether --with-sysroot was given.
6837 if test "${with_sysroot+set}" = set; then :
6838   withval=$with_sysroot;
6839  case ${with_sysroot} in
6840  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6841  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6842  esac
6843
6844  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6845  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6846
6847  if test "x$prefix" = xNONE; then
6848   test_prefix=/usr/local
6849  else
6850   test_prefix=$prefix
6851  fi
6852  if test "x$exec_prefix" = xNONE; then
6853   test_exec_prefix=$test_prefix
6854  else
6855   test_exec_prefix=$exec_prefix
6856  fi
6857  case ${TARGET_SYSTEM_ROOT} in
6858  "${test_prefix}"|"${test_prefix}/"*|\
6859  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6860  '${prefix}'|'${prefix}/'*|\
6861  '${exec_prefix}'|'${exec_prefix}/'*)
6862    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6863    TARGET_SYSTEM_ROOT_DEFINE="$t"
6864    ;;
6865  esac
6866
6867 else
6868
6869  TARGET_SYSTEM_ROOT=
6870  TARGET_SYSTEM_ROOT_DEFINE=
6871  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6872
6873 fi
6874
6875
6876
6877
6878
6879
6880 # Check whether --with-specs was given.
6881 if test "${with_specs+set}" = set; then :
6882   withval=$with_specs; CONFIGURE_SPECS=$withval
6883 else
6884   CONFIGURE_SPECS=
6885
6886 fi
6887
6888
6889
6890
6891
6892 # Check whether --with-pkgversion was given.
6893 if test "${with_pkgversion+set}" = set; then :
6894   withval=$with_pkgversion; case "$withval" in
6895       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6896       no)  PKGVERSION= ;;
6897       *)   PKGVERSION="($withval) " ;;
6898      esac
6899 else
6900   PKGVERSION="(GCC) "
6901
6902 fi
6903
6904
6905
6906
6907
6908 # Check whether --with-bugurl was given.
6909 if test "${with_bugurl+set}" = set; then :
6910   withval=$with_bugurl; case "$withval" in
6911       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6912       no)  BUGURL=
6913            ;;
6914       *)   BUGURL="$withval"
6915            ;;
6916      esac
6917 else
6918   BUGURL="http://gcc.gnu.org/bugs.html"
6919
6920 fi
6921
6922   case ${BUGURL} in
6923   "")
6924     REPORT_BUGS_TO=
6925     REPORT_BUGS_TEXI=
6926     ;;
6927   *)
6928     REPORT_BUGS_TO="<$BUGURL>"
6929     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6930     ;;
6931   esac;
6932
6933
6934
6935
6936 # Sanity check enable_languages in case someone does not run the toplevel
6937 # configure # script.
6938 # Check whether --enable-languages was given.
6939 if test "${enable_languages+set}" = set; then :
6940   enableval=$enable_languages; case ,${enable_languages}, in
6941        ,,|,yes,)
6942                 # go safe -- we cannot be much sure without the toplevel
6943                 # configure's
6944                 # analysis of which target libs are present and usable
6945                 enable_languages=c
6946                 ;;
6947          *,all,*)
6948                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6949                 ;;
6950         *,c,*)
6951                 ;;
6952         *)
6953                 enable_languages=c,${enable_languages}
6954                 ;;
6955 esac
6956 else
6957   enable_languages=c
6958 fi
6959
6960
6961
6962 # Check whether --with-multilib-list was given.
6963 if test "${with_multilib_list+set}" = set; then :
6964   withval=$with_multilib_list; :
6965 else
6966   with_multilib_list=default
6967 fi
6968
6969
6970 # -------------------------
6971 # Checks for other programs
6972 # -------------------------
6973
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6975 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6976 set x ${MAKE-make}
6977 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6978 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6979   $as_echo_n "(cached) " >&6
6980 else
6981   cat >conftest.make <<\_ACEOF
6982 SHELL = /bin/sh
6983 all:
6984         @echo '@@@%%%=$(MAKE)=@@@%%%'
6985 _ACEOF
6986 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6987 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6988   *@@@%%%=?*=@@@%%%*)
6989     eval ac_cv_prog_make_${ac_make}_set=yes;;
6990   *)
6991     eval ac_cv_prog_make_${ac_make}_set=no;;
6992 esac
6993 rm -f conftest.make
6994 fi
6995 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6997 $as_echo "yes" >&6; }
6998   SET_MAKE=
6999 else
7000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7002   SET_MAKE="MAKE=${MAKE-make}"
7003 fi
7004
7005
7006 # Find some useful tools
7007 for ac_prog in gawk mawk nawk awk
7008 do
7009   # Extract the first word of "$ac_prog", so it can be a program name with args.
7010 set dummy $ac_prog; ac_word=$2
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012 $as_echo_n "checking for $ac_word... " >&6; }
7013 if test "${ac_cv_prog_AWK+set}" = set; then :
7014   $as_echo_n "(cached) " >&6
7015 else
7016   if test -n "$AWK"; then
7017   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7018 else
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 for as_dir in $PATH
7021 do
7022   IFS=$as_save_IFS
7023   test -z "$as_dir" && as_dir=.
7024     for ac_exec_ext in '' $ac_executable_extensions; do
7025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7026     ac_cv_prog_AWK="$ac_prog"
7027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7028     break 2
7029   fi
7030 done
7031   done
7032 IFS=$as_save_IFS
7033
7034 fi
7035 fi
7036 AWK=$ac_cv_prog_AWK
7037 if test -n "$AWK"; then
7038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7039 $as_echo "$AWK" >&6; }
7040 else
7041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042 $as_echo "no" >&6; }
7043 fi
7044
7045
7046   test -n "$AWK" && break
7047 done
7048
7049 # We need awk to create options.c and options.h.
7050 # Bail out if it's missing.
7051 case ${AWK} in
7052   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7053 esac
7054
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7056 $as_echo_n "checking whether ln -s works... " >&6; }
7057 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7058   $as_echo_n "(cached) " >&6
7059 else
7060   rm -f conftestdata_t
7061 echo >conftestdata_f
7062 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7063 then
7064   gcc_cv_prog_LN_S="ln -s"
7065 else
7066   if ln conftestdata_f conftestdata_t 2>/dev/null
7067   then
7068     gcc_cv_prog_LN_S=ln
7069   else
7070     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7071     then
7072       gcc_cv_prog_LN_S="cp -p"
7073     else
7074       gcc_cv_prog_LN_S=cp
7075     fi
7076   fi
7077 fi
7078 rm -f conftestdata_f conftestdata_t
7079
7080 fi
7081 LN_S="$gcc_cv_prog_LN_S"
7082 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7084 $as_echo "yes" >&6; }
7085 else
7086   if test "$gcc_cv_prog_LN_S" = "ln"; then
7087     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7088 $as_echo "no, using ln" >&6; }
7089   else
7090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7091 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7092   fi
7093 fi
7094
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7096 $as_echo_n "checking whether ln works... " >&6; }
7097 if test "${acx_cv_prog_LN+set}" = set; then :
7098   $as_echo_n "(cached) " >&6
7099 else
7100   rm -f conftestdata_t
7101 echo >conftestdata_f
7102 if ln conftestdata_f conftestdata_t 2>/dev/null
7103 then
7104   acx_cv_prog_LN=ln
7105 else
7106   acx_cv_prog_LN=no
7107 fi
7108 rm -f conftestdata_f conftestdata_t
7109
7110 fi
7111 if test $acx_cv_prog_LN = no; then
7112   LN="$LN_S"
7113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7114 $as_echo "no, using $LN" >&6; }
7115 else
7116   LN="$acx_cv_prog_LN"
7117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7118 $as_echo "yes" >&6; }
7119 fi
7120
7121 if test -n "$ac_tool_prefix"; then
7122   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7123 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7127   $as_echo_n "(cached) " >&6
7128 else
7129   if test -n "$RANLIB"; then
7130   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7131 else
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135   IFS=$as_save_IFS
7136   test -z "$as_dir" && as_dir=.
7137     for ac_exec_ext in '' $ac_executable_extensions; do
7138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141     break 2
7142   fi
7143 done
7144   done
7145 IFS=$as_save_IFS
7146
7147 fi
7148 fi
7149 RANLIB=$ac_cv_prog_RANLIB
7150 if test -n "$RANLIB"; then
7151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7152 $as_echo "$RANLIB" >&6; }
7153 else
7154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7156 fi
7157
7158
7159 fi
7160 if test -z "$ac_cv_prog_RANLIB"; then
7161   ac_ct_RANLIB=$RANLIB
7162   # Extract the first word of "ranlib", so it can be a program name with args.
7163 set dummy ranlib; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7167   $as_echo_n "(cached) " >&6
7168 else
7169   if test -n "$ac_ct_RANLIB"; then
7170   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7171 else
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177     for ac_exec_ext in '' $ac_executable_extensions; do
7178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7179     ac_cv_prog_ac_ct_RANLIB="ranlib"
7180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181     break 2
7182   fi
7183 done
7184   done
7185 IFS=$as_save_IFS
7186
7187 fi
7188 fi
7189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7190 if test -n "$ac_ct_RANLIB"; then
7191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7192 $as_echo "$ac_ct_RANLIB" >&6; }
7193 else
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196 fi
7197
7198   if test "x$ac_ct_RANLIB" = x; then
7199     RANLIB=":"
7200   else
7201     case $cross_compiling:$ac_tool_warned in
7202 yes:)
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7205 ac_tool_warned=yes ;;
7206 esac
7207     RANLIB=$ac_ct_RANLIB
7208   fi
7209 else
7210   RANLIB="$ac_cv_prog_RANLIB"
7211 fi
7212
7213 case "${host}" in
7214 *-*-darwin*)
7215   # By default, the Darwin ranlib will not treat common symbols as
7216   # definitions when  building the archive table of contents.  Other
7217   # ranlibs do that; pass an option to the Darwin ranlib that makes
7218   # it behave similarly.
7219   ranlib_flags="-c"
7220   ;;
7221 *)
7222   ranlib_flags=""
7223 esac
7224
7225
7226 # Find a good install program.  We prefer a C program (faster),
7227 # so one script is as good as another.  But avoid the broken or
7228 # incompatible versions:
7229 # SysV /etc/install, /usr/sbin/install
7230 # SunOS /usr/etc/install
7231 # IRIX /sbin/install
7232 # AIX /bin/install
7233 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7234 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7235 # ./install, which can be erroneously created by make from ./install.sh.
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7237 $as_echo_n "checking for a BSD compatible install... " >&6; }
7238 if test -z "$INSTALL"; then
7239 if test "${ac_cv_path_install+set}" = set; then :
7240   $as_echo_n "(cached) " >&6
7241 else
7242     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7243   for ac_dir in $PATH; do
7244     # Account for people who put trailing slashes in PATH elements.
7245     case "$ac_dir/" in
7246     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7247     *)
7248       # OSF1 and SCO ODT 3.0 have their own names for install.
7249       for ac_prog in ginstall scoinst install; do
7250         if test -f $ac_dir/$ac_prog; then
7251           if test $ac_prog = install &&
7252             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7253             # AIX install.  It has an incompatible calling convention.
7254             # OSF/1 installbsd also uses dspmsg, but is usable.
7255             :
7256           else
7257             ac_cv_path_install="$ac_dir/$ac_prog -c"
7258             break 2
7259           fi
7260         fi
7261       done
7262       ;;
7263     esac
7264   done
7265   IFS="$ac_save_IFS"
7266
7267 fi
7268   if test "${ac_cv_path_install+set}" = set; then
7269     INSTALL="$ac_cv_path_install"
7270   else
7271     # As a last resort, use the slow shell script.  We don't cache a
7272     # path for INSTALL within a source directory, because that will
7273     # break other packages using the cache if that directory is
7274     # removed, or if the path is relative.
7275     INSTALL="$ac_install_sh"
7276   fi
7277 fi
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7279 $as_echo "$INSTALL" >&6; }
7280
7281 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7282 # It thinks the first close brace ends the variable substitution.
7283 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7284
7285 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7286
7287
7288 # See if cmp has --ignore-initial.
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7290 $as_echo_n "checking for cmp's capabilities... " >&6; }
7291 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294    echo abfoo >t1
7295   echo cdfoo >t2
7296   gcc_cv_prog_cmp_skip=slowcompare
7297   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7298     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7299       :
7300     else
7301       gcc_cv_prog_cmp_skip=gnucompare
7302     fi
7303   fi
7304   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7305     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7306       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7307         :
7308       else
7309         gcc_cv_prog_cmp_skip=fastcompare
7310       fi
7311     fi
7312   fi
7313   rm t1 t2
7314
7315 fi
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7317 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7318 make_compare_target=$gcc_cv_prog_cmp_skip
7319
7320
7321
7322 # See if we have the mktemp command.
7323 # Extract the first word of "mktemp", so it can be a program name with args.
7324 set dummy mktemp; ac_word=$2
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326 $as_echo_n "checking for $ac_word... " >&6; }
7327 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7328   $as_echo_n "(cached) " >&6
7329 else
7330   if test -n "$have_mktemp_command"; then
7331   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7332 else
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7335 do
7336   IFS=$as_save_IFS
7337   test -z "$as_dir" && as_dir=.
7338     for ac_exec_ext in '' $ac_executable_extensions; do
7339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7340     ac_cv_prog_have_mktemp_command="yes"
7341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342     break 2
7343   fi
7344 done
7345   done
7346 IFS=$as_save_IFS
7347
7348   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7349 fi
7350 fi
7351 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7352 if test -n "$have_mktemp_command"; then
7353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7354 $as_echo "$have_mktemp_command" >&6; }
7355 else
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7358 fi
7359
7360
7361
7362 # See if makeinfo has been installed and is modern enough
7363 # that we can use it.
7364
7365   # Extract the first word of "makeinfo", so it can be a program name with args.
7366 set dummy makeinfo; ac_word=$2
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368 $as_echo_n "checking for $ac_word... " >&6; }
7369 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7370   $as_echo_n "(cached) " >&6
7371 else
7372   if test -n "$MAKEINFO"; then
7373   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7374 else
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7377 do
7378   IFS=$as_save_IFS
7379   test -z "$as_dir" && as_dir=.
7380     for ac_exec_ext in '' $ac_executable_extensions; do
7381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7382     ac_cv_prog_MAKEINFO="makeinfo"
7383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384     break 2
7385   fi
7386 done
7387   done
7388 IFS=$as_save_IFS
7389
7390 fi
7391 fi
7392 MAKEINFO=$ac_cv_prog_MAKEINFO
7393 if test -n "$MAKEINFO"; then
7394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7395 $as_echo "$MAKEINFO" >&6; }
7396 else
7397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398 $as_echo "no" >&6; }
7399 fi
7400
7401
7402   if test -n "$MAKEINFO"; then
7403     # Found it, now check the version.
7404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7405 $as_echo_n "checking for modern makeinfo... " >&6; }
7406 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7407   $as_echo_n "(cached) " >&6
7408 else
7409   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7410                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7411
7412                     case $ac_prog_version in
7413                       '')  gcc_cv_prog_makeinfo_modern=no;;
7414                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7415                       *)   gcc_cv_prog_makeinfo_modern=no;;
7416                     esac
7417
7418 fi
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7420 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7421   else
7422     gcc_cv_prog_makeinfo_modern=no
7423   fi
7424   if test $gcc_cv_prog_makeinfo_modern = no; then
7425     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7426   fi
7427
7428 if test $gcc_cv_prog_makeinfo_modern = no; then
7429   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7430 *** Makeinfo is missing or too old.
7431 *** Info documentation will not be built." >&5
7432 $as_echo "$as_me: WARNING:
7433 *** Makeinfo is missing or too old.
7434 *** Info documentation will not be built." >&2;}
7435   BUILD_INFO=
7436 else
7437   BUILD_INFO=info
7438 fi
7439
7440
7441 # Is pod2man recent enough to regenerate manpages?
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7443 $as_echo_n "checking for recent Pod::Man... " >&6; }
7444 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7446 $as_echo "yes" >&6; }
7447   GENERATED_MANPAGES=generated-manpages
7448 else
7449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7451   GENERATED_MANPAGES=
7452 fi
7453
7454
7455 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7456
7457 # How about lex?
7458 for ac_prog in flex
7459 do
7460   # Extract the first word of "$ac_prog", so it can be a program name with args.
7461 set dummy $ac_prog; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if test "${ac_cv_prog_FLEX+set}" = set; then :
7465   $as_echo_n "(cached) " >&6
7466 else
7467   if test -n "$FLEX"; then
7468   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7469 else
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 for as_dir in $PATH
7472 do
7473   IFS=$as_save_IFS
7474   test -z "$as_dir" && as_dir=.
7475     for ac_exec_ext in '' $ac_executable_extensions; do
7476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7477     ac_cv_prog_FLEX="$ac_prog"
7478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479     break 2
7480   fi
7481 done
7482   done
7483 IFS=$as_save_IFS
7484
7485 fi
7486 fi
7487 FLEX=$ac_cv_prog_FLEX
7488 if test -n "$FLEX"; then
7489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7490 $as_echo "$FLEX" >&6; }
7491 else
7492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7494 fi
7495
7496
7497   test -n "$FLEX" && break
7498 done
7499 test -n "$FLEX" || FLEX="$MISSING flex"
7500
7501
7502 # Bison?
7503 for ac_prog in bison
7504 do
7505   # Extract the first word of "$ac_prog", so it can be a program name with args.
7506 set dummy $ac_prog; ac_word=$2
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508 $as_echo_n "checking for $ac_word... " >&6; }
7509 if test "${ac_cv_prog_BISON+set}" = set; then :
7510   $as_echo_n "(cached) " >&6
7511 else
7512   if test -n "$BISON"; then
7513   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   test -z "$as_dir" && as_dir=.
7520     for ac_exec_ext in '' $ac_executable_extensions; do
7521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7522     ac_cv_prog_BISON="$ac_prog"
7523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524     break 2
7525   fi
7526 done
7527   done
7528 IFS=$as_save_IFS
7529
7530 fi
7531 fi
7532 BISON=$ac_cv_prog_BISON
7533 if test -n "$BISON"; then
7534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7535 $as_echo "$BISON" >&6; }
7536 else
7537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7539 fi
7540
7541
7542   test -n "$BISON" && break
7543 done
7544 test -n "$BISON" || BISON="$MISSING bison"
7545
7546
7547 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7548 # check for build == host before using them.
7549
7550 # NM
7551 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7552   && test -d ../binutils ; then
7553   NM='${objdir}/../binutils/nm-new'
7554 else
7555   # Extract the first word of "nm", so it can be a program name with args.
7556 set dummy nm; ac_word=$2
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558 $as_echo_n "checking for $ac_word... " >&6; }
7559 if test "${ac_cv_prog_NM+set}" = set; then :
7560   $as_echo_n "(cached) " >&6
7561 else
7562   if test -n "$NM"; then
7563   ac_cv_prog_NM="$NM" # Let the user override the test.
7564 else
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 for as_dir in $PATH
7567 do
7568   IFS=$as_save_IFS
7569   test -z "$as_dir" && as_dir=.
7570     for ac_exec_ext in '' $ac_executable_extensions; do
7571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7572     ac_cv_prog_NM="nm"
7573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574     break 2
7575   fi
7576 done
7577   done
7578 IFS=$as_save_IFS
7579
7580   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7581 fi
7582 fi
7583 NM=$ac_cv_prog_NM
7584 if test -n "$NM"; then
7585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7586 $as_echo "$NM" >&6; }
7587 else
7588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7590 fi
7591
7592
7593 fi
7594
7595 # AR
7596 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7597   && test -d ../binutils ; then
7598   AR='${objdir}/../binutils/ar'
7599 else
7600   # Extract the first word of "ar", so it can be a program name with args.
7601 set dummy ar; ac_word=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if test "${ac_cv_prog_AR+set}" = set; then :
7605   $as_echo_n "(cached) " >&6
7606 else
7607   if test -n "$AR"; then
7608   ac_cv_prog_AR="$AR" # Let the user override the test.
7609 else
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7612 do
7613   IFS=$as_save_IFS
7614   test -z "$as_dir" && as_dir=.
7615     for ac_exec_ext in '' $ac_executable_extensions; do
7616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7617     ac_cv_prog_AR="ar"
7618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619     break 2
7620   fi
7621 done
7622   done
7623 IFS=$as_save_IFS
7624
7625   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7626 fi
7627 fi
7628 AR=$ac_cv_prog_AR
7629 if test -n "$AR"; then
7630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7631 $as_echo "$AR" >&6; }
7632 else
7633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7635 fi
7636
7637
7638 fi
7639
7640
7641 # --------------------
7642 # Checks for C headers
7643 # --------------------
7644
7645 # Need to reject headers which give warnings, so that the -Werror bootstrap
7646 # works later. *sigh*  This needs to come before all header checks.
7647
7648 ac_c_preproc_warn_flag=yes
7649
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7651 $as_echo_n "checking for ANSI C header files... " >&6; }
7652 if test "${ac_cv_header_stdc+set}" = set; then :
7653   $as_echo_n "(cached) " >&6
7654 else
7655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h.  */
7657 #include <stdlib.h>
7658 #include <stdarg.h>
7659 #include <string.h>
7660 #include <float.h>
7661
7662 int
7663 main ()
7664 {
7665
7666   ;
7667   return 0;
7668 }
7669 _ACEOF
7670 if ac_fn_c_try_compile "$LINENO"; then :
7671   ac_cv_header_stdc=yes
7672 else
7673   ac_cv_header_stdc=no
7674 fi
7675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7676
7677 if test $ac_cv_header_stdc = yes; then
7678   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h.  */
7681 #include <string.h>
7682
7683 _ACEOF
7684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7685   $EGREP "memchr" >/dev/null 2>&1; then :
7686
7687 else
7688   ac_cv_header_stdc=no
7689 fi
7690 rm -f conftest*
7691
7692 fi
7693
7694 if test $ac_cv_header_stdc = yes; then
7695   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h.  */
7698 #include <stdlib.h>
7699
7700 _ACEOF
7701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7702   $EGREP "free" >/dev/null 2>&1; then :
7703
7704 else
7705   ac_cv_header_stdc=no
7706 fi
7707 rm -f conftest*
7708
7709 fi
7710
7711 if test $ac_cv_header_stdc = yes; then
7712   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7713   if test "$cross_compiling" = yes; then :
7714   :
7715 else
7716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h.  */
7718 #include <ctype.h>
7719 #include <stdlib.h>
7720 #if ((' ' & 0x0FF) == 0x020)
7721 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7722 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7723 #else
7724 # define ISLOWER(c) \
7725                    (('a' <= (c) && (c) <= 'i') \
7726                      || ('j' <= (c) && (c) <= 'r') \
7727                      || ('s' <= (c) && (c) <= 'z'))
7728 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7729 #endif
7730
7731 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7732 int
7733 main ()
7734 {
7735   int i;
7736   for (i = 0; i < 256; i++)
7737     if (XOR (islower (i), ISLOWER (i))
7738         || toupper (i) != TOUPPER (i))
7739       return 2;
7740   return 0;
7741 }
7742 _ACEOF
7743 if ac_fn_c_try_run "$LINENO"; then :
7744
7745 else
7746   ac_cv_header_stdc=no
7747 fi
7748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7749   conftest.$ac_objext conftest.beam conftest.$ac_ext
7750 fi
7751
7752 fi
7753 fi
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7755 $as_echo "$ac_cv_header_stdc" >&6; }
7756 if test $ac_cv_header_stdc = yes; then
7757
7758 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7759
7760 fi
7761
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7763 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7764 if test "${ac_cv_header_time+set}" = set; then :
7765   $as_echo_n "(cached) " >&6
7766 else
7767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768 /* end confdefs.h.  */
7769 #include <sys/types.h>
7770 #include <sys/time.h>
7771 #include <time.h>
7772
7773 int
7774 main ()
7775 {
7776 if ((struct tm *) 0)
7777 return 0;
7778   ;
7779   return 0;
7780 }
7781 _ACEOF
7782 if ac_fn_c_try_compile "$LINENO"; then :
7783   ac_cv_header_time=yes
7784 else
7785   ac_cv_header_time=no
7786 fi
7787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788 fi
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7790 $as_echo "$ac_cv_header_time" >&6; }
7791 if test $ac_cv_header_time = yes; then
7792
7793 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7794
7795 fi
7796
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7798 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7799 if test "${gcc_cv_header_string+set}" = set; then :
7800   $as_echo_n "(cached) " >&6
7801 else
7802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h.  */
7804 #include <string.h>
7805 #include <strings.h>
7806 int
7807 main ()
7808 {
7809
7810   ;
7811   return 0;
7812 }
7813 _ACEOF
7814 if ac_fn_c_try_compile "$LINENO"; then :
7815   gcc_cv_header_string=yes
7816 else
7817   gcc_cv_header_string=no
7818 fi
7819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820 fi
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7822 $as_echo "$gcc_cv_header_string" >&6; }
7823 if test $gcc_cv_header_string = yes; then
7824
7825 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7826
7827 fi
7828
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7830 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7831 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7832   $as_echo_n "(cached) " >&6
7833 else
7834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h.  */
7836 #include <sys/types.h>
7837 #include <sys/wait.h>
7838 #ifndef WEXITSTATUS
7839 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7840 #endif
7841 #ifndef WIFEXITED
7842 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7843 #endif
7844
7845 int
7846 main ()
7847 {
7848   int s;
7849   wait (&s);
7850   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7851   ;
7852   return 0;
7853 }
7854 _ACEOF
7855 if ac_fn_c_try_compile "$LINENO"; then :
7856   ac_cv_header_sys_wait_h=yes
7857 else
7858   ac_cv_header_sys_wait_h=no
7859 fi
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861 fi
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7863 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7864 if test $ac_cv_header_sys_wait_h = yes; then
7865
7866 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7867
7868 fi
7869
7870 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7871                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7872                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
7873                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7874 do :
7875   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7876 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7877 eval as_val=\$$as_ac_Header
7878    if test "x$as_val" = x""yes; then :
7879   cat >>confdefs.h <<_ACEOF
7880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7881 _ACEOF
7882
7883 fi
7884 done
7885
7886
7887 # Check for thread headers.
7888 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7889 if test "x$ac_cv_header_thread_h" = x""yes; then :
7890   have_thread_h=yes
7891 else
7892   have_thread_h=
7893 fi
7894
7895 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7896 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7897   have_pthread_h=yes
7898 else
7899   have_pthread_h=
7900 fi
7901
7902
7903 # These tests can't be done till we know if we have limits.h.
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7905 $as_echo_n "checking for CHAR_BIT... " >&6; }
7906 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7907   $as_echo_n "(cached) " >&6
7908 else
7909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910 /* end confdefs.h.  */
7911 #ifdef HAVE_LIMITS_H
7912 #include <limits.h>
7913 #endif
7914 #ifdef CHAR_BIT
7915 found
7916 #endif
7917 _ACEOF
7918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7919   $EGREP "found" >/dev/null 2>&1; then :
7920   gcc_cv_decl_char_bit=yes
7921 else
7922   gcc_cv_decl_char_bit=no
7923 fi
7924 rm -f conftest*
7925
7926
7927 fi
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7929 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7930 if test $gcc_cv_decl_char_bit = no; then
7931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7932 $as_echo_n "checking number of bits in a byte... " >&6; }
7933 if test "${gcc_cv_c_nbby+set}" = set; then :
7934   $as_echo_n "(cached) " >&6
7935 else
7936   i=8
7937  gcc_cv_c_nbby=
7938  while test $i -lt 65; do
7939    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h.  */
7941
7942 int
7943 main ()
7944 {
7945 switch(0) {
7946   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7947   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7948   ; }
7949   ;
7950   return 0;
7951 }
7952 _ACEOF
7953 if ac_fn_c_try_compile "$LINENO"; then :
7954   gcc_cv_c_nbby=$i; break
7955 fi
7956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957    i=`expr $i + 1`
7958  done
7959  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7960
7961 fi
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7963 $as_echo "$gcc_cv_c_nbby" >&6; }
7964 if test $gcc_cv_c_nbby = failed; then
7965   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7966 else
7967
7968 cat >>confdefs.h <<_ACEOF
7969 #define CHAR_BIT $gcc_cv_c_nbby
7970 _ACEOF
7971
7972 fi
7973 fi
7974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7975 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7976 if test "${ac_cv_c_bigendian+set}" = set; then :
7977   $as_echo_n "(cached) " >&6
7978 else
7979   ac_cv_c_bigendian=unknown
7980     # See if we're dealing with a universal compiler.
7981     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h.  */
7983 #ifndef __APPLE_CC__
7984                not a universal capable compiler
7985              #endif
7986              typedef int dummy;
7987
7988 _ACEOF
7989 if ac_fn_c_try_compile "$LINENO"; then :
7990
7991         # Check for potential -arch flags.  It is not universal unless
7992         # there are at least two -arch flags with different values.
7993         ac_arch=
7994         ac_prev=
7995         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7996          if test -n "$ac_prev"; then
7997            case $ac_word in
7998              i?86 | x86_64 | ppc | ppc64)
7999                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8000                  ac_arch=$ac_word
8001                else
8002                  ac_cv_c_bigendian=universal
8003                  break
8004                fi
8005                ;;
8006            esac
8007            ac_prev=
8008          elif test "x$ac_word" = "x-arch"; then
8009            ac_prev=arch
8010          fi
8011        done
8012 fi
8013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014     if test $ac_cv_c_bigendian = unknown; then
8015       # See if sys/param.h defines the BYTE_ORDER macro.
8016       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h.  */
8018 #include <sys/types.h>
8019              #include <sys/param.h>
8020
8021 int
8022 main ()
8023 {
8024 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8025                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8026                      && LITTLE_ENDIAN)
8027               bogus endian macros
8028              #endif
8029
8030   ;
8031   return 0;
8032 }
8033 _ACEOF
8034 if ac_fn_c_try_compile "$LINENO"; then :
8035   # It does; now see whether it defined to BIG_ENDIAN or not.
8036          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037 /* end confdefs.h.  */
8038 #include <sys/types.h>
8039                 #include <sys/param.h>
8040
8041 int
8042 main ()
8043 {
8044 #if BYTE_ORDER != BIG_ENDIAN
8045                  not big endian
8046                 #endif
8047
8048   ;
8049   return 0;
8050 }
8051 _ACEOF
8052 if ac_fn_c_try_compile "$LINENO"; then :
8053   ac_cv_c_bigendian=yes
8054 else
8055   ac_cv_c_bigendian=no
8056 fi
8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058 fi
8059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060     fi
8061     if test $ac_cv_c_bigendian = unknown; then
8062       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8063       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h.  */
8065 #include <limits.h>
8066
8067 int
8068 main ()
8069 {
8070 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8071               bogus endian macros
8072              #endif
8073
8074   ;
8075   return 0;
8076 }
8077 _ACEOF
8078 if ac_fn_c_try_compile "$LINENO"; then :
8079   # It does; now see whether it defined to _BIG_ENDIAN or not.
8080          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h.  */
8082 #include <limits.h>
8083
8084 int
8085 main ()
8086 {
8087 #ifndef _BIG_ENDIAN
8088                  not big endian
8089                 #endif
8090
8091   ;
8092   return 0;
8093 }
8094 _ACEOF
8095 if ac_fn_c_try_compile "$LINENO"; then :
8096   ac_cv_c_bigendian=yes
8097 else
8098   ac_cv_c_bigendian=no
8099 fi
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 fi
8102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103     fi
8104     if test $ac_cv_c_bigendian = unknown; then
8105       # Compile a test program.
8106       if test "$cross_compiling" = yes; then :
8107   # Try to guess by grepping values from an object file.
8108          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h.  */
8110 short int ascii_mm[] =
8111                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8112                 short int ascii_ii[] =
8113                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8114                 int use_ascii (int i) {
8115                   return ascii_mm[i] + ascii_ii[i];
8116                 }
8117                 short int ebcdic_ii[] =
8118                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8119                 short int ebcdic_mm[] =
8120                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8121                 int use_ebcdic (int i) {
8122                   return ebcdic_mm[i] + ebcdic_ii[i];
8123                 }
8124                 extern int foo;
8125
8126 int
8127 main ()
8128 {
8129 return use_ascii (foo) == use_ebcdic (foo);
8130   ;
8131   return 0;
8132 }
8133 _ACEOF
8134 if ac_fn_c_try_compile "$LINENO"; then :
8135   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8136               ac_cv_c_bigendian=yes
8137             fi
8138             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8139               if test "$ac_cv_c_bigendian" = unknown; then
8140                 ac_cv_c_bigendian=no
8141               else
8142                 # finding both strings is unlikely to happen, but who knows?
8143                 ac_cv_c_bigendian=unknown
8144               fi
8145             fi
8146 fi
8147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148 else
8149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h.  */
8151 $ac_includes_default
8152 int
8153 main ()
8154 {
8155
8156              /* Are we little or big endian?  From Harbison&Steele.  */
8157              union
8158              {
8159                long int l;
8160                char c[sizeof (long int)];
8161              } u;
8162              u.l = 1;
8163              return u.c[sizeof (long int) - 1] == 1;
8164
8165   ;
8166   return 0;
8167 }
8168 _ACEOF
8169 if ac_fn_c_try_run "$LINENO"; then :
8170   ac_cv_c_bigendian=no
8171 else
8172   ac_cv_c_bigendian=yes
8173 fi
8174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8175   conftest.$ac_objext conftest.beam conftest.$ac_ext
8176 fi
8177
8178     fi
8179 fi
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8181 $as_echo "$ac_cv_c_bigendian" >&6; }
8182  case $ac_cv_c_bigendian in #(
8183    yes)
8184      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8185 ;; #(
8186    no)
8187       ;; #(
8188    universal)
8189
8190 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8191
8192      ;; #(
8193    *)
8194      as_fn_error "unknown endianness
8195  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8196  esac
8197
8198
8199 # --------
8200 # UNSORTED
8201 # --------
8202
8203
8204 # These libraries may be used by collect2.
8205 # We may need a special search path to get them linked.
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8207 $as_echo_n "checking for collect2 libraries... " >&6; }
8208 if test "${gcc_cv_collect2_libs+set}" = set; then :
8209   $as_echo_n "(cached) " >&6
8210 else
8211   save_LIBS="$LIBS"
8212 for libs in '' -lld -lmld \
8213                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8214                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8215 do
8216         LIBS="$libs"
8217         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h.  */
8219
8220 /* Override any GCC internal prototype to avoid an error.
8221    Use char because int might match the return type of a GCC
8222    builtin and then its argument prototype would still apply.  */
8223 #ifdef __cplusplus
8224 extern "C"
8225 #endif
8226 char ldopen ();
8227 int
8228 main ()
8229 {
8230 return ldopen ();
8231   ;
8232   return 0;
8233 }
8234 _ACEOF
8235 if ac_fn_c_try_link "$LINENO"; then :
8236   gcc_cv_collect2_libs="$libs"; break
8237 fi
8238 rm -f core conftest.err conftest.$ac_objext \
8239     conftest$ac_exeext conftest.$ac_ext
8240 done
8241 LIBS="$save_LIBS"
8242 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8243 fi
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8245 $as_echo "$gcc_cv_collect2_libs" >&6; }
8246 case $gcc_cv_collect2_libs in
8247         "none required")        ;;
8248         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8249 esac
8250
8251
8252 # When building Ada code on Alpha, we need exc_resume which is usually in
8253 # -lexc.  So test for it.
8254 save_LIBS="$LIBS"
8255 LIBS=
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8257 $as_echo_n "checking for library containing exc_resume... " >&6; }
8258 if test "${ac_cv_search_exc_resume+set}" = set; then :
8259   $as_echo_n "(cached) " >&6
8260 else
8261   ac_func_search_save_LIBS=$LIBS
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h.  */
8264
8265 /* Override any GCC internal prototype to avoid an error.
8266    Use char because int might match the return type of a GCC
8267    builtin and then its argument prototype would still apply.  */
8268 #ifdef __cplusplus
8269 extern "C"
8270 #endif
8271 char exc_resume ();
8272 int
8273 main ()
8274 {
8275 return exc_resume ();
8276   ;
8277   return 0;
8278 }
8279 _ACEOF
8280 for ac_lib in '' exc; do
8281   if test -z "$ac_lib"; then
8282     ac_res="none required"
8283   else
8284     ac_res=-l$ac_lib
8285     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8286   fi
8287   if ac_fn_c_try_link "$LINENO"; then :
8288   ac_cv_search_exc_resume=$ac_res
8289 fi
8290 rm -f core conftest.err conftest.$ac_objext \
8291     conftest$ac_exeext
8292   if test "${ac_cv_search_exc_resume+set}" = set; then :
8293   break
8294 fi
8295 done
8296 if test "${ac_cv_search_exc_resume+set}" = set; then :
8297
8298 else
8299   ac_cv_search_exc_resume=no
8300 fi
8301 rm conftest.$ac_ext
8302 LIBS=$ac_func_search_save_LIBS
8303 fi
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8305 $as_echo "$ac_cv_search_exc_resume" >&6; }
8306 ac_res=$ac_cv_search_exc_resume
8307 if test "$ac_res" != no; then :
8308   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8309
8310 fi
8311
8312 GNAT_LIBEXC="$LIBS"
8313 LIBS="$save_LIBS"
8314
8315
8316 # Some systems put ldexp and frexp in libm instead of libc; assume
8317 # they're both in the same place.  jcf-dump needs them.
8318 save_LIBS="$LIBS"
8319 LIBS=
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8321 $as_echo_n "checking for library containing ldexp... " >&6; }
8322 if test "${ac_cv_search_ldexp+set}" = set; then :
8323   $as_echo_n "(cached) " >&6
8324 else
8325   ac_func_search_save_LIBS=$LIBS
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h.  */
8328
8329 /* Override any GCC internal prototype to avoid an error.
8330    Use char because int might match the return type of a GCC
8331    builtin and then its argument prototype would still apply.  */
8332 #ifdef __cplusplus
8333 extern "C"
8334 #endif
8335 char ldexp ();
8336 int
8337 main ()
8338 {
8339 return ldexp ();
8340   ;
8341   return 0;
8342 }
8343 _ACEOF
8344 for ac_lib in '' m; do
8345   if test -z "$ac_lib"; then
8346     ac_res="none required"
8347   else
8348     ac_res=-l$ac_lib
8349     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8350   fi
8351   if ac_fn_c_try_link "$LINENO"; then :
8352   ac_cv_search_ldexp=$ac_res
8353 fi
8354 rm -f core conftest.err conftest.$ac_objext \
8355     conftest$ac_exeext
8356   if test "${ac_cv_search_ldexp+set}" = set; then :
8357   break
8358 fi
8359 done
8360 if test "${ac_cv_search_ldexp+set}" = set; then :
8361
8362 else
8363   ac_cv_search_ldexp=no
8364 fi
8365 rm conftest.$ac_ext
8366 LIBS=$ac_func_search_save_LIBS
8367 fi
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8369 $as_echo "$ac_cv_search_ldexp" >&6; }
8370 ac_res=$ac_cv_search_ldexp
8371 if test "$ac_res" != no; then :
8372   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8373
8374 fi
8375
8376 LDEXP_LIB="$LIBS"
8377 LIBS="$save_LIBS"
8378
8379
8380 # Use <inttypes.h> only if it exists,
8381 # doesn't clash with <sys/types.h>, and declares intmax_t.
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8383 $as_echo_n "checking for inttypes.h... " >&6; }
8384 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8385   $as_echo_n "(cached) " >&6
8386 else
8387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h.  */
8389 #include <sys/types.h>
8390 #include <inttypes.h>
8391 int
8392 main ()
8393 {
8394 intmax_t i = -1;
8395   ;
8396   return 0;
8397 }
8398 _ACEOF
8399 if ac_fn_c_try_compile "$LINENO"; then :
8400   gcc_cv_header_inttypes_h=yes
8401 else
8402   gcc_cv_header_inttypes_h=no
8403 fi
8404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405 fi
8406
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8408 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8409 if test $gcc_cv_header_inttypes_h = yes; then
8410
8411 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8412
8413 fi
8414
8415
8416
8417 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8418         sysconf strsignal getrusage nl_langinfo \
8419         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8420         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
8421 do :
8422   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8423 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8424 eval as_val=\$$as_ac_var
8425    if test "x$as_val" = x""yes; then :
8426   cat >>confdefs.h <<_ACEOF
8427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8428 _ACEOF
8429
8430 fi
8431 done
8432
8433
8434 save_CPPFLAGS="$CPPFLAGS"
8435 save_LIBS="$LIBS"
8436 LIBS="$LIBS $LIBELFLIBS"
8437 for ac_func in elf_getshdrstrndx
8438 do :
8439   ac_fn_c_check_func "$LINENO" "elf_getshdrstrndx" "ac_cv_func_elf_getshdrstrndx"
8440 if test "x$ac_cv_func_elf_getshdrstrndx" = x""yes; then :
8441   cat >>confdefs.h <<_ACEOF
8442 #define HAVE_ELF_GETSHDRSTRNDX 1
8443 _ACEOF
8444
8445 else
8446   for ac_func in elf_getshstrndx
8447 do :
8448   ac_fn_c_check_func "$LINENO" "elf_getshstrndx" "ac_cv_func_elf_getshstrndx"
8449 if test "x$ac_cv_func_elf_getshstrndx" = x""yes; then :
8450   cat >>confdefs.h <<_ACEOF
8451 #define HAVE_ELF_GETSHSTRNDX 1
8452 _ACEOF
8453  if test "$cross_compiling" = yes; then :
8454   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8456 as_fn_error "cannot run test program while cross compiling
8457 See \`config.log' for more details." "$LINENO" 5; }
8458 else
8459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h.  */
8461 #include <stdlib.h>
8462 #include <libelf.h>
8463 int main()
8464 {
8465   return elf_getshstrndx (NULL, 0) == 0;
8466 }
8467 _ACEOF
8468 if ac_fn_c_try_run "$LINENO"; then :
8469
8470 $as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
8471
8472 fi
8473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8474   conftest.$ac_objext conftest.beam conftest.$ac_ext
8475 fi
8476
8477 fi
8478 done
8479
8480
8481 fi
8482 done
8483
8484 LIBS="$save_LIBS"
8485 CPPFLAGS="$save_CPPFLAGS"
8486
8487 if test x$ac_cv_func_mbstowcs = xyes; then
8488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8489 $as_echo_n "checking whether mbstowcs works... " >&6; }
8490 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8491   $as_echo_n "(cached) " >&6
8492 else
8493       if test "$cross_compiling" = yes; then :
8494   gcc_cv_func_mbstowcs_works=yes
8495 else
8496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h.  */
8498 #include <stdlib.h>
8499 int main()
8500 {
8501   mbstowcs(0, "", 0);
8502   return 0;
8503 }
8504 _ACEOF
8505 if ac_fn_c_try_run "$LINENO"; then :
8506   gcc_cv_func_mbstowcs_works=yes
8507 else
8508   gcc_cv_func_mbstowcs_works=no
8509 fi
8510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8511   conftest.$ac_objext conftest.beam conftest.$ac_ext
8512 fi
8513
8514 fi
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8516 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8517   if test x$gcc_cv_func_mbstowcs_works = xyes; then
8518
8519 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8520
8521   fi
8522 fi
8523
8524 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8525 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8526
8527 else
8528
8529 cat >>confdefs.h <<_ACEOF
8530 #define ssize_t int
8531 _ACEOF
8532
8533 fi
8534
8535 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8536 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8537
8538 else
8539
8540 cat >>confdefs.h <<_ACEOF
8541 #define caddr_t char *
8542 _ACEOF
8543
8544 fi
8545
8546
8547
8548 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8549 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8550   gcc_header_sys_mman_h=yes
8551 else
8552   gcc_header_sys_mman_h=no
8553 fi
8554
8555 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8556 if test "x$ac_cv_func_mmap" = x""yes; then :
8557   gcc_func_mmap=yes
8558 else
8559   gcc_func_mmap=no
8560 fi
8561
8562 if test "$gcc_header_sys_mman_h" != yes \
8563  || test "$gcc_func_mmap" != yes; then
8564    gcc_cv_func_mmap_file=no
8565    gcc_cv_func_mmap_dev_zero=no
8566    gcc_cv_func_mmap_anon=no
8567 else
8568    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8569 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8570 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8571   $as_echo_n "(cached) " >&6
8572 else
8573   # Add a system to this blacklist if
8574    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8575    # memory area containing the same data that you'd get if you applied
8576    # read() to the same fd.  The only system known to have a problem here
8577    # is VMS, where text files have record structure.
8578    case "$host_os" in
8579      vms* | ultrix*)
8580         gcc_cv_func_mmap_file=no ;;
8581      *)
8582         gcc_cv_func_mmap_file=yes;;
8583    esac
8584 fi
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8586 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8587    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8588 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8589 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8590   $as_echo_n "(cached) " >&6
8591 else
8592   # Add a system to this blacklist if it has mmap() but /dev/zero
8593    # does not exist, or if mmapping /dev/zero does not give anonymous
8594    # zeroed pages with both the following properties:
8595    # 1. If you map N consecutive pages in with one call, and then
8596    #    unmap any subset of those pages, the pages that were not
8597    #    explicitly unmapped remain accessible.
8598    # 2. If you map two adjacent blocks of memory and then unmap them
8599    #    both at once, they must both go away.
8600    # Systems known to be in this category are Windows (all variants),
8601    # VMS, and Darwin.
8602    case "$host_os" in
8603      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8604         gcc_cv_func_mmap_dev_zero=no ;;
8605      *)
8606         gcc_cv_func_mmap_dev_zero=yes;;
8607    esac
8608 fi
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8610 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8611
8612    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8614 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8615 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8616   $as_echo_n "(cached) " >&6
8617 else
8618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h.  */
8620 #include <sys/types.h>
8621 #include <sys/mman.h>
8622 #include <unistd.h>
8623
8624 #ifndef MAP_ANONYMOUS
8625 #define MAP_ANONYMOUS MAP_ANON
8626 #endif
8627
8628 int
8629 main ()
8630 {
8631 int n = MAP_ANONYMOUS;
8632   ;
8633   return 0;
8634 }
8635 _ACEOF
8636 if ac_fn_c_try_compile "$LINENO"; then :
8637   gcc_cv_decl_map_anon=yes
8638 else
8639   gcc_cv_decl_map_anon=no
8640 fi
8641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8642 fi
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8644 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8645
8646    if test $gcc_cv_decl_map_anon = no; then
8647      gcc_cv_func_mmap_anon=no
8648    else
8649      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8650 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8651 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8652   $as_echo_n "(cached) " >&6
8653 else
8654   # Add a system to this blacklist if it has mmap() and MAP_ANON or
8655    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8656    # doesn't give anonymous zeroed pages with the same properties listed
8657    # above for use of /dev/zero.
8658    # Systems known to be in this category are Windows, VMS, and SCO Unix.
8659    case "$host_os" in
8660      vms* | cygwin* | pe | mingw* | sco* | udk* )
8661         gcc_cv_func_mmap_anon=no ;;
8662      *)
8663         gcc_cv_func_mmap_anon=yes;;
8664    esac
8665 fi
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8667 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8668    fi
8669 fi
8670
8671 if test $gcc_cv_func_mmap_file = yes; then
8672
8673 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8674
8675 fi
8676 if test $gcc_cv_func_mmap_dev_zero = yes; then
8677
8678 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8679
8680 fi
8681 if test $gcc_cv_func_mmap_anon = yes; then
8682
8683 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8684
8685 fi
8686
8687
8688 case "${host}" in
8689 *-*-*vms*)
8690   # Under VMS, vfork works very differently than on Unix. The standard test
8691   # won't work, and it isn't easily adaptable. It makes more sense to
8692   # just force it.
8693   ac_cv_func_vfork_works=yes
8694   ;;
8695 esac
8696 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8697 if test "x$ac_cv_type_pid_t" = x""yes; then :
8698
8699 else
8700
8701 cat >>confdefs.h <<_ACEOF
8702 #define pid_t int
8703 _ACEOF
8704
8705 fi
8706
8707 for ac_header in vfork.h
8708 do :
8709   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8710 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8711   cat >>confdefs.h <<_ACEOF
8712 #define HAVE_VFORK_H 1
8713 _ACEOF
8714
8715 fi
8716 done
8717
8718 for ac_func in fork vfork
8719 do :
8720   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8721 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8722 eval as_val=\$$as_ac_var
8723    if test "x$as_val" = x""yes; then :
8724   cat >>confdefs.h <<_ACEOF
8725 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8726 _ACEOF
8727
8728 fi
8729 done
8730
8731 if test "x$ac_cv_func_fork" = xyes; then
8732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8733 $as_echo_n "checking for working fork... " >&6; }
8734 if test "${ac_cv_func_fork_works+set}" = set; then :
8735   $as_echo_n "(cached) " >&6
8736 else
8737   if test "$cross_compiling" = yes; then :
8738   ac_cv_func_fork_works=cross
8739 else
8740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741 /* end confdefs.h.  */
8742 $ac_includes_default
8743 int
8744 main ()
8745 {
8746
8747           /* By Ruediger Kuhlmann. */
8748           return fork () < 0;
8749
8750   ;
8751   return 0;
8752 }
8753 _ACEOF
8754 if ac_fn_c_try_run "$LINENO"; then :
8755   ac_cv_func_fork_works=yes
8756 else
8757   ac_cv_func_fork_works=no
8758 fi
8759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8760   conftest.$ac_objext conftest.beam conftest.$ac_ext
8761 fi
8762
8763 fi
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8765 $as_echo "$ac_cv_func_fork_works" >&6; }
8766
8767 else
8768   ac_cv_func_fork_works=$ac_cv_func_fork
8769 fi
8770 if test "x$ac_cv_func_fork_works" = xcross; then
8771   case $host in
8772     *-*-amigaos* | *-*-msdosdjgpp*)
8773       # Override, as these systems have only a dummy fork() stub
8774       ac_cv_func_fork_works=no
8775       ;;
8776     *)
8777       ac_cv_func_fork_works=yes
8778       ;;
8779   esac
8780   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8781 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8782 fi
8783 ac_cv_func_vfork_works=$ac_cv_func_vfork
8784 if test "x$ac_cv_func_vfork" = xyes; then
8785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8786 $as_echo_n "checking for working vfork... " >&6; }
8787 if test "${ac_cv_func_vfork_works+set}" = set; then :
8788   $as_echo_n "(cached) " >&6
8789 else
8790   if test "$cross_compiling" = yes; then :
8791   ac_cv_func_vfork_works=cross
8792 else
8793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h.  */
8795 /* Thanks to Paul Eggert for this test.  */
8796 $ac_includes_default
8797 #include <sys/wait.h>
8798 #ifdef HAVE_VFORK_H
8799 # include <vfork.h>
8800 #endif
8801 /* On some sparc systems, changes by the child to local and incoming
8802    argument registers are propagated back to the parent.  The compiler
8803    is told about this with #include <vfork.h>, but some compilers
8804    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8805    static variable whose address is put into a register that is
8806    clobbered by the vfork.  */
8807 static void
8808 #ifdef __cplusplus
8809 sparc_address_test (int arg)
8810 # else
8811 sparc_address_test (arg) int arg;
8812 #endif
8813 {
8814   static pid_t child;
8815   if (!child) {
8816     child = vfork ();
8817     if (child < 0) {
8818       perror ("vfork");
8819       _exit(2);
8820     }
8821     if (!child) {
8822       arg = getpid();
8823       write(-1, "", 0);
8824       _exit (arg);
8825     }
8826   }
8827 }
8828
8829 int
8830 main ()
8831 {
8832   pid_t parent = getpid ();
8833   pid_t child;
8834
8835   sparc_address_test (0);
8836
8837   child = vfork ();
8838
8839   if (child == 0) {
8840     /* Here is another test for sparc vfork register problems.  This
8841        test uses lots of local variables, at least as many local
8842        variables as main has allocated so far including compiler
8843        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8844        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8845        reuse the register of parent for one of the local variables,
8846        since it will think that parent can't possibly be used any more
8847        in this routine.  Assigning to the local variable will thus
8848        munge parent in the parent process.  */
8849     pid_t
8850       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8851       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8852     /* Convince the compiler that p..p7 are live; otherwise, it might
8853        use the same hardware register for all 8 local variables.  */
8854     if (p != p1 || p != p2 || p != p3 || p != p4
8855         || p != p5 || p != p6 || p != p7)
8856       _exit(1);
8857
8858     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8859        from child file descriptors.  If the child closes a descriptor
8860        before it execs or exits, this munges the parent's descriptor
8861        as well.  Test for this by closing stdout in the child.  */
8862     _exit(close(fileno(stdout)) != 0);
8863   } else {
8864     int status;
8865     struct stat st;
8866
8867     while (wait(&status) != child)
8868       ;
8869     return (
8870          /* Was there some problem with vforking?  */
8871          child < 0
8872
8873          /* Did the child fail?  (This shouldn't happen.)  */
8874          || status
8875
8876          /* Did the vfork/compiler bug occur?  */
8877          || parent != getpid()
8878
8879          /* Did the file descriptor bug occur?  */
8880          || fstat(fileno(stdout), &st) != 0
8881          );
8882   }
8883 }
8884 _ACEOF
8885 if ac_fn_c_try_run "$LINENO"; then :
8886   ac_cv_func_vfork_works=yes
8887 else
8888   ac_cv_func_vfork_works=no
8889 fi
8890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8891   conftest.$ac_objext conftest.beam conftest.$ac_ext
8892 fi
8893
8894 fi
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8896 $as_echo "$ac_cv_func_vfork_works" >&6; }
8897
8898 fi;
8899 if test "x$ac_cv_func_fork_works" = xcross; then
8900   ac_cv_func_vfork_works=$ac_cv_func_vfork
8901   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8902 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8903 fi
8904
8905 if test "x$ac_cv_func_vfork_works" = xyes; then
8906
8907 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8908
8909 else
8910
8911 $as_echo "#define vfork fork" >>confdefs.h
8912
8913 fi
8914 if test "x$ac_cv_func_fork_works" = xyes; then
8915
8916 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8917
8918 fi
8919
8920
8921
8922       if test "X$prefix" = "XNONE"; then
8923     acl_final_prefix="$ac_default_prefix"
8924   else
8925     acl_final_prefix="$prefix"
8926   fi
8927   if test "X$exec_prefix" = "XNONE"; then
8928     acl_final_exec_prefix='${prefix}'
8929   else
8930     acl_final_exec_prefix="$exec_prefix"
8931   fi
8932   acl_save_prefix="$prefix"
8933   prefix="$acl_final_prefix"
8934   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8935   prefix="$acl_save_prefix"
8936
8937
8938 # Check whether --with-gnu-ld was given.
8939 if test "${with_gnu_ld+set}" = set; then :
8940   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8941 else
8942   with_gnu_ld=no
8943 fi
8944
8945 # Prepare PATH_SEPARATOR.
8946 # The user is always right.
8947 if test "${PATH_SEPARATOR+set}" != set; then
8948   echo "#! /bin/sh" >conf$$.sh
8949   echo  "exit 0"   >>conf$$.sh
8950   chmod +x conf$$.sh
8951   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8952     PATH_SEPARATOR=';'
8953   else
8954     PATH_SEPARATOR=:
8955   fi
8956   rm -f conf$$.sh
8957 fi
8958 ac_prog=ld
8959 if test "$GCC" = yes; then
8960   # Check if gcc -print-prog-name=ld gives a path.
8961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8962 $as_echo_n "checking for ld used by GCC... " >&6; }
8963   case $host in
8964   *-*-mingw*)
8965     # gcc leaves a trailing carriage return which upsets mingw
8966     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8967   *)
8968     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8969   esac
8970   case $ac_prog in
8971     # Accept absolute paths.
8972     [\\/]* | [A-Za-z]:[\\/]*)
8973       re_direlt='/[^/][^/]*/\.\./'
8974       # Canonicalize the path of ld
8975       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8976       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8977         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8978       done
8979       test -z "$LD" && LD="$ac_prog"
8980       ;;
8981   "")
8982     # If it fails, then pretend we aren't using GCC.
8983     ac_prog=ld
8984     ;;
8985   *)
8986     # If it is relative, then search for the first ld in PATH.
8987     with_gnu_ld=unknown
8988     ;;
8989   esac
8990 elif test "$with_gnu_ld" = yes; then
8991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8992 $as_echo_n "checking for GNU ld... " >&6; }
8993 else
8994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8995 $as_echo_n "checking for non-GNU ld... " >&6; }
8996 fi
8997 if test "${acl_cv_path_LD+set}" = set; then :
8998   $as_echo_n "(cached) " >&6
8999 else
9000   if test -z "$LD"; then
9001   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9002   for ac_dir in $PATH; do
9003     test -z "$ac_dir" && ac_dir=.
9004     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9005       acl_cv_path_LD="$ac_dir/$ac_prog"
9006       # Check to see if the program is GNU ld.  I'd rather use --version,
9007       # but apparently some GNU ld's only accept -v.
9008       # Break only if it was the GNU/non-GNU ld that we prefer.
9009       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9010         test "$with_gnu_ld" != no && break
9011       else
9012         test "$with_gnu_ld" != yes && break
9013       fi
9014     fi
9015   done
9016   IFS="$ac_save_ifs"
9017 else
9018   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9019 fi
9020 fi
9021
9022 LD="$acl_cv_path_LD"
9023 if test -n "$LD"; then
9024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9025 $as_echo "$LD" >&6; }
9026 else
9027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028 $as_echo "no" >&6; }
9029 fi
9030 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9032 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9033 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9034   $as_echo_n "(cached) " >&6
9035 else
9036   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9037 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9038   acl_cv_prog_gnu_ld=yes
9039 else
9040   acl_cv_prog_gnu_ld=no
9041 fi
9042 fi
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9044 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9045 with_gnu_ld=$acl_cv_prog_gnu_ld
9046
9047
9048
9049                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9050 $as_echo_n "checking for shared library run path origin... " >&6; }
9051 if test "${acl_cv_rpath+set}" = set; then :
9052   $as_echo_n "(cached) " >&6
9053 else
9054
9055     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9056     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9057     . ./conftest.sh
9058     rm -f ./conftest.sh
9059     acl_cv_rpath=done
9060
9061 fi
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9063 $as_echo "$acl_cv_rpath" >&6; }
9064   wl="$acl_cv_wl"
9065   libext="$acl_cv_libext"
9066   shlibext="$acl_cv_shlibext"
9067   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9068   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9069   hardcode_direct="$acl_cv_hardcode_direct"
9070   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9071     # Check whether --enable-rpath was given.
9072 if test "${enable_rpath+set}" = set; then :
9073   enableval=$enable_rpath; :
9074 else
9075   enable_rpath=yes
9076 fi
9077
9078
9079
9080
9081
9082
9083
9084
9085     use_additional=yes
9086
9087   acl_save_prefix="$prefix"
9088   prefix="$acl_final_prefix"
9089   acl_save_exec_prefix="$exec_prefix"
9090   exec_prefix="$acl_final_exec_prefix"
9091
9092     eval additional_includedir=\"$includedir\"
9093     eval additional_libdir=\"$libdir\"
9094
9095   exec_prefix="$acl_save_exec_prefix"
9096   prefix="$acl_save_prefix"
9097
9098
9099 # Check whether --with-libiconv-prefix was given.
9100 if test "${with_libiconv_prefix+set}" = set; then :
9101   withval=$with_libiconv_prefix;
9102     if test "X$withval" = "Xno"; then
9103       use_additional=no
9104     else
9105       if test "X$withval" = "X"; then
9106
9107   acl_save_prefix="$prefix"
9108   prefix="$acl_final_prefix"
9109   acl_save_exec_prefix="$exec_prefix"
9110   exec_prefix="$acl_final_exec_prefix"
9111
9112           eval additional_includedir=\"$includedir\"
9113           eval additional_libdir=\"$libdir\"
9114
9115   exec_prefix="$acl_save_exec_prefix"
9116   prefix="$acl_save_prefix"
9117
9118       else
9119         additional_includedir="$withval/include"
9120         additional_libdir="$withval/lib"
9121       fi
9122     fi
9123
9124 fi
9125
9126       LIBICONV=
9127   LTLIBICONV=
9128   INCICONV=
9129   rpathdirs=
9130   ltrpathdirs=
9131   names_already_handled=
9132   names_next_round='iconv '
9133   while test -n "$names_next_round"; do
9134     names_this_round="$names_next_round"
9135     names_next_round=
9136     for name in $names_this_round; do
9137       already_handled=
9138       for n in $names_already_handled; do
9139         if test "$n" = "$name"; then
9140           already_handled=yes
9141           break
9142         fi
9143       done
9144       if test -z "$already_handled"; then
9145         names_already_handled="$names_already_handled $name"
9146                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9147         eval value=\"\$HAVE_LIB$uppername\"
9148         if test -n "$value"; then
9149           if test "$value" = yes; then
9150             eval value=\"\$LIB$uppername\"
9151             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9152             eval value=\"\$LTLIB$uppername\"
9153             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9154           else
9155                                     :
9156           fi
9157         else
9158                               found_dir=
9159           found_la=
9160           found_so=
9161           found_a=
9162           if test $use_additional = yes; then
9163             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9164               found_dir="$additional_libdir"
9165               found_so="$additional_libdir/lib$name.$shlibext"
9166               if test -f "$additional_libdir/lib$name.la"; then
9167                 found_la="$additional_libdir/lib$name.la"
9168               fi
9169             else
9170               if test -f "$additional_libdir/lib$name.$libext"; then
9171                 found_dir="$additional_libdir"
9172                 found_a="$additional_libdir/lib$name.$libext"
9173                 if test -f "$additional_libdir/lib$name.la"; then
9174                   found_la="$additional_libdir/lib$name.la"
9175                 fi
9176               fi
9177             fi
9178           fi
9179           if test "X$found_dir" = "X"; then
9180             for x in $LDFLAGS $LTLIBICONV; do
9181
9182   acl_save_prefix="$prefix"
9183   prefix="$acl_final_prefix"
9184   acl_save_exec_prefix="$exec_prefix"
9185   exec_prefix="$acl_final_exec_prefix"
9186   eval x=\"$x\"
9187   exec_prefix="$acl_save_exec_prefix"
9188   prefix="$acl_save_prefix"
9189
9190               case "$x" in
9191                 -L*)
9192                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9193                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9194                     found_dir="$dir"
9195                     found_so="$dir/lib$name.$shlibext"
9196                     if test -f "$dir/lib$name.la"; then
9197                       found_la="$dir/lib$name.la"
9198                     fi
9199                   else
9200                     if test -f "$dir/lib$name.$libext"; then
9201                       found_dir="$dir"
9202                       found_a="$dir/lib$name.$libext"
9203                       if test -f "$dir/lib$name.la"; then
9204                         found_la="$dir/lib$name.la"
9205                       fi
9206                     fi
9207                   fi
9208                   ;;
9209               esac
9210               if test "X$found_dir" != "X"; then
9211                 break
9212               fi
9213             done
9214           fi
9215           if test "X$found_dir" != "X"; then
9216                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9217             if test "X$found_so" != "X"; then
9218                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9219                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9220               else
9221                                                                                 haveit=
9222                 for x in $ltrpathdirs; do
9223                   if test "X$x" = "X$found_dir"; then
9224                     haveit=yes
9225                     break
9226                   fi
9227                 done
9228                 if test -z "$haveit"; then
9229                   ltrpathdirs="$ltrpathdirs $found_dir"
9230                 fi
9231                                 if test "$hardcode_direct" = yes; then
9232                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9233                 else
9234                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9235                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9236                                                             haveit=
9237                     for x in $rpathdirs; do
9238                       if test "X$x" = "X$found_dir"; then
9239                         haveit=yes
9240                         break
9241                       fi
9242                     done
9243                     if test -z "$haveit"; then
9244                       rpathdirs="$rpathdirs $found_dir"
9245                     fi
9246                   else
9247                                                                                 haveit=
9248                     for x in $LDFLAGS $LIBICONV; do
9249
9250   acl_save_prefix="$prefix"
9251   prefix="$acl_final_prefix"
9252   acl_save_exec_prefix="$exec_prefix"
9253   exec_prefix="$acl_final_exec_prefix"
9254   eval x=\"$x\"
9255   exec_prefix="$acl_save_exec_prefix"
9256   prefix="$acl_save_prefix"
9257
9258                       if test "X$x" = "X-L$found_dir"; then
9259                         haveit=yes
9260                         break
9261                       fi
9262                     done
9263                     if test -z "$haveit"; then
9264                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9265                     fi
9266                     if test "$hardcode_minus_L" != no; then
9267                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9268                     else
9269                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9270                     fi
9271                   fi
9272                 fi
9273               fi
9274             else
9275               if test "X$found_a" != "X"; then
9276                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9277               else
9278                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9279               fi
9280             fi
9281                         additional_includedir=
9282             case "$found_dir" in
9283               */lib | */lib/)
9284                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9285                 additional_includedir="$basedir/include"
9286                 ;;
9287             esac
9288             if test "X$additional_includedir" != "X"; then
9289                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9290                 haveit=
9291                 if test "X$additional_includedir" = "X/usr/local/include"; then
9292                   if test -n "$GCC"; then
9293                     case $host_os in
9294                       linux*) haveit=yes;;
9295                     esac
9296                   fi
9297                 fi
9298                 if test -z "$haveit"; then
9299                   for x in $CPPFLAGS $INCICONV; do
9300
9301   acl_save_prefix="$prefix"
9302   prefix="$acl_final_prefix"
9303   acl_save_exec_prefix="$exec_prefix"
9304   exec_prefix="$acl_final_exec_prefix"
9305   eval x=\"$x\"
9306   exec_prefix="$acl_save_exec_prefix"
9307   prefix="$acl_save_prefix"
9308
9309                     if test "X$x" = "X-I$additional_includedir"; then
9310                       haveit=yes
9311                       break
9312                     fi
9313                   done
9314                   if test -z "$haveit"; then
9315                     if test -d "$additional_includedir"; then
9316                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9317                     fi
9318                   fi
9319                 fi
9320               fi
9321             fi
9322                         if test -n "$found_la"; then
9323                                                         save_libdir="$libdir"
9324               case "$found_la" in
9325                 */* | *\\*) . "$found_la" ;;
9326                 *) . "./$found_la" ;;
9327               esac
9328               libdir="$save_libdir"
9329                             for dep in $dependency_libs; do
9330                 case "$dep" in
9331                   -L*)
9332                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9333                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9334                       haveit=
9335                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9336                         if test -n "$GCC"; then
9337                           case $host_os in
9338                             linux*) haveit=yes;;
9339                           esac
9340                         fi
9341                       fi
9342                       if test -z "$haveit"; then
9343                         haveit=
9344                         for x in $LDFLAGS $LIBICONV; do
9345
9346   acl_save_prefix="$prefix"
9347   prefix="$acl_final_prefix"
9348   acl_save_exec_prefix="$exec_prefix"
9349   exec_prefix="$acl_final_exec_prefix"
9350   eval x=\"$x\"
9351   exec_prefix="$acl_save_exec_prefix"
9352   prefix="$acl_save_prefix"
9353
9354                           if test "X$x" = "X-L$additional_libdir"; then
9355                             haveit=yes
9356                             break
9357                           fi
9358                         done
9359                         if test -z "$haveit"; then
9360                           if test -d "$additional_libdir"; then
9361                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9362                           fi
9363                         fi
9364                         haveit=
9365                         for x in $LDFLAGS $LTLIBICONV; do
9366
9367   acl_save_prefix="$prefix"
9368   prefix="$acl_final_prefix"
9369   acl_save_exec_prefix="$exec_prefix"
9370   exec_prefix="$acl_final_exec_prefix"
9371   eval x=\"$x\"
9372   exec_prefix="$acl_save_exec_prefix"
9373   prefix="$acl_save_prefix"
9374
9375                           if test "X$x" = "X-L$additional_libdir"; then
9376                             haveit=yes
9377                             break
9378                           fi
9379                         done
9380                         if test -z "$haveit"; then
9381                           if test -d "$additional_libdir"; then
9382                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9383                           fi
9384                         fi
9385                       fi
9386                     fi
9387                     ;;
9388                   -R*)
9389                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9390                     if test "$enable_rpath" != no; then
9391                                                                   haveit=
9392                       for x in $rpathdirs; do
9393                         if test "X$x" = "X$dir"; then
9394                           haveit=yes
9395                           break
9396                         fi
9397                       done
9398                       if test -z "$haveit"; then
9399                         rpathdirs="$rpathdirs $dir"
9400                       fi
9401                                                                   haveit=
9402                       for x in $ltrpathdirs; do
9403                         if test "X$x" = "X$dir"; then
9404                           haveit=yes
9405                           break
9406                         fi
9407                       done
9408                       if test -z "$haveit"; then
9409                         ltrpathdirs="$ltrpathdirs $dir"
9410                       fi
9411                     fi
9412                     ;;
9413                   -l*)
9414                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9415                     ;;
9416                   *.la)
9417                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9418                     ;;
9419                   *)
9420                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9421                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9422                     ;;
9423                 esac
9424               done
9425             fi
9426           else
9427                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9428             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9429           fi
9430         fi
9431       fi
9432     done
9433   done
9434   if test "X$rpathdirs" != "X"; then
9435     if test -n "$hardcode_libdir_separator"; then
9436                         alldirs=
9437       for found_dir in $rpathdirs; do
9438         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9439       done
9440             acl_save_libdir="$libdir"
9441       libdir="$alldirs"
9442       eval flag=\"$hardcode_libdir_flag_spec\"
9443       libdir="$acl_save_libdir"
9444       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9445     else
9446             for found_dir in $rpathdirs; do
9447         acl_save_libdir="$libdir"
9448         libdir="$found_dir"
9449         eval flag=\"$hardcode_libdir_flag_spec\"
9450         libdir="$acl_save_libdir"
9451         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9452       done
9453     fi
9454   fi
9455   if test "X$ltrpathdirs" != "X"; then
9456             for found_dir in $ltrpathdirs; do
9457       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9458     done
9459   fi
9460
9461
9462
9463
9464
9465
9466
9467           am_save_CPPFLAGS="$CPPFLAGS"
9468
9469   for element in $INCICONV; do
9470     haveit=
9471     for x in $CPPFLAGS; do
9472
9473   acl_save_prefix="$prefix"
9474   prefix="$acl_final_prefix"
9475   acl_save_exec_prefix="$exec_prefix"
9476   exec_prefix="$acl_final_exec_prefix"
9477   eval x=\"$x\"
9478   exec_prefix="$acl_save_exec_prefix"
9479   prefix="$acl_save_prefix"
9480
9481       if test "X$x" = "X$element"; then
9482         haveit=yes
9483         break
9484       fi
9485     done
9486     if test -z "$haveit"; then
9487       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9488     fi
9489   done
9490
9491
9492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9493 $as_echo_n "checking for iconv... " >&6; }
9494 if test "${am_cv_func_iconv+set}" = set; then :
9495   $as_echo_n "(cached) " >&6
9496 else
9497
9498     am_cv_func_iconv="no, consider installing GNU libiconv"
9499     am_cv_lib_iconv=no
9500     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h.  */
9502 #include <stdlib.h>
9503 #include <iconv.h>
9504 int
9505 main ()
9506 {
9507 iconv_t cd = iconv_open("","");
9508        iconv(cd,NULL,NULL,NULL,NULL);
9509        iconv_close(cd);
9510   ;
9511   return 0;
9512 }
9513 _ACEOF
9514 if ac_fn_c_try_link "$LINENO"; then :
9515   am_cv_func_iconv=yes
9516 fi
9517 rm -f core conftest.err conftest.$ac_objext \
9518     conftest$ac_exeext conftest.$ac_ext
9519     if test "$am_cv_func_iconv" != yes; then
9520       am_save_LIBS="$LIBS"
9521       LIBS="$LIBS $LIBICONV"
9522       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523 /* end confdefs.h.  */
9524 #include <stdlib.h>
9525 #include <iconv.h>
9526 int
9527 main ()
9528 {
9529 iconv_t cd = iconv_open("","");
9530          iconv(cd,NULL,NULL,NULL,NULL);
9531          iconv_close(cd);
9532   ;
9533   return 0;
9534 }
9535 _ACEOF
9536 if ac_fn_c_try_link "$LINENO"; then :
9537   am_cv_lib_iconv=yes
9538         am_cv_func_iconv=yes
9539 fi
9540 rm -f core conftest.err conftest.$ac_objext \
9541     conftest$ac_exeext conftest.$ac_ext
9542       LIBS="$am_save_LIBS"
9543     fi
9544
9545 fi
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9547 $as_echo "$am_cv_func_iconv" >&6; }
9548   if test "$am_cv_func_iconv" = yes; then
9549
9550 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9551
9552   fi
9553   if test "$am_cv_lib_iconv" = yes; then
9554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9555 $as_echo_n "checking how to link with libiconv... " >&6; }
9556     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9557 $as_echo "$LIBICONV" >&6; }
9558   else
9559             CPPFLAGS="$am_save_CPPFLAGS"
9560     LIBICONV=
9561     LTLIBICONV=
9562   fi
9563
9564
9565
9566   if test "$am_cv_func_iconv" = yes; then
9567     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9568 $as_echo_n "checking for iconv declaration... " >&6; }
9569     if test "${am_cv_proto_iconv+set}" = set; then :
9570   $as_echo_n "(cached) " >&6
9571 else
9572
9573       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h.  */
9575
9576 #include <stdlib.h>
9577 #include <iconv.h>
9578 extern
9579 #ifdef __cplusplus
9580 "C"
9581 #endif
9582 #if defined(__STDC__) || defined(__cplusplus)
9583 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9584 #else
9585 size_t iconv();
9586 #endif
9587
9588 int
9589 main ()
9590 {
9591
9592   ;
9593   return 0;
9594 }
9595 _ACEOF
9596 if ac_fn_c_try_compile "$LINENO"; then :
9597   am_cv_proto_iconv_arg1=""
9598 else
9599   am_cv_proto_iconv_arg1="const"
9600 fi
9601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9602       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);"
9603 fi
9604
9605     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9606     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9607          }$am_cv_proto_iconv" >&5
9608 $as_echo "${ac_t:-
9609          }$am_cv_proto_iconv" >&6; }
9610
9611 cat >>confdefs.h <<_ACEOF
9612 #define ICONV_CONST $am_cv_proto_iconv_arg1
9613 _ACEOF
9614
9615   fi
9616
9617 # Until we have in-tree GNU iconv:
9618 LIBICONV_DEP=
9619
9620
9621
9622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9623 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9624 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9625   $as_echo_n "(cached) " >&6
9626 else
9627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h.  */
9629 #include <locale.h>
9630 int
9631 main ()
9632 {
9633 return LC_MESSAGES
9634   ;
9635   return 0;
9636 }
9637 _ACEOF
9638 if ac_fn_c_try_link "$LINENO"; then :
9639   am_cv_val_LC_MESSAGES=yes
9640 else
9641   am_cv_val_LC_MESSAGES=no
9642 fi
9643 rm -f core conftest.err conftest.$ac_objext \
9644     conftest$ac_exeext conftest.$ac_ext
9645 fi
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9647 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9648   if test $am_cv_val_LC_MESSAGES = yes; then
9649
9650 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9651
9652   fi
9653
9654
9655
9656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9657 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9658 if test "${am_cv_langinfo_codeset+set}" = set; then :
9659   $as_echo_n "(cached) " >&6
9660 else
9661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662 /* end confdefs.h.  */
9663 #include <langinfo.h>
9664 int
9665 main ()
9666 {
9667 char* cs = nl_langinfo(CODESET);
9668   ;
9669   return 0;
9670 }
9671 _ACEOF
9672 if ac_fn_c_try_link "$LINENO"; then :
9673   am_cv_langinfo_codeset=yes
9674 else
9675   am_cv_langinfo_codeset=no
9676 fi
9677 rm -f core conftest.err conftest.$ac_objext \
9678     conftest$ac_exeext conftest.$ac_ext
9679
9680 fi
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9682 $as_echo "$am_cv_langinfo_codeset" >&6; }
9683   if test $am_cv_langinfo_codeset = yes; then
9684
9685 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9686
9687   fi
9688
9689
9690 # We will need to find libiberty.h and ansidecl.h
9691 saved_CFLAGS="$CFLAGS"
9692 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9693 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9694         strsignal strstr strverscmp \
9695         errno snprintf vsnprintf vasprintf malloc realloc calloc \
9696         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
9697 do
9698   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9700 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9701 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9702   $as_echo_n "(cached) " >&6
9703 else
9704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h.  */
9706 #undef $ac_tr_decl
9707 #define $ac_tr_decl 1
9708
9709 #include "ansidecl.h"
9710 #include "system.h"
9711
9712 int
9713 main ()
9714 {
9715 #ifndef $ac_func
9716 char *(*pfn) = (char *(*)) $ac_func ;
9717 #endif
9718   ;
9719   return 0;
9720 }
9721 _ACEOF
9722 if ac_fn_c_try_compile "$LINENO"; then :
9723   eval "gcc_cv_have_decl_$ac_func=yes"
9724 else
9725   eval "gcc_cv_have_decl_$ac_func=no"
9726 fi
9727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9728 fi
9729
9730 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9732 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9733 #define $ac_tr_decl 1
9734 _ACEOF
9735
9736 else
9737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9738 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9739 #define $ac_tr_decl 0
9740 _ACEOF
9741
9742 fi
9743
9744 done
9745
9746
9747 for ac_func in getrlimit setrlimit getrusage
9748 do
9749   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9751 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9752 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9753   $as_echo_n "(cached) " >&6
9754 else
9755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756 /* end confdefs.h.  */
9757 #undef $ac_tr_decl
9758 #define $ac_tr_decl 1
9759
9760 #include "ansidecl.h"
9761 #include "system.h"
9762 #ifdef HAVE_SYS_RESOURCE_H
9763 #include <sys/resource.h>
9764 #endif
9765
9766
9767 int
9768 main ()
9769 {
9770 #ifndef $ac_func
9771 char *(*pfn) = (char *(*)) $ac_func ;
9772 #endif
9773   ;
9774   return 0;
9775 }
9776 _ACEOF
9777 if ac_fn_c_try_compile "$LINENO"; then :
9778   eval "gcc_cv_have_decl_$ac_func=yes"
9779 else
9780   eval "gcc_cv_have_decl_$ac_func=no"
9781 fi
9782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9783 fi
9784
9785 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9787 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9788 #define $ac_tr_decl 1
9789 _ACEOF
9790
9791 else
9792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9793 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9794 #define $ac_tr_decl 0
9795 _ACEOF
9796
9797 fi
9798
9799 done
9800
9801
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h.  */
9804
9805 #include "ansidecl.h"
9806 #include "system.h"
9807 #ifdef HAVE_SYS_RESOURCE_H
9808 #include <sys/resource.h>
9809 #endif
9810
9811 int
9812 main ()
9813 {
9814 rlim_t l = 0;
9815   ;
9816   return 0;
9817 }
9818 _ACEOF
9819 if ac_fn_c_try_compile "$LINENO"; then :
9820
9821 else
9822
9823 $as_echo "#define rlim_t long" >>confdefs.h
9824
9825 fi
9826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9827
9828 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9829 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
9830 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9831 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9832 for ac_func in ldgetname
9833 do
9834   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9836 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9837 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9838   $as_echo_n "(cached) " >&6
9839 else
9840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h.  */
9842 #undef $ac_tr_decl
9843 #define $ac_tr_decl 1
9844
9845 #include "ansidecl.h"
9846 #include "system.h"
9847 #ifdef HAVE_LDFCN_H
9848 #undef FREAD
9849 #undef FWRITE
9850 #include <ldfcn.h>
9851 #endif
9852
9853
9854 int
9855 main ()
9856 {
9857 #ifndef $ac_func
9858 char *(*pfn) = (char *(*)) $ac_func ;
9859 #endif
9860   ;
9861   return 0;
9862 }
9863 _ACEOF
9864 if ac_fn_c_try_compile "$LINENO"; then :
9865   eval "gcc_cv_have_decl_$ac_func=yes"
9866 else
9867   eval "gcc_cv_have_decl_$ac_func=no"
9868 fi
9869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9870 fi
9871
9872 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9874 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9875 #define $ac_tr_decl 1
9876 _ACEOF
9877
9878 else
9879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9880 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9881 #define $ac_tr_decl 0
9882 _ACEOF
9883
9884 fi
9885
9886 done
9887
9888
9889 for ac_func in times
9890 do
9891   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9893 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9894 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9895   $as_echo_n "(cached) " >&6
9896 else
9897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h.  */
9899 #undef $ac_tr_decl
9900 #define $ac_tr_decl 1
9901
9902 #include "ansidecl.h"
9903 #include "system.h"
9904 #ifdef HAVE_SYS_TIMES_H
9905 #include <sys/times.h>
9906 #endif
9907
9908
9909 int
9910 main ()
9911 {
9912 #ifndef $ac_func
9913 char *(*pfn) = (char *(*)) $ac_func ;
9914 #endif
9915   ;
9916   return 0;
9917 }
9918 _ACEOF
9919 if ac_fn_c_try_compile "$LINENO"; then :
9920   eval "gcc_cv_have_decl_$ac_func=yes"
9921 else
9922   eval "gcc_cv_have_decl_$ac_func=no"
9923 fi
9924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9925 fi
9926
9927 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9929 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9930 #define $ac_tr_decl 1
9931 _ACEOF
9932
9933 else
9934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9936 #define $ac_tr_decl 0
9937 _ACEOF
9938
9939 fi
9940
9941 done
9942
9943
9944 for ac_func in sigaltstack
9945 do
9946   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9948 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9949 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9950   $as_echo_n "(cached) " >&6
9951 else
9952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h.  */
9954 #undef $ac_tr_decl
9955 #define $ac_tr_decl 1
9956
9957 #include "ansidecl.h"
9958 #include "system.h"
9959 #include <signal.h>
9960
9961
9962 int
9963 main ()
9964 {
9965 #ifndef $ac_func
9966 char *(*pfn) = (char *(*)) $ac_func ;
9967 #endif
9968   ;
9969   return 0;
9970 }
9971 _ACEOF
9972 if ac_fn_c_try_compile "$LINENO"; then :
9973   eval "gcc_cv_have_decl_$ac_func=yes"
9974 else
9975   eval "gcc_cv_have_decl_$ac_func=no"
9976 fi
9977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9978 fi
9979
9980 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9982 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9983 #define $ac_tr_decl 1
9984 _ACEOF
9985
9986 else
9987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9989 #define $ac_tr_decl 0
9990 _ACEOF
9991
9992 fi
9993
9994 done
9995
9996
9997 # More time-related stuff.
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
9999 $as_echo_n "checking for struct tms... " >&6; }
10000 if test "${ac_cv_struct_tms+set}" = set; then :
10001   $as_echo_n "(cached) " >&6
10002 else
10003
10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005 /* end confdefs.h.  */
10006
10007 #include "ansidecl.h"
10008 #include "system.h"
10009 #ifdef HAVE_SYS_TIMES_H
10010 #include <sys/times.h>
10011 #endif
10012
10013 int
10014 main ()
10015 {
10016 struct tms tms;
10017   ;
10018   return 0;
10019 }
10020 _ACEOF
10021 if ac_fn_c_try_compile "$LINENO"; then :
10022   ac_cv_struct_tms=yes
10023 else
10024   ac_cv_struct_tms=no
10025 fi
10026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10027 fi
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10029 $as_echo "$ac_cv_struct_tms" >&6; }
10030 if test $ac_cv_struct_tms = yes; then
10031
10032 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10033
10034 fi
10035
10036 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10037 # revisit after autoconf 2.50.
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10039 $as_echo_n "checking for clock_t... " >&6; }
10040 if test "${gcc_cv_type_clock_t+set}" = set; then :
10041   $as_echo_n "(cached) " >&6
10042 else
10043
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h.  */
10046
10047 #include "ansidecl.h"
10048 #include "system.h"
10049
10050 int
10051 main ()
10052 {
10053 clock_t x;
10054   ;
10055   return 0;
10056 }
10057 _ACEOF
10058 if ac_fn_c_try_compile "$LINENO"; then :
10059   gcc_cv_type_clock_t=yes
10060 else
10061   gcc_cv_type_clock_t=no
10062 fi
10063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10064 fi
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10066 $as_echo "$gcc_cv_type_clock_t" >&6; }
10067 if test $gcc_cv_type_clock_t = yes; then
10068
10069 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10070
10071 fi
10072
10073 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10074 CFLAGS="$saved_CFLAGS"
10075
10076 # Check whether --enable-initfini-array was given.
10077 if test "${enable_initfini_array+set}" = set; then :
10078   enableval=$enable_initfini_array;
10079 else
10080
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10082 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10083 if test "${gcc_cv_initfini_array+set}" = set; then :
10084   $as_echo_n "(cached) " >&6
10085 else
10086     if test "$cross_compiling" = yes; then :
10087   gcc_cv_initfini_array=no
10088 else
10089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h.  */
10091
10092 static int x = -1;
10093 int main (void) { return x; }
10094 int foo (void) { x = 0; }
10095 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10096 _ACEOF
10097 if ac_fn_c_try_run "$LINENO"; then :
10098   gcc_cv_initfini_array=yes
10099 else
10100   gcc_cv_initfini_array=no
10101 fi
10102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10103   conftest.$ac_objext conftest.beam conftest.$ac_ext
10104 fi
10105
10106 fi
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10108 $as_echo "$gcc_cv_initfini_array" >&6; }
10109   enable_initfini_array=$gcc_cv_initfini_array
10110
10111 fi
10112
10113 if test $enable_initfini_array = yes; then
10114
10115 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10116
10117 fi
10118
10119 # mkdir takes a single argument on some systems.
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10121 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10122 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10123   $as_echo_n "(cached) " >&6
10124 else
10125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h.  */
10127
10128 #include <sys/types.h>
10129 #ifdef HAVE_SYS_STAT_H
10130 # include <sys/stat.h>
10131 #endif
10132 #ifdef HAVE_UNISTD_H
10133 # include <unistd.h>
10134 #endif
10135 #ifdef HAVE_DIRECT_H
10136 # include <direct.h>
10137 #endif
10138 int
10139 main ()
10140 {
10141 mkdir ("foo", 0);
10142   ;
10143   return 0;
10144 }
10145 _ACEOF
10146 if ac_fn_c_try_compile "$LINENO"; then :
10147   gcc_cv_mkdir_takes_one_arg=no
10148 else
10149   gcc_cv_mkdir_takes_one_arg=yes
10150 fi
10151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10152 fi
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10154 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10155 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10156
10157 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10158
10159 fi
10160
10161
10162 # File extensions
10163 manext='.1'
10164 objext='.o'
10165
10166
10167
10168 # With Setjmp/Longjmp based exception handling.
10169 # Check whether --enable-sjlj-exceptions was given.
10170 if test "${enable_sjlj_exceptions+set}" = set; then :
10171   enableval=$enable_sjlj_exceptions; case $target in
10172   *-*-hpux10*)
10173     if test $enableval != yes; then
10174       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10175 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10176       enableval=yes
10177     fi
10178     ;;
10179 esac
10180 force_sjlj_exceptions=yes
10181 else
10182   case $target in
10183   *-*-hpux10*)
10184     force_sjlj_exceptions=yes
10185     enableval=yes
10186     ;;
10187   *)
10188     force_sjlj_exceptions=no
10189     ;;
10190 esac
10191 fi
10192
10193 if test $force_sjlj_exceptions = yes; then
10194   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10195
10196 cat >>confdefs.h <<_ACEOF
10197 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10198 _ACEOF
10199
10200 fi
10201
10202 # For platforms with the unwind ABI which includes an unwind library,
10203 # libunwind, we can choose to use the system libunwind.
10204 # config.gcc also contains tests of with_system_libunwind.
10205
10206
10207 # Check whether --with-system-libunwind was given.
10208 if test "${with_system_libunwind+set}" = set; then :
10209   withval=$with_system_libunwind;
10210 fi
10211
10212   # If system-libunwind was not specifically set, pick a default setting.
10213   if test x$with_system_libunwind = x; then
10214     case ${target} in
10215       ia64-*-hpux*) with_system_libunwind=yes ;;
10216       *) with_system_libunwind=no ;;
10217     esac
10218   fi
10219   # Based on system-libunwind and target, do we have ipinfo?
10220   if  test x$with_system_libunwind = xyes; then
10221     case ${target} in
10222       ia64-*-*) have_unwind_getipinfo=no ;;
10223       *) have_unwind_getipinfo=yes ;;
10224     esac
10225   else
10226     # Darwin before version 9 does not have _Unwind_GetIPInfo.
10227
10228     case ${target} in
10229       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10230       *) have_unwind_getipinfo=yes ;;
10231     esac
10232
10233   fi
10234
10235   if test x$have_unwind_getipinfo = xyes; then
10236
10237 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10238
10239   fi
10240
10241
10242 # --------------------------------------------------------
10243 # Build, host, and target specific configuration fragments
10244 # --------------------------------------------------------
10245
10246 # Collect build-machine-specific information.
10247 . ${srcdir}/config.build
10248
10249 # Collect host-machine-specific information.
10250 . ${srcdir}/config.host
10251
10252 target_gtfiles=
10253
10254 # Collect target-machine-specific information.
10255 . ${srcdir}/config.gcc
10256
10257 extra_objs="${host_extra_objs} ${extra_objs}"
10258 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10259
10260 # Default the target-machine variables that were not explicitly set.
10261 if test x"$tm_file" = x
10262 then tm_file=$cpu_type/$cpu_type.h; fi
10263
10264 if test x"$extra_headers" = x
10265 then extra_headers=; fi
10266
10267 if test x$md_file = x
10268 then md_file=$cpu_type/$cpu_type.md; fi
10269
10270 if test x$out_file = x
10271 then out_file=$cpu_type/$cpu_type.c; fi
10272
10273 if test x"$tmake_file" = x
10274 then tmake_file=$cpu_type/t-$cpu_type
10275 fi
10276
10277 if test x"$dwarf2" = xyes
10278 then tm_file="$tm_file tm-dwarf2.h"
10279 fi
10280
10281 # Say what files are being used for the output code and MD file.
10282 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10283 echo "Using \`$srcdir/config/$md_file' as machine description file."
10284
10285 # If any of the xm_file variables contain nonexistent files, warn
10286 # about them and drop them.
10287
10288 bx=
10289 for x in $build_xm_file; do
10290   if    test -f $srcdir/config/$x
10291   then      bx="$bx $x"
10292   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10293 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10294   fi
10295 done
10296 build_xm_file="$bx"
10297
10298 hx=
10299 for x in $host_xm_file; do
10300   if    test -f $srcdir/config/$x
10301   then      hx="$hx $x"
10302   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10303 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10304   fi
10305 done
10306 host_xm_file="$hx"
10307
10308 tx=
10309 for x in $xm_file; do
10310   if    test -f $srcdir/config/$x
10311   then      tx="$tx $x"
10312   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10313 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10314   fi
10315 done
10316 xm_file="$tx"
10317
10318 count=a
10319 for f in $tm_file; do
10320         count=${count}x
10321 done
10322 if test $count = ax; then
10323         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10324 else
10325         echo "Using the following target machine macro files:"
10326         for f in $tm_file; do
10327                 echo "  $srcdir/config/$f"
10328         done
10329 fi
10330
10331 if test x$need_64bit_hwint = xyes; then
10332
10333 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10334
10335 fi
10336
10337 if test x$use_long_long_for_widest_fast_int = xyes; then
10338
10339 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10340
10341 fi
10342
10343 count=a
10344 for f in $host_xm_file; do
10345         count=${count}x
10346 done
10347 if test $count = a; then
10348         :
10349 elif test $count = ax; then
10350         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10351 else
10352         echo "Using the following host machine macro files:"
10353         for f in $host_xm_file; do
10354                 echo "  $srcdir/config/$f"
10355         done
10356 fi
10357 echo "Using ${out_host_hook_obj} for host machine hooks."
10358
10359 if test "$host_xm_file" != "$build_xm_file"; then
10360         count=a
10361         for f in $build_xm_file; do
10362                 count=${count}x
10363         done
10364         if test $count = a; then
10365                 :
10366         elif test $count = ax; then
10367                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10368         else
10369                 echo "Using the following build machine macro files:"
10370                 for f in $build_xm_file; do
10371                         echo "  $srcdir/config/$f"
10372                 done
10373         fi
10374 fi
10375
10376 case ${host} in
10377   powerpc*-*-darwin*)
10378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10379 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10380 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10381   $as_echo_n "(cached) " >&6
10382 else
10383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h.  */
10385
10386 #include <sys/cdefs.h>
10387 #include <sys/signal.h>
10388 #include <ucontext.h>
10389 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10390
10391 _ACEOF
10392 if ac_fn_c_try_compile "$LINENO"; then :
10393   gcc_cv_mcontext_underscores=no
10394 else
10395   gcc_cv_mcontext_underscores=yes
10396 fi
10397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10398 fi
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10400 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10401       if test $gcc_cv_mcontext_underscores = yes; then
10402
10403 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10404
10405       fi
10406     ;;
10407 esac
10408
10409 # ---------
10410 # Threading
10411 # ---------
10412
10413 # Check if a valid thread package
10414 case ${enable_threads} in
10415   "" | no)
10416     # No threads
10417     target_thread_file='single'
10418     ;;
10419   yes)
10420     # default
10421     target_thread_file='single'
10422     ;;
10423   aix | dce | gnat | irix | posix | posix95 | rtems | \
10424   single | solaris | vxworks | win32 | mipssde)
10425     target_thread_file=${enable_threads}
10426     ;;
10427   *)
10428     echo "${enable_threads} is an unknown thread package" 1>&2
10429     exit 1
10430     ;;
10431 esac
10432
10433 if test x${thread_file} = x; then
10434   # No thread file set by target-specific clauses in config.gcc,
10435   # so use file chosen by default logic above
10436   thread_file=${target_thread_file}
10437 fi
10438
10439 # Make gthr-default.h if we have a thread file.
10440 gthread_flags=
10441 if test $thread_file != single; then
10442   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10443   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10444     rm -f gthr-default.h-t
10445   else
10446     mv -f gthr-default.h-t gthr-default.h
10447   fi
10448   gthread_flags=-DHAVE_GTHR_DEFAULT
10449 fi
10450
10451
10452 # --------
10453 # UNSORTED
10454 # --------
10455
10456 use_cxa_atexit=no
10457 if test x$enable___cxa_atexit = xyes || \
10458    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10459   if test x$host = x$target; then
10460     case $host in
10461       # mingw32 doesn't have __cxa_atexit but uses atexit registration
10462       # keyed to flag_use_cxa_atexit
10463       *-*-mingw32*)
10464         use_cxa_atexit=yes
10465         ;;
10466       *)
10467         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10468 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10469   use_cxa_atexit=yes
10470 else
10471   echo "__cxa_atexit can't be enabled on this target"
10472 fi
10473
10474         ;;
10475     esac
10476   else
10477     # We can't check for __cxa_atexit when building a cross, so assume
10478     # it is available
10479     use_cxa_atexit=yes
10480   fi
10481   if test x$use_cxa_atexit = xyes; then
10482
10483 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10484
10485   fi
10486 fi
10487
10488 # Look for a file containing extra machine modes.
10489 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10490   extra_modes_file='$(srcdir)'/config/${extra_modes}
10491
10492
10493 cat >>confdefs.h <<_ACEOF
10494 #define EXTRA_MODES_FILE "config/$extra_modes"
10495 _ACEOF
10496
10497 fi
10498
10499 # Convert extra_options into a form suitable for Makefile use.
10500 extra_opt_files=
10501 for f in $extra_options; do
10502   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10503 done
10504
10505
10506 # auto-host.h is the file containing items generated by autoconf and is
10507 # the first file included by config.h.
10508 # If host=build, it is correct to have bconfig include auto-host.h
10509 # as well.  If host!=build, we are in error and need to do more
10510 # work to find out the build config parameters.
10511 if test x$host = x$build
10512 then
10513         build_auto=auto-host.h
10514 else
10515         # We create a subdir, then run autoconf in the subdir.
10516         # To prevent recursion we set host and build for the new
10517         # invocation of configure to the build for this invocation
10518         # of configure.
10519         tempdir=build.$$
10520         rm -rf $tempdir
10521         mkdir $tempdir
10522         cd $tempdir
10523         case ${srcdir} in
10524         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10525         *) realsrcdir=../${srcdir};;
10526         esac
10527         saved_CFLAGS="${CFLAGS}"
10528         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10529         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10530         ${realsrcdir}/configure \
10531                 --enable-languages=${enable_languages-all} \
10532                 --target=$target_alias --host=$build_alias --build=$build_alias
10533         CFLAGS="${saved_CFLAGS}"
10534
10535         # We just finished tests for the build machine, so rename
10536         # the file auto-build.h in the gcc directory.
10537         mv auto-host.h ../auto-build.h
10538         cd ..
10539         rm -rf $tempdir
10540         build_auto=auto-build.h
10541 fi
10542
10543
10544 tm_file="${tm_file} defaults.h"
10545 tm_p_file="${tm_p_file} tm-preds.h"
10546 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10547 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10548 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10549 # put this back in temporarily.
10550 xm_file="auto-host.h ansidecl.h ${xm_file}"
10551
10552 # --------
10553 # UNSORTED
10554 # --------
10555
10556 # Compile in configure arguments.
10557 if test -f configargs.h ; then
10558         # Being re-configured.
10559         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10560         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10561 else
10562         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10563 fi
10564
10565 # Double all backslashes and backslash all quotes to turn
10566 # gcc_config_arguments into a C string.
10567 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10568 $gcc_config_arguments
10569 EOF
10570 gcc_config_arguments_str=`cat conftest.out`
10571 rm -f conftest.out
10572
10573 cat > configargs.h <<EOF
10574 /* Generated automatically. */
10575 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10576 static const char thread_model[] = "$thread_file";
10577
10578 static const struct {
10579   const char *name, *value;
10580 } configure_default_options[] = $configure_default_options;
10581 EOF
10582
10583 gcc_BASEVER=`cat $srcdir/BASE-VER`
10584 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10585 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10586 if test -f $srcdir/REVISION ; then
10587         gcc_REVISION=`cat $srcdir/REVISION`
10588 else
10589         gcc_REVISION=""
10590 fi
10591 cat > plugin-version.h <<EOF
10592 #include "configargs.h"
10593
10594 static char basever[] = "$gcc_BASEVER";
10595 static char datestamp[] = "$gcc_DATESTAMP";
10596 static char devphase[] = "$gcc_DEVPHASE";
10597 static char revision[] = "$gcc_REVISION";
10598
10599 /* FIXME plugins: We should make the version information more precise.
10600    One way to do is to add a checksum. */
10601
10602 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10603                                                 devphase, revision,
10604                                                 configuration_arguments};
10605 EOF
10606
10607 # Internationalization
10608 # If we haven't got the data from the intl directory,
10609 # assume NLS is disabled.
10610 USE_NLS=no
10611 LIBINTL=
10612 LIBINTL_DEP=
10613 INCINTL=
10614 XGETTEXT=
10615 GMSGFMT=
10616 POSUB=
10617
10618 if test -f  ../intl/config.intl; then
10619   .  ../intl/config.intl
10620 fi
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10622 $as_echo_n "checking whether NLS is requested... " >&6; }
10623 if test x"$USE_NLS" != xyes; then
10624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625 $as_echo "no" >&6; }
10626 else
10627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10628 $as_echo "yes" >&6; }
10629
10630 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10631
10632
10633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10634 $as_echo_n "checking for catalogs to be installed... " >&6; }
10635   # Look for .po and .gmo files in the source directory.
10636   CATALOGS=
10637   XLINGUAS=
10638   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10639     # If there aren't any .gmo files the shell will give us the
10640     # literal string "../path/to/srcdir/po/*.gmo" which has to be
10641     # weeded out.
10642     case "$cat" in *\**)
10643       continue;;
10644     esac
10645     # The quadruple backslash is collapsed to a double backslash
10646     # by the backticks, then collapsed again by the double quotes,
10647     # leaving us with one backslash in the sed expression (right
10648     # before the dot that mustn't act as a wildcard).
10649     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10650     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10651     # The user is allowed to set LINGUAS to a list of languages to
10652     # install catalogs for.  If it's empty that means "all of them."
10653     if test "x$LINGUAS" = x; then
10654       CATALOGS="$CATALOGS $cat"
10655       XLINGUAS="$XLINGUAS $lang"
10656     else
10657       case "$LINGUAS" in *$lang*)
10658         CATALOGS="$CATALOGS $cat"
10659         XLINGUAS="$XLINGUAS $lang"
10660         ;;
10661       esac
10662     fi
10663   done
10664   LINGUAS="$XLINGUAS"
10665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10666 $as_echo "$LINGUAS" >&6; }
10667
10668
10669     DATADIRNAME=share
10670
10671   INSTOBJEXT=.mo
10672
10673   GENCAT=gencat
10674
10675   CATOBJEXT=.gmo
10676
10677 fi
10678
10679 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10680 # -liconv on the link line twice.
10681 case "$LIBINTL" in *$LIBICONV*)
10682         LIBICONV= ;;
10683 esac
10684
10685 # Check whether --enable-secureplt was given.
10686 if test "${enable_secureplt+set}" = set; then :
10687   enableval=$enable_secureplt;
10688 fi
10689
10690
10691 # Check whether --enable-leading-mingw64-underscores was given.
10692 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10693   enableval=$enable_leading_mingw64_underscores;
10694 fi
10695
10696 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
10697
10698 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10699
10700 fi
10701
10702 # Check whether --enable-cld was given.
10703 if test "${enable_cld+set}" = set; then :
10704   enableval=$enable_cld;
10705 else
10706   enable_cld=no
10707 fi
10708
10709
10710 # Check whether --enable-frame-pointer was given.
10711 if test "${enable_frame_pointer+set}" = set; then :
10712   enableval=$enable_frame_pointer;
10713 else
10714
10715 case $target_os in
10716 linux* | darwin[8912]*)
10717   # Enable -fomit-frame-pointer by default for Linux and Darwin with
10718   # DWARF2.
10719   enable_frame_pointer=no
10720   ;;
10721 *)
10722   enable_frame_pointer=yes
10723   ;;
10724 esac
10725
10726 fi
10727
10728
10729 # Windows32 Registry support for specifying GCC installation paths.
10730 # Check whether --enable-win32-registry was given.
10731 if test "${enable_win32_registry+set}" = set; then :
10732   enableval=$enable_win32_registry;
10733 fi
10734
10735
10736 case $host_os in
10737   win32 | pe | cygwin* | mingw32* | uwin*)
10738     if test "x$enable_win32_registry" != xno; then
10739       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10740 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10741 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10742   $as_echo_n "(cached) " >&6
10743 else
10744   ac_func_search_save_LIBS=$LIBS
10745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10746 /* end confdefs.h.  */
10747
10748 /* Override any GCC internal prototype to avoid an error.
10749    Use char because int might match the return type of a GCC
10750    builtin and then its argument prototype would still apply.  */
10751 #ifdef __cplusplus
10752 extern "C"
10753 #endif
10754 char RegOpenKeyExA ();
10755 int
10756 main ()
10757 {
10758 return RegOpenKeyExA ();
10759   ;
10760   return 0;
10761 }
10762 _ACEOF
10763 for ac_lib in '' advapi32; do
10764   if test -z "$ac_lib"; then
10765     ac_res="none required"
10766   else
10767     ac_res=-l$ac_lib
10768     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10769   fi
10770   if ac_fn_c_try_link "$LINENO"; then :
10771   ac_cv_search_RegOpenKeyExA=$ac_res
10772 fi
10773 rm -f core conftest.err conftest.$ac_objext \
10774     conftest$ac_exeext
10775   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10776   break
10777 fi
10778 done
10779 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10780
10781 else
10782   ac_cv_search_RegOpenKeyExA=no
10783 fi
10784 rm conftest.$ac_ext
10785 LIBS=$ac_func_search_save_LIBS
10786 fi
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10788 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10789 ac_res=$ac_cv_search_RegOpenKeyExA
10790 if test "$ac_res" != no; then :
10791   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10792
10793 else
10794   enable_win32_registry=no
10795 fi
10796
10797     fi
10798
10799     if test "x$enable_win32_registry" != xno; then
10800
10801 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10802
10803
10804       if test "x$enable_win32_registry" != xyes \
10805          && test "x$enable_win32_registry" != x; then
10806
10807 cat >>confdefs.h <<_ACEOF
10808 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10809 _ACEOF
10810
10811       fi
10812     fi
10813   ;;
10814 esac
10815
10816 # Get an absolute path to the GCC top-level source directory
10817 holddir=`${PWDCMD-pwd}`
10818 cd $srcdir
10819 topdir=`${PWDCMD-pwd}`
10820 cd $holddir
10821
10822 # Conditionalize the makefile for this host machine.
10823 xmake_file=
10824 for f in ${host_xmake_file}
10825 do
10826         if test -f ${srcdir}/config/$f
10827         then
10828                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10829         fi
10830 done
10831
10832 # Conditionalize the makefile for this target machine.
10833 tmake_file_=
10834 for f in ${tmake_file}
10835 do
10836         if test -f ${srcdir}/config/$f
10837         then
10838                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10839         fi
10840 done
10841 tmake_file="${tmake_file_}"
10842
10843 out_object_file=`basename $out_file .c`.o
10844
10845 tm_file_list="options.h"
10846 tm_include_list="options.h insn-constants.h"
10847 for f in $tm_file; do
10848   case $f in
10849     ./* )
10850        f=`echo $f | sed 's/^..//'`
10851        tm_file_list="${tm_file_list} $f"
10852        tm_include_list="${tm_include_list} $f"
10853        ;;
10854     defaults.h )
10855        tm_file_list="${tm_file_list} \$(srcdir)/$f"
10856        tm_include_list="${tm_include_list} $f"
10857        ;;
10858     * )
10859        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10860        tm_include_list="${tm_include_list} config/$f"
10861        ;;
10862   esac
10863 done
10864
10865 tm_p_file_list=
10866 tm_p_include_list=
10867 for f in $tm_p_file; do
10868   case $f in
10869     tm-preds.h )
10870        tm_p_file_list="${tm_p_file_list} $f"
10871        tm_p_include_list="${tm_p_include_list} $f"
10872        ;;
10873     * )
10874        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10875        tm_p_include_list="${tm_p_include_list} config/$f"
10876   esac
10877 done
10878
10879 xm_file_list=
10880 xm_include_list=
10881 for f in $xm_file; do
10882   case $f in
10883     ansidecl.h )
10884        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10885        xm_include_list="${xm_include_list} $f"
10886        ;;
10887     auto-host.h )
10888        xm_file_list="${xm_file_list} $f"
10889        xm_include_list="${xm_include_list} $f"
10890        ;;
10891     * )
10892        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10893        xm_include_list="${xm_include_list} config/$f"
10894        ;;
10895   esac
10896 done
10897
10898 host_xm_file_list=
10899 host_xm_include_list=
10900 for f in $host_xm_file; do
10901   case $f in
10902     ansidecl.h )
10903        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10904        host_xm_include_list="${host_xm_include_list} $f"
10905        ;;
10906     auto-host.h )
10907        host_xm_file_list="${host_xm_file_list} $f"
10908        host_xm_include_list="${host_xm_include_list} $f"
10909        ;;
10910     * )
10911        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10912        host_xm_include_list="${host_xm_include_list} config/$f"
10913        ;;
10914   esac
10915 done
10916
10917 build_xm_file_list=
10918 for f in $build_xm_file; do
10919   case $f in
10920     ansidecl.h )
10921        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10922        build_xm_include_list="${build_xm_include_list} $f"
10923        ;;
10924     auto-build.h | auto-host.h )
10925        build_xm_file_list="${build_xm_file_list} $f"
10926        build_xm_include_list="${build_xm_include_list} $f"
10927        ;;
10928     * )
10929        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10930        build_xm_include_list="${build_xm_include_list} config/$f"
10931        ;;
10932   esac
10933 done
10934
10935 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10936 # cross-compiler which does not use the native headers and libraries.
10937 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10938 CROSS=
10939 ALL=all.internal
10940 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10941
10942 if test "x$with_build_sysroot" != x; then
10943   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10944 else
10945   # This value is used, even on a native system, because
10946   # CROSS_SYSTEM_HEADER_DIR is just
10947   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10948   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10949 fi
10950
10951 if test x$host != x$target
10952 then
10953         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10954         ALL=all.cross
10955         SYSTEM_HEADER_DIR=$build_system_header_dir
10956         case "$host","$target" in
10957         # Darwin crosses can use the host system's libraries and headers,
10958         # because of the fat library support.  Of course, it must be the
10959         # same version of Darwin on both sides.  Allow the user to
10960         # just say --target=foo-darwin without a version number to mean
10961         # "the version on this system".
10962             *-*-darwin*,*-*-darwin*)
10963                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10964                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10965                 if test $hostos = $targetos -o $targetos = darwin ; then
10966                     CROSS=
10967                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10968                     with_headers=yes
10969                 fi
10970                 ;;
10971
10972             i?86-*-*,x86_64-*-* \
10973             | powerpc*-*-*,powerpc64*-*-*)
10974                 CROSS="$CROSS -DNATIVE_CROSS" ;;
10975         esac
10976 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10977         SYSTEM_HEADER_DIR=$build_system_header_dir
10978 fi
10979
10980 # If this is a cross-compiler that does not
10981 # have its own set of headers then define
10982 # inhibit_libc
10983
10984 # If this is using newlib, without having the headers available now,
10985 # then define inhibit_libc in LIBGCC2_CFLAGS.
10986 # This prevents libgcc2 from containing any code which requires libc
10987 # support.
10988 : ${inhibit_libc=false}
10989 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10990        test x$with_newlib = xyes ; } &&
10991      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10992        inhibit_libc=true
10993 fi
10994
10995
10996 # When building gcc with a cross-compiler, we need to adjust things so
10997 # that the generator programs are still built with the native compiler.
10998 # Also, we cannot run fixincludes.
10999
11000 # These are the normal (build=host) settings:
11001 CC_FOR_BUILD='$(CC)'
11002 BUILD_CFLAGS='$(ALL_CFLAGS)'
11003 BUILD_LDFLAGS='$(LDFLAGS)'
11004 STMP_FIXINC=stmp-fixinc
11005
11006 # And these apply if build != host, or we are generating coverage data
11007 if test x$build != x$host || test "x$coverage_flags" != x
11008 then
11009     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11010     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11011 fi
11012
11013 # Expand extra_headers to include complete path.
11014 # This substitutes for lots of t-* files.
11015 extra_headers_list=
11016 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11017 for file in ${extra_headers} ; do
11018   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11019 done
11020
11021 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11022 if test x"$use_gcc_tgmath" = xyes
11023 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11024 fi
11025
11026 # Define collect2 in Makefile.
11027 case $host_can_use_collect2 in
11028   no) collect2= ;;
11029   *) collect2='collect2$(exeext)' ;;
11030 esac
11031
11032
11033 # Add a definition of USE_COLLECT2 if system wants one.
11034 case $use_collect2 in
11035   no) use_collect2= ;;
11036   "") ;;
11037   *)
11038     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11039     xm_defines="${xm_defines} USE_COLLECT2"
11040     case $host_can_use_collect2 in
11041       no)
11042         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11043         ;;
11044     esac
11045     ;;
11046 esac
11047
11048 # ---------------------------
11049 # Assembler & linker features
11050 # ---------------------------
11051
11052 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11053 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11054 # However when ld-new is first executed from the build tree, libtool will
11055 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11056 # to the build tree.  While doing this we need to use the previous-stage
11057 # linker, or we have an infinite loop.  The presence of a shell script as
11058 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11059 # the gcc/collect-ld script.  So we need to know how libtool works, or
11060 # exec-tool will fail.
11061
11062
11063 case `pwd` in
11064   *\ * | *\     *)
11065     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11066 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11067 esac
11068
11069
11070
11071 macro_version='2.2.7a'
11072 macro_revision='1.3134'
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086 ltmain="$ac_aux_dir/ltmain.sh"
11087
11088 # Backslashify metacharacters that are still active within
11089 # double-quoted strings.
11090 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11091
11092 # Same as above, but do not quote variable references.
11093 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11094
11095 # Sed substitution to delay expansion of an escaped shell variable in a
11096 # double_quote_subst'ed string.
11097 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11098
11099 # Sed substitution to delay expansion of an escaped single quote.
11100 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11101
11102 # Sed substitution to avoid accidental globbing in evaled expressions
11103 no_glob_subst='s/\*/\\\*/g'
11104
11105 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11106 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11107 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11108
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11110 $as_echo_n "checking how to print strings... " >&6; }
11111 # Test print first, because it will be a builtin if present.
11112 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11113    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11114   ECHO='print -r --'
11115 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11116   ECHO='printf %s\n'
11117 else
11118   # Use this function as a fallback that always works.
11119   func_fallback_echo ()
11120   {
11121     eval 'cat <<_LTECHO_EOF
11122 $1
11123 _LTECHO_EOF'
11124   }
11125   ECHO='func_fallback_echo'
11126 fi
11127
11128 # func_echo_all arg...
11129 # Invoke $ECHO with all args, space-separated.
11130 func_echo_all ()
11131 {
11132     $ECHO ""
11133 }
11134
11135 case "$ECHO" in
11136   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11137 $as_echo "printf" >&6; } ;;
11138   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11139 $as_echo "print -r" >&6; } ;;
11140   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11141 $as_echo "cat" >&6; } ;;
11142 esac
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11158 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11159 if test "${ac_cv_path_SED+set}" = set; then :
11160   $as_echo_n "(cached) " >&6
11161 else
11162             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11163      for ac_i in 1 2 3 4 5 6 7; do
11164        ac_script="$ac_script$as_nl$ac_script"
11165      done
11166      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11167      { ac_script=; unset ac_script;}
11168      if test -z "$SED"; then
11169   ac_path_SED_found=false
11170   # Loop through the user's path and test for each of PROGNAME-LIST
11171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172 for as_dir in $PATH
11173 do
11174   IFS=$as_save_IFS
11175   test -z "$as_dir" && as_dir=.
11176     for ac_prog in sed gsed; do
11177     for ac_exec_ext in '' $ac_executable_extensions; do
11178       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11179       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11180 # Check for GNU ac_path_SED and select it if it is found.
11181   # Check for GNU $ac_path_SED
11182 case `"$ac_path_SED" --version 2>&1` in
11183 *GNU*)
11184   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11185 *)
11186   ac_count=0
11187   $as_echo_n 0123456789 >"conftest.in"
11188   while :
11189   do
11190     cat "conftest.in" "conftest.in" >"conftest.tmp"
11191     mv "conftest.tmp" "conftest.in"
11192     cp "conftest.in" "conftest.nl"
11193     $as_echo '' >> "conftest.nl"
11194     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11195     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11196     as_fn_arith $ac_count + 1 && ac_count=$as_val
11197     if test $ac_count -gt ${ac_path_SED_max-0}; then
11198       # Best one so far, save it but keep looking for a better one
11199       ac_cv_path_SED="$ac_path_SED"
11200       ac_path_SED_max=$ac_count
11201     fi
11202     # 10*(2^10) chars as input seems more than enough
11203     test $ac_count -gt 10 && break
11204   done
11205   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11206 esac
11207
11208       $ac_path_SED_found && break 3
11209     done
11210   done
11211   done
11212 IFS=$as_save_IFS
11213   if test -z "$ac_cv_path_SED"; then
11214     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11215   fi
11216 else
11217   ac_cv_path_SED=$SED
11218 fi
11219
11220 fi
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11222 $as_echo "$ac_cv_path_SED" >&6; }
11223  SED="$ac_cv_path_SED"
11224   rm -f conftest.sed
11225
11226 test -z "$SED" && SED=sed
11227 Xsed="$SED -e 1s/^X//"
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11240 $as_echo_n "checking for fgrep... " >&6; }
11241 if test "${ac_cv_path_FGREP+set}" = set; then :
11242   $as_echo_n "(cached) " >&6
11243 else
11244   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11245    then ac_cv_path_FGREP="$GREP -F"
11246    else
11247      if test -z "$FGREP"; then
11248   ac_path_FGREP_found=false
11249   # Loop through the user's path and test for each of PROGNAME-LIST
11250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11252 do
11253   IFS=$as_save_IFS
11254   test -z "$as_dir" && as_dir=.
11255     for ac_prog in fgrep; do
11256     for ac_exec_ext in '' $ac_executable_extensions; do
11257       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11258       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11259 # Check for GNU ac_path_FGREP and select it if it is found.
11260   # Check for GNU $ac_path_FGREP
11261 case `"$ac_path_FGREP" --version 2>&1` in
11262 *GNU*)
11263   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11264 *)
11265   ac_count=0
11266   $as_echo_n 0123456789 >"conftest.in"
11267   while :
11268   do
11269     cat "conftest.in" "conftest.in" >"conftest.tmp"
11270     mv "conftest.tmp" "conftest.in"
11271     cp "conftest.in" "conftest.nl"
11272     $as_echo 'FGREP' >> "conftest.nl"
11273     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11274     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11275     as_fn_arith $ac_count + 1 && ac_count=$as_val
11276     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11277       # Best one so far, save it but keep looking for a better one
11278       ac_cv_path_FGREP="$ac_path_FGREP"
11279       ac_path_FGREP_max=$ac_count
11280     fi
11281     # 10*(2^10) chars as input seems more than enough
11282     test $ac_count -gt 10 && break
11283   done
11284   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11285 esac
11286
11287       $ac_path_FGREP_found && break 3
11288     done
11289   done
11290   done
11291 IFS=$as_save_IFS
11292   if test -z "$ac_cv_path_FGREP"; then
11293     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11294   fi
11295 else
11296   ac_cv_path_FGREP=$FGREP
11297 fi
11298
11299    fi
11300 fi
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11302 $as_echo "$ac_cv_path_FGREP" >&6; }
11303  FGREP="$ac_cv_path_FGREP"
11304
11305
11306 test -z "$GREP" && GREP=grep
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326 # Check whether --with-gnu-ld was given.
11327 if test "${with_gnu_ld+set}" = set; then :
11328   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11329 else
11330   with_gnu_ld=no
11331 fi
11332
11333 ac_prog=ld
11334 if test "$GCC" = yes; then
11335   # Check if gcc -print-prog-name=ld gives a path.
11336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11337 $as_echo_n "checking for ld used by $CC... " >&6; }
11338   case $host in
11339   *-*-mingw*)
11340     # gcc leaves a trailing carriage return which upsets mingw
11341     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11342   *)
11343     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11344   esac
11345   case $ac_prog in
11346     # Accept absolute paths.
11347     [\\/]* | ?:[\\/]*)
11348       re_direlt='/[^/][^/]*/\.\./'
11349       # Canonicalize the pathname of ld
11350       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11351       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11352         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11353       done
11354       test -z "$LD" && LD="$ac_prog"
11355       ;;
11356   "")
11357     # If it fails, then pretend we aren't using GCC.
11358     ac_prog=ld
11359     ;;
11360   *)
11361     # If it is relative, then search for the first ld in PATH.
11362     with_gnu_ld=unknown
11363     ;;
11364   esac
11365 elif test "$with_gnu_ld" = yes; then
11366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11367 $as_echo_n "checking for GNU ld... " >&6; }
11368 else
11369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11370 $as_echo_n "checking for non-GNU ld... " >&6; }
11371 fi
11372 if test "${lt_cv_path_LD+set}" = set; then :
11373   $as_echo_n "(cached) " >&6
11374 else
11375   if test -z "$LD"; then
11376   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11377   for ac_dir in $PATH; do
11378     IFS="$lt_save_ifs"
11379     test -z "$ac_dir" && ac_dir=.
11380     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11381       lt_cv_path_LD="$ac_dir/$ac_prog"
11382       # Check to see if the program is GNU ld.  I'd rather use --version,
11383       # but apparently some variants of GNU ld only accept -v.
11384       # Break only if it was the GNU/non-GNU ld that we prefer.
11385       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11386       *GNU* | *'with BFD'*)
11387         test "$with_gnu_ld" != no && break
11388         ;;
11389       *)
11390         test "$with_gnu_ld" != yes && break
11391         ;;
11392       esac
11393     fi
11394   done
11395   IFS="$lt_save_ifs"
11396 else
11397   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11398 fi
11399 fi
11400
11401 LD="$lt_cv_path_LD"
11402 if test -n "$LD"; then
11403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11404 $as_echo "$LD" >&6; }
11405 else
11406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11407 $as_echo "no" >&6; }
11408 fi
11409 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11411 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11412 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11413   $as_echo_n "(cached) " >&6
11414 else
11415   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11416 case `$LD -v 2>&1 </dev/null` in
11417 *GNU* | *'with BFD'*)
11418   lt_cv_prog_gnu_ld=yes
11419   ;;
11420 *)
11421   lt_cv_prog_gnu_ld=no
11422   ;;
11423 esac
11424 fi
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11426 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11427 with_gnu_ld=$lt_cv_prog_gnu_ld
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11438 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11439 if test "${lt_cv_path_NM+set}" = set; then :
11440   $as_echo_n "(cached) " >&6
11441 else
11442   if test -n "$NM"; then
11443   # Let the user override the test.
11444   lt_cv_path_NM="$NM"
11445 else
11446   lt_nm_to_check="${ac_tool_prefix}nm"
11447   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11448     lt_nm_to_check="$lt_nm_to_check nm"
11449   fi
11450   for lt_tmp_nm in $lt_nm_to_check; do
11451     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11452     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11453       IFS="$lt_save_ifs"
11454       test -z "$ac_dir" && ac_dir=.
11455       tmp_nm="$ac_dir/$lt_tmp_nm"
11456       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11457         # Check to see if the nm accepts a BSD-compat flag.
11458         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11459         #   nm: unknown option "B" ignored
11460         # Tru64's nm complains that /dev/null is an invalid object file
11461         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11462         */dev/null* | *'Invalid file or object type'*)
11463           lt_cv_path_NM="$tmp_nm -B"
11464           break
11465           ;;
11466         *)
11467           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11468           */dev/null*)
11469             lt_cv_path_NM="$tmp_nm -p"
11470             break
11471             ;;
11472           *)
11473             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11474             continue # so that we can try to find one that supports BSD flags
11475             ;;
11476           esac
11477           ;;
11478         esac
11479       fi
11480     done
11481     IFS="$lt_save_ifs"
11482   done
11483   : ${lt_cv_path_NM=no}
11484 fi
11485 fi
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11487 $as_echo "$lt_cv_path_NM" >&6; }
11488 if test "$lt_cv_path_NM" != "no"; then
11489   NM="$lt_cv_path_NM"
11490 else
11491   # Didn't find any BSD compatible name lister, look for dumpbin.
11492   if test -n "$DUMPBIN"; then :
11493     # Let the user override the test.
11494   else
11495     if test -n "$ac_tool_prefix"; then
11496   for ac_prog in dumpbin "link -dump"
11497   do
11498     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11499 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11501 $as_echo_n "checking for $ac_word... " >&6; }
11502 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11503   $as_echo_n "(cached) " >&6
11504 else
11505   if test -n "$DUMPBIN"; then
11506   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11507 else
11508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509 for as_dir in $PATH
11510 do
11511   IFS=$as_save_IFS
11512   test -z "$as_dir" && as_dir=.
11513     for ac_exec_ext in '' $ac_executable_extensions; do
11514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11515     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11517     break 2
11518   fi
11519 done
11520   done
11521 IFS=$as_save_IFS
11522
11523 fi
11524 fi
11525 DUMPBIN=$ac_cv_prog_DUMPBIN
11526 if test -n "$DUMPBIN"; then
11527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11528 $as_echo "$DUMPBIN" >&6; }
11529 else
11530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531 $as_echo "no" >&6; }
11532 fi
11533
11534
11535     test -n "$DUMPBIN" && break
11536   done
11537 fi
11538 if test -z "$DUMPBIN"; then
11539   ac_ct_DUMPBIN=$DUMPBIN
11540   for ac_prog in dumpbin "link -dump"
11541 do
11542   # Extract the first word of "$ac_prog", so it can be a program name with args.
11543 set dummy $ac_prog; ac_word=$2
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11545 $as_echo_n "checking for $ac_word... " >&6; }
11546 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11547   $as_echo_n "(cached) " >&6
11548 else
11549   if test -n "$ac_ct_DUMPBIN"; then
11550   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11551 else
11552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11553 for as_dir in $PATH
11554 do
11555   IFS=$as_save_IFS
11556   test -z "$as_dir" && as_dir=.
11557     for ac_exec_ext in '' $ac_executable_extensions; do
11558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11559     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11561     break 2
11562   fi
11563 done
11564   done
11565 IFS=$as_save_IFS
11566
11567 fi
11568 fi
11569 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11570 if test -n "$ac_ct_DUMPBIN"; then
11571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11572 $as_echo "$ac_ct_DUMPBIN" >&6; }
11573 else
11574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11575 $as_echo "no" >&6; }
11576 fi
11577
11578
11579   test -n "$ac_ct_DUMPBIN" && break
11580 done
11581
11582   if test "x$ac_ct_DUMPBIN" = x; then
11583     DUMPBIN=":"
11584   else
11585     case $cross_compiling:$ac_tool_warned in
11586 yes:)
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11589 ac_tool_warned=yes ;;
11590 esac
11591     DUMPBIN=$ac_ct_DUMPBIN
11592   fi
11593 fi
11594
11595     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11596     *COFF*)
11597       DUMPBIN="$DUMPBIN -symbols"
11598       ;;
11599     *)
11600       DUMPBIN=:
11601       ;;
11602     esac
11603   fi
11604
11605   if test "$DUMPBIN" != ":"; then
11606     NM="$DUMPBIN"
11607   fi
11608 fi
11609 test -z "$NM" && NM=nm
11610
11611
11612
11613
11614
11615
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11617 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11618 if test "${lt_cv_nm_interface+set}" = set; then :
11619   $as_echo_n "(cached) " >&6
11620 else
11621   lt_cv_nm_interface="BSD nm"
11622   echo "int some_variable = 0;" > conftest.$ac_ext
11623   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11624   (eval "$ac_compile" 2>conftest.err)
11625   cat conftest.err >&5
11626   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11627   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11628   cat conftest.err >&5
11629   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11630   cat conftest.out >&5
11631   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11632     lt_cv_nm_interface="MS dumpbin"
11633   fi
11634   rm -f conftest*
11635 fi
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11637 $as_echo "$lt_cv_nm_interface" >&6; }
11638
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11640 $as_echo_n "checking whether ln -s works... " >&6; }
11641 LN_S=$as_ln_s
11642 if test "$LN_S" = "ln -s"; then
11643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11644 $as_echo "yes" >&6; }
11645 else
11646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11647 $as_echo "no, using $LN_S" >&6; }
11648 fi
11649
11650 # find the maximum length of command line arguments
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11652 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11653 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11654   $as_echo_n "(cached) " >&6
11655 else
11656     i=0
11657   teststring="ABCD"
11658
11659   case $build_os in
11660   msdosdjgpp*)
11661     # On DJGPP, this test can blow up pretty badly due to problems in libc
11662     # (any single argument exceeding 2000 bytes causes a buffer overrun
11663     # during glob expansion).  Even if it were fixed, the result of this
11664     # check would be larger than it should be.
11665     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11666     ;;
11667
11668   gnu*)
11669     # Under GNU Hurd, this test is not required because there is
11670     # no limit to the length of command line arguments.
11671     # Libtool will interpret -1 as no limit whatsoever
11672     lt_cv_sys_max_cmd_len=-1;
11673     ;;
11674
11675   cygwin* | mingw* | cegcc*)
11676     # On Win9x/ME, this test blows up -- it succeeds, but takes
11677     # about 5 minutes as the teststring grows exponentially.
11678     # Worse, since 9x/ME are not pre-emptively multitasking,
11679     # you end up with a "frozen" computer, even though with patience
11680     # the test eventually succeeds (with a max line length of 256k).
11681     # Instead, let's just punt: use the minimum linelength reported by
11682     # all of the supported platforms: 8192 (on NT/2K/XP).
11683     lt_cv_sys_max_cmd_len=8192;
11684     ;;
11685
11686   mint*)
11687     # On MiNT this can take a long time and run out of memory.
11688     lt_cv_sys_max_cmd_len=8192;
11689     ;;
11690
11691   amigaos*)
11692     # On AmigaOS with pdksh, this test takes hours, literally.
11693     # So we just punt and use a minimum line length of 8192.
11694     lt_cv_sys_max_cmd_len=8192;
11695     ;;
11696
11697   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11698     # This has been around since 386BSD, at least.  Likely further.
11699     if test -x /sbin/sysctl; then
11700       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11701     elif test -x /usr/sbin/sysctl; then
11702       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11703     else
11704       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
11705     fi
11706     # And add a safety zone
11707     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11708     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11709     ;;
11710
11711   interix*)
11712     # We know the value 262144 and hardcode it with a safety zone (like BSD)
11713     lt_cv_sys_max_cmd_len=196608
11714     ;;
11715
11716   osf*)
11717     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11718     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11719     # nice to cause kernel panics so lets avoid the loop below.
11720     # First set a reasonable default.
11721     lt_cv_sys_max_cmd_len=16384
11722     #
11723     if test -x /sbin/sysconfig; then
11724       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11725         *1*) lt_cv_sys_max_cmd_len=-1 ;;
11726       esac
11727     fi
11728     ;;
11729   sco3.2v5*)
11730     lt_cv_sys_max_cmd_len=102400
11731     ;;
11732   sysv5* | sco5v6* | sysv4.2uw2*)
11733     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11734     if test -n "$kargmax"; then
11735       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
11736     else
11737       lt_cv_sys_max_cmd_len=32768
11738     fi
11739     ;;
11740   *)
11741     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11742     if test -n "$lt_cv_sys_max_cmd_len"; then
11743       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11744       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11745     else
11746       # Make teststring a little bigger before we do anything with it.
11747       # a 1K string should be a reasonable start.
11748       for i in 1 2 3 4 5 6 7 8 ; do
11749         teststring=$teststring$teststring
11750       done
11751       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11752       # If test is not a shell built-in, we'll probably end up computing a
11753       # maximum length that is only half of the actual maximum length, but
11754       # we can't tell.
11755       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11756                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11757               test $i != 17 # 1/2 MB should be enough
11758       do
11759         i=`expr $i + 1`
11760         teststring=$teststring$teststring
11761       done
11762       # Only check the string length outside the loop.
11763       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11764       teststring=
11765       # Add a significant safety factor because C++ compilers can tack on
11766       # massive amounts of additional arguments before passing them to the
11767       # linker.  It appears as though 1/2 is a usable value.
11768       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11769     fi
11770     ;;
11771   esac
11772
11773 fi
11774
11775 if test -n $lt_cv_sys_max_cmd_len ; then
11776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11777 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11778 else
11779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11780 $as_echo "none" >&6; }
11781 fi
11782 max_cmd_len=$lt_cv_sys_max_cmd_len
11783
11784
11785
11786
11787
11788
11789 : ${CP="cp -f"}
11790 : ${MV="mv -f"}
11791 : ${RM="rm -f"}
11792
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11794 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11795 # Try some XSI features
11796 xsi_shell=no
11797 ( _lt_dummy="a/b/c"
11798   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11799       = c,a/b,, \
11800     && eval 'test $(( 1 + 1 )) -eq 2 \
11801     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11802   && xsi_shell=yes
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11804 $as_echo "$xsi_shell" >&6; }
11805
11806
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11808 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11809 lt_shell_append=no
11810 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11811     >/dev/null 2>&1 \
11812   && lt_shell_append=yes
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11814 $as_echo "$lt_shell_append" >&6; }
11815
11816
11817 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11818   lt_unset=unset
11819 else
11820   lt_unset=false
11821 fi
11822
11823
11824
11825
11826
11827 # test EBCDIC or ASCII
11828 case `echo X|tr X '\101'` in
11829  A) # ASCII based system
11830     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11831   lt_SP2NL='tr \040 \012'
11832   lt_NL2SP='tr \015\012 \040\040'
11833   ;;
11834  *) # EBCDIC based system
11835   lt_SP2NL='tr \100 \n'
11836   lt_NL2SP='tr \r\n \100\100'
11837   ;;
11838 esac
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11849 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11850 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11851   $as_echo_n "(cached) " >&6
11852 else
11853   lt_cv_ld_reload_flag='-r'
11854 fi
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11856 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11857 reload_flag=$lt_cv_ld_reload_flag
11858 case $reload_flag in
11859 "" | " "*) ;;
11860 *) reload_flag=" $reload_flag" ;;
11861 esac
11862 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11863 case $host_os in
11864   darwin*)
11865     if test "$GCC" = yes; then
11866       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11867     else
11868       reload_cmds='$LD$reload_flag -o $output$reload_objs'
11869     fi
11870     ;;
11871 esac
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881 if test -n "$ac_tool_prefix"; then
11882   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11883 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11887   $as_echo_n "(cached) " >&6
11888 else
11889   if test -n "$OBJDUMP"; then
11890   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11891 else
11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893 for as_dir in $PATH
11894 do
11895   IFS=$as_save_IFS
11896   test -z "$as_dir" && as_dir=.
11897     for ac_exec_ext in '' $ac_executable_extensions; do
11898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11899     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11901     break 2
11902   fi
11903 done
11904   done
11905 IFS=$as_save_IFS
11906
11907 fi
11908 fi
11909 OBJDUMP=$ac_cv_prog_OBJDUMP
11910 if test -n "$OBJDUMP"; then
11911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11912 $as_echo "$OBJDUMP" >&6; }
11913 else
11914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11916 fi
11917
11918
11919 fi
11920 if test -z "$ac_cv_prog_OBJDUMP"; then
11921   ac_ct_OBJDUMP=$OBJDUMP
11922   # Extract the first word of "objdump", so it can be a program name with args.
11923 set dummy objdump; ac_word=$2
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925 $as_echo_n "checking for $ac_word... " >&6; }
11926 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11927   $as_echo_n "(cached) " >&6
11928 else
11929   if test -n "$ac_ct_OBJDUMP"; then
11930   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11931 else
11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH
11934 do
11935   IFS=$as_save_IFS
11936   test -z "$as_dir" && as_dir=.
11937     for ac_exec_ext in '' $ac_executable_extensions; do
11938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11939     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11941     break 2
11942   fi
11943 done
11944   done
11945 IFS=$as_save_IFS
11946
11947 fi
11948 fi
11949 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11950 if test -n "$ac_ct_OBJDUMP"; then
11951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11952 $as_echo "$ac_ct_OBJDUMP" >&6; }
11953 else
11954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11956 fi
11957
11958   if test "x$ac_ct_OBJDUMP" = x; then
11959     OBJDUMP="false"
11960   else
11961     case $cross_compiling:$ac_tool_warned in
11962 yes:)
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11965 ac_tool_warned=yes ;;
11966 esac
11967     OBJDUMP=$ac_ct_OBJDUMP
11968   fi
11969 else
11970   OBJDUMP="$ac_cv_prog_OBJDUMP"
11971 fi
11972
11973 test -z "$OBJDUMP" && OBJDUMP=objdump
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11984 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11985 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11986   $as_echo_n "(cached) " >&6
11987 else
11988   lt_cv_file_magic_cmd='$MAGIC_CMD'
11989 lt_cv_file_magic_test_file=
11990 lt_cv_deplibs_check_method='unknown'
11991 # Need to set the preceding variable on all platforms that support
11992 # interlibrary dependencies.
11993 # 'none' -- dependencies not supported.
11994 # `unknown' -- same as none, but documents that we really don't know.
11995 # 'pass_all' -- all dependencies passed with no checks.
11996 # 'test_compile' -- check by making test program.
11997 # 'file_magic [[regex]]' -- check by looking for files in library path
11998 # which responds to the $file_magic_cmd with a given extended regex.
11999 # If you have `file' or equivalent on your system and you're not sure
12000 # whether `pass_all' will *always* work, you probably want this one.
12001
12002 case $host_os in
12003 aix[4-9]*)
12004   lt_cv_deplibs_check_method=pass_all
12005   ;;
12006
12007 beos*)
12008   lt_cv_deplibs_check_method=pass_all
12009   ;;
12010
12011 bsdi[45]*)
12012   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12013   lt_cv_file_magic_cmd='/usr/bin/file -L'
12014   lt_cv_file_magic_test_file=/shlib/libc.so
12015   ;;
12016
12017 cygwin*)
12018   # func_win32_libid is a shell function defined in ltmain.sh
12019   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12020   lt_cv_file_magic_cmd='func_win32_libid'
12021   ;;
12022
12023 mingw* | pw32*)
12024   # Base MSYS/MinGW do not provide the 'file' command needed by
12025   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12026   # unless we find 'file', for example because we are cross-compiling.
12027   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12028   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12029     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12030     lt_cv_file_magic_cmd='func_win32_libid'
12031   else
12032     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12033     lt_cv_file_magic_cmd='$OBJDUMP -f'
12034   fi
12035   ;;
12036
12037 cegcc*)
12038   # use the weaker test based on 'objdump'. See mingw*.
12039   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12040   lt_cv_file_magic_cmd='$OBJDUMP -f'
12041   ;;
12042
12043 darwin* | rhapsody*)
12044   lt_cv_deplibs_check_method=pass_all
12045   ;;
12046
12047 freebsd* | dragonfly*)
12048   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12049     case $host_cpu in
12050     i*86 )
12051       # Not sure whether the presence of OpenBSD here was a mistake.
12052       # Let's accept both of them until this is cleared up.
12053       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12054       lt_cv_file_magic_cmd=/usr/bin/file
12055       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12056       ;;
12057     esac
12058   else
12059     lt_cv_deplibs_check_method=pass_all
12060   fi
12061   ;;
12062
12063 gnu*)
12064   lt_cv_deplibs_check_method=pass_all
12065   ;;
12066
12067 haiku*)
12068   lt_cv_deplibs_check_method=pass_all
12069   ;;
12070
12071 hpux10.20* | hpux11*)
12072   lt_cv_file_magic_cmd=/usr/bin/file
12073   case $host_cpu in
12074   ia64*)
12075     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12076     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12077     ;;
12078   hppa*64*)
12079     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]'
12080     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12081     ;;
12082   *)
12083     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12084     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12085     ;;
12086   esac
12087   ;;
12088
12089 interix[3-9]*)
12090   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12091   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12092   ;;
12093
12094 irix5* | irix6* | nonstopux*)
12095   case $LD in
12096   *-32|*"-32 ") libmagic=32-bit;;
12097   *-n32|*"-n32 ") libmagic=N32;;
12098   *-64|*"-64 ") libmagic=64-bit;;
12099   *) libmagic=never-match;;
12100   esac
12101   lt_cv_deplibs_check_method=pass_all
12102   ;;
12103
12104 # This must be Linux ELF.
12105 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12106   lt_cv_deplibs_check_method=pass_all
12107   ;;
12108
12109 netbsd*)
12110   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12111     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12112   else
12113     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12114   fi
12115   ;;
12116
12117 newos6*)
12118   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12119   lt_cv_file_magic_cmd=/usr/bin/file
12120   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12121   ;;
12122
12123 *nto* | *qnx*)
12124   lt_cv_deplibs_check_method=pass_all
12125   ;;
12126
12127 openbsd*)
12128   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12129     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12130   else
12131     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12132   fi
12133   ;;
12134
12135 osf3* | osf4* | osf5*)
12136   lt_cv_deplibs_check_method=pass_all
12137   ;;
12138
12139 rdos*)
12140   lt_cv_deplibs_check_method=pass_all
12141   ;;
12142
12143 solaris*)
12144   lt_cv_deplibs_check_method=pass_all
12145   ;;
12146
12147 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12148   lt_cv_deplibs_check_method=pass_all
12149   ;;
12150
12151 sysv4 | sysv4.3*)
12152   case $host_vendor in
12153   motorola)
12154     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]'
12155     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12156     ;;
12157   ncr)
12158     lt_cv_deplibs_check_method=pass_all
12159     ;;
12160   sequent)
12161     lt_cv_file_magic_cmd='/bin/file'
12162     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12163     ;;
12164   sni)
12165     lt_cv_file_magic_cmd='/bin/file'
12166     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12167     lt_cv_file_magic_test_file=/lib/libc.so
12168     ;;
12169   siemens)
12170     lt_cv_deplibs_check_method=pass_all
12171     ;;
12172   pc)
12173     lt_cv_deplibs_check_method=pass_all
12174     ;;
12175   esac
12176   ;;
12177
12178 tpf*)
12179   lt_cv_deplibs_check_method=pass_all
12180   ;;
12181 esac
12182
12183 fi
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12185 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12186 file_magic_cmd=$lt_cv_file_magic_cmd
12187 deplibs_check_method=$lt_cv_deplibs_check_method
12188 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201 if test -n "$ac_tool_prefix"; then
12202   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12203 set dummy ${ac_tool_prefix}ar; ac_word=$2
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12205 $as_echo_n "checking for $ac_word... " >&6; }
12206 if test "${ac_cv_prog_AR+set}" = set; then :
12207   $as_echo_n "(cached) " >&6
12208 else
12209   if test -n "$AR"; then
12210   ac_cv_prog_AR="$AR" # Let the user override the test.
12211 else
12212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213 for as_dir in $PATH
12214 do
12215   IFS=$as_save_IFS
12216   test -z "$as_dir" && as_dir=.
12217     for ac_exec_ext in '' $ac_executable_extensions; do
12218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12219     ac_cv_prog_AR="${ac_tool_prefix}ar"
12220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221     break 2
12222   fi
12223 done
12224   done
12225 IFS=$as_save_IFS
12226
12227 fi
12228 fi
12229 AR=$ac_cv_prog_AR
12230 if test -n "$AR"; then
12231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12232 $as_echo "$AR" >&6; }
12233 else
12234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12235 $as_echo "no" >&6; }
12236 fi
12237
12238
12239 fi
12240 if test -z "$ac_cv_prog_AR"; then
12241   ac_ct_AR=$AR
12242   # Extract the first word of "ar", so it can be a program name with args.
12243 set dummy ar; ac_word=$2
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12245 $as_echo_n "checking for $ac_word... " >&6; }
12246 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12247   $as_echo_n "(cached) " >&6
12248 else
12249   if test -n "$ac_ct_AR"; then
12250   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12251 else
12252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253 for as_dir in $PATH
12254 do
12255   IFS=$as_save_IFS
12256   test -z "$as_dir" && as_dir=.
12257     for ac_exec_ext in '' $ac_executable_extensions; do
12258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12259     ac_cv_prog_ac_ct_AR="ar"
12260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12261     break 2
12262   fi
12263 done
12264   done
12265 IFS=$as_save_IFS
12266
12267 fi
12268 fi
12269 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12270 if test -n "$ac_ct_AR"; then
12271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12272 $as_echo "$ac_ct_AR" >&6; }
12273 else
12274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275 $as_echo "no" >&6; }
12276 fi
12277
12278   if test "x$ac_ct_AR" = x; then
12279     AR="false"
12280   else
12281     case $cross_compiling:$ac_tool_warned in
12282 yes:)
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12285 ac_tool_warned=yes ;;
12286 esac
12287     AR=$ac_ct_AR
12288   fi
12289 else
12290   AR="$ac_cv_prog_AR"
12291 fi
12292
12293 test -z "$AR" && AR=ar
12294 test -z "$AR_FLAGS" && AR_FLAGS=cru
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306 if test -n "$ac_tool_prefix"; then
12307   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12308 set dummy ${ac_tool_prefix}strip; ac_word=$2
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12310 $as_echo_n "checking for $ac_word... " >&6; }
12311 if test "${ac_cv_prog_STRIP+set}" = set; then :
12312   $as_echo_n "(cached) " >&6
12313 else
12314   if test -n "$STRIP"; then
12315   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12316 else
12317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12318 for as_dir in $PATH
12319 do
12320   IFS=$as_save_IFS
12321   test -z "$as_dir" && as_dir=.
12322     for ac_exec_ext in '' $ac_executable_extensions; do
12323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12324     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12326     break 2
12327   fi
12328 done
12329   done
12330 IFS=$as_save_IFS
12331
12332 fi
12333 fi
12334 STRIP=$ac_cv_prog_STRIP
12335 if test -n "$STRIP"; then
12336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12337 $as_echo "$STRIP" >&6; }
12338 else
12339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340 $as_echo "no" >&6; }
12341 fi
12342
12343
12344 fi
12345 if test -z "$ac_cv_prog_STRIP"; then
12346   ac_ct_STRIP=$STRIP
12347   # Extract the first word of "strip", so it can be a program name with args.
12348 set dummy strip; ac_word=$2
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350 $as_echo_n "checking for $ac_word... " >&6; }
12351 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12352   $as_echo_n "(cached) " >&6
12353 else
12354   if test -n "$ac_ct_STRIP"; then
12355   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12356 else
12357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12358 for as_dir in $PATH
12359 do
12360   IFS=$as_save_IFS
12361   test -z "$as_dir" && as_dir=.
12362     for ac_exec_ext in '' $ac_executable_extensions; do
12363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12364     ac_cv_prog_ac_ct_STRIP="strip"
12365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12366     break 2
12367   fi
12368 done
12369   done
12370 IFS=$as_save_IFS
12371
12372 fi
12373 fi
12374 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12375 if test -n "$ac_ct_STRIP"; then
12376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12377 $as_echo "$ac_ct_STRIP" >&6; }
12378 else
12379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380 $as_echo "no" >&6; }
12381 fi
12382
12383   if test "x$ac_ct_STRIP" = x; then
12384     STRIP=":"
12385   else
12386     case $cross_compiling:$ac_tool_warned in
12387 yes:)
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12390 ac_tool_warned=yes ;;
12391 esac
12392     STRIP=$ac_ct_STRIP
12393   fi
12394 else
12395   STRIP="$ac_cv_prog_STRIP"
12396 fi
12397
12398 test -z "$STRIP" && STRIP=:
12399
12400
12401
12402
12403
12404
12405 if test -n "$ac_tool_prefix"; then
12406   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12407 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12409 $as_echo_n "checking for $ac_word... " >&6; }
12410 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12411   $as_echo_n "(cached) " >&6
12412 else
12413   if test -n "$RANLIB"; then
12414   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12415 else
12416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417 for as_dir in $PATH
12418 do
12419   IFS=$as_save_IFS
12420   test -z "$as_dir" && as_dir=.
12421     for ac_exec_ext in '' $ac_executable_extensions; do
12422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12423     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12425     break 2
12426   fi
12427 done
12428   done
12429 IFS=$as_save_IFS
12430
12431 fi
12432 fi
12433 RANLIB=$ac_cv_prog_RANLIB
12434 if test -n "$RANLIB"; then
12435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12436 $as_echo "$RANLIB" >&6; }
12437 else
12438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; }
12440 fi
12441
12442
12443 fi
12444 if test -z "$ac_cv_prog_RANLIB"; then
12445   ac_ct_RANLIB=$RANLIB
12446   # Extract the first word of "ranlib", so it can be a program name with args.
12447 set dummy ranlib; ac_word=$2
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12449 $as_echo_n "checking for $ac_word... " >&6; }
12450 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12451   $as_echo_n "(cached) " >&6
12452 else
12453   if test -n "$ac_ct_RANLIB"; then
12454   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12455 else
12456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457 for as_dir in $PATH
12458 do
12459   IFS=$as_save_IFS
12460   test -z "$as_dir" && as_dir=.
12461     for ac_exec_ext in '' $ac_executable_extensions; do
12462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12463     ac_cv_prog_ac_ct_RANLIB="ranlib"
12464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12465     break 2
12466   fi
12467 done
12468   done
12469 IFS=$as_save_IFS
12470
12471 fi
12472 fi
12473 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12474 if test -n "$ac_ct_RANLIB"; then
12475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12476 $as_echo "$ac_ct_RANLIB" >&6; }
12477 else
12478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479 $as_echo "no" >&6; }
12480 fi
12481
12482   if test "x$ac_ct_RANLIB" = x; then
12483     RANLIB=":"
12484   else
12485     case $cross_compiling:$ac_tool_warned in
12486 yes:)
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12489 ac_tool_warned=yes ;;
12490 esac
12491     RANLIB=$ac_ct_RANLIB
12492   fi
12493 else
12494   RANLIB="$ac_cv_prog_RANLIB"
12495 fi
12496
12497 test -z "$RANLIB" && RANLIB=:
12498
12499
12500
12501
12502
12503
12504 # Determine commands to create old-style static archives.
12505 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12506 old_postinstall_cmds='chmod 644 $oldlib'
12507 old_postuninstall_cmds=
12508
12509 if test -n "$RANLIB"; then
12510   case $host_os in
12511   openbsd*)
12512     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12513     ;;
12514   *)
12515     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12516     ;;
12517   esac
12518   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12519 fi
12520
12521 case $host_os in
12522   darwin*)
12523     lock_old_archive_extraction=yes ;;
12524   *)
12525     lock_old_archive_extraction=no ;;
12526 esac
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
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 # If no C compiler was specified, use CC.
12567 LTCC=${LTCC-"$CC"}
12568
12569 # If no C compiler flags were specified, use CFLAGS.
12570 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12571
12572 # Allow CC to be a program name with arguments.
12573 compiler=$CC
12574
12575
12576 # Check for command to grab the raw symbol name followed by C symbol from nm.
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12578 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12579 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12580   $as_echo_n "(cached) " >&6
12581 else
12582
12583 # These are sane defaults that work on at least a few old systems.
12584 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12585
12586 # Character class describing NM global symbol codes.
12587 symcode='[BCDEGRST]'
12588
12589 # Regexp to match symbols that can be accessed directly from C.
12590 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12591
12592 # Define system-specific variables.
12593 case $host_os in
12594 aix*)
12595   symcode='[BCDT]'
12596   ;;
12597 cygwin* | mingw* | pw32* | cegcc*)
12598   symcode='[ABCDGISTW]'
12599   ;;
12600 hpux*)
12601   if test "$host_cpu" = ia64; then
12602     symcode='[ABCDEGRST]'
12603   fi
12604   ;;
12605 irix* | nonstopux*)
12606   symcode='[BCDEGRST]'
12607   ;;
12608 osf*)
12609   symcode='[BCDEGQRST]'
12610   ;;
12611 solaris*)
12612   symcode='[BDRT]'
12613   ;;
12614 sco3.2v5*)
12615   symcode='[DT]'
12616   ;;
12617 sysv4.2uw2*)
12618   symcode='[DT]'
12619   ;;
12620 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12621   symcode='[ABDT]'
12622   ;;
12623 sysv4)
12624   symcode='[DFNSTU]'
12625   ;;
12626 esac
12627
12628 # If we're using GNU nm, then use its standard symbol codes.
12629 case `$NM -V 2>&1` in
12630 *GNU* | *'with BFD'*)
12631   symcode='[ABCDGIRSTW]' ;;
12632 esac
12633
12634 # Transform an extracted symbol line into a proper C declaration.
12635 # Some systems (esp. on ia64) link data and code symbols differently,
12636 # so use this general approach.
12637 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12638
12639 # Transform an extracted symbol line into symbol name and symbol address
12640 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12641 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'"
12642
12643 # Handle CRLF in mingw tool chain
12644 opt_cr=
12645 case $build_os in
12646 mingw*)
12647   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12648   ;;
12649 esac
12650
12651 # Try without a prefix underscore, then with it.
12652 for ac_symprfx in "" "_"; do
12653
12654   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12655   symxfrm="\\1 $ac_symprfx\\2 \\2"
12656
12657   # Write the raw and C identifiers.
12658   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12659     # Fake it for dumpbin and say T for any non-static function
12660     # and D for any global variable.
12661     # Also find C++ and __fastcall symbols from MSVC++,
12662     # which start with @ or ?.
12663     lt_cv_sys_global_symbol_pipe="$AWK '"\
12664 "     {last_section=section; section=\$ 3};"\
12665 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12666 "     \$ 0!~/External *\|/{next};"\
12667 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12668 "     {if(hide[section]) next};"\
12669 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12670 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12671 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12672 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12673 "     ' prfx=^$ac_symprfx"
12674   else
12675     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12676   fi
12677
12678   # Check to see that the pipe works correctly.
12679   pipe_works=no
12680
12681   rm -f conftest*
12682   cat > conftest.$ac_ext <<_LT_EOF
12683 #ifdef __cplusplus
12684 extern "C" {
12685 #endif
12686 char nm_test_var;
12687 void nm_test_func(void);
12688 void nm_test_func(void){}
12689 #ifdef __cplusplus
12690 }
12691 #endif
12692 int main(){nm_test_var='a';nm_test_func();return(0);}
12693 _LT_EOF
12694
12695   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12696   (eval $ac_compile) 2>&5
12697   ac_status=$?
12698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12699   test $ac_status = 0; }; then
12700     # Now try to grab the symbols.
12701     nlist=conftest.nm
12702     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12703   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12704   ac_status=$?
12705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12706   test $ac_status = 0; } && test -s "$nlist"; then
12707       # Try sorting and uniquifying the output.
12708       if sort "$nlist" | uniq > "$nlist"T; then
12709         mv -f "$nlist"T "$nlist"
12710       else
12711         rm -f "$nlist"T
12712       fi
12713
12714       # Make sure that we snagged all the symbols we need.
12715       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12716         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12717           cat <<_LT_EOF > conftest.$ac_ext
12718 #ifdef __cplusplus
12719 extern "C" {
12720 #endif
12721
12722 _LT_EOF
12723           # Now generate the symbol file.
12724           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12725
12726           cat <<_LT_EOF >> conftest.$ac_ext
12727
12728 /* The mapping between symbol names and symbols.  */
12729 const struct {
12730   const char *name;
12731   void       *address;
12732 }
12733 lt__PROGRAM__LTX_preloaded_symbols[] =
12734 {
12735   { "@PROGRAM@", (void *) 0 },
12736 _LT_EOF
12737           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12738           cat <<\_LT_EOF >> conftest.$ac_ext
12739   {0, (void *) 0}
12740 };
12741
12742 /* This works around a problem in FreeBSD linker */
12743 #ifdef FREEBSD_WORKAROUND
12744 static const void *lt_preloaded_setup() {
12745   return lt__PROGRAM__LTX_preloaded_symbols;
12746 }
12747 #endif
12748
12749 #ifdef __cplusplus
12750 }
12751 #endif
12752 _LT_EOF
12753           # Now try linking the two files.
12754           mv conftest.$ac_objext conftstm.$ac_objext
12755           lt_save_LIBS="$LIBS"
12756           lt_save_CFLAGS="$CFLAGS"
12757           LIBS="conftstm.$ac_objext"
12758           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12759           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12760   (eval $ac_link) 2>&5
12761   ac_status=$?
12762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12763   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12764             pipe_works=yes
12765           fi
12766           LIBS="$lt_save_LIBS"
12767           CFLAGS="$lt_save_CFLAGS"
12768         else
12769           echo "cannot find nm_test_func in $nlist" >&5
12770         fi
12771       else
12772         echo "cannot find nm_test_var in $nlist" >&5
12773       fi
12774     else
12775       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12776     fi
12777   else
12778     echo "$progname: failed program was:" >&5
12779     cat conftest.$ac_ext >&5
12780   fi
12781   rm -rf conftest* conftst*
12782
12783   # Do not use the global_symbol_pipe unless it works.
12784   if test "$pipe_works" = yes; then
12785     break
12786   else
12787     lt_cv_sys_global_symbol_pipe=
12788   fi
12789 done
12790
12791 fi
12792
12793 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12794   lt_cv_sys_global_symbol_to_cdecl=
12795 fi
12796 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12798 $as_echo "failed" >&6; }
12799 else
12800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12801 $as_echo "ok" >&6; }
12802 fi
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825 # Check whether --enable-libtool-lock was given.
12826 if test "${enable_libtool_lock+set}" = set; then :
12827   enableval=$enable_libtool_lock;
12828 fi
12829
12830 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12831
12832 # Some flags need to be propagated to the compiler or linker for good
12833 # libtool support.
12834 case $host in
12835 ia64-*-hpux*)
12836   # Find out which ABI we are using.
12837   echo 'int i;' > conftest.$ac_ext
12838   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12839   (eval $ac_compile) 2>&5
12840   ac_status=$?
12841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12842   test $ac_status = 0; }; then
12843     case `/usr/bin/file conftest.$ac_objext` in
12844       *ELF-32*)
12845         HPUX_IA64_MODE="32"
12846         ;;
12847       *ELF-64*)
12848         HPUX_IA64_MODE="64"
12849         ;;
12850     esac
12851   fi
12852   rm -rf conftest*
12853   ;;
12854 *-*-irix6*)
12855   # Find out which ABI we are using.
12856   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12857   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12858   (eval $ac_compile) 2>&5
12859   ac_status=$?
12860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12861   test $ac_status = 0; }; then
12862     if test "$lt_cv_prog_gnu_ld" = yes; then
12863       case `/usr/bin/file conftest.$ac_objext` in
12864         *32-bit*)
12865           LD="${LD-ld} -melf32bsmip"
12866           ;;
12867         *N32*)
12868           LD="${LD-ld} -melf32bmipn32"
12869           ;;
12870         *64-bit*)
12871           LD="${LD-ld} -melf64bmip"
12872         ;;
12873       esac
12874     else
12875       case `/usr/bin/file conftest.$ac_objext` in
12876         *32-bit*)
12877           LD="${LD-ld} -32"
12878           ;;
12879         *N32*)
12880           LD="${LD-ld} -n32"
12881           ;;
12882         *64-bit*)
12883           LD="${LD-ld} -64"
12884           ;;
12885       esac
12886     fi
12887   fi
12888   rm -rf conftest*
12889   ;;
12890
12891 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12892 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12893   # Find out which ABI we are using.
12894   echo 'int i;' > conftest.$ac_ext
12895   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12896   (eval $ac_compile) 2>&5
12897   ac_status=$?
12898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12899   test $ac_status = 0; }; then
12900     case `/usr/bin/file conftest.o` in
12901       *32-bit*)
12902         case $host in
12903           x86_64-*kfreebsd*-gnu)
12904             LD="${LD-ld} -m elf_i386_fbsd"
12905             ;;
12906           x86_64-*linux*)
12907             LD="${LD-ld} -m elf_i386"
12908             ;;
12909           ppc64-*linux*|powerpc64-*linux*)
12910             LD="${LD-ld} -m elf32ppclinux"
12911             ;;
12912           s390x-*linux*)
12913             LD="${LD-ld} -m elf_s390"
12914             ;;
12915           sparc64-*linux*)
12916             LD="${LD-ld} -m elf32_sparc"
12917             ;;
12918         esac
12919         ;;
12920       *64-bit*)
12921         case $host in
12922           x86_64-*kfreebsd*-gnu)
12923             LD="${LD-ld} -m elf_x86_64_fbsd"
12924             ;;
12925           x86_64-*linux*)
12926             LD="${LD-ld} -m elf_x86_64"
12927             ;;
12928           ppc*-*linux*|powerpc*-*linux*)
12929             LD="${LD-ld} -m elf64ppc"
12930             ;;
12931           s390*-*linux*|s390*-*tpf*)
12932             LD="${LD-ld} -m elf64_s390"
12933             ;;
12934           sparc*-*linux*)
12935             LD="${LD-ld} -m elf64_sparc"
12936             ;;
12937         esac
12938         ;;
12939     esac
12940   fi
12941   rm -rf conftest*
12942   ;;
12943
12944 *-*-sco3.2v5*)
12945   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12946   SAVE_CFLAGS="$CFLAGS"
12947   CFLAGS="$CFLAGS -belf"
12948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12949 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12950 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12951   $as_echo_n "(cached) " >&6
12952 else
12953   ac_ext=c
12954 ac_cpp='$CPP $CPPFLAGS'
12955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12958
12959      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12960 /* end confdefs.h.  */
12961
12962 int
12963 main ()
12964 {
12965
12966   ;
12967   return 0;
12968 }
12969 _ACEOF
12970 if ac_fn_c_try_link "$LINENO"; then :
12971   lt_cv_cc_needs_belf=yes
12972 else
12973   lt_cv_cc_needs_belf=no
12974 fi
12975 rm -f core conftest.err conftest.$ac_objext \
12976     conftest$ac_exeext conftest.$ac_ext
12977      ac_ext=c
12978 ac_cpp='$CPP $CPPFLAGS'
12979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12982
12983 fi
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12985 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12986   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12987     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12988     CFLAGS="$SAVE_CFLAGS"
12989   fi
12990   ;;
12991 sparc*-*solaris*)
12992   # Find out which ABI we are using.
12993   echo 'int i;' > conftest.$ac_ext
12994   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12995   (eval $ac_compile) 2>&5
12996   ac_status=$?
12997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12998   test $ac_status = 0; }; then
12999     case `/usr/bin/file conftest.o` in
13000     *64-bit*)
13001       case $lt_cv_prog_gnu_ld in
13002       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13003       *)
13004         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13005           LD="${LD-ld} -64"
13006         fi
13007         ;;
13008       esac
13009       ;;
13010     esac
13011   fi
13012   rm -rf conftest*
13013   ;;
13014 esac
13015
13016 need_locks="$enable_libtool_lock"
13017
13018
13019   case $host_os in
13020     rhapsody* | darwin*)
13021     if test -n "$ac_tool_prefix"; then
13022   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13023 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13025 $as_echo_n "checking for $ac_word... " >&6; }
13026 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13027   $as_echo_n "(cached) " >&6
13028 else
13029   if test -n "$DSYMUTIL"; then
13030   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13031 else
13032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13033 for as_dir in $PATH
13034 do
13035   IFS=$as_save_IFS
13036   test -z "$as_dir" && as_dir=.
13037     for ac_exec_ext in '' $ac_executable_extensions; do
13038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13039     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13041     break 2
13042   fi
13043 done
13044   done
13045 IFS=$as_save_IFS
13046
13047 fi
13048 fi
13049 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13050 if test -n "$DSYMUTIL"; then
13051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13052 $as_echo "$DSYMUTIL" >&6; }
13053 else
13054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13055 $as_echo "no" >&6; }
13056 fi
13057
13058
13059 fi
13060 if test -z "$ac_cv_prog_DSYMUTIL"; then
13061   ac_ct_DSYMUTIL=$DSYMUTIL
13062   # Extract the first word of "dsymutil", so it can be a program name with args.
13063 set dummy dsymutil; ac_word=$2
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13065 $as_echo_n "checking for $ac_word... " >&6; }
13066 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13067   $as_echo_n "(cached) " >&6
13068 else
13069   if test -n "$ac_ct_DSYMUTIL"; then
13070   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13071 else
13072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13073 for as_dir in $PATH
13074 do
13075   IFS=$as_save_IFS
13076   test -z "$as_dir" && as_dir=.
13077     for ac_exec_ext in '' $ac_executable_extensions; do
13078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13079     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13081     break 2
13082   fi
13083 done
13084   done
13085 IFS=$as_save_IFS
13086
13087 fi
13088 fi
13089 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13090 if test -n "$ac_ct_DSYMUTIL"; then
13091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13092 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13093 else
13094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095 $as_echo "no" >&6; }
13096 fi
13097
13098   if test "x$ac_ct_DSYMUTIL" = x; then
13099     DSYMUTIL=":"
13100   else
13101     case $cross_compiling:$ac_tool_warned in
13102 yes:)
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13105 ac_tool_warned=yes ;;
13106 esac
13107     DSYMUTIL=$ac_ct_DSYMUTIL
13108   fi
13109 else
13110   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13111 fi
13112
13113     if test -n "$ac_tool_prefix"; then
13114   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13115 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13117 $as_echo_n "checking for $ac_word... " >&6; }
13118 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13119   $as_echo_n "(cached) " >&6
13120 else
13121   if test -n "$NMEDIT"; then
13122   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13123 else
13124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125 for as_dir in $PATH
13126 do
13127   IFS=$as_save_IFS
13128   test -z "$as_dir" && as_dir=.
13129     for ac_exec_ext in '' $ac_executable_extensions; do
13130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13131     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13133     break 2
13134   fi
13135 done
13136   done
13137 IFS=$as_save_IFS
13138
13139 fi
13140 fi
13141 NMEDIT=$ac_cv_prog_NMEDIT
13142 if test -n "$NMEDIT"; then
13143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13144 $as_echo "$NMEDIT" >&6; }
13145 else
13146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147 $as_echo "no" >&6; }
13148 fi
13149
13150
13151 fi
13152 if test -z "$ac_cv_prog_NMEDIT"; then
13153   ac_ct_NMEDIT=$NMEDIT
13154   # Extract the first word of "nmedit", so it can be a program name with args.
13155 set dummy nmedit; ac_word=$2
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13157 $as_echo_n "checking for $ac_word... " >&6; }
13158 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13159   $as_echo_n "(cached) " >&6
13160 else
13161   if test -n "$ac_ct_NMEDIT"; then
13162   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13163 else
13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165 for as_dir in $PATH
13166 do
13167   IFS=$as_save_IFS
13168   test -z "$as_dir" && as_dir=.
13169     for ac_exec_ext in '' $ac_executable_extensions; do
13170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13171     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13173     break 2
13174   fi
13175 done
13176   done
13177 IFS=$as_save_IFS
13178
13179 fi
13180 fi
13181 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13182 if test -n "$ac_ct_NMEDIT"; then
13183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13184 $as_echo "$ac_ct_NMEDIT" >&6; }
13185 else
13186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187 $as_echo "no" >&6; }
13188 fi
13189
13190   if test "x$ac_ct_NMEDIT" = x; then
13191     NMEDIT=":"
13192   else
13193     case $cross_compiling:$ac_tool_warned in
13194 yes:)
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13197 ac_tool_warned=yes ;;
13198 esac
13199     NMEDIT=$ac_ct_NMEDIT
13200   fi
13201 else
13202   NMEDIT="$ac_cv_prog_NMEDIT"
13203 fi
13204
13205     if test -n "$ac_tool_prefix"; then
13206   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13207 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13209 $as_echo_n "checking for $ac_word... " >&6; }
13210 if test "${ac_cv_prog_LIPO+set}" = set; then :
13211   $as_echo_n "(cached) " >&6
13212 else
13213   if test -n "$LIPO"; then
13214   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13215 else
13216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13217 for as_dir in $PATH
13218 do
13219   IFS=$as_save_IFS
13220   test -z "$as_dir" && as_dir=.
13221     for ac_exec_ext in '' $ac_executable_extensions; do
13222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13223     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13225     break 2
13226   fi
13227 done
13228   done
13229 IFS=$as_save_IFS
13230
13231 fi
13232 fi
13233 LIPO=$ac_cv_prog_LIPO
13234 if test -n "$LIPO"; then
13235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13236 $as_echo "$LIPO" >&6; }
13237 else
13238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13239 $as_echo "no" >&6; }
13240 fi
13241
13242
13243 fi
13244 if test -z "$ac_cv_prog_LIPO"; then
13245   ac_ct_LIPO=$LIPO
13246   # Extract the first word of "lipo", so it can be a program name with args.
13247 set dummy lipo; ac_word=$2
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13249 $as_echo_n "checking for $ac_word... " >&6; }
13250 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13251   $as_echo_n "(cached) " >&6
13252 else
13253   if test -n "$ac_ct_LIPO"; then
13254   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13255 else
13256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13257 for as_dir in $PATH
13258 do
13259   IFS=$as_save_IFS
13260   test -z "$as_dir" && as_dir=.
13261     for ac_exec_ext in '' $ac_executable_extensions; do
13262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13263     ac_cv_prog_ac_ct_LIPO="lipo"
13264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13265     break 2
13266   fi
13267 done
13268   done
13269 IFS=$as_save_IFS
13270
13271 fi
13272 fi
13273 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13274 if test -n "$ac_ct_LIPO"; then
13275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13276 $as_echo "$ac_ct_LIPO" >&6; }
13277 else
13278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13279 $as_echo "no" >&6; }
13280 fi
13281
13282   if test "x$ac_ct_LIPO" = x; then
13283     LIPO=":"
13284   else
13285     case $cross_compiling:$ac_tool_warned in
13286 yes:)
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13289 ac_tool_warned=yes ;;
13290 esac
13291     LIPO=$ac_ct_LIPO
13292   fi
13293 else
13294   LIPO="$ac_cv_prog_LIPO"
13295 fi
13296
13297     if test -n "$ac_tool_prefix"; then
13298   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13299 set dummy ${ac_tool_prefix}otool; ac_word=$2
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13301 $as_echo_n "checking for $ac_word... " >&6; }
13302 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13303   $as_echo_n "(cached) " >&6
13304 else
13305   if test -n "$OTOOL"; then
13306   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13307 else
13308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13309 for as_dir in $PATH
13310 do
13311   IFS=$as_save_IFS
13312   test -z "$as_dir" && as_dir=.
13313     for ac_exec_ext in '' $ac_executable_extensions; do
13314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13315     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13317     break 2
13318   fi
13319 done
13320   done
13321 IFS=$as_save_IFS
13322
13323 fi
13324 fi
13325 OTOOL=$ac_cv_prog_OTOOL
13326 if test -n "$OTOOL"; then
13327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13328 $as_echo "$OTOOL" >&6; }
13329 else
13330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13331 $as_echo "no" >&6; }
13332 fi
13333
13334
13335 fi
13336 if test -z "$ac_cv_prog_OTOOL"; then
13337   ac_ct_OTOOL=$OTOOL
13338   # Extract the first word of "otool", so it can be a program name with args.
13339 set dummy otool; ac_word=$2
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13341 $as_echo_n "checking for $ac_word... " >&6; }
13342 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13343   $as_echo_n "(cached) " >&6
13344 else
13345   if test -n "$ac_ct_OTOOL"; then
13346   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13347 else
13348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13349 for as_dir in $PATH
13350 do
13351   IFS=$as_save_IFS
13352   test -z "$as_dir" && as_dir=.
13353     for ac_exec_ext in '' $ac_executable_extensions; do
13354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13355     ac_cv_prog_ac_ct_OTOOL="otool"
13356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13357     break 2
13358   fi
13359 done
13360   done
13361 IFS=$as_save_IFS
13362
13363 fi
13364 fi
13365 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13366 if test -n "$ac_ct_OTOOL"; then
13367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13368 $as_echo "$ac_ct_OTOOL" >&6; }
13369 else
13370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13371 $as_echo "no" >&6; }
13372 fi
13373
13374   if test "x$ac_ct_OTOOL" = x; then
13375     OTOOL=":"
13376   else
13377     case $cross_compiling:$ac_tool_warned in
13378 yes:)
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13381 ac_tool_warned=yes ;;
13382 esac
13383     OTOOL=$ac_ct_OTOOL
13384   fi
13385 else
13386   OTOOL="$ac_cv_prog_OTOOL"
13387 fi
13388
13389     if test -n "$ac_tool_prefix"; then
13390   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13391 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13393 $as_echo_n "checking for $ac_word... " >&6; }
13394 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13395   $as_echo_n "(cached) " >&6
13396 else
13397   if test -n "$OTOOL64"; then
13398   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13399 else
13400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401 for as_dir in $PATH
13402 do
13403   IFS=$as_save_IFS
13404   test -z "$as_dir" && as_dir=.
13405     for ac_exec_ext in '' $ac_executable_extensions; do
13406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13407     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13409     break 2
13410   fi
13411 done
13412   done
13413 IFS=$as_save_IFS
13414
13415 fi
13416 fi
13417 OTOOL64=$ac_cv_prog_OTOOL64
13418 if test -n "$OTOOL64"; then
13419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13420 $as_echo "$OTOOL64" >&6; }
13421 else
13422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423 $as_echo "no" >&6; }
13424 fi
13425
13426
13427 fi
13428 if test -z "$ac_cv_prog_OTOOL64"; then
13429   ac_ct_OTOOL64=$OTOOL64
13430   # Extract the first word of "otool64", so it can be a program name with args.
13431 set dummy otool64; ac_word=$2
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13433 $as_echo_n "checking for $ac_word... " >&6; }
13434 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13435   $as_echo_n "(cached) " >&6
13436 else
13437   if test -n "$ac_ct_OTOOL64"; then
13438   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13439 else
13440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13441 for as_dir in $PATH
13442 do
13443   IFS=$as_save_IFS
13444   test -z "$as_dir" && as_dir=.
13445     for ac_exec_ext in '' $ac_executable_extensions; do
13446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13447     ac_cv_prog_ac_ct_OTOOL64="otool64"
13448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13449     break 2
13450   fi
13451 done
13452   done
13453 IFS=$as_save_IFS
13454
13455 fi
13456 fi
13457 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13458 if test -n "$ac_ct_OTOOL64"; then
13459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13460 $as_echo "$ac_ct_OTOOL64" >&6; }
13461 else
13462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13463 $as_echo "no" >&6; }
13464 fi
13465
13466   if test "x$ac_ct_OTOOL64" = x; then
13467     OTOOL64=":"
13468   else
13469     case $cross_compiling:$ac_tool_warned in
13470 yes:)
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13473 ac_tool_warned=yes ;;
13474 esac
13475     OTOOL64=$ac_ct_OTOOL64
13476   fi
13477 else
13478   OTOOL64="$ac_cv_prog_OTOOL64"
13479 fi
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13508 $as_echo_n "checking for -single_module linker flag... " >&6; }
13509 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13510   $as_echo_n "(cached) " >&6
13511 else
13512   lt_cv_apple_cc_single_mod=no
13513       if test -z "${LT_MULTI_MODULE}"; then
13514         # By default we will add the -single_module flag. You can override
13515         # by either setting the environment variable LT_MULTI_MODULE
13516         # non-empty at configure time, or by adding -multi_module to the
13517         # link flags.
13518         rm -rf libconftest.dylib*
13519         echo "int foo(void){return 1;}" > conftest.c
13520         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13521 -dynamiclib -Wl,-single_module conftest.c" >&5
13522         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13523           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13524         _lt_result=$?
13525         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13526           lt_cv_apple_cc_single_mod=yes
13527         else
13528           cat conftest.err >&5
13529         fi
13530         rm -rf libconftest.dylib*
13531         rm -f conftest.*
13532       fi
13533 fi
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13535 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13536     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13537 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13538 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13539   $as_echo_n "(cached) " >&6
13540 else
13541   lt_cv_ld_exported_symbols_list=no
13542       save_LDFLAGS=$LDFLAGS
13543       echo "_main" > conftest.sym
13544       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13545       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546 /* end confdefs.h.  */
13547
13548 int
13549 main ()
13550 {
13551
13552   ;
13553   return 0;
13554 }
13555 _ACEOF
13556 if ac_fn_c_try_link "$LINENO"; then :
13557   lt_cv_ld_exported_symbols_list=yes
13558 else
13559   lt_cv_ld_exported_symbols_list=no
13560 fi
13561 rm -f core conftest.err conftest.$ac_objext \
13562     conftest$ac_exeext conftest.$ac_ext
13563         LDFLAGS="$save_LDFLAGS"
13564
13565 fi
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13567 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13569 $as_echo_n "checking for -force_load linker flag... " >&6; }
13570 if test "${lt_cv_ld_force_load+set}" = set; then :
13571   $as_echo_n "(cached) " >&6
13572 else
13573   lt_cv_ld_force_load=no
13574       cat > conftest.c << _LT_EOF
13575 int forced_loaded() { return 2;}
13576 _LT_EOF
13577       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13578       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13579       echo "$AR cru libconftest.a conftest.o" >&5
13580       $AR cru libconftest.a conftest.o 2>&5
13581       cat > conftest.c << _LT_EOF
13582 int main() { return 0;}
13583 _LT_EOF
13584       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13585       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13586       _lt_result=$?
13587       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13588         lt_cv_ld_force_load=yes
13589       else
13590         cat conftest.err >&5
13591       fi
13592         rm -f conftest.err libconftest.a conftest conftest.c
13593         rm -rf conftest.dSYM
13594
13595 fi
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13597 $as_echo "$lt_cv_ld_force_load" >&6; }
13598     case $host_os in
13599     rhapsody* | darwin1.[012])
13600       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13601     darwin1.*)
13602       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13603     darwin*) # darwin 5.x on
13604       # if running on 10.5 or later, the deployment target defaults
13605       # to the OS version, if on x86, and 10.4, the deployment
13606       # target defaults to 10.4. Don't you love it?
13607       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13608         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13609           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13610         10.[012]*)
13611           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13612         10.*)
13613           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13614       esac
13615     ;;
13616   esac
13617     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13618       _lt_dar_single_mod='$single_module'
13619     fi
13620     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13621       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13622     else
13623       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13624     fi
13625     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13626       _lt_dsymutil='~$DSYMUTIL $lib || :'
13627     else
13628       _lt_dsymutil=
13629     fi
13630     ;;
13631   esac
13632
13633 for ac_header in dlfcn.h
13634 do :
13635   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13636 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13637   cat >>confdefs.h <<_ACEOF
13638 #define HAVE_DLFCN_H 1
13639 _ACEOF
13640
13641 fi
13642 done
13643
13644
13645
13646
13647
13648
13649 # Set options
13650
13651
13652
13653         enable_dlopen=no
13654
13655
13656   enable_win32_dll=no
13657
13658
13659             # Check whether --enable-shared was given.
13660 if test "${enable_shared+set}" = set; then :
13661   enableval=$enable_shared; p=${PACKAGE-default}
13662     case $enableval in
13663     yes) enable_shared=yes ;;
13664     no) enable_shared=no ;;
13665     *)
13666       enable_shared=no
13667       # Look at the argument we got.  We use all the common list separators.
13668       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13669       for pkg in $enableval; do
13670         IFS="$lt_save_ifs"
13671         if test "X$pkg" = "X$p"; then
13672           enable_shared=yes
13673         fi
13674       done
13675       IFS="$lt_save_ifs"
13676       ;;
13677     esac
13678 else
13679   enable_shared=yes
13680 fi
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690   # Check whether --enable-static was given.
13691 if test "${enable_static+set}" = set; then :
13692   enableval=$enable_static; p=${PACKAGE-default}
13693     case $enableval in
13694     yes) enable_static=yes ;;
13695     no) enable_static=no ;;
13696     *)
13697      enable_static=no
13698       # Look at the argument we got.  We use all the common list separators.
13699       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13700       for pkg in $enableval; do
13701         IFS="$lt_save_ifs"
13702         if test "X$pkg" = "X$p"; then
13703           enable_static=yes
13704         fi
13705       done
13706       IFS="$lt_save_ifs"
13707       ;;
13708     esac
13709 else
13710   enable_static=yes
13711 fi
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722 # Check whether --with-pic was given.
13723 if test "${with_pic+set}" = set; then :
13724   withval=$with_pic; pic_mode="$withval"
13725 else
13726   pic_mode=default
13727 fi
13728
13729
13730 test -z "$pic_mode" && pic_mode=default
13731
13732
13733
13734
13735
13736
13737
13738   # Check whether --enable-fast-install was given.
13739 if test "${enable_fast_install+set}" = set; then :
13740   enableval=$enable_fast_install; p=${PACKAGE-default}
13741     case $enableval in
13742     yes) enable_fast_install=yes ;;
13743     no) enable_fast_install=no ;;
13744     *)
13745       enable_fast_install=no
13746       # Look at the argument we got.  We use all the common list separators.
13747       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13748       for pkg in $enableval; do
13749         IFS="$lt_save_ifs"
13750         if test "X$pkg" = "X$p"; then
13751           enable_fast_install=yes
13752         fi
13753       done
13754       IFS="$lt_save_ifs"
13755       ;;
13756     esac
13757 else
13758   enable_fast_install=yes
13759 fi
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771 # This can be used to rebuild libtool when needed
13772 LIBTOOL_DEPS="$ltmain"
13773
13774 # Always use our own libtool.
13775 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802 test -z "$LN_S" && LN_S="ln -s"
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817 if test -n "${ZSH_VERSION+set}" ; then
13818    setopt NO_GLOB_SUBST
13819 fi
13820
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13822 $as_echo_n "checking for objdir... " >&6; }
13823 if test "${lt_cv_objdir+set}" = set; then :
13824   $as_echo_n "(cached) " >&6
13825 else
13826   rm -f .libs 2>/dev/null
13827 mkdir .libs 2>/dev/null
13828 if test -d .libs; then
13829   lt_cv_objdir=.libs
13830 else
13831   # MS-DOS does not allow filenames that begin with a dot.
13832   lt_cv_objdir=_libs
13833 fi
13834 rmdir .libs 2>/dev/null
13835 fi
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13837 $as_echo "$lt_cv_objdir" >&6; }
13838 objdir=$lt_cv_objdir
13839
13840
13841
13842
13843
13844 cat >>confdefs.h <<_ACEOF
13845 #define LT_OBJDIR "$lt_cv_objdir/"
13846 _ACEOF
13847
13848
13849
13850
13851 case $host_os in
13852 aix3*)
13853   # AIX sometimes has problems with the GCC collect2 program.  For some
13854   # reason, if we set the COLLECT_NAMES environment variable, the problems
13855   # vanish in a puff of smoke.
13856   if test "X${COLLECT_NAMES+set}" != Xset; then
13857     COLLECT_NAMES=
13858     export COLLECT_NAMES
13859   fi
13860   ;;
13861 esac
13862
13863 # Global variables:
13864 ofile=libtool
13865 can_build_shared=yes
13866
13867 # All known linkers require a `.a' archive for static linking (except MSVC,
13868 # which needs '.lib').
13869 libext=a
13870
13871 with_gnu_ld="$lt_cv_prog_gnu_ld"
13872
13873 old_CC="$CC"
13874 old_CFLAGS="$CFLAGS"
13875
13876 # Set sane defaults for various variables
13877 test -z "$CC" && CC=cc
13878 test -z "$LTCC" && LTCC=$CC
13879 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13880 test -z "$LD" && LD=ld
13881 test -z "$ac_objext" && ac_objext=o
13882
13883 for cc_temp in $compiler""; do
13884   case $cc_temp in
13885     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13886     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13887     \-*) ;;
13888     *) break;;
13889   esac
13890 done
13891 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13892
13893
13894 # Only perform the check for file, if the check method requires it
13895 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13896 case $deplibs_check_method in
13897 file_magic*)
13898   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13900 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13901 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13902   $as_echo_n "(cached) " >&6
13903 else
13904   case $MAGIC_CMD in
13905 [\\/*] |  ?:[\\/]*)
13906   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13907   ;;
13908 *)
13909   lt_save_MAGIC_CMD="$MAGIC_CMD"
13910   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13911   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13912   for ac_dir in $ac_dummy; do
13913     IFS="$lt_save_ifs"
13914     test -z "$ac_dir" && ac_dir=.
13915     if test -f $ac_dir/${ac_tool_prefix}file; then
13916       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13917       if test -n "$file_magic_test_file"; then
13918         case $deplibs_check_method in
13919         "file_magic "*)
13920           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13921           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13922           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13923             $EGREP "$file_magic_regex" > /dev/null; then
13924             :
13925           else
13926             cat <<_LT_EOF 1>&2
13927
13928 *** Warning: the command libtool uses to detect shared libraries,
13929 *** $file_magic_cmd, produces output that libtool cannot recognize.
13930 *** The result is that libtool may fail to recognize shared libraries
13931 *** as such.  This will affect the creation of libtool libraries that
13932 *** depend on shared libraries, but programs linked with such libtool
13933 *** libraries will work regardless of this problem.  Nevertheless, you
13934 *** may want to report the problem to your system manager and/or to
13935 *** bug-libtool@gnu.org
13936
13937 _LT_EOF
13938           fi ;;
13939         esac
13940       fi
13941       break
13942     fi
13943   done
13944   IFS="$lt_save_ifs"
13945   MAGIC_CMD="$lt_save_MAGIC_CMD"
13946   ;;
13947 esac
13948 fi
13949
13950 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13951 if test -n "$MAGIC_CMD"; then
13952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13953 $as_echo "$MAGIC_CMD" >&6; }
13954 else
13955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13956 $as_echo "no" >&6; }
13957 fi
13958
13959
13960
13961
13962
13963 if test -z "$lt_cv_path_MAGIC_CMD"; then
13964   if test -n "$ac_tool_prefix"; then
13965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13966 $as_echo_n "checking for file... " >&6; }
13967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13968   $as_echo_n "(cached) " >&6
13969 else
13970   case $MAGIC_CMD in
13971 [\\/*] |  ?:[\\/]*)
13972   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13973   ;;
13974 *)
13975   lt_save_MAGIC_CMD="$MAGIC_CMD"
13976   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13977   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13978   for ac_dir in $ac_dummy; do
13979     IFS="$lt_save_ifs"
13980     test -z "$ac_dir" && ac_dir=.
13981     if test -f $ac_dir/file; then
13982       lt_cv_path_MAGIC_CMD="$ac_dir/file"
13983       if test -n "$file_magic_test_file"; then
13984         case $deplibs_check_method in
13985         "file_magic "*)
13986           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13987           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13988           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13989             $EGREP "$file_magic_regex" > /dev/null; then
13990             :
13991           else
13992             cat <<_LT_EOF 1>&2
13993
13994 *** Warning: the command libtool uses to detect shared libraries,
13995 *** $file_magic_cmd, produces output that libtool cannot recognize.
13996 *** The result is that libtool may fail to recognize shared libraries
13997 *** as such.  This will affect the creation of libtool libraries that
13998 *** depend on shared libraries, but programs linked with such libtool
13999 *** libraries will work regardless of this problem.  Nevertheless, you
14000 *** may want to report the problem to your system manager and/or to
14001 *** bug-libtool@gnu.org
14002
14003 _LT_EOF
14004           fi ;;
14005         esac
14006       fi
14007       break
14008     fi
14009   done
14010   IFS="$lt_save_ifs"
14011   MAGIC_CMD="$lt_save_MAGIC_CMD"
14012   ;;
14013 esac
14014 fi
14015
14016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14017 if test -n "$MAGIC_CMD"; then
14018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14019 $as_echo "$MAGIC_CMD" >&6; }
14020 else
14021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022 $as_echo "no" >&6; }
14023 fi
14024
14025
14026   else
14027     MAGIC_CMD=:
14028   fi
14029 fi
14030
14031   fi
14032   ;;
14033 esac
14034
14035 # Use C for the default configuration in the libtool script
14036
14037 lt_save_CC="$CC"
14038 ac_ext=c
14039 ac_cpp='$CPP $CPPFLAGS'
14040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14043
14044
14045 # Source file extension for C test sources.
14046 ac_ext=c
14047
14048 # Object file extension for compiled C test sources.
14049 objext=o
14050 objext=$objext
14051
14052 # Code to be used in simple compile tests
14053 lt_simple_compile_test_code="int some_variable = 0;"
14054
14055 # Code to be used in simple link tests
14056 lt_simple_link_test_code='int main(){return(0);}'
14057
14058
14059
14060
14061
14062
14063
14064 # If no C compiler was specified, use CC.
14065 LTCC=${LTCC-"$CC"}
14066
14067 # If no C compiler flags were specified, use CFLAGS.
14068 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14069
14070 # Allow CC to be a program name with arguments.
14071 compiler=$CC
14072
14073 # Save the default compiler, since it gets overwritten when the other
14074 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14075 compiler_DEFAULT=$CC
14076
14077 # save warnings/boilerplate of simple test code
14078 ac_outfile=conftest.$ac_objext
14079 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14080 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14081 _lt_compiler_boilerplate=`cat conftest.err`
14082 $RM conftest*
14083
14084 ac_outfile=conftest.$ac_objext
14085 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14086 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14087 _lt_linker_boilerplate=`cat conftest.err`
14088 $RM -r conftest*
14089
14090
14091 ## CAVEAT EMPTOR:
14092 ## There is no encapsulation within the following macros, do not change
14093 ## the running order or otherwise move them around unless you know exactly
14094 ## what you are doing...
14095 if test -n "$compiler"; then
14096
14097 lt_prog_compiler_no_builtin_flag=
14098
14099 if test "$GCC" = yes; then
14100   case $cc_basename in
14101   nvcc*)
14102     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14103   *)
14104     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14105   esac
14106
14107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14108 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14109 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14110   $as_echo_n "(cached) " >&6
14111 else
14112   lt_cv_prog_compiler_rtti_exceptions=no
14113    ac_outfile=conftest.$ac_objext
14114    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14115    lt_compiler_flag="-fno-rtti -fno-exceptions"
14116    # Insert the option either (1) after the last *FLAGS variable, or
14117    # (2) before a word containing "conftest.", or (3) at the end.
14118    # Note that $ac_compile itself does not contain backslashes and begins
14119    # with a dollar sign (not a hyphen), so the echo should work correctly.
14120    # The option is referenced via a variable to avoid confusing sed.
14121    lt_compile=`echo "$ac_compile" | $SED \
14122    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14123    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14124    -e 's:$: $lt_compiler_flag:'`
14125    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14126    (eval "$lt_compile" 2>conftest.err)
14127    ac_status=$?
14128    cat conftest.err >&5
14129    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130    if (exit $ac_status) && test -s "$ac_outfile"; then
14131      # The compiler can only warn and ignore the option if not recognized
14132      # So say no if there are warnings other than the usual output.
14133      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14134      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14135      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14136        lt_cv_prog_compiler_rtti_exceptions=yes
14137      fi
14138    fi
14139    $RM conftest*
14140
14141 fi
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14143 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14144
14145 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14146     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14147 else
14148     :
14149 fi
14150
14151 fi
14152
14153
14154
14155
14156
14157
14158   lt_prog_compiler_wl=
14159 lt_prog_compiler_pic=
14160 lt_prog_compiler_static=
14161
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14163 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14164
14165   if test "$GCC" = yes; then
14166     lt_prog_compiler_wl='-Wl,'
14167     lt_prog_compiler_static='-static'
14168
14169     case $host_os in
14170       aix*)
14171       # All AIX code is PIC.
14172       if test "$host_cpu" = ia64; then
14173         # AIX 5 now supports IA64 processor
14174         lt_prog_compiler_static='-Bstatic'
14175       fi
14176       ;;
14177
14178     amigaos*)
14179       case $host_cpu in
14180       powerpc)
14181             # see comment about AmigaOS4 .so support
14182             lt_prog_compiler_pic='-fPIC'
14183         ;;
14184       m68k)
14185             # FIXME: we need at least 68020 code to build shared libraries, but
14186             # adding the `-m68020' flag to GCC prevents building anything better,
14187             # like `-m68040'.
14188             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14189         ;;
14190       esac
14191       ;;
14192
14193     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14194       # PIC is the default for these OSes.
14195       ;;
14196
14197     mingw* | cygwin* | pw32* | os2* | cegcc*)
14198       # This hack is so that the source file can tell whether it is being
14199       # built for inclusion in a dll (and should export symbols for example).
14200       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14201       # (--disable-auto-import) libraries
14202       lt_prog_compiler_pic='-DDLL_EXPORT'
14203       ;;
14204
14205     darwin* | rhapsody*)
14206       # PIC is the default on this platform
14207       # Common symbols not allowed in MH_DYLIB files
14208       lt_prog_compiler_pic='-fno-common'
14209       ;;
14210
14211     haiku*)
14212       # PIC is the default for Haiku.
14213       # The "-static" flag exists, but is broken.
14214       lt_prog_compiler_static=
14215       ;;
14216
14217     hpux*)
14218       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14219       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14220       # sets the default TLS model and affects inlining.
14221       case $host_cpu in
14222       hppa*64*)
14223         # +Z the default
14224         ;;
14225       *)
14226         lt_prog_compiler_pic='-fPIC'
14227         ;;
14228       esac
14229       ;;
14230
14231     interix[3-9]*)
14232       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14233       # Instead, we relocate shared libraries at runtime.
14234       ;;
14235
14236     msdosdjgpp*)
14237       # Just because we use GCC doesn't mean we suddenly get shared libraries
14238       # on systems that don't support them.
14239       lt_prog_compiler_can_build_shared=no
14240       enable_shared=no
14241       ;;
14242
14243     *nto* | *qnx*)
14244       # QNX uses GNU C++, but need to define -shared option too, otherwise
14245       # it will coredump.
14246       lt_prog_compiler_pic='-fPIC -shared'
14247       ;;
14248
14249     sysv4*MP*)
14250       if test -d /usr/nec; then
14251         lt_prog_compiler_pic=-Kconform_pic
14252       fi
14253       ;;
14254
14255     *)
14256       lt_prog_compiler_pic='-fPIC'
14257       ;;
14258     esac
14259
14260     case $cc_basename in
14261     nvcc*) # Cuda Compiler Driver 2.2
14262       lt_prog_compiler_wl='-Xlinker '
14263       lt_prog_compiler_pic='-Xcompiler -fPIC'
14264       ;;
14265     esac
14266   else
14267     # PORTME Check for flag to pass linker flags through the system compiler.
14268     case $host_os in
14269     aix*)
14270       lt_prog_compiler_wl='-Wl,'
14271       if test "$host_cpu" = ia64; then
14272         # AIX 5 now supports IA64 processor
14273         lt_prog_compiler_static='-Bstatic'
14274       else
14275         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14276       fi
14277       ;;
14278
14279     mingw* | cygwin* | pw32* | os2* | cegcc*)
14280       # This hack is so that the source file can tell whether it is being
14281       # built for inclusion in a dll (and should export symbols for example).
14282       lt_prog_compiler_pic='-DDLL_EXPORT'
14283       ;;
14284
14285     hpux9* | hpux10* | hpux11*)
14286       lt_prog_compiler_wl='-Wl,'
14287       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14288       # not for PA HP-UX.
14289       case $host_cpu in
14290       hppa*64*|ia64*)
14291         # +Z the default
14292         ;;
14293       *)
14294         lt_prog_compiler_pic='+Z'
14295         ;;
14296       esac
14297       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14298       lt_prog_compiler_static='${wl}-a ${wl}archive'
14299       ;;
14300
14301     irix5* | irix6* | nonstopux*)
14302       lt_prog_compiler_wl='-Wl,'
14303       # PIC (with -KPIC) is the default.
14304       lt_prog_compiler_static='-non_shared'
14305       ;;
14306
14307     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14308       case $cc_basename in
14309       # old Intel for x86_64 which still supported -KPIC.
14310       ecc*)
14311         lt_prog_compiler_wl='-Wl,'
14312         lt_prog_compiler_pic='-KPIC'
14313         lt_prog_compiler_static='-static'
14314         ;;
14315       # icc used to be incompatible with GCC.
14316       # ICC 10 doesn't accept -KPIC any more.
14317       icc* | ifort*)
14318         lt_prog_compiler_wl='-Wl,'
14319         lt_prog_compiler_pic='-fPIC'
14320         lt_prog_compiler_static='-static'
14321         ;;
14322       # Lahey Fortran 8.1.
14323       lf95*)
14324         lt_prog_compiler_wl='-Wl,'
14325         lt_prog_compiler_pic='--shared'
14326         lt_prog_compiler_static='--static'
14327         ;;
14328       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14329         # Portland Group compilers (*not* the Pentium gcc compiler,
14330         # which looks to be a dead project)
14331         lt_prog_compiler_wl='-Wl,'
14332         lt_prog_compiler_pic='-fpic'
14333         lt_prog_compiler_static='-Bstatic'
14334         ;;
14335       ccc*)
14336         lt_prog_compiler_wl='-Wl,'
14337         # All Alpha code is PIC.
14338         lt_prog_compiler_static='-non_shared'
14339         ;;
14340       xl* | bgxl* | bgf* | mpixl*)
14341         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14342         lt_prog_compiler_wl='-Wl,'
14343         lt_prog_compiler_pic='-qpic'
14344         lt_prog_compiler_static='-qstaticlink'
14345         ;;
14346       *)
14347         case `$CC -V 2>&1 | sed 5q` in
14348         *Sun\ F* | *Sun*Fortran*)
14349           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14350           lt_prog_compiler_pic='-KPIC'
14351           lt_prog_compiler_static='-Bstatic'
14352           lt_prog_compiler_wl=''
14353           ;;
14354         *Sun\ C*)
14355           # Sun C 5.9
14356           lt_prog_compiler_pic='-KPIC'
14357           lt_prog_compiler_static='-Bstatic'
14358           lt_prog_compiler_wl='-Wl,'
14359           ;;
14360         esac
14361         ;;
14362       esac
14363       ;;
14364
14365     newsos6)
14366       lt_prog_compiler_pic='-KPIC'
14367       lt_prog_compiler_static='-Bstatic'
14368       ;;
14369
14370     *nto* | *qnx*)
14371       # QNX uses GNU C++, but need to define -shared option too, otherwise
14372       # it will coredump.
14373       lt_prog_compiler_pic='-fPIC -shared'
14374       ;;
14375
14376     osf3* | osf4* | osf5*)
14377       lt_prog_compiler_wl='-Wl,'
14378       # All OSF/1 code is PIC.
14379       lt_prog_compiler_static='-non_shared'
14380       ;;
14381
14382     rdos*)
14383       lt_prog_compiler_static='-non_shared'
14384       ;;
14385
14386     solaris*)
14387       lt_prog_compiler_pic='-KPIC'
14388       lt_prog_compiler_static='-Bstatic'
14389       case $cc_basename in
14390       f77* | f90* | f95*)
14391         lt_prog_compiler_wl='-Qoption ld ';;
14392       *)
14393         lt_prog_compiler_wl='-Wl,';;
14394       esac
14395       ;;
14396
14397     sunos4*)
14398       lt_prog_compiler_wl='-Qoption ld '
14399       lt_prog_compiler_pic='-PIC'
14400       lt_prog_compiler_static='-Bstatic'
14401       ;;
14402
14403     sysv4 | sysv4.2uw2* | sysv4.3*)
14404       lt_prog_compiler_wl='-Wl,'
14405       lt_prog_compiler_pic='-KPIC'
14406       lt_prog_compiler_static='-Bstatic'
14407       ;;
14408
14409     sysv4*MP*)
14410       if test -d /usr/nec ;then
14411         lt_prog_compiler_pic='-Kconform_pic'
14412         lt_prog_compiler_static='-Bstatic'
14413       fi
14414       ;;
14415
14416     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14417       lt_prog_compiler_wl='-Wl,'
14418       lt_prog_compiler_pic='-KPIC'
14419       lt_prog_compiler_static='-Bstatic'
14420       ;;
14421
14422     unicos*)
14423       lt_prog_compiler_wl='-Wl,'
14424       lt_prog_compiler_can_build_shared=no
14425       ;;
14426
14427     uts4*)
14428       lt_prog_compiler_pic='-pic'
14429       lt_prog_compiler_static='-Bstatic'
14430       ;;
14431
14432     *)
14433       lt_prog_compiler_can_build_shared=no
14434       ;;
14435     esac
14436   fi
14437
14438 case $host_os in
14439   # For platforms which do not support PIC, -DPIC is meaningless:
14440   *djgpp*)
14441     lt_prog_compiler_pic=
14442     ;;
14443   *)
14444     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14445     ;;
14446 esac
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14448 $as_echo "$lt_prog_compiler_pic" >&6; }
14449
14450
14451
14452
14453
14454
14455 #
14456 # Check to make sure the PIC flag actually works.
14457 #
14458 if test -n "$lt_prog_compiler_pic"; then
14459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14460 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14461 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14462   $as_echo_n "(cached) " >&6
14463 else
14464   lt_cv_prog_compiler_pic_works=no
14465    ac_outfile=conftest.$ac_objext
14466    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14467    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14468    # Insert the option either (1) after the last *FLAGS variable, or
14469    # (2) before a word containing "conftest.", or (3) at the end.
14470    # Note that $ac_compile itself does not contain backslashes and begins
14471    # with a dollar sign (not a hyphen), so the echo should work correctly.
14472    # The option is referenced via a variable to avoid confusing sed.
14473    lt_compile=`echo "$ac_compile" | $SED \
14474    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14475    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14476    -e 's:$: $lt_compiler_flag:'`
14477    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14478    (eval "$lt_compile" 2>conftest.err)
14479    ac_status=$?
14480    cat conftest.err >&5
14481    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482    if (exit $ac_status) && test -s "$ac_outfile"; then
14483      # The compiler can only warn and ignore the option if not recognized
14484      # So say no if there are warnings other than the usual output.
14485      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14486      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14487      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14488        lt_cv_prog_compiler_pic_works=yes
14489      fi
14490    fi
14491    $RM conftest*
14492
14493 fi
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14495 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14496
14497 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14498     case $lt_prog_compiler_pic in
14499      "" | " "*) ;;
14500      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14501      esac
14502 else
14503     lt_prog_compiler_pic=
14504      lt_prog_compiler_can_build_shared=no
14505 fi
14506
14507 fi
14508
14509
14510
14511
14512
14513
14514 #
14515 # Check to make sure the static flag actually works.
14516 #
14517 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14519 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14520 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14521   $as_echo_n "(cached) " >&6
14522 else
14523   lt_cv_prog_compiler_static_works=no
14524    save_LDFLAGS="$LDFLAGS"
14525    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14526    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14527    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14528      # The linker can only warn and ignore the option if not recognized
14529      # So say no if there are warnings
14530      if test -s conftest.err; then
14531        # Append any errors to the config.log.
14532        cat conftest.err 1>&5
14533        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14534        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14535        if diff conftest.exp conftest.er2 >/dev/null; then
14536          lt_cv_prog_compiler_static_works=yes
14537        fi
14538      else
14539        lt_cv_prog_compiler_static_works=yes
14540      fi
14541    fi
14542    $RM -r conftest*
14543    LDFLAGS="$save_LDFLAGS"
14544
14545 fi
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14547 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14548
14549 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14550     :
14551 else
14552     lt_prog_compiler_static=
14553 fi
14554
14555
14556
14557
14558
14559
14560
14561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14562 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14563 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14564   $as_echo_n "(cached) " >&6
14565 else
14566   lt_cv_prog_compiler_c_o=no
14567    $RM -r conftest 2>/dev/null
14568    mkdir conftest
14569    cd conftest
14570    mkdir out
14571    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14572
14573    lt_compiler_flag="-o out/conftest2.$ac_objext"
14574    # Insert the option either (1) after the last *FLAGS variable, or
14575    # (2) before a word containing "conftest.", or (3) at the end.
14576    # Note that $ac_compile itself does not contain backslashes and begins
14577    # with a dollar sign (not a hyphen), so the echo should work correctly.
14578    lt_compile=`echo "$ac_compile" | $SED \
14579    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14580    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14581    -e 's:$: $lt_compiler_flag:'`
14582    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14583    (eval "$lt_compile" 2>out/conftest.err)
14584    ac_status=$?
14585    cat out/conftest.err >&5
14586    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14588    then
14589      # The compiler can only warn and ignore the option if not recognized
14590      # So say no if there are warnings
14591      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14592      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14593      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14594        lt_cv_prog_compiler_c_o=yes
14595      fi
14596    fi
14597    chmod u+w . 2>&5
14598    $RM conftest*
14599    # SGI C++ compiler will create directory out/ii_files/ for
14600    # template instantiation
14601    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14602    $RM out/* && rmdir out
14603    cd ..
14604    $RM -r conftest
14605    $RM conftest*
14606
14607 fi
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14609 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14610
14611
14612
14613
14614
14615
14616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14617 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14618 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14619   $as_echo_n "(cached) " >&6
14620 else
14621   lt_cv_prog_compiler_c_o=no
14622    $RM -r conftest 2>/dev/null
14623    mkdir conftest
14624    cd conftest
14625    mkdir out
14626    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14627
14628    lt_compiler_flag="-o out/conftest2.$ac_objext"
14629    # Insert the option either (1) after the last *FLAGS variable, or
14630    # (2) before a word containing "conftest.", or (3) at the end.
14631    # Note that $ac_compile itself does not contain backslashes and begins
14632    # with a dollar sign (not a hyphen), so the echo should work correctly.
14633    lt_compile=`echo "$ac_compile" | $SED \
14634    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14635    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14636    -e 's:$: $lt_compiler_flag:'`
14637    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14638    (eval "$lt_compile" 2>out/conftest.err)
14639    ac_status=$?
14640    cat out/conftest.err >&5
14641    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14643    then
14644      # The compiler can only warn and ignore the option if not recognized
14645      # So say no if there are warnings
14646      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14647      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14648      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14649        lt_cv_prog_compiler_c_o=yes
14650      fi
14651    fi
14652    chmod u+w . 2>&5
14653    $RM conftest*
14654    # SGI C++ compiler will create directory out/ii_files/ for
14655    # template instantiation
14656    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14657    $RM out/* && rmdir out
14658    cd ..
14659    $RM -r conftest
14660    $RM conftest*
14661
14662 fi
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14664 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14665
14666
14667
14668
14669 hard_links="nottested"
14670 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14671   # do not overwrite the value of need_locks provided by the user
14672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14673 $as_echo_n "checking if we can lock with hard links... " >&6; }
14674   hard_links=yes
14675   $RM conftest*
14676   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14677   touch conftest.a
14678   ln conftest.a conftest.b 2>&5 || hard_links=no
14679   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14681 $as_echo "$hard_links" >&6; }
14682   if test "$hard_links" = no; then
14683     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14684 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14685     need_locks=warn
14686   fi
14687 else
14688   need_locks=no
14689 fi
14690
14691
14692
14693
14694
14695
14696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14697 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14698
14699   runpath_var=
14700   allow_undefined_flag=
14701   always_export_symbols=no
14702   archive_cmds=
14703   archive_expsym_cmds=
14704   compiler_needs_object=no
14705   enable_shared_with_static_runtimes=no
14706   export_dynamic_flag_spec=
14707   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14708   hardcode_automatic=no
14709   hardcode_direct=no
14710   hardcode_direct_absolute=no
14711   hardcode_libdir_flag_spec=
14712   hardcode_libdir_flag_spec_ld=
14713   hardcode_libdir_separator=
14714   hardcode_minus_L=no
14715   hardcode_shlibpath_var=unsupported
14716   inherit_rpath=no
14717   link_all_deplibs=unknown
14718   module_cmds=
14719   module_expsym_cmds=
14720   old_archive_from_new_cmds=
14721   old_archive_from_expsyms_cmds=
14722   thread_safe_flag_spec=
14723   whole_archive_flag_spec=
14724   # include_expsyms should be a list of space-separated symbols to be *always*
14725   # included in the symbol list
14726   include_expsyms=
14727   # exclude_expsyms can be an extended regexp of symbols to exclude
14728   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14729   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14730   # as well as any symbol that contains `d'.
14731   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14732   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14733   # platforms (ab)use it in PIC code, but their linkers get confused if
14734   # the symbol is explicitly referenced.  Since portable code cannot
14735   # rely on this symbol name, it's probably fine to never include it in
14736   # preloaded symbol tables.
14737   # Exclude shared library initialization/finalization symbols.
14738   extract_expsyms_cmds=
14739
14740   case $host_os in
14741   cygwin* | mingw* | pw32* | cegcc*)
14742     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14743     # When not using gcc, we currently assume that we are using
14744     # Microsoft Visual C++.
14745     if test "$GCC" != yes; then
14746       with_gnu_ld=no
14747     fi
14748     ;;
14749   interix*)
14750     # we just hope/assume this is gcc and not c89 (= MSVC++)
14751     with_gnu_ld=yes
14752     ;;
14753   openbsd*)
14754     with_gnu_ld=no
14755     ;;
14756   esac
14757
14758   ld_shlibs=yes
14759
14760   # On some targets, GNU ld is compatible enough with the native linker
14761   # that we're better off using the native interface for both.
14762   lt_use_gnu_ld_interface=no
14763   if test "$with_gnu_ld" = yes; then
14764     case $host_os in
14765       aix*)
14766         # The AIX port of GNU ld has always aspired to compatibility
14767         # with the native linker.  However, as the warning in the GNU ld
14768         # block says, versions before 2.19.5* couldn't really create working
14769         # shared libraries, regardless of the interface used.
14770         case `$LD -v 2>&1` in
14771           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14772           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14773           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14774           *)
14775             lt_use_gnu_ld_interface=yes
14776             ;;
14777         esac
14778         ;;
14779       *)
14780         lt_use_gnu_ld_interface=yes
14781         ;;
14782     esac
14783   fi
14784
14785   if test "$lt_use_gnu_ld_interface" = yes; then
14786     # If archive_cmds runs LD, not CC, wlarc should be empty
14787     wlarc='${wl}'
14788
14789     # Set some defaults for GNU ld with shared library support. These
14790     # are reset later if shared libraries are not supported. Putting them
14791     # here allows them to be overridden if necessary.
14792     runpath_var=LD_RUN_PATH
14793     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14794     export_dynamic_flag_spec='${wl}--export-dynamic'
14795     # ancient GNU ld didn't support --whole-archive et. al.
14796     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14797       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14798     else
14799       whole_archive_flag_spec=
14800     fi
14801     supports_anon_versioning=no
14802     case `$LD -v 2>&1` in
14803       *GNU\ gold*) supports_anon_versioning=yes ;;
14804       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14805       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14806       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14807       *\ 2.11.*) ;; # other 2.11 versions
14808       *) supports_anon_versioning=yes ;;
14809     esac
14810
14811     # See if GNU ld supports shared libraries.
14812     case $host_os in
14813     aix[3-9]*)
14814       # On AIX/PPC, the GNU linker is very broken
14815       if test "$host_cpu" != ia64; then
14816         ld_shlibs=no
14817         cat <<_LT_EOF 1>&2
14818
14819 *** Warning: the GNU linker, at least up to release 2.19, is reported
14820 *** to be unable to reliably create shared libraries on AIX.
14821 *** Therefore, libtool is disabling shared libraries support.  If you
14822 *** really care for shared libraries, you may want to install binutils
14823 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14824 *** You will then need to restart the configuration process.
14825
14826 _LT_EOF
14827       fi
14828       ;;
14829
14830     amigaos*)
14831       case $host_cpu in
14832       powerpc)
14833             # see comment about AmigaOS4 .so support
14834             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14835             archive_expsym_cmds=''
14836         ;;
14837       m68k)
14838             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)'
14839             hardcode_libdir_flag_spec='-L$libdir'
14840             hardcode_minus_L=yes
14841         ;;
14842       esac
14843       ;;
14844
14845     beos*)
14846       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14847         allow_undefined_flag=unsupported
14848         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14849         # support --undefined.  This deserves some investigation.  FIXME
14850         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14851       else
14852         ld_shlibs=no
14853       fi
14854       ;;
14855
14856     cygwin* | mingw* | pw32* | cegcc*)
14857       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14858       # as there is no search path for DLLs.
14859       hardcode_libdir_flag_spec='-L$libdir'
14860       export_dynamic_flag_spec='${wl}--export-all-symbols'
14861       allow_undefined_flag=unsupported
14862       always_export_symbols=no
14863       enable_shared_with_static_runtimes=yes
14864       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14865
14866       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14867         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14868         # If the export-symbols file already is a .def file (1st line
14869         # is EXPORTS), use it as is; otherwise, prepend...
14870         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14871           cp $export_symbols $output_objdir/$soname.def;
14872         else
14873           echo EXPORTS > $output_objdir/$soname.def;
14874           cat $export_symbols >> $output_objdir/$soname.def;
14875         fi~
14876         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14877       else
14878         ld_shlibs=no
14879       fi
14880       ;;
14881
14882     haiku*)
14883       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14884       link_all_deplibs=yes
14885       ;;
14886
14887     interix[3-9]*)
14888       hardcode_direct=no
14889       hardcode_shlibpath_var=no
14890       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14891       export_dynamic_flag_spec='${wl}-E'
14892       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14893       # Instead, shared libraries are loaded at an image base (0x10000000 by
14894       # default) and relocated if they conflict, which is a slow very memory
14895       # consuming and fragmenting process.  To avoid this, we pick a random,
14896       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14897       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14898       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14899       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'
14900       ;;
14901
14902     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14903       tmp_diet=no
14904       if test "$host_os" = linux-dietlibc; then
14905         case $cc_basename in
14906           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
14907         esac
14908       fi
14909       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14910          && test "$tmp_diet" = no
14911       then
14912         tmp_addflag=
14913         tmp_sharedflag='-shared'
14914         case $cc_basename,$host_cpu in
14915         pgcc*)                          # Portland Group C compiler
14916           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'
14917           tmp_addflag=' $pic_flag'
14918           ;;
14919         pgf77* | pgf90* | pgf95* | pgfortran*)
14920                                         # Portland Group f77 and f90 compilers
14921           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'
14922           tmp_addflag=' $pic_flag -Mnomain' ;;
14923         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
14924           tmp_addflag=' -i_dynamic' ;;
14925         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14926           tmp_addflag=' -i_dynamic -nofor_main' ;;
14927         ifc* | ifort*)                  # Intel Fortran compiler
14928           tmp_addflag=' -nofor_main' ;;
14929         lf95*)                          # Lahey Fortran 8.1
14930           whole_archive_flag_spec=
14931           tmp_sharedflag='--shared' ;;
14932         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14933           tmp_sharedflag='-qmkshrobj'
14934           tmp_addflag= ;;
14935         nvcc*)  # Cuda Compiler Driver 2.2
14936           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'
14937           compiler_needs_object=yes
14938           ;;
14939         esac
14940         case `$CC -V 2>&1 | sed 5q` in
14941         *Sun\ C*)                       # Sun C 5.9
14942           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'
14943           compiler_needs_object=yes
14944           tmp_sharedflag='-G' ;;
14945         *Sun\ F*)                       # Sun Fortran 8.3
14946           tmp_sharedflag='-G' ;;
14947         esac
14948         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14949
14950         if test "x$supports_anon_versioning" = xyes; then
14951           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14952             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14953             echo "local: *; };" >> $output_objdir/$libname.ver~
14954             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14955         fi
14956
14957         case $cc_basename in
14958         xlf* | bgf* | bgxlf* | mpixlf*)
14959           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14960           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14961           hardcode_libdir_flag_spec=
14962           hardcode_libdir_flag_spec_ld='-rpath $libdir'
14963           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14964           if test "x$supports_anon_versioning" = xyes; then
14965             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14966               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14967               echo "local: *; };" >> $output_objdir/$libname.ver~
14968               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14969           fi
14970           ;;
14971         esac
14972       else
14973         ld_shlibs=no
14974       fi
14975       ;;
14976
14977     netbsd*)
14978       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14979         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14980         wlarc=
14981       else
14982         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14983         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14984       fi
14985       ;;
14986
14987     solaris*)
14988       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14989         ld_shlibs=no
14990         cat <<_LT_EOF 1>&2
14991
14992 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14993 *** create shared libraries on Solaris systems.  Therefore, libtool
14994 *** is disabling shared libraries support.  We urge you to upgrade GNU
14995 *** binutils to release 2.9.1 or newer.  Another option is to modify
14996 *** your PATH or compiler configuration so that the native linker is
14997 *** used, and then restart.
14998
14999 _LT_EOF
15000       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15001         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15002         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15003       else
15004         ld_shlibs=no
15005       fi
15006       ;;
15007
15008     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15009       case `$LD -v 2>&1` in
15010         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15011         ld_shlibs=no
15012         cat <<_LT_EOF 1>&2
15013
15014 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15015 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15016 *** is disabling shared libraries support.  We urge you to upgrade GNU
15017 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15018 *** your PATH or compiler configuration so that the native linker is
15019 *** used, and then restart.
15020
15021 _LT_EOF
15022         ;;
15023         *)
15024           # For security reasons, it is highly recommended that you always
15025           # use absolute paths for naming shared libraries, and exclude the
15026           # DT_RUNPATH tag from executables and libraries.  But doing so
15027           # requires that you compile everything twice, which is a pain.
15028           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15029             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15030             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15031             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15032           else
15033             ld_shlibs=no
15034           fi
15035         ;;
15036       esac
15037       ;;
15038
15039     sunos4*)
15040       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15041       wlarc=
15042       hardcode_direct=yes
15043       hardcode_shlibpath_var=no
15044       ;;
15045
15046     *)
15047       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15048         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15049         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15050       else
15051         ld_shlibs=no
15052       fi
15053       ;;
15054     esac
15055
15056     if test "$ld_shlibs" = no; then
15057       runpath_var=
15058       hardcode_libdir_flag_spec=
15059       export_dynamic_flag_spec=
15060       whole_archive_flag_spec=
15061     fi
15062   else
15063     # PORTME fill in a description of your system's linker (not GNU ld)
15064     case $host_os in
15065     aix3*)
15066       allow_undefined_flag=unsupported
15067       always_export_symbols=yes
15068       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'
15069       # Note: this linker hardcodes the directories in LIBPATH if there
15070       # are no directories specified by -L.
15071       hardcode_minus_L=yes
15072       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15073         # Neither direct hardcoding nor static linking is supported with a
15074         # broken collect2.
15075         hardcode_direct=unsupported
15076       fi
15077       ;;
15078
15079     aix[4-9]*)
15080       if test "$host_cpu" = ia64; then
15081         # On IA64, the linker does run time linking by default, so we don't
15082         # have to do anything special.
15083         aix_use_runtimelinking=no
15084         exp_sym_flag='-Bexport'
15085         no_entry_flag=""
15086       else
15087         # If we're using GNU nm, then we don't want the "-C" option.
15088         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15089         # Also, AIX nm treats weak defined symbols like other global
15090         # defined symbols, whereas GNU nm marks them as "W".
15091         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15092           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'
15093         else
15094           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'
15095         fi
15096         aix_use_runtimelinking=no
15097
15098         # Test if we are trying to use run time linking or normal
15099         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15100         # need to do runtime linking.
15101         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15102           for ld_flag in $LDFLAGS; do
15103           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15104             aix_use_runtimelinking=yes
15105             break
15106           fi
15107           done
15108           ;;
15109         esac
15110
15111         exp_sym_flag='-bexport'
15112         no_entry_flag='-bnoentry'
15113       fi
15114
15115       # When large executables or shared objects are built, AIX ld can
15116       # have problems creating the table of contents.  If linking a library
15117       # or program results in "error TOC overflow" add -mminimal-toc to
15118       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15119       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15120
15121       archive_cmds=''
15122       hardcode_direct=yes
15123       hardcode_direct_absolute=yes
15124       hardcode_libdir_separator=':'
15125       link_all_deplibs=yes
15126       file_list_spec='${wl}-f,'
15127
15128       if test "$GCC" = yes; then
15129         case $host_os in aix4.[012]|aix4.[012].*)
15130         # We only want to do this on AIX 4.2 and lower, the check
15131         # below for broken collect2 doesn't work under 4.3+
15132           collect2name=`${CC} -print-prog-name=collect2`
15133           if test -f "$collect2name" &&
15134            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15135           then
15136           # We have reworked collect2
15137           :
15138           else
15139           # We have old collect2
15140           hardcode_direct=unsupported
15141           # It fails to find uninstalled libraries when the uninstalled
15142           # path is not listed in the libpath.  Setting hardcode_minus_L
15143           # to unsupported forces relinking
15144           hardcode_minus_L=yes
15145           hardcode_libdir_flag_spec='-L$libdir'
15146           hardcode_libdir_separator=
15147           fi
15148           ;;
15149         esac
15150         shared_flag='-shared'
15151         if test "$aix_use_runtimelinking" = yes; then
15152           shared_flag="$shared_flag "'${wl}-G'
15153         fi
15154       else
15155         # not using gcc
15156         if test "$host_cpu" = ia64; then
15157         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15158         # chokes on -Wl,-G. The following line is correct:
15159           shared_flag='-G'
15160         else
15161           if test "$aix_use_runtimelinking" = yes; then
15162             shared_flag='${wl}-G'
15163           else
15164             shared_flag='${wl}-bM:SRE'
15165           fi
15166         fi
15167       fi
15168
15169       export_dynamic_flag_spec='${wl}-bexpall'
15170       # It seems that -bexpall does not export symbols beginning with
15171       # underscore (_), so it is better to generate a list of symbols to export.
15172       always_export_symbols=yes
15173       if test "$aix_use_runtimelinking" = yes; then
15174         # Warning - without using the other runtime loading flags (-brtl),
15175         # -berok will link without error, but may produce a broken library.
15176         allow_undefined_flag='-berok'
15177         # Determine the default libpath from the value encoded in an
15178         # empty executable.
15179         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180 /* end confdefs.h.  */
15181
15182 int
15183 main ()
15184 {
15185
15186   ;
15187   return 0;
15188 }
15189 _ACEOF
15190 if ac_fn_c_try_link "$LINENO"; then :
15191
15192 lt_aix_libpath_sed='
15193     /Import File Strings/,/^$/ {
15194         /^0/ {
15195             s/^0  *\(.*\)$/\1/
15196             p
15197         }
15198     }'
15199 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15200 # Check for a 64-bit object if we didn't find anything.
15201 if test -z "$aix_libpath"; then
15202   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15203 fi
15204 fi
15205 rm -f core conftest.err conftest.$ac_objext \
15206     conftest$ac_exeext conftest.$ac_ext
15207 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15208
15209         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15210         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"
15211       else
15212         if test "$host_cpu" = ia64; then
15213           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15214           allow_undefined_flag="-z nodefs"
15215           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"
15216         else
15217          # Determine the default libpath from the value encoded in an
15218          # empty executable.
15219          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220 /* end confdefs.h.  */
15221
15222 int
15223 main ()
15224 {
15225
15226   ;
15227   return 0;
15228 }
15229 _ACEOF
15230 if ac_fn_c_try_link "$LINENO"; then :
15231
15232 lt_aix_libpath_sed='
15233     /Import File Strings/,/^$/ {
15234         /^0/ {
15235             s/^0  *\(.*\)$/\1/
15236             p
15237         }
15238     }'
15239 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15240 # Check for a 64-bit object if we didn't find anything.
15241 if test -z "$aix_libpath"; then
15242   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15243 fi
15244 fi
15245 rm -f core conftest.err conftest.$ac_objext \
15246     conftest$ac_exeext conftest.$ac_ext
15247 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15248
15249          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15250           # Warning - without using the other run time loading flags,
15251           # -berok will link without error, but may produce a broken library.
15252           no_undefined_flag=' ${wl}-bernotok'
15253           allow_undefined_flag=' ${wl}-berok'
15254           if test "$with_gnu_ld" = yes; then
15255             # We only use this code for GNU lds that support --whole-archive.
15256             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15257           else
15258             # Exported symbols can be pulled into shared objects from archives
15259             whole_archive_flag_spec='$convenience'
15260           fi
15261           archive_cmds_need_lc=yes
15262           # This is similar to how AIX traditionally builds its shared libraries.
15263           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'
15264         fi
15265       fi
15266       ;;
15267
15268     amigaos*)
15269       case $host_cpu in
15270       powerpc)
15271             # see comment about AmigaOS4 .so support
15272             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15273             archive_expsym_cmds=''
15274         ;;
15275       m68k)
15276             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)'
15277             hardcode_libdir_flag_spec='-L$libdir'
15278             hardcode_minus_L=yes
15279         ;;
15280       esac
15281       ;;
15282
15283     bsdi[45]*)
15284       export_dynamic_flag_spec=-rdynamic
15285       ;;
15286
15287     cygwin* | mingw* | pw32* | cegcc*)
15288       # When not using gcc, we currently assume that we are using
15289       # Microsoft Visual C++.
15290       # hardcode_libdir_flag_spec is actually meaningless, as there is
15291       # no search path for DLLs.
15292       hardcode_libdir_flag_spec=' '
15293       allow_undefined_flag=unsupported
15294       # Tell ltmain to make .lib files, not .a files.
15295       libext=lib
15296       # Tell ltmain to make .dll files, not .so files.
15297       shrext_cmds=".dll"
15298       # FIXME: Setting linknames here is a bad hack.
15299       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15300       # The linker will automatically build a .lib file if we build a DLL.
15301       old_archive_from_new_cmds='true'
15302       # FIXME: Should let the user specify the lib program.
15303       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15304       fix_srcfile_path='`cygpath -w "$srcfile"`'
15305       enable_shared_with_static_runtimes=yes
15306       ;;
15307
15308     darwin* | rhapsody*)
15309
15310
15311   archive_cmds_need_lc=no
15312   hardcode_direct=no
15313   hardcode_automatic=yes
15314   hardcode_shlibpath_var=unsupported
15315   if test "$lt_cv_ld_force_load" = "yes"; then
15316     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\"`'
15317   else
15318     whole_archive_flag_spec=''
15319   fi
15320   link_all_deplibs=yes
15321   allow_undefined_flag="$_lt_dar_allow_undefined"
15322   case $cc_basename in
15323      ifort*) _lt_dar_can_shared=yes ;;
15324      *) _lt_dar_can_shared=$GCC ;;
15325   esac
15326   if test "$_lt_dar_can_shared" = "yes"; then
15327     output_verbose_link_cmd=func_echo_all
15328     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15329     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15330     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}"
15331     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}"
15332
15333   else
15334   ld_shlibs=no
15335   fi
15336
15337       ;;
15338
15339     dgux*)
15340       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15341       hardcode_libdir_flag_spec='-L$libdir'
15342       hardcode_shlibpath_var=no
15343       ;;
15344
15345     freebsd1*)
15346       ld_shlibs=no
15347       ;;
15348
15349     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15350     # support.  Future versions do this automatically, but an explicit c++rt0.o
15351     # does not break anything, and helps significantly (at the cost of a little
15352     # extra space).
15353     freebsd2.2*)
15354       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15355       hardcode_libdir_flag_spec='-R$libdir'
15356       hardcode_direct=yes
15357       hardcode_shlibpath_var=no
15358       ;;
15359
15360     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15361     freebsd2*)
15362       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15363       hardcode_direct=yes
15364       hardcode_minus_L=yes
15365       hardcode_shlibpath_var=no
15366       ;;
15367
15368     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15369     freebsd* | dragonfly*)
15370       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15371       hardcode_libdir_flag_spec='-R$libdir'
15372       hardcode_direct=yes
15373       hardcode_shlibpath_var=no
15374       ;;
15375
15376     hpux9*)
15377       if test "$GCC" = yes; then
15378         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'
15379       else
15380         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'
15381       fi
15382       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15383       hardcode_libdir_separator=:
15384       hardcode_direct=yes
15385
15386       # hardcode_minus_L: Not really in the search PATH,
15387       # but as the default location of the library.
15388       hardcode_minus_L=yes
15389       export_dynamic_flag_spec='${wl}-E'
15390       ;;
15391
15392     hpux10*)
15393       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15394         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15395       else
15396         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15397       fi
15398       if test "$with_gnu_ld" = no; then
15399         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15400         hardcode_libdir_flag_spec_ld='+b $libdir'
15401         hardcode_libdir_separator=:
15402         hardcode_direct=yes
15403         hardcode_direct_absolute=yes
15404         export_dynamic_flag_spec='${wl}-E'
15405         # hardcode_minus_L: Not really in the search PATH,
15406         # but as the default location of the library.
15407         hardcode_minus_L=yes
15408       fi
15409       ;;
15410
15411     hpux11*)
15412       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15413         case $host_cpu in
15414         hppa*64*)
15415           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15416           ;;
15417         ia64*)
15418           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15419           ;;
15420         *)
15421           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15422           ;;
15423         esac
15424       else
15425         case $host_cpu in
15426         hppa*64*)
15427           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15428           ;;
15429         ia64*)
15430           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15431           ;;
15432         *)
15433
15434           # Older versions of the 11.00 compiler do not understand -b yet
15435           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15436           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15437 $as_echo_n "checking if $CC understands -b... " >&6; }
15438 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15439   $as_echo_n "(cached) " >&6
15440 else
15441   lt_cv_prog_compiler__b=no
15442    save_LDFLAGS="$LDFLAGS"
15443    LDFLAGS="$LDFLAGS -b"
15444    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15445    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15446      # The linker can only warn and ignore the option if not recognized
15447      # So say no if there are warnings
15448      if test -s conftest.err; then
15449        # Append any errors to the config.log.
15450        cat conftest.err 1>&5
15451        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15452        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15453        if diff conftest.exp conftest.er2 >/dev/null; then
15454          lt_cv_prog_compiler__b=yes
15455        fi
15456      else
15457        lt_cv_prog_compiler__b=yes
15458      fi
15459    fi
15460    $RM -r conftest*
15461    LDFLAGS="$save_LDFLAGS"
15462
15463 fi
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15465 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15466
15467 if test x"$lt_cv_prog_compiler__b" = xyes; then
15468     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15469 else
15470     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15471 fi
15472
15473           ;;
15474         esac
15475       fi
15476       if test "$with_gnu_ld" = no; then
15477         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15478         hardcode_libdir_separator=:
15479
15480         case $host_cpu in
15481         hppa*64*|ia64*)
15482           hardcode_direct=no
15483           hardcode_shlibpath_var=no
15484           ;;
15485         *)
15486           hardcode_direct=yes
15487           hardcode_direct_absolute=yes
15488           export_dynamic_flag_spec='${wl}-E'
15489
15490           # hardcode_minus_L: Not really in the search PATH,
15491           # but as the default location of the library.
15492           hardcode_minus_L=yes
15493           ;;
15494         esac
15495       fi
15496       ;;
15497
15498     irix5* | irix6* | nonstopux*)
15499       if test "$GCC" = yes; then
15500         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'
15501         # Try to use the -exported_symbol ld option, if it does not
15502         # work, assume that -exports_file does not work either and
15503         # implicitly export all symbols.
15504         save_LDFLAGS="$LDFLAGS"
15505         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15506         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15507 /* end confdefs.h.  */
15508 int foo(void) {}
15509 _ACEOF
15510 if ac_fn_c_try_link "$LINENO"; then :
15511   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'
15512
15513 fi
15514 rm -f core conftest.err conftest.$ac_objext \
15515     conftest$ac_exeext conftest.$ac_ext
15516         LDFLAGS="$save_LDFLAGS"
15517       else
15518         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'
15519         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'
15520       fi
15521       archive_cmds_need_lc='no'
15522       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15523       hardcode_libdir_separator=:
15524       inherit_rpath=yes
15525       link_all_deplibs=yes
15526       ;;
15527
15528     netbsd*)
15529       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15530         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15531       else
15532         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15533       fi
15534       hardcode_libdir_flag_spec='-R$libdir'
15535       hardcode_direct=yes
15536       hardcode_shlibpath_var=no
15537       ;;
15538
15539     newsos6)
15540       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15541       hardcode_direct=yes
15542       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15543       hardcode_libdir_separator=:
15544       hardcode_shlibpath_var=no
15545       ;;
15546
15547     *nto* | *qnx*)
15548       ;;
15549
15550     openbsd*)
15551       if test -f /usr/libexec/ld.so; then
15552         hardcode_direct=yes
15553         hardcode_shlibpath_var=no
15554         hardcode_direct_absolute=yes
15555         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15556           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15557           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15558           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15559           export_dynamic_flag_spec='${wl}-E'
15560         else
15561           case $host_os in
15562            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15563              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15564              hardcode_libdir_flag_spec='-R$libdir'
15565              ;;
15566            *)
15567              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15568              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15569              ;;
15570           esac
15571         fi
15572       else
15573         ld_shlibs=no
15574       fi
15575       ;;
15576
15577     os2*)
15578       hardcode_libdir_flag_spec='-L$libdir'
15579       hardcode_minus_L=yes
15580       allow_undefined_flag=unsupported
15581       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'
15582       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15583       ;;
15584
15585     osf3*)
15586       if test "$GCC" = yes; then
15587         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15588         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'
15589       else
15590         allow_undefined_flag=' -expect_unresolved \*'
15591         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'
15592       fi
15593       archive_cmds_need_lc='no'
15594       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15595       hardcode_libdir_separator=:
15596       ;;
15597
15598     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15599       if test "$GCC" = yes; then
15600         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15601         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'
15602         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15603       else
15604         allow_undefined_flag=' -expect_unresolved \*'
15605         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'
15606         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~
15607         $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'
15608
15609         # Both c and cxx compiler support -rpath directly
15610         hardcode_libdir_flag_spec='-rpath $libdir'
15611       fi
15612       archive_cmds_need_lc='no'
15613       hardcode_libdir_separator=:
15614       ;;
15615
15616     solaris*)
15617       no_undefined_flag=' -z defs'
15618       if test "$GCC" = yes; then
15619         wlarc='${wl}'
15620         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15621         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15622           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15623       else
15624         case `$CC -V 2>&1` in
15625         *"Compilers 5.0"*)
15626           wlarc=''
15627           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15628           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15629           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15630           ;;
15631         *)
15632           wlarc='${wl}'
15633           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15634           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15635           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15636           ;;
15637         esac
15638       fi
15639       hardcode_libdir_flag_spec='-R$libdir'
15640       hardcode_shlibpath_var=no
15641       case $host_os in
15642       solaris2.[0-5] | solaris2.[0-5].*) ;;
15643       *)
15644         # The compiler driver will combine and reorder linker options,
15645         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15646         # but is careful enough not to reorder.
15647         # Supported since Solaris 2.6 (maybe 2.5.1?)
15648         if test "$GCC" = yes; then
15649           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15650         else
15651           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15652         fi
15653         ;;
15654       esac
15655       link_all_deplibs=yes
15656       ;;
15657
15658     sunos4*)
15659       if test "x$host_vendor" = xsequent; then
15660         # Use $CC to link under sequent, because it throws in some extra .o
15661         # files that make .init and .fini sections work.
15662         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15663       else
15664         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15665       fi
15666       hardcode_libdir_flag_spec='-L$libdir'
15667       hardcode_direct=yes
15668       hardcode_minus_L=yes
15669       hardcode_shlibpath_var=no
15670       ;;
15671
15672     sysv4)
15673       case $host_vendor in
15674         sni)
15675           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15676           hardcode_direct=yes # is this really true???
15677         ;;
15678         siemens)
15679           ## LD is ld it makes a PLAMLIB
15680           ## CC just makes a GrossModule.
15681           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15682           reload_cmds='$CC -r -o $output$reload_objs'
15683           hardcode_direct=no
15684         ;;
15685         motorola)
15686           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15687           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15688         ;;
15689       esac
15690       runpath_var='LD_RUN_PATH'
15691       hardcode_shlibpath_var=no
15692       ;;
15693
15694     sysv4.3*)
15695       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15696       hardcode_shlibpath_var=no
15697       export_dynamic_flag_spec='-Bexport'
15698       ;;
15699
15700     sysv4*MP*)
15701       if test -d /usr/nec; then
15702         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15703         hardcode_shlibpath_var=no
15704         runpath_var=LD_RUN_PATH
15705         hardcode_runpath_var=yes
15706         ld_shlibs=yes
15707       fi
15708       ;;
15709
15710     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15711       no_undefined_flag='${wl}-z,text'
15712       archive_cmds_need_lc=no
15713       hardcode_shlibpath_var=no
15714       runpath_var='LD_RUN_PATH'
15715
15716       if test "$GCC" = yes; then
15717         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15718         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15719       else
15720         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15721         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15722       fi
15723       ;;
15724
15725     sysv5* | sco3.2v5* | sco5v6*)
15726       # Note: We can NOT use -z defs as we might desire, because we do not
15727       # link with -lc, and that would cause any symbols used from libc to
15728       # always be unresolved, which means just about no library would
15729       # ever link correctly.  If we're not using GNU ld we use -z text
15730       # though, which does catch some bad symbols but isn't as heavy-handed
15731       # as -z defs.
15732       no_undefined_flag='${wl}-z,text'
15733       allow_undefined_flag='${wl}-z,nodefs'
15734       archive_cmds_need_lc=no
15735       hardcode_shlibpath_var=no
15736       hardcode_libdir_flag_spec='${wl}-R,$libdir'
15737       hardcode_libdir_separator=':'
15738       link_all_deplibs=yes
15739       export_dynamic_flag_spec='${wl}-Bexport'
15740       runpath_var='LD_RUN_PATH'
15741
15742       if test "$GCC" = yes; then
15743         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15744         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15745       else
15746         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15747         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15748       fi
15749       ;;
15750
15751     uts4*)
15752       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15753       hardcode_libdir_flag_spec='-L$libdir'
15754       hardcode_shlibpath_var=no
15755       ;;
15756
15757     *)
15758       ld_shlibs=no
15759       ;;
15760     esac
15761
15762     if test x$host_vendor = xsni; then
15763       case $host in
15764       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15765         export_dynamic_flag_spec='${wl}-Blargedynsym'
15766         ;;
15767       esac
15768     fi
15769   fi
15770
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15772 $as_echo "$ld_shlibs" >&6; }
15773 test "$ld_shlibs" = no && can_build_shared=no
15774
15775 with_gnu_ld=$with_gnu_ld
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791 #
15792 # Do we need to explicitly link libc?
15793 #
15794 case "x$archive_cmds_need_lc" in
15795 x|xyes)
15796   # Assume -lc should be added
15797   archive_cmds_need_lc=yes
15798
15799   if test "$enable_shared" = yes && test "$GCC" = yes; then
15800     case $archive_cmds in
15801     *'~'*)
15802       # FIXME: we may have to deal with multi-command sequences.
15803       ;;
15804     '$CC '*)
15805       # Test whether the compiler implicitly links with -lc since on some
15806       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15807       # to ld, don't add -lc before -lgcc.
15808       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15809 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15810 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15811   $as_echo_n "(cached) " >&6
15812 else
15813   $RM conftest*
15814         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15815
15816         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15817   (eval $ac_compile) 2>&5
15818   ac_status=$?
15819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15820   test $ac_status = 0; } 2>conftest.err; then
15821           soname=conftest
15822           lib=conftest
15823           libobjs=conftest.$ac_objext
15824           deplibs=
15825           wl=$lt_prog_compiler_wl
15826           pic_flag=$lt_prog_compiler_pic
15827           compiler_flags=-v
15828           linker_flags=-v
15829           verstring=
15830           output_objdir=.
15831           libname=conftest
15832           lt_save_allow_undefined_flag=$allow_undefined_flag
15833           allow_undefined_flag=
15834           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15835   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15836   ac_status=$?
15837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15838   test $ac_status = 0; }
15839           then
15840             lt_cv_archive_cmds_need_lc=no
15841           else
15842             lt_cv_archive_cmds_need_lc=yes
15843           fi
15844           allow_undefined_flag=$lt_save_allow_undefined_flag
15845         else
15846           cat conftest.err 1>&5
15847         fi
15848         $RM conftest*
15849
15850 fi
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15852 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15853       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15854       ;;
15855     esac
15856   fi
15857   ;;
15858 esac
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16017 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16018
16019 if test "$GCC" = yes; then
16020   case $host_os in
16021     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16022     *) lt_awk_arg="/^libraries:/" ;;
16023   esac
16024   case $host_os in
16025     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16026     *) lt_sed_strip_eq="s,=/,/,g" ;;
16027   esac
16028   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16029   case $lt_search_path_spec in
16030   *\;*)
16031     # if the path contains ";" then we assume it to be the separator
16032     # otherwise default to the standard path separator (i.e. ":") - it is
16033     # assumed that no part of a normal pathname contains ";" but that should
16034     # okay in the real world where ";" in dirpaths is itself problematic.
16035     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16036     ;;
16037   *)
16038     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16039     ;;
16040   esac
16041   # Ok, now we have the path, separated by spaces, we can step through it
16042   # and add multilib dir if necessary.
16043   lt_tmp_lt_search_path_spec=
16044   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16045   for lt_sys_path in $lt_search_path_spec; do
16046     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16047       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16048     else
16049       test -d "$lt_sys_path" && \
16050         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16051     fi
16052   done
16053   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16054 BEGIN {RS=" "; FS="/|\n";} {
16055   lt_foo="";
16056   lt_count=0;
16057   for (lt_i = NF; lt_i > 0; lt_i--) {
16058     if ($lt_i != "" && $lt_i != ".") {
16059       if ($lt_i == "..") {
16060         lt_count++;
16061       } else {
16062         if (lt_count == 0) {
16063           lt_foo="/" $lt_i lt_foo;
16064         } else {
16065           lt_count--;
16066         }
16067       }
16068     }
16069   }
16070   if (lt_foo != "") { lt_freq[lt_foo]++; }
16071   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16072 }'`
16073   # AWK program above erroneously prepends '/' to C:/dos/paths
16074   # for these hosts.
16075   case $host_os in
16076     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16077       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16078   esac
16079   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16080 else
16081   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16082 fi
16083 library_names_spec=
16084 libname_spec='lib$name'
16085 soname_spec=
16086 shrext_cmds=".so"
16087 postinstall_cmds=
16088 postuninstall_cmds=
16089 finish_cmds=
16090 finish_eval=
16091 shlibpath_var=
16092 shlibpath_overrides_runpath=unknown
16093 version_type=none
16094 dynamic_linker="$host_os ld.so"
16095 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16096 need_lib_prefix=unknown
16097 hardcode_into_libs=no
16098
16099 # when you set need_version to no, make sure it does not cause -set_version
16100 # flags to be left without arguments
16101 need_version=unknown
16102
16103 case $host_os in
16104 aix3*)
16105   version_type=linux
16106   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16107   shlibpath_var=LIBPATH
16108
16109   # AIX 3 has no versioning support, so we append a major version to the name.
16110   soname_spec='${libname}${release}${shared_ext}$major'
16111   ;;
16112
16113 aix[4-9]*)
16114   version_type=linux
16115   need_lib_prefix=no
16116   need_version=no
16117   hardcode_into_libs=yes
16118   if test "$host_cpu" = ia64; then
16119     # AIX 5 supports IA64
16120     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16121     shlibpath_var=LD_LIBRARY_PATH
16122   else
16123     # With GCC up to 2.95.x, collect2 would create an import file
16124     # for dependence libraries.  The import file would start with
16125     # the line `#! .'.  This would cause the generated library to
16126     # depend on `.', always an invalid library.  This was fixed in
16127     # development snapshots of GCC prior to 3.0.
16128     case $host_os in
16129       aix4 | aix4.[01] | aix4.[01].*)
16130       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16131            echo ' yes '
16132            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16133         :
16134       else
16135         can_build_shared=no
16136       fi
16137       ;;
16138     esac
16139     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16140     # soname into executable. Probably we can add versioning support to
16141     # collect2, so additional links can be useful in future.
16142     if test "$aix_use_runtimelinking" = yes; then
16143       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16144       # instead of lib<name>.a to let people know that these are not
16145       # typical AIX shared libraries.
16146       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147     else
16148       # We preserve .a as extension for shared libraries through AIX4.2
16149       # and later when we are not doing run time linking.
16150       library_names_spec='${libname}${release}.a $libname.a'
16151       soname_spec='${libname}${release}${shared_ext}$major'
16152     fi
16153     shlibpath_var=LIBPATH
16154   fi
16155   ;;
16156
16157 amigaos*)
16158   case $host_cpu in
16159   powerpc)
16160     # Since July 2007 AmigaOS4 officially supports .so libraries.
16161     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16162     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16163     ;;
16164   m68k)
16165     library_names_spec='$libname.ixlibrary $libname.a'
16166     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16167     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'
16168     ;;
16169   esac
16170   ;;
16171
16172 beos*)
16173   library_names_spec='${libname}${shared_ext}'
16174   dynamic_linker="$host_os ld.so"
16175   shlibpath_var=LIBRARY_PATH
16176   ;;
16177
16178 bsdi[45]*)
16179   version_type=linux
16180   need_version=no
16181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16182   soname_spec='${libname}${release}${shared_ext}$major'
16183   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16184   shlibpath_var=LD_LIBRARY_PATH
16185   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16186   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16187   # the default ld.so.conf also contains /usr/contrib/lib and
16188   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16189   # libtool to hard-code these into programs
16190   ;;
16191
16192 cygwin* | mingw* | pw32* | cegcc*)
16193   version_type=windows
16194   shrext_cmds=".dll"
16195   need_version=no
16196   need_lib_prefix=no
16197
16198   case $GCC,$host_os in
16199   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16200     library_names_spec='$libname.dll.a'
16201     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16202     postinstall_cmds='base_file=`basename \${file}`~
16203       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16204       dldir=$destdir/`dirname \$dlpath`~
16205       test -d \$dldir || mkdir -p \$dldir~
16206       $install_prog $dir/$dlname \$dldir/$dlname~
16207       chmod a+x \$dldir/$dlname~
16208       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16209         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16210       fi'
16211     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16212       dlpath=$dir/\$dldll~
16213        $RM \$dlpath'
16214     shlibpath_overrides_runpath=yes
16215
16216     case $host_os in
16217     cygwin*)
16218       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16219       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16220
16221       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16222       ;;
16223     mingw* | cegcc*)
16224       # MinGW DLLs use traditional 'lib' prefix
16225       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16226       ;;
16227     pw32*)
16228       # pw32 DLLs use 'pw' prefix rather than 'lib'
16229       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16230       ;;
16231     esac
16232     ;;
16233
16234   *)
16235     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16236     ;;
16237   esac
16238   dynamic_linker='Win32 ld.exe'
16239   # FIXME: first we should search . and the directory the executable is in
16240   shlibpath_var=PATH
16241   ;;
16242
16243 darwin* | rhapsody*)
16244   dynamic_linker="$host_os dyld"
16245   version_type=darwin
16246   need_lib_prefix=no
16247   need_version=no
16248   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16249   soname_spec='${libname}${release}${major}$shared_ext'
16250   shlibpath_overrides_runpath=yes
16251   shlibpath_var=DYLD_LIBRARY_PATH
16252   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16253
16254   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16255   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16256   ;;
16257
16258 dgux*)
16259   version_type=linux
16260   need_lib_prefix=no
16261   need_version=no
16262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16263   soname_spec='${libname}${release}${shared_ext}$major'
16264   shlibpath_var=LD_LIBRARY_PATH
16265   ;;
16266
16267 freebsd1*)
16268   dynamic_linker=no
16269   ;;
16270
16271 freebsd* | dragonfly*)
16272   # DragonFly does not have aout.  When/if they implement a new
16273   # versioning mechanism, adjust this.
16274   if test -x /usr/bin/objformat; then
16275     objformat=`/usr/bin/objformat`
16276   else
16277     case $host_os in
16278     freebsd[123]*) objformat=aout ;;
16279     *) objformat=elf ;;
16280     esac
16281   fi
16282   version_type=freebsd-$objformat
16283   case $version_type in
16284     freebsd-elf*)
16285       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16286       need_version=no
16287       need_lib_prefix=no
16288       ;;
16289     freebsd-*)
16290       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16291       need_version=yes
16292       ;;
16293   esac
16294   shlibpath_var=LD_LIBRARY_PATH
16295   case $host_os in
16296   freebsd2*)
16297     shlibpath_overrides_runpath=yes
16298     ;;
16299   freebsd3.[01]* | freebsdelf3.[01]*)
16300     shlibpath_overrides_runpath=yes
16301     hardcode_into_libs=yes
16302     ;;
16303   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16304   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16305     shlibpath_overrides_runpath=no
16306     hardcode_into_libs=yes
16307     ;;
16308   *) # from 4.6 on, and DragonFly
16309     shlibpath_overrides_runpath=yes
16310     hardcode_into_libs=yes
16311     ;;
16312   esac
16313   ;;
16314
16315 gnu*)
16316   version_type=linux
16317   need_lib_prefix=no
16318   need_version=no
16319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16320   soname_spec='${libname}${release}${shared_ext}$major'
16321   shlibpath_var=LD_LIBRARY_PATH
16322   hardcode_into_libs=yes
16323   ;;
16324
16325 haiku*)
16326   version_type=linux
16327   need_lib_prefix=no
16328   need_version=no
16329   dynamic_linker="$host_os runtime_loader"
16330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16331   soname_spec='${libname}${release}${shared_ext}$major'
16332   shlibpath_var=LIBRARY_PATH
16333   shlibpath_overrides_runpath=yes
16334   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16335   hardcode_into_libs=yes
16336   ;;
16337
16338 hpux9* | hpux10* | hpux11*)
16339   # Give a soname corresponding to the major version so that dld.sl refuses to
16340   # link against other versions.
16341   version_type=sunos
16342   need_lib_prefix=no
16343   need_version=no
16344   case $host_cpu in
16345   ia64*)
16346     shrext_cmds='.so'
16347     hardcode_into_libs=yes
16348     dynamic_linker="$host_os dld.so"
16349     shlibpath_var=LD_LIBRARY_PATH
16350     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16351     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16352     soname_spec='${libname}${release}${shared_ext}$major'
16353     if test "X$HPUX_IA64_MODE" = X32; then
16354       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16355     else
16356       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16357     fi
16358     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16359     ;;
16360   hppa*64*)
16361     shrext_cmds='.sl'
16362     hardcode_into_libs=yes
16363     dynamic_linker="$host_os dld.sl"
16364     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16365     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16366     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16367     soname_spec='${libname}${release}${shared_ext}$major'
16368     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16369     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16370     ;;
16371   *)
16372     shrext_cmds='.sl'
16373     dynamic_linker="$host_os dld.sl"
16374     shlibpath_var=SHLIB_PATH
16375     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16376     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16377     soname_spec='${libname}${release}${shared_ext}$major'
16378     ;;
16379   esac
16380   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16381   postinstall_cmds='chmod 555 $lib'
16382   # or fails outright, so override atomically:
16383   install_override_mode=555
16384   ;;
16385
16386 interix[3-9]*)
16387   version_type=linux
16388   need_lib_prefix=no
16389   need_version=no
16390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16391   soname_spec='${libname}${release}${shared_ext}$major'
16392   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16393   shlibpath_var=LD_LIBRARY_PATH
16394   shlibpath_overrides_runpath=no
16395   hardcode_into_libs=yes
16396   ;;
16397
16398 irix5* | irix6* | nonstopux*)
16399   case $host_os in
16400     nonstopux*) version_type=nonstopux ;;
16401     *)
16402         if test "$lt_cv_prog_gnu_ld" = yes; then
16403                 version_type=linux
16404         else
16405                 version_type=irix
16406         fi ;;
16407   esac
16408   need_lib_prefix=no
16409   need_version=no
16410   soname_spec='${libname}${release}${shared_ext}$major'
16411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16412   case $host_os in
16413   irix5* | nonstopux*)
16414     libsuff= shlibsuff=
16415     ;;
16416   *)
16417     case $LD in # libtool.m4 will add one of these switches to LD
16418     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16419       libsuff= shlibsuff= libmagic=32-bit;;
16420     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16421       libsuff=32 shlibsuff=N32 libmagic=N32;;
16422     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16423       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16424     *) libsuff= shlibsuff= libmagic=never-match;;
16425     esac
16426     ;;
16427   esac
16428   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16429   shlibpath_overrides_runpath=no
16430   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16431   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16432   hardcode_into_libs=yes
16433   ;;
16434
16435 # No shared lib support for Linux oldld, aout, or coff.
16436 linux*oldld* | linux*aout* | linux*coff*)
16437   dynamic_linker=no
16438   ;;
16439
16440 # This must be Linux ELF.
16441 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16442   version_type=linux
16443   need_lib_prefix=no
16444   need_version=no
16445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16446   soname_spec='${libname}${release}${shared_ext}$major'
16447   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16448   shlibpath_var=LD_LIBRARY_PATH
16449   shlibpath_overrides_runpath=no
16450
16451   # Some binutils ld are patched to set DT_RUNPATH
16452   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16453   $as_echo_n "(cached) " >&6
16454 else
16455   lt_cv_shlibpath_overrides_runpath=no
16456     save_LDFLAGS=$LDFLAGS
16457     save_libdir=$libdir
16458     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16459          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16460     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16461 /* end confdefs.h.  */
16462
16463 int
16464 main ()
16465 {
16466
16467   ;
16468   return 0;
16469 }
16470 _ACEOF
16471 if ac_fn_c_try_link "$LINENO"; then :
16472   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16473   lt_cv_shlibpath_overrides_runpath=yes
16474 fi
16475 fi
16476 rm -f core conftest.err conftest.$ac_objext \
16477     conftest$ac_exeext conftest.$ac_ext
16478     LDFLAGS=$save_LDFLAGS
16479     libdir=$save_libdir
16480
16481 fi
16482
16483   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16484
16485   # This implies no fast_install, which is unacceptable.
16486   # Some rework will be needed to allow for fast_install
16487   # before this can be enabled.
16488   hardcode_into_libs=yes
16489
16490   # Append ld.so.conf contents to the search path
16491   if test -f /etc/ld.so.conf; then
16492     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' ' '`
16493     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16494   fi
16495
16496   # We used to test for /lib/ld.so.1 and disable shared libraries on
16497   # powerpc, because MkLinux only supported shared libraries with the
16498   # GNU dynamic linker.  Since this was broken with cross compilers,
16499   # most powerpc-linux boxes support dynamic linking these days and
16500   # people can always --disable-shared, the test was removed, and we
16501   # assume the GNU/Linux dynamic linker is in use.
16502   dynamic_linker='GNU/Linux ld.so'
16503   ;;
16504
16505 netbsd*)
16506   version_type=sunos
16507   need_lib_prefix=no
16508   need_version=no
16509   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16510     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16511     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16512     dynamic_linker='NetBSD (a.out) ld.so'
16513   else
16514     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16515     soname_spec='${libname}${release}${shared_ext}$major'
16516     dynamic_linker='NetBSD ld.elf_so'
16517   fi
16518   shlibpath_var=LD_LIBRARY_PATH
16519   shlibpath_overrides_runpath=yes
16520   hardcode_into_libs=yes
16521   ;;
16522
16523 newsos6)
16524   version_type=linux
16525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16526   shlibpath_var=LD_LIBRARY_PATH
16527   shlibpath_overrides_runpath=yes
16528   ;;
16529
16530 *nto* | *qnx*)
16531   version_type=qnx
16532   need_lib_prefix=no
16533   need_version=no
16534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16535   soname_spec='${libname}${release}${shared_ext}$major'
16536   shlibpath_var=LD_LIBRARY_PATH
16537   shlibpath_overrides_runpath=no
16538   hardcode_into_libs=yes
16539   dynamic_linker='ldqnx.so'
16540   ;;
16541
16542 openbsd*)
16543   version_type=sunos
16544   sys_lib_dlsearch_path_spec="/usr/lib"
16545   need_lib_prefix=no
16546   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16547   case $host_os in
16548     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16549     *)                          need_version=no  ;;
16550   esac
16551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16552   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16553   shlibpath_var=LD_LIBRARY_PATH
16554   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16555     case $host_os in
16556       openbsd2.[89] | openbsd2.[89].*)
16557         shlibpath_overrides_runpath=no
16558         ;;
16559       *)
16560         shlibpath_overrides_runpath=yes
16561         ;;
16562       esac
16563   else
16564     shlibpath_overrides_runpath=yes
16565   fi
16566   ;;
16567
16568 os2*)
16569   libname_spec='$name'
16570   shrext_cmds=".dll"
16571   need_lib_prefix=no
16572   library_names_spec='$libname${shared_ext} $libname.a'
16573   dynamic_linker='OS/2 ld.exe'
16574   shlibpath_var=LIBPATH
16575   ;;
16576
16577 osf3* | osf4* | osf5*)
16578   version_type=osf
16579   need_lib_prefix=no
16580   need_version=no
16581   soname_spec='${libname}${release}${shared_ext}$major'
16582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16583   shlibpath_var=LD_LIBRARY_PATH
16584   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16585   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16586   ;;
16587
16588 rdos*)
16589   dynamic_linker=no
16590   ;;
16591
16592 solaris*)
16593   version_type=linux
16594   need_lib_prefix=no
16595   need_version=no
16596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16597   soname_spec='${libname}${release}${shared_ext}$major'
16598   shlibpath_var=LD_LIBRARY_PATH
16599   shlibpath_overrides_runpath=yes
16600   hardcode_into_libs=yes
16601   # ldd complains unless libraries are executable
16602   postinstall_cmds='chmod +x $lib'
16603   ;;
16604
16605 sunos4*)
16606   version_type=sunos
16607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16608   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16609   shlibpath_var=LD_LIBRARY_PATH
16610   shlibpath_overrides_runpath=yes
16611   if test "$with_gnu_ld" = yes; then
16612     need_lib_prefix=no
16613   fi
16614   need_version=yes
16615   ;;
16616
16617 sysv4 | sysv4.3*)
16618   version_type=linux
16619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16620   soname_spec='${libname}${release}${shared_ext}$major'
16621   shlibpath_var=LD_LIBRARY_PATH
16622   case $host_vendor in
16623     sni)
16624       shlibpath_overrides_runpath=no
16625       need_lib_prefix=no
16626       runpath_var=LD_RUN_PATH
16627       ;;
16628     siemens)
16629       need_lib_prefix=no
16630       ;;
16631     motorola)
16632       need_lib_prefix=no
16633       need_version=no
16634       shlibpath_overrides_runpath=no
16635       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16636       ;;
16637   esac
16638   ;;
16639
16640 sysv4*MP*)
16641   if test -d /usr/nec ;then
16642     version_type=linux
16643     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16644     soname_spec='$libname${shared_ext}.$major'
16645     shlibpath_var=LD_LIBRARY_PATH
16646   fi
16647   ;;
16648
16649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16650   version_type=freebsd-elf
16651   need_lib_prefix=no
16652   need_version=no
16653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16654   soname_spec='${libname}${release}${shared_ext}$major'
16655   shlibpath_var=LD_LIBRARY_PATH
16656   shlibpath_overrides_runpath=yes
16657   hardcode_into_libs=yes
16658   if test "$with_gnu_ld" = yes; then
16659     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16660   else
16661     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16662     case $host_os in
16663       sco3.2v5*)
16664         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16665         ;;
16666     esac
16667   fi
16668   sys_lib_dlsearch_path_spec='/usr/lib'
16669   ;;
16670
16671 tpf*)
16672   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16673   version_type=linux
16674   need_lib_prefix=no
16675   need_version=no
16676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16677   shlibpath_var=LD_LIBRARY_PATH
16678   shlibpath_overrides_runpath=no
16679   hardcode_into_libs=yes
16680   ;;
16681
16682 uts4*)
16683   version_type=linux
16684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16685   soname_spec='${libname}${release}${shared_ext}$major'
16686   shlibpath_var=LD_LIBRARY_PATH
16687   ;;
16688
16689 *)
16690   dynamic_linker=no
16691   ;;
16692 esac
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16694 $as_echo "$dynamic_linker" >&6; }
16695 test "$dynamic_linker" = no && can_build_shared=no
16696
16697 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16698 if test "$GCC" = yes; then
16699   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16700 fi
16701
16702 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16703   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16704 fi
16705 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16706   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16707 fi
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16801 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16802 hardcode_action=
16803 if test -n "$hardcode_libdir_flag_spec" ||
16804    test -n "$runpath_var" ||
16805    test "X$hardcode_automatic" = "Xyes" ; then
16806
16807   # We can hardcode non-existent directories.
16808   if test "$hardcode_direct" != no &&
16809      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16810      # have to relink, otherwise we might link with an installed library
16811      # when we should be linking with a yet-to-be-installed one
16812      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16813      test "$hardcode_minus_L" != no; then
16814     # Linking always hardcodes the temporary library directory.
16815     hardcode_action=relink
16816   else
16817     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16818     hardcode_action=immediate
16819   fi
16820 else
16821   # We cannot hardcode anything, or else we can only hardcode existing
16822   # directories.
16823   hardcode_action=unsupported
16824 fi
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16826 $as_echo "$hardcode_action" >&6; }
16827
16828 if test "$hardcode_action" = relink ||
16829    test "$inherit_rpath" = yes; then
16830   # Fast installation is not supported
16831   enable_fast_install=no
16832 elif test "$shlibpath_overrides_runpath" = yes ||
16833      test "$enable_shared" = no; then
16834   # Fast installation is not necessary
16835   enable_fast_install=needless
16836 fi
16837
16838
16839
16840
16841
16842
16843   if test "x$enable_dlopen" != xyes; then
16844   enable_dlopen=unknown
16845   enable_dlopen_self=unknown
16846   enable_dlopen_self_static=unknown
16847 else
16848   lt_cv_dlopen=no
16849   lt_cv_dlopen_libs=
16850
16851   case $host_os in
16852   beos*)
16853     lt_cv_dlopen="load_add_on"
16854     lt_cv_dlopen_libs=
16855     lt_cv_dlopen_self=yes
16856     ;;
16857
16858   mingw* | pw32* | cegcc*)
16859     lt_cv_dlopen="LoadLibrary"
16860     lt_cv_dlopen_libs=
16861     ;;
16862
16863   cygwin*)
16864     lt_cv_dlopen="dlopen"
16865     lt_cv_dlopen_libs=
16866     ;;
16867
16868   darwin*)
16869   # if libdl is installed we need to link against it
16870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16871 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16872 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16873   $as_echo_n "(cached) " >&6
16874 else
16875   ac_check_lib_save_LIBS=$LIBS
16876 LIBS="-ldl  $LIBS"
16877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16878 /* end confdefs.h.  */
16879
16880 /* Override any GCC internal prototype to avoid an error.
16881    Use char because int might match the return type of a GCC
16882    builtin and then its argument prototype would still apply.  */
16883 #ifdef __cplusplus
16884 extern "C"
16885 #endif
16886 char dlopen ();
16887 int
16888 main ()
16889 {
16890 return dlopen ();
16891   ;
16892   return 0;
16893 }
16894 _ACEOF
16895 if ac_fn_c_try_link "$LINENO"; then :
16896   ac_cv_lib_dl_dlopen=yes
16897 else
16898   ac_cv_lib_dl_dlopen=no
16899 fi
16900 rm -f core conftest.err conftest.$ac_objext \
16901     conftest$ac_exeext conftest.$ac_ext
16902 LIBS=$ac_check_lib_save_LIBS
16903 fi
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16905 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16906 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16907   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16908 else
16909
16910     lt_cv_dlopen="dyld"
16911     lt_cv_dlopen_libs=
16912     lt_cv_dlopen_self=yes
16913
16914 fi
16915
16916     ;;
16917
16918   *)
16919     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16920 if test "x$ac_cv_func_shl_load" = x""yes; then :
16921   lt_cv_dlopen="shl_load"
16922 else
16923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16924 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16925 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16926   $as_echo_n "(cached) " >&6
16927 else
16928   ac_check_lib_save_LIBS=$LIBS
16929 LIBS="-ldld  $LIBS"
16930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16931 /* end confdefs.h.  */
16932
16933 /* Override any GCC internal prototype to avoid an error.
16934    Use char because int might match the return type of a GCC
16935    builtin and then its argument prototype would still apply.  */
16936 #ifdef __cplusplus
16937 extern "C"
16938 #endif
16939 char shl_load ();
16940 int
16941 main ()
16942 {
16943 return shl_load ();
16944   ;
16945   return 0;
16946 }
16947 _ACEOF
16948 if ac_fn_c_try_link "$LINENO"; then :
16949   ac_cv_lib_dld_shl_load=yes
16950 else
16951   ac_cv_lib_dld_shl_load=no
16952 fi
16953 rm -f core conftest.err conftest.$ac_objext \
16954     conftest$ac_exeext conftest.$ac_ext
16955 LIBS=$ac_check_lib_save_LIBS
16956 fi
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16958 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16959 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16960   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16961 else
16962   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16963 if test "x$ac_cv_func_dlopen" = x""yes; then :
16964   lt_cv_dlopen="dlopen"
16965 else
16966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16967 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16968 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16969   $as_echo_n "(cached) " >&6
16970 else
16971   ac_check_lib_save_LIBS=$LIBS
16972 LIBS="-ldl  $LIBS"
16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h.  */
16975
16976 /* Override any GCC internal prototype to avoid an error.
16977    Use char because int might match the return type of a GCC
16978    builtin and then its argument prototype would still apply.  */
16979 #ifdef __cplusplus
16980 extern "C"
16981 #endif
16982 char dlopen ();
16983 int
16984 main ()
16985 {
16986 return dlopen ();
16987   ;
16988   return 0;
16989 }
16990 _ACEOF
16991 if ac_fn_c_try_link "$LINENO"; then :
16992   ac_cv_lib_dl_dlopen=yes
16993 else
16994   ac_cv_lib_dl_dlopen=no
16995 fi
16996 rm -f core conftest.err conftest.$ac_objext \
16997     conftest$ac_exeext conftest.$ac_ext
16998 LIBS=$ac_check_lib_save_LIBS
16999 fi
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17001 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17002 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17003   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17004 else
17005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17006 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17007 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17008   $as_echo_n "(cached) " >&6
17009 else
17010   ac_check_lib_save_LIBS=$LIBS
17011 LIBS="-lsvld  $LIBS"
17012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17013 /* end confdefs.h.  */
17014
17015 /* Override any GCC internal prototype to avoid an error.
17016    Use char because int might match the return type of a GCC
17017    builtin and then its argument prototype would still apply.  */
17018 #ifdef __cplusplus
17019 extern "C"
17020 #endif
17021 char dlopen ();
17022 int
17023 main ()
17024 {
17025 return dlopen ();
17026   ;
17027   return 0;
17028 }
17029 _ACEOF
17030 if ac_fn_c_try_link "$LINENO"; then :
17031   ac_cv_lib_svld_dlopen=yes
17032 else
17033   ac_cv_lib_svld_dlopen=no
17034 fi
17035 rm -f core conftest.err conftest.$ac_objext \
17036     conftest$ac_exeext conftest.$ac_ext
17037 LIBS=$ac_check_lib_save_LIBS
17038 fi
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17040 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17041 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17042   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17043 else
17044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17045 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17046 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17047   $as_echo_n "(cached) " >&6
17048 else
17049   ac_check_lib_save_LIBS=$LIBS
17050 LIBS="-ldld  $LIBS"
17051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17052 /* end confdefs.h.  */
17053
17054 /* Override any GCC internal prototype to avoid an error.
17055    Use char because int might match the return type of a GCC
17056    builtin and then its argument prototype would still apply.  */
17057 #ifdef __cplusplus
17058 extern "C"
17059 #endif
17060 char dld_link ();
17061 int
17062 main ()
17063 {
17064 return dld_link ();
17065   ;
17066   return 0;
17067 }
17068 _ACEOF
17069 if ac_fn_c_try_link "$LINENO"; then :
17070   ac_cv_lib_dld_dld_link=yes
17071 else
17072   ac_cv_lib_dld_dld_link=no
17073 fi
17074 rm -f core conftest.err conftest.$ac_objext \
17075     conftest$ac_exeext conftest.$ac_ext
17076 LIBS=$ac_check_lib_save_LIBS
17077 fi
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17079 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17080 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17081   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17082 fi
17083
17084
17085 fi
17086
17087
17088 fi
17089
17090
17091 fi
17092
17093
17094 fi
17095
17096
17097 fi
17098
17099     ;;
17100   esac
17101
17102   if test "x$lt_cv_dlopen" != xno; then
17103     enable_dlopen=yes
17104   else
17105     enable_dlopen=no
17106   fi
17107
17108   case $lt_cv_dlopen in
17109   dlopen)
17110     save_CPPFLAGS="$CPPFLAGS"
17111     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17112
17113     save_LDFLAGS="$LDFLAGS"
17114     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17115
17116     save_LIBS="$LIBS"
17117     LIBS="$lt_cv_dlopen_libs $LIBS"
17118
17119     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17120 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17121 if test "${lt_cv_dlopen_self+set}" = set; then :
17122   $as_echo_n "(cached) " >&6
17123 else
17124           if test "$cross_compiling" = yes; then :
17125   lt_cv_dlopen_self=cross
17126 else
17127   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17128   lt_status=$lt_dlunknown
17129   cat > conftest.$ac_ext <<_LT_EOF
17130 #line 17130 "configure"
17131 #include "confdefs.h"
17132
17133 #if HAVE_DLFCN_H
17134 #include <dlfcn.h>
17135 #endif
17136
17137 #include <stdio.h>
17138
17139 #ifdef RTLD_GLOBAL
17140 #  define LT_DLGLOBAL           RTLD_GLOBAL
17141 #else
17142 #  ifdef DL_GLOBAL
17143 #    define LT_DLGLOBAL         DL_GLOBAL
17144 #  else
17145 #    define LT_DLGLOBAL         0
17146 #  endif
17147 #endif
17148
17149 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17150    find out it does not work in some platform. */
17151 #ifndef LT_DLLAZY_OR_NOW
17152 #  ifdef RTLD_LAZY
17153 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17154 #  else
17155 #    ifdef DL_LAZY
17156 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17157 #    else
17158 #      ifdef RTLD_NOW
17159 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17160 #      else
17161 #        ifdef DL_NOW
17162 #          define LT_DLLAZY_OR_NOW      DL_NOW
17163 #        else
17164 #          define LT_DLLAZY_OR_NOW      0
17165 #        endif
17166 #      endif
17167 #    endif
17168 #  endif
17169 #endif
17170
17171 /* When -fvisbility=hidden is used, assume the code has been annotated
17172    correspondingly for the symbols needed.  */
17173 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17174 void fnord () __attribute__((visibility("default")));
17175 #endif
17176
17177 void fnord () { int i=42; }
17178 int main ()
17179 {
17180   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17181   int status = $lt_dlunknown;
17182
17183   if (self)
17184     {
17185       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17186       else
17187         {
17188           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17189           else puts (dlerror ());
17190         }
17191       /* dlclose (self); */
17192     }
17193   else
17194     puts (dlerror ());
17195
17196   return status;
17197 }
17198 _LT_EOF
17199   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17200   (eval $ac_link) 2>&5
17201   ac_status=$?
17202   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17203   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17204     (./conftest; exit; ) >&5 2>/dev/null
17205     lt_status=$?
17206     case x$lt_status in
17207       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17208       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17209       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17210     esac
17211   else :
17212     # compilation failed
17213     lt_cv_dlopen_self=no
17214   fi
17215 fi
17216 rm -fr conftest*
17217
17218
17219 fi
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17221 $as_echo "$lt_cv_dlopen_self" >&6; }
17222
17223     if test "x$lt_cv_dlopen_self" = xyes; then
17224       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17225       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17226 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17227 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17228   $as_echo_n "(cached) " >&6
17229 else
17230           if test "$cross_compiling" = yes; then :
17231   lt_cv_dlopen_self_static=cross
17232 else
17233   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17234   lt_status=$lt_dlunknown
17235   cat > conftest.$ac_ext <<_LT_EOF
17236 #line 17236 "configure"
17237 #include "confdefs.h"
17238
17239 #if HAVE_DLFCN_H
17240 #include <dlfcn.h>
17241 #endif
17242
17243 #include <stdio.h>
17244
17245 #ifdef RTLD_GLOBAL
17246 #  define LT_DLGLOBAL           RTLD_GLOBAL
17247 #else
17248 #  ifdef DL_GLOBAL
17249 #    define LT_DLGLOBAL         DL_GLOBAL
17250 #  else
17251 #    define LT_DLGLOBAL         0
17252 #  endif
17253 #endif
17254
17255 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17256    find out it does not work in some platform. */
17257 #ifndef LT_DLLAZY_OR_NOW
17258 #  ifdef RTLD_LAZY
17259 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17260 #  else
17261 #    ifdef DL_LAZY
17262 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17263 #    else
17264 #      ifdef RTLD_NOW
17265 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17266 #      else
17267 #        ifdef DL_NOW
17268 #          define LT_DLLAZY_OR_NOW      DL_NOW
17269 #        else
17270 #          define LT_DLLAZY_OR_NOW      0
17271 #        endif
17272 #      endif
17273 #    endif
17274 #  endif
17275 #endif
17276
17277 /* When -fvisbility=hidden is used, assume the code has been annotated
17278    correspondingly for the symbols needed.  */
17279 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17280 void fnord () __attribute__((visibility("default")));
17281 #endif
17282
17283 void fnord () { int i=42; }
17284 int main ()
17285 {
17286   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17287   int status = $lt_dlunknown;
17288
17289   if (self)
17290     {
17291       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17292       else
17293         {
17294           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17295           else puts (dlerror ());
17296         }
17297       /* dlclose (self); */
17298     }
17299   else
17300     puts (dlerror ());
17301
17302   return status;
17303 }
17304 _LT_EOF
17305   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17306   (eval $ac_link) 2>&5
17307   ac_status=$?
17308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17309   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17310     (./conftest; exit; ) >&5 2>/dev/null
17311     lt_status=$?
17312     case x$lt_status in
17313       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17314       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17315       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17316     esac
17317   else :
17318     # compilation failed
17319     lt_cv_dlopen_self_static=no
17320   fi
17321 fi
17322 rm -fr conftest*
17323
17324
17325 fi
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17327 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17328     fi
17329
17330     CPPFLAGS="$save_CPPFLAGS"
17331     LDFLAGS="$save_LDFLAGS"
17332     LIBS="$save_LIBS"
17333     ;;
17334   esac
17335
17336   case $lt_cv_dlopen_self in
17337   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17338   *) enable_dlopen_self=unknown ;;
17339   esac
17340
17341   case $lt_cv_dlopen_self_static in
17342   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17343   *) enable_dlopen_self_static=unknown ;;
17344   esac
17345 fi
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363 striplib=
17364 old_striplib=
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17366 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17367 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17368   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17369   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17371 $as_echo "yes" >&6; }
17372 else
17373 # FIXME - insert some real tests, host_os isn't really good enough
17374   case $host_os in
17375   darwin*)
17376     if test -n "$STRIP" ; then
17377       striplib="$STRIP -x"
17378       old_striplib="$STRIP -S"
17379       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17380 $as_echo "yes" >&6; }
17381     else
17382       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17383 $as_echo "no" >&6; }
17384     fi
17385     ;;
17386   *)
17387     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17388 $as_echo "no" >&6; }
17389     ;;
17390   esac
17391 fi
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404   # Report which library types will actually be built
17405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17406 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17408 $as_echo "$can_build_shared" >&6; }
17409
17410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17411 $as_echo_n "checking whether to build shared libraries... " >&6; }
17412   test "$can_build_shared" = "no" && enable_shared=no
17413
17414   # On AIX, shared libraries and static libraries use the same namespace, and
17415   # are all built from PIC.
17416   case $host_os in
17417   aix3*)
17418     test "$enable_shared" = yes && enable_static=no
17419     if test -n "$RANLIB"; then
17420       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17421       postinstall_cmds='$RANLIB $lib'
17422     fi
17423     ;;
17424
17425   aix[4-9]*)
17426     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17427       test "$enable_shared" = yes && enable_static=no
17428     fi
17429     ;;
17430   esac
17431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17432 $as_echo "$enable_shared" >&6; }
17433
17434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17435 $as_echo_n "checking whether to build static libraries... " >&6; }
17436   # Make sure either enable_shared or enable_static is yes.
17437   test "$enable_shared" = yes || enable_static=yes
17438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17439 $as_echo "$enable_static" >&6; }
17440
17441
17442
17443
17444 fi
17445 ac_ext=c
17446 ac_cpp='$CPP $CPPFLAGS'
17447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17450
17451 CC="$lt_save_CC"
17452
17453       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17454     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17455     (test "X$CXX" != "Xg++"))) ; then
17456   ac_ext=cpp
17457 ac_cpp='$CXXCPP $CPPFLAGS'
17458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17462 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17463 if test -z "$CXXCPP"; then
17464   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17465   $as_echo_n "(cached) " >&6
17466 else
17467       # Double quotes because CXXCPP needs to be expanded
17468     for CXXCPP in "$CXX -E" "/lib/cpp"
17469     do
17470       ac_preproc_ok=false
17471 for ac_cxx_preproc_warn_flag in '' yes
17472 do
17473   # Use a header file that comes with gcc, so configuring glibc
17474   # with a fresh cross-compiler works.
17475   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17476   # <limits.h> exists even on freestanding compilers.
17477   # On the NeXT, cc -E runs the code through the compiler's parser,
17478   # not just through cpp. "Syntax error" is here to catch this case.
17479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17480 /* end confdefs.h.  */
17481 #ifdef __STDC__
17482 # include <limits.h>
17483 #else
17484 # include <assert.h>
17485 #endif
17486                      Syntax error
17487 _ACEOF
17488 if ac_fn_cxx_try_cpp "$LINENO"; then :
17489
17490 else
17491   # Broken: fails on valid input.
17492 continue
17493 fi
17494 rm -f conftest.err conftest.$ac_ext
17495
17496   # OK, works on sane cases.  Now check whether nonexistent headers
17497   # can be detected and how.
17498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499 /* end confdefs.h.  */
17500 #include <ac_nonexistent.h>
17501 _ACEOF
17502 if ac_fn_cxx_try_cpp "$LINENO"; then :
17503   # Broken: success on invalid input.
17504 continue
17505 else
17506   # Passes both tests.
17507 ac_preproc_ok=:
17508 break
17509 fi
17510 rm -f conftest.err conftest.$ac_ext
17511
17512 done
17513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17514 rm -f conftest.err conftest.$ac_ext
17515 if $ac_preproc_ok; then :
17516   break
17517 fi
17518
17519     done
17520     ac_cv_prog_CXXCPP=$CXXCPP
17521
17522 fi
17523   CXXCPP=$ac_cv_prog_CXXCPP
17524 else
17525   ac_cv_prog_CXXCPP=$CXXCPP
17526 fi
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17528 $as_echo "$CXXCPP" >&6; }
17529 ac_preproc_ok=false
17530 for ac_cxx_preproc_warn_flag in '' yes
17531 do
17532   # Use a header file that comes with gcc, so configuring glibc
17533   # with a fresh cross-compiler works.
17534   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17535   # <limits.h> exists even on freestanding compilers.
17536   # On the NeXT, cc -E runs the code through the compiler's parser,
17537   # not just through cpp. "Syntax error" is here to catch this case.
17538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17539 /* end confdefs.h.  */
17540 #ifdef __STDC__
17541 # include <limits.h>
17542 #else
17543 # include <assert.h>
17544 #endif
17545                      Syntax error
17546 _ACEOF
17547 if ac_fn_cxx_try_cpp "$LINENO"; then :
17548
17549 else
17550   # Broken: fails on valid input.
17551 continue
17552 fi
17553 rm -f conftest.err conftest.$ac_ext
17554
17555   # OK, works on sane cases.  Now check whether nonexistent headers
17556   # can be detected and how.
17557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17558 /* end confdefs.h.  */
17559 #include <ac_nonexistent.h>
17560 _ACEOF
17561 if ac_fn_cxx_try_cpp "$LINENO"; then :
17562   # Broken: success on invalid input.
17563 continue
17564 else
17565   # Passes both tests.
17566 ac_preproc_ok=:
17567 break
17568 fi
17569 rm -f conftest.err conftest.$ac_ext
17570
17571 done
17572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17573 rm -f conftest.err conftest.$ac_ext
17574 if $ac_preproc_ok; then :
17575
17576 else
17577   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17579 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17580 See \`config.log' for more details." "$LINENO" 5; }
17581 fi
17582
17583 ac_ext=c
17584 ac_cpp='$CPP $CPPFLAGS'
17585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17588
17589 else
17590   _lt_caught_CXX_error=yes
17591 fi
17592
17593 ac_ext=cpp
17594 ac_cpp='$CXXCPP $CPPFLAGS'
17595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17598
17599 archive_cmds_need_lc_CXX=no
17600 allow_undefined_flag_CXX=
17601 always_export_symbols_CXX=no
17602 archive_expsym_cmds_CXX=
17603 compiler_needs_object_CXX=no
17604 export_dynamic_flag_spec_CXX=
17605 hardcode_direct_CXX=no
17606 hardcode_direct_absolute_CXX=no
17607 hardcode_libdir_flag_spec_CXX=
17608 hardcode_libdir_flag_spec_ld_CXX=
17609 hardcode_libdir_separator_CXX=
17610 hardcode_minus_L_CXX=no
17611 hardcode_shlibpath_var_CXX=unsupported
17612 hardcode_automatic_CXX=no
17613 inherit_rpath_CXX=no
17614 module_cmds_CXX=
17615 module_expsym_cmds_CXX=
17616 link_all_deplibs_CXX=unknown
17617 old_archive_cmds_CXX=$old_archive_cmds
17618 reload_flag_CXX=$reload_flag
17619 reload_cmds_CXX=$reload_cmds
17620 no_undefined_flag_CXX=
17621 whole_archive_flag_spec_CXX=
17622 enable_shared_with_static_runtimes_CXX=no
17623
17624 # Source file extension for C++ test sources.
17625 ac_ext=cpp
17626
17627 # Object file extension for compiled C++ test sources.
17628 objext=o
17629 objext_CXX=$objext
17630
17631 # No sense in running all these tests if we already determined that
17632 # the CXX compiler isn't working.  Some variables (like enable_shared)
17633 # are currently assumed to apply to all compilers on this platform,
17634 # and will be corrupted by setting them based on a non-working compiler.
17635 if test "$_lt_caught_CXX_error" != yes; then
17636   # Code to be used in simple compile tests
17637   lt_simple_compile_test_code="int some_variable = 0;"
17638
17639   # Code to be used in simple link tests
17640   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17641
17642   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17643
17644
17645
17646
17647
17648
17649 # If no C compiler was specified, use CC.
17650 LTCC=${LTCC-"$CC"}
17651
17652 # If no C compiler flags were specified, use CFLAGS.
17653 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17654
17655 # Allow CC to be a program name with arguments.
17656 compiler=$CC
17657
17658
17659   # save warnings/boilerplate of simple test code
17660   ac_outfile=conftest.$ac_objext
17661 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17662 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17663 _lt_compiler_boilerplate=`cat conftest.err`
17664 $RM conftest*
17665
17666   ac_outfile=conftest.$ac_objext
17667 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17668 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17669 _lt_linker_boilerplate=`cat conftest.err`
17670 $RM -r conftest*
17671
17672
17673   # Allow CC to be a program name with arguments.
17674   lt_save_CC=$CC
17675   lt_save_LD=$LD
17676   lt_save_GCC=$GCC
17677   GCC=$GXX
17678   lt_save_with_gnu_ld=$with_gnu_ld
17679   lt_save_path_LD=$lt_cv_path_LD
17680   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17681     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17682   else
17683     $as_unset lt_cv_prog_gnu_ld
17684   fi
17685   if test -n "${lt_cv_path_LDCXX+set}"; then
17686     lt_cv_path_LD=$lt_cv_path_LDCXX
17687   else
17688     $as_unset lt_cv_path_LD
17689   fi
17690   test -z "${LDCXX+set}" || LD=$LDCXX
17691   CC=${CXX-"c++"}
17692   compiler=$CC
17693   compiler_CXX=$CC
17694   for cc_temp in $compiler""; do
17695   case $cc_temp in
17696     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17697     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17698     \-*) ;;
17699     *) break;;
17700   esac
17701 done
17702 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17703
17704
17705   if test -n "$compiler"; then
17706     # We don't want -fno-exception when compiling C++ code, so set the
17707     # no_builtin_flag separately
17708     if test "$GXX" = yes; then
17709       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17710     else
17711       lt_prog_compiler_no_builtin_flag_CXX=
17712     fi
17713
17714     if test "$GXX" = yes; then
17715       # Set up default GNU C++ configuration
17716
17717
17718
17719 # Check whether --with-gnu-ld was given.
17720 if test "${with_gnu_ld+set}" = set; then :
17721   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17722 else
17723   with_gnu_ld=no
17724 fi
17725
17726 ac_prog=ld
17727 if test "$GCC" = yes; then
17728   # Check if gcc -print-prog-name=ld gives a path.
17729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17730 $as_echo_n "checking for ld used by $CC... " >&6; }
17731   case $host in
17732   *-*-mingw*)
17733     # gcc leaves a trailing carriage return which upsets mingw
17734     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17735   *)
17736     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17737   esac
17738   case $ac_prog in
17739     # Accept absolute paths.
17740     [\\/]* | ?:[\\/]*)
17741       re_direlt='/[^/][^/]*/\.\./'
17742       # Canonicalize the pathname of ld
17743       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17744       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17745         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17746       done
17747       test -z "$LD" && LD="$ac_prog"
17748       ;;
17749   "")
17750     # If it fails, then pretend we aren't using GCC.
17751     ac_prog=ld
17752     ;;
17753   *)
17754     # If it is relative, then search for the first ld in PATH.
17755     with_gnu_ld=unknown
17756     ;;
17757   esac
17758 elif test "$with_gnu_ld" = yes; then
17759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17760 $as_echo_n "checking for GNU ld... " >&6; }
17761 else
17762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17763 $as_echo_n "checking for non-GNU ld... " >&6; }
17764 fi
17765 if test "${lt_cv_path_LD+set}" = set; then :
17766   $as_echo_n "(cached) " >&6
17767 else
17768   if test -z "$LD"; then
17769   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17770   for ac_dir in $PATH; do
17771     IFS="$lt_save_ifs"
17772     test -z "$ac_dir" && ac_dir=.
17773     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17774       lt_cv_path_LD="$ac_dir/$ac_prog"
17775       # Check to see if the program is GNU ld.  I'd rather use --version,
17776       # but apparently some variants of GNU ld only accept -v.
17777       # Break only if it was the GNU/non-GNU ld that we prefer.
17778       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17779       *GNU* | *'with BFD'*)
17780         test "$with_gnu_ld" != no && break
17781         ;;
17782       *)
17783         test "$with_gnu_ld" != yes && break
17784         ;;
17785       esac
17786     fi
17787   done
17788   IFS="$lt_save_ifs"
17789 else
17790   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17791 fi
17792 fi
17793
17794 LD="$lt_cv_path_LD"
17795 if test -n "$LD"; then
17796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17797 $as_echo "$LD" >&6; }
17798 else
17799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17800 $as_echo "no" >&6; }
17801 fi
17802 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17804 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17805 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17806   $as_echo_n "(cached) " >&6
17807 else
17808   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17809 case `$LD -v 2>&1 </dev/null` in
17810 *GNU* | *'with BFD'*)
17811   lt_cv_prog_gnu_ld=yes
17812   ;;
17813 *)
17814   lt_cv_prog_gnu_ld=no
17815   ;;
17816 esac
17817 fi
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17819 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17820 with_gnu_ld=$lt_cv_prog_gnu_ld
17821
17822
17823
17824
17825
17826
17827
17828       # Check if GNU C++ uses GNU ld as the underlying linker, since the
17829       # archiving commands below assume that GNU ld is being used.
17830       if test "$with_gnu_ld" = yes; then
17831         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17832         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'
17833
17834         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17835         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17836
17837         # If archive_cmds runs LD, not CC, wlarc should be empty
17838         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17839         #     investigate it a little bit more. (MM)
17840         wlarc='${wl}'
17841
17842         # ancient GNU ld didn't support --whole-archive et. al.
17843         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17844           $GREP 'no-whole-archive' > /dev/null; then
17845           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17846         else
17847           whole_archive_flag_spec_CXX=
17848         fi
17849       else
17850         with_gnu_ld=no
17851         wlarc=
17852
17853         # A generic and very simple default shared library creation
17854         # command for GNU C++ for the case where it uses the native
17855         # linker, instead of GNU ld.  If possible, this setting should
17856         # overridden to take advantage of the native linker features on
17857         # the platform it is being used on.
17858         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17859       fi
17860
17861       # Commands to make compiler produce verbose output that lists
17862       # what "hidden" libraries, object files and flags are used when
17863       # linking a shared library.
17864       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17865
17866     else
17867       GXX=no
17868       with_gnu_ld=no
17869       wlarc=
17870     fi
17871
17872     # PORTME: fill in a description of your system's C++ link characteristics
17873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17874 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17875     ld_shlibs_CXX=yes
17876     case $host_os in
17877       aix3*)
17878         # FIXME: insert proper C++ library support
17879         ld_shlibs_CXX=no
17880         ;;
17881       aix[4-9]*)
17882         if test "$host_cpu" = ia64; then
17883           # On IA64, the linker does run time linking by default, so we don't
17884           # have to do anything special.
17885           aix_use_runtimelinking=no
17886           exp_sym_flag='-Bexport'
17887           no_entry_flag=""
17888         else
17889           aix_use_runtimelinking=no
17890
17891           # Test if we are trying to use run time linking or normal
17892           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17893           # need to do runtime linking.
17894           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17895             for ld_flag in $LDFLAGS; do
17896               case $ld_flag in
17897               *-brtl*)
17898                 aix_use_runtimelinking=yes
17899                 break
17900                 ;;
17901               esac
17902             done
17903             ;;
17904           esac
17905
17906           exp_sym_flag='-bexport'
17907           no_entry_flag='-bnoentry'
17908         fi
17909
17910         # When large executables or shared objects are built, AIX ld can
17911         # have problems creating the table of contents.  If linking a library
17912         # or program results in "error TOC overflow" add -mminimal-toc to
17913         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17914         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17915
17916         archive_cmds_CXX=''
17917         hardcode_direct_CXX=yes
17918         hardcode_direct_absolute_CXX=yes
17919         hardcode_libdir_separator_CXX=':'
17920         link_all_deplibs_CXX=yes
17921         file_list_spec_CXX='${wl}-f,'
17922
17923         if test "$GXX" = yes; then
17924           case $host_os in aix4.[012]|aix4.[012].*)
17925           # We only want to do this on AIX 4.2 and lower, the check
17926           # below for broken collect2 doesn't work under 4.3+
17927           collect2name=`${CC} -print-prog-name=collect2`
17928           if test -f "$collect2name" &&
17929              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17930           then
17931             # We have reworked collect2
17932             :
17933           else
17934             # We have old collect2
17935             hardcode_direct_CXX=unsupported
17936             # It fails to find uninstalled libraries when the uninstalled
17937             # path is not listed in the libpath.  Setting hardcode_minus_L
17938             # to unsupported forces relinking
17939             hardcode_minus_L_CXX=yes
17940             hardcode_libdir_flag_spec_CXX='-L$libdir'
17941             hardcode_libdir_separator_CXX=
17942           fi
17943           esac
17944           shared_flag='-shared'
17945           if test "$aix_use_runtimelinking" = yes; then
17946             shared_flag="$shared_flag "'${wl}-G'
17947           fi
17948         else
17949           # not using gcc
17950           if test "$host_cpu" = ia64; then
17951           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17952           # chokes on -Wl,-G. The following line is correct:
17953           shared_flag='-G'
17954           else
17955             if test "$aix_use_runtimelinking" = yes; then
17956               shared_flag='${wl}-G'
17957             else
17958               shared_flag='${wl}-bM:SRE'
17959             fi
17960           fi
17961         fi
17962
17963         export_dynamic_flag_spec_CXX='${wl}-bexpall'
17964         # It seems that -bexpall does not export symbols beginning with
17965         # underscore (_), so it is better to generate a list of symbols to
17966         # export.
17967         always_export_symbols_CXX=yes
17968         if test "$aix_use_runtimelinking" = yes; then
17969           # Warning - without using the other runtime loading flags (-brtl),
17970           # -berok will link without error, but may produce a broken library.
17971           allow_undefined_flag_CXX='-berok'
17972           # Determine the default libpath from the value encoded in an empty
17973           # executable.
17974           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17975 /* end confdefs.h.  */
17976
17977 int
17978 main ()
17979 {
17980
17981   ;
17982   return 0;
17983 }
17984 _ACEOF
17985 if ac_fn_cxx_try_link "$LINENO"; then :
17986
17987 lt_aix_libpath_sed='
17988     /Import File Strings/,/^$/ {
17989         /^0/ {
17990             s/^0  *\(.*\)$/\1/
17991             p
17992         }
17993     }'
17994 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17995 # Check for a 64-bit object if we didn't find anything.
17996 if test -z "$aix_libpath"; then
17997   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17998 fi
17999 fi
18000 rm -f core conftest.err conftest.$ac_objext \
18001     conftest$ac_exeext conftest.$ac_ext
18002 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18003
18004           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18005
18006           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"
18007         else
18008           if test "$host_cpu" = ia64; then
18009             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18010             allow_undefined_flag_CXX="-z nodefs"
18011             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"
18012           else
18013             # Determine the default libpath from the value encoded in an
18014             # empty executable.
18015             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18016 /* end confdefs.h.  */
18017
18018 int
18019 main ()
18020 {
18021
18022   ;
18023   return 0;
18024 }
18025 _ACEOF
18026 if ac_fn_cxx_try_link "$LINENO"; then :
18027
18028 lt_aix_libpath_sed='
18029     /Import File Strings/,/^$/ {
18030         /^0/ {
18031             s/^0  *\(.*\)$/\1/
18032             p
18033         }
18034     }'
18035 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18036 # Check for a 64-bit object if we didn't find anything.
18037 if test -z "$aix_libpath"; then
18038   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18039 fi
18040 fi
18041 rm -f core conftest.err conftest.$ac_objext \
18042     conftest$ac_exeext conftest.$ac_ext
18043 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18044
18045             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18046             # Warning - without using the other run time loading flags,
18047             # -berok will link without error, but may produce a broken library.
18048             no_undefined_flag_CXX=' ${wl}-bernotok'
18049             allow_undefined_flag_CXX=' ${wl}-berok'
18050             if test "$with_gnu_ld" = yes; then
18051               # We only use this code for GNU lds that support --whole-archive.
18052               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18053             else
18054               # Exported symbols can be pulled into shared objects from archives
18055               whole_archive_flag_spec_CXX='$convenience'
18056             fi
18057             archive_cmds_need_lc_CXX=yes
18058             # This is similar to how AIX traditionally builds its shared
18059             # libraries.
18060             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'
18061           fi
18062         fi
18063         ;;
18064
18065       beos*)
18066         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18067           allow_undefined_flag_CXX=unsupported
18068           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18069           # support --undefined.  This deserves some investigation.  FIXME
18070           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18071         else
18072           ld_shlibs_CXX=no
18073         fi
18074         ;;
18075
18076       chorus*)
18077         case $cc_basename in
18078           *)
18079           # FIXME: insert proper C++ library support
18080           ld_shlibs_CXX=no
18081           ;;
18082         esac
18083         ;;
18084
18085       cygwin* | mingw* | pw32* | cegcc*)
18086         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18087         # as there is no search path for DLLs.
18088         hardcode_libdir_flag_spec_CXX='-L$libdir'
18089         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18090         allow_undefined_flag_CXX=unsupported
18091         always_export_symbols_CXX=no
18092         enable_shared_with_static_runtimes_CXX=yes
18093
18094         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18095           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'
18096           # If the export-symbols file already is a .def file (1st line
18097           # is EXPORTS), use it as is; otherwise, prepend...
18098           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18099             cp $export_symbols $output_objdir/$soname.def;
18100           else
18101             echo EXPORTS > $output_objdir/$soname.def;
18102             cat $export_symbols >> $output_objdir/$soname.def;
18103           fi~
18104           $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'
18105         else
18106           ld_shlibs_CXX=no
18107         fi
18108         ;;
18109       darwin* | rhapsody*)
18110
18111
18112   archive_cmds_need_lc_CXX=no
18113   hardcode_direct_CXX=no
18114   hardcode_automatic_CXX=yes
18115   hardcode_shlibpath_var_CXX=unsupported
18116   if test "$lt_cv_ld_force_load" = "yes"; then
18117     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\"`'
18118   else
18119     whole_archive_flag_spec_CXX=''
18120   fi
18121   link_all_deplibs_CXX=yes
18122   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18123   case $cc_basename in
18124      ifort*) _lt_dar_can_shared=yes ;;
18125      *) _lt_dar_can_shared=$GCC ;;
18126   esac
18127   if test "$_lt_dar_can_shared" = "yes"; then
18128     output_verbose_link_cmd=func_echo_all
18129     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}"
18130     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18131     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}"
18132     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}"
18133        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18134       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}"
18135       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}"
18136     fi
18137
18138   else
18139   ld_shlibs_CXX=no
18140   fi
18141
18142         ;;
18143
18144       dgux*)
18145         case $cc_basename in
18146           ec++*)
18147             # FIXME: insert proper C++ library support
18148             ld_shlibs_CXX=no
18149             ;;
18150           ghcx*)
18151             # Green Hills C++ Compiler
18152             # FIXME: insert proper C++ library support
18153             ld_shlibs_CXX=no
18154             ;;
18155           *)
18156             # FIXME: insert proper C++ library support
18157             ld_shlibs_CXX=no
18158             ;;
18159         esac
18160         ;;
18161
18162       freebsd[12]*)
18163         # C++ shared libraries reported to be fairly broken before
18164         # switch to ELF
18165         ld_shlibs_CXX=no
18166         ;;
18167
18168       freebsd-elf*)
18169         archive_cmds_need_lc_CXX=no
18170         ;;
18171
18172       freebsd* | dragonfly*)
18173         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18174         # conventions
18175         ld_shlibs_CXX=yes
18176         ;;
18177
18178       gnu*)
18179         ;;
18180
18181       haiku*)
18182         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18183         link_all_deplibs_CXX=yes
18184         ;;
18185
18186       hpux9*)
18187         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18188         hardcode_libdir_separator_CXX=:
18189         export_dynamic_flag_spec_CXX='${wl}-E'
18190         hardcode_direct_CXX=yes
18191         hardcode_minus_L_CXX=yes # Not in the search PATH,
18192                                              # but as the default
18193                                              # location of the library.
18194
18195         case $cc_basename in
18196           CC*)
18197             # FIXME: insert proper C++ library support
18198             ld_shlibs_CXX=no
18199             ;;
18200           aCC*)
18201             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'
18202             # Commands to make compiler produce verbose output that lists
18203             # what "hidden" libraries, object files and flags are used when
18204             # linking a shared library.
18205             #
18206             # There doesn't appear to be a way to prevent this compiler from
18207             # explicitly linking system object files so we need to strip them
18208             # from the output so that they don't get included in the library
18209             # dependencies.
18210             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"'
18211             ;;
18212           *)
18213             if test "$GXX" = yes; then
18214               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'
18215             else
18216               # FIXME: insert proper C++ library support
18217               ld_shlibs_CXX=no
18218             fi
18219             ;;
18220         esac
18221         ;;
18222
18223       hpux10*|hpux11*)
18224         if test $with_gnu_ld = no; then
18225           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18226           hardcode_libdir_separator_CXX=:
18227
18228           case $host_cpu in
18229             hppa*64*|ia64*)
18230               ;;
18231             *)
18232               export_dynamic_flag_spec_CXX='${wl}-E'
18233               ;;
18234           esac
18235         fi
18236         case $host_cpu in
18237           hppa*64*|ia64*)
18238             hardcode_direct_CXX=no
18239             hardcode_shlibpath_var_CXX=no
18240             ;;
18241           *)
18242             hardcode_direct_CXX=yes
18243             hardcode_direct_absolute_CXX=yes
18244             hardcode_minus_L_CXX=yes # Not in the search PATH,
18245                                                  # but as the default
18246                                                  # location of the library.
18247             ;;
18248         esac
18249
18250         case $cc_basename in
18251           CC*)
18252             # FIXME: insert proper C++ library support
18253             ld_shlibs_CXX=no
18254             ;;
18255           aCC*)
18256             case $host_cpu in
18257               hppa*64*)
18258                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18259                 ;;
18260               ia64*)
18261                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18262                 ;;
18263               *)
18264                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18265                 ;;
18266             esac
18267             # Commands to make compiler produce verbose output that lists
18268             # what "hidden" libraries, object files and flags are used when
18269             # linking a shared library.
18270             #
18271             # There doesn't appear to be a way to prevent this compiler from
18272             # explicitly linking system object files so we need to strip them
18273             # from the output so that they don't get included in the library
18274             # dependencies.
18275             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"'
18276             ;;
18277           *)
18278             if test "$GXX" = yes; then
18279               if test $with_gnu_ld = no; then
18280                 case $host_cpu in
18281                   hppa*64*)
18282                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18283                     ;;
18284                   ia64*)
18285                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18286                     ;;
18287                   *)
18288                     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'
18289                     ;;
18290                 esac
18291               fi
18292             else
18293               # FIXME: insert proper C++ library support
18294               ld_shlibs_CXX=no
18295             fi
18296             ;;
18297         esac
18298         ;;
18299
18300       interix[3-9]*)
18301         hardcode_direct_CXX=no
18302         hardcode_shlibpath_var_CXX=no
18303         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18304         export_dynamic_flag_spec_CXX='${wl}-E'
18305         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18306         # Instead, shared libraries are loaded at an image base (0x10000000 by
18307         # default) and relocated if they conflict, which is a slow very memory
18308         # consuming and fragmenting process.  To avoid this, we pick a random,
18309         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18310         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18311         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'
18312         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'
18313         ;;
18314       irix5* | irix6*)
18315         case $cc_basename in
18316           CC*)
18317             # SGI C++
18318             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'
18319
18320             # Archives containing C++ object files must be created using
18321             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18322             # necessary to make sure instantiated templates are included
18323             # in the archive.
18324             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18325             ;;
18326           *)
18327             if test "$GXX" = yes; then
18328               if test "$with_gnu_ld" = no; then
18329                 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'
18330               else
18331                 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'
18332               fi
18333             fi
18334             link_all_deplibs_CXX=yes
18335             ;;
18336         esac
18337         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18338         hardcode_libdir_separator_CXX=:
18339         inherit_rpath_CXX=yes
18340         ;;
18341
18342       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18343         case $cc_basename in
18344           KCC*)
18345             # Kuck and Associates, Inc. (KAI) C++ Compiler
18346
18347             # KCC will only create a shared library if the output file
18348             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18349             # to its proper name (with version) after linking.
18350             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'
18351             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'
18352             # Commands to make compiler produce verbose output that lists
18353             # what "hidden" libraries, object files and flags are used when
18354             # linking a shared library.
18355             #
18356             # There doesn't appear to be a way to prevent this compiler from
18357             # explicitly linking system object files so we need to strip them
18358             # from the output so that they don't get included in the library
18359             # dependencies.
18360             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"'
18361
18362             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18363             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18364
18365             # Archives containing C++ object files must be created using
18366             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18367             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18368             ;;
18369           icpc* | ecpc* )
18370             # Intel C++
18371             with_gnu_ld=yes
18372             # version 8.0 and above of icpc choke on multiply defined symbols
18373             # if we add $predep_objects and $postdep_objects, however 7.1 and
18374             # earlier do not add the objects themselves.
18375             case `$CC -V 2>&1` in
18376               *"Version 7."*)
18377                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18378                 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'
18379                 ;;
18380               *)  # Version 8.0 or newer
18381                 tmp_idyn=
18382                 case $host_cpu in
18383                   ia64*) tmp_idyn=' -i_dynamic';;
18384                 esac
18385                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18386                 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'
18387                 ;;
18388             esac
18389             archive_cmds_need_lc_CXX=no
18390             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18391             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18392             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18393             ;;
18394           pgCC* | pgcpp*)
18395             # Portland Group C++ compiler
18396             case `$CC -V` in
18397             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18398               prelink_cmds_CXX='tpldir=Template.dir~
18399                 rm -rf $tpldir~
18400                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18401                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18402               old_archive_cmds_CXX='tpldir=Template.dir~
18403                 rm -rf $tpldir~
18404                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18405                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18406                 $RANLIB $oldlib'
18407               archive_cmds_CXX='tpldir=Template.dir~
18408                 rm -rf $tpldir~
18409                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18410                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18411               archive_expsym_cmds_CXX='tpldir=Template.dir~
18412                 rm -rf $tpldir~
18413                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18414                 $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'
18415               ;;
18416             *) # Version 6 and above use weak symbols
18417               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18418               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'
18419               ;;
18420             esac
18421
18422             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18423             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18424             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'
18425             ;;
18426           cxx*)
18427             # Compaq C++
18428             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18429             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'
18430
18431             runpath_var=LD_RUN_PATH
18432             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18433             hardcode_libdir_separator_CXX=:
18434
18435             # Commands to make compiler produce verbose output that lists
18436             # what "hidden" libraries, object files and flags are used when
18437             # linking a shared library.
18438             #
18439             # There doesn't appear to be a way to prevent this compiler from
18440             # explicitly linking system object files so we need to strip them
18441             # from the output so that they don't get included in the library
18442             # dependencies.
18443             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'
18444             ;;
18445           xl* | mpixl* | bgxl*)
18446             # IBM XL 8.0 on PPC, with GNU ld
18447             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18448             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18449             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18450             if test "x$supports_anon_versioning" = xyes; then
18451               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18452                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18453                 echo "local: *; };" >> $output_objdir/$libname.ver~
18454                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18455             fi
18456             ;;
18457           *)
18458             case `$CC -V 2>&1 | sed 5q` in
18459             *Sun\ C*)
18460               # Sun C++ 5.9
18461               no_undefined_flag_CXX=' -zdefs'
18462               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18463               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'
18464               hardcode_libdir_flag_spec_CXX='-R$libdir'
18465               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'
18466               compiler_needs_object_CXX=yes
18467
18468               # Not sure whether something based on
18469               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18470               # would be better.
18471               output_verbose_link_cmd='func_echo_all'
18472
18473               # Archives containing C++ object files must be created using
18474               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18475               # necessary to make sure instantiated templates are included
18476               # in the archive.
18477               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18478               ;;
18479             esac
18480             ;;
18481         esac
18482         ;;
18483
18484       lynxos*)
18485         # FIXME: insert proper C++ library support
18486         ld_shlibs_CXX=no
18487         ;;
18488
18489       m88k*)
18490         # FIXME: insert proper C++ library support
18491         ld_shlibs_CXX=no
18492         ;;
18493
18494       mvs*)
18495         case $cc_basename in
18496           cxx*)
18497             # FIXME: insert proper C++ library support
18498             ld_shlibs_CXX=no
18499             ;;
18500           *)
18501             # FIXME: insert proper C++ library support
18502             ld_shlibs_CXX=no
18503             ;;
18504         esac
18505         ;;
18506
18507       netbsd*)
18508         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18509           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18510           wlarc=
18511           hardcode_libdir_flag_spec_CXX='-R$libdir'
18512           hardcode_direct_CXX=yes
18513           hardcode_shlibpath_var_CXX=no
18514         fi
18515         # Workaround some broken pre-1.5 toolchains
18516         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18517         ;;
18518
18519       *nto* | *qnx*)
18520         ld_shlibs_CXX=yes
18521         ;;
18522
18523       openbsd2*)
18524         # C++ shared libraries are fairly broken
18525         ld_shlibs_CXX=no
18526         ;;
18527
18528       openbsd*)
18529         if test -f /usr/libexec/ld.so; then
18530           hardcode_direct_CXX=yes
18531           hardcode_shlibpath_var_CXX=no
18532           hardcode_direct_absolute_CXX=yes
18533           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18534           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18535           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18536             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18537             export_dynamic_flag_spec_CXX='${wl}-E'
18538             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18539           fi
18540           output_verbose_link_cmd=func_echo_all
18541         else
18542           ld_shlibs_CXX=no
18543         fi
18544         ;;
18545
18546       osf3* | osf4* | osf5*)
18547         case $cc_basename in
18548           KCC*)
18549             # Kuck and Associates, Inc. (KAI) C++ Compiler
18550
18551             # KCC will only create a shared library if the output file
18552             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18553             # to its proper name (with version) after linking.
18554             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'
18555
18556             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18557             hardcode_libdir_separator_CXX=:
18558
18559             # Archives containing C++ object files must be created using
18560             # the KAI C++ compiler.
18561             case $host in
18562               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18563               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18564             esac
18565             ;;
18566           RCC*)
18567             # Rational C++ 2.4.1
18568             # FIXME: insert proper C++ library support
18569             ld_shlibs_CXX=no
18570             ;;
18571           cxx*)
18572             case $host in
18573               osf3*)
18574                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18575                 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'
18576                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18577                 ;;
18578               *)
18579                 allow_undefined_flag_CXX=' -expect_unresolved \*'
18580                 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'
18581                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18582                   echo "-hidden">> $lib.exp~
18583                   $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~
18584                   $RM $lib.exp'
18585                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18586                 ;;
18587             esac
18588
18589             hardcode_libdir_separator_CXX=:
18590
18591             # Commands to make compiler produce verbose output that lists
18592             # what "hidden" libraries, object files and flags are used when
18593             # linking a shared library.
18594             #
18595             # There doesn't appear to be a way to prevent this compiler from
18596             # explicitly linking system object files so we need to strip them
18597             # from the output so that they don't get included in the library
18598             # dependencies.
18599             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"'
18600             ;;
18601           *)
18602             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18603               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18604               case $host in
18605                 osf3*)
18606                   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'
18607                   ;;
18608                 *)
18609                   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'
18610                   ;;
18611               esac
18612
18613               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18614               hardcode_libdir_separator_CXX=:
18615
18616               # Commands to make compiler produce verbose output that lists
18617               # what "hidden" libraries, object files and flags are used when
18618               # linking a shared library.
18619               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18620
18621             else
18622               # FIXME: insert proper C++ library support
18623               ld_shlibs_CXX=no
18624             fi
18625             ;;
18626         esac
18627         ;;
18628
18629       psos*)
18630         # FIXME: insert proper C++ library support
18631         ld_shlibs_CXX=no
18632         ;;
18633
18634       sunos4*)
18635         case $cc_basename in
18636           CC*)
18637             # Sun C++ 4.x
18638             # FIXME: insert proper C++ library support
18639             ld_shlibs_CXX=no
18640             ;;
18641           lcc*)
18642             # Lucid
18643             # FIXME: insert proper C++ library support
18644             ld_shlibs_CXX=no
18645             ;;
18646           *)
18647             # FIXME: insert proper C++ library support
18648             ld_shlibs_CXX=no
18649             ;;
18650         esac
18651         ;;
18652
18653       solaris*)
18654         case $cc_basename in
18655           CC*)
18656             # Sun C++ 4.2, 5.x and Centerline C++
18657             archive_cmds_need_lc_CXX=yes
18658             no_undefined_flag_CXX=' -zdefs'
18659             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18660             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18661               $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'
18662
18663             hardcode_libdir_flag_spec_CXX='-R$libdir'
18664             hardcode_shlibpath_var_CXX=no
18665             case $host_os in
18666               solaris2.[0-5] | solaris2.[0-5].*) ;;
18667               *)
18668                 # The compiler driver will combine and reorder linker options,
18669                 # but understands `-z linker_flag'.
18670                 # Supported since Solaris 2.6 (maybe 2.5.1?)
18671                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18672                 ;;
18673             esac
18674             link_all_deplibs_CXX=yes
18675
18676             output_verbose_link_cmd='func_echo_all'
18677
18678             # Archives containing C++ object files must be created using
18679             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18680             # necessary to make sure instantiated templates are included
18681             # in the archive.
18682             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18683             ;;
18684           gcx*)
18685             # Green Hills C++ Compiler
18686             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18687
18688             # The C++ compiler must be used to create the archive.
18689             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18690             ;;
18691           *)
18692             # GNU C++ compiler with Solaris linker
18693             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18694               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18695               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18696                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18697                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18698                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18699
18700                 # Commands to make compiler produce verbose output that lists
18701                 # what "hidden" libraries, object files and flags are used when
18702                 # linking a shared library.
18703                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18704               else
18705                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18706                 # platform.
18707                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18708                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18709                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18710
18711                 # Commands to make compiler produce verbose output that lists
18712                 # what "hidden" libraries, object files and flags are used when
18713                 # linking a shared library.
18714                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18715               fi
18716
18717               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18718               case $host_os in
18719                 solaris2.[0-5] | solaris2.[0-5].*) ;;
18720                 *)
18721                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18722                   ;;
18723               esac
18724             fi
18725             ;;
18726         esac
18727         ;;
18728
18729     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18730       no_undefined_flag_CXX='${wl}-z,text'
18731       archive_cmds_need_lc_CXX=no
18732       hardcode_shlibpath_var_CXX=no
18733       runpath_var='LD_RUN_PATH'
18734
18735       case $cc_basename in
18736         CC*)
18737           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18738           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18739           ;;
18740         *)
18741           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18742           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18743           ;;
18744       esac
18745       ;;
18746
18747       sysv5* | sco3.2v5* | sco5v6*)
18748         # Note: We can NOT use -z defs as we might desire, because we do not
18749         # link with -lc, and that would cause any symbols used from libc to
18750         # always be unresolved, which means just about no library would
18751         # ever link correctly.  If we're not using GNU ld we use -z text
18752         # though, which does catch some bad symbols but isn't as heavy-handed
18753         # as -z defs.
18754         no_undefined_flag_CXX='${wl}-z,text'
18755         allow_undefined_flag_CXX='${wl}-z,nodefs'
18756         archive_cmds_need_lc_CXX=no
18757         hardcode_shlibpath_var_CXX=no
18758         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18759         hardcode_libdir_separator_CXX=':'
18760         link_all_deplibs_CXX=yes
18761         export_dynamic_flag_spec_CXX='${wl}-Bexport'
18762         runpath_var='LD_RUN_PATH'
18763
18764         case $cc_basename in
18765           CC*)
18766             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18767             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18768             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18769               '"$old_archive_cmds_CXX"
18770             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18771               '"$reload_cmds_CXX"
18772             ;;
18773           *)
18774             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18775             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18776             ;;
18777         esac
18778       ;;
18779
18780       tandem*)
18781         case $cc_basename in
18782           NCC*)
18783             # NonStop-UX NCC 3.20
18784             # FIXME: insert proper C++ library support
18785             ld_shlibs_CXX=no
18786             ;;
18787           *)
18788             # FIXME: insert proper C++ library support
18789             ld_shlibs_CXX=no
18790             ;;
18791         esac
18792         ;;
18793
18794       vxworks*)
18795         # FIXME: insert proper C++ library support
18796         ld_shlibs_CXX=no
18797         ;;
18798
18799       *)
18800         # FIXME: insert proper C++ library support
18801         ld_shlibs_CXX=no
18802         ;;
18803     esac
18804
18805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18806 $as_echo "$ld_shlibs_CXX" >&6; }
18807     test "$ld_shlibs_CXX" = no && can_build_shared=no
18808
18809     GCC_CXX="$GXX"
18810     LD_CXX="$LD"
18811
18812     ## CAVEAT EMPTOR:
18813     ## There is no encapsulation within the following macros, do not change
18814     ## the running order or otherwise move them around unless you know exactly
18815     ## what you are doing...
18816     # Dependencies to place before and after the object being linked:
18817 predep_objects_CXX=
18818 postdep_objects_CXX=
18819 predeps_CXX=
18820 postdeps_CXX=
18821 compiler_lib_search_path_CXX=
18822
18823 cat > conftest.$ac_ext <<_LT_EOF
18824 class Foo
18825 {
18826 public:
18827   Foo (void) { a = 0; }
18828 private:
18829   int a;
18830 };
18831 _LT_EOF
18832
18833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18834   (eval $ac_compile) 2>&5
18835   ac_status=$?
18836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18837   test $ac_status = 0; }; then
18838   # Parse the compiler output and extract the necessary
18839   # objects, libraries and library flags.
18840
18841   # Sentinel used to keep track of whether or not we are before
18842   # the conftest object file.
18843   pre_test_object_deps_done=no
18844
18845   for p in `eval "$output_verbose_link_cmd"`; do
18846     case $p in
18847
18848     -L* | -R* | -l*)
18849        # Some compilers place space between "-{L,R}" and the path.
18850        # Remove the space.
18851        if test $p = "-L" ||
18852           test $p = "-R"; then
18853          prev=$p
18854          continue
18855        else
18856          prev=
18857        fi
18858
18859        if test "$pre_test_object_deps_done" = no; then
18860          case $p in
18861          -L* | -R*)
18862            # Internal compiler library paths should come after those
18863            # provided the user.  The postdeps already come after the
18864            # user supplied libs so there is no need to process them.
18865            if test -z "$compiler_lib_search_path_CXX"; then
18866              compiler_lib_search_path_CXX="${prev}${p}"
18867            else
18868              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18869            fi
18870            ;;
18871          # The "-l" case would never come before the object being
18872          # linked, so don't bother handling this case.
18873          esac
18874        else
18875          if test -z "$postdeps_CXX"; then
18876            postdeps_CXX="${prev}${p}"
18877          else
18878            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18879          fi
18880        fi
18881        ;;
18882
18883     *.$objext)
18884        # This assumes that the test object file only shows up
18885        # once in the compiler output.
18886        if test "$p" = "conftest.$objext"; then
18887          pre_test_object_deps_done=yes
18888          continue
18889        fi
18890
18891        if test "$pre_test_object_deps_done" = no; then
18892          if test -z "$predep_objects_CXX"; then
18893            predep_objects_CXX="$p"
18894          else
18895            predep_objects_CXX="$predep_objects_CXX $p"
18896          fi
18897        else
18898          if test -z "$postdep_objects_CXX"; then
18899            postdep_objects_CXX="$p"
18900          else
18901            postdep_objects_CXX="$postdep_objects_CXX $p"
18902          fi
18903        fi
18904        ;;
18905
18906     *) ;; # Ignore the rest.
18907
18908     esac
18909   done
18910
18911   # Clean up.
18912   rm -f a.out a.exe
18913 else
18914   echo "libtool.m4: error: problem compiling CXX test program"
18915 fi
18916
18917 $RM -f confest.$objext
18918
18919 # PORTME: override above test on systems where it is broken
18920 case $host_os in
18921 interix[3-9]*)
18922   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18923   # hack all around it, let's just trust "g++" to DTRT.
18924   predep_objects_CXX=
18925   postdep_objects_CXX=
18926   postdeps_CXX=
18927   ;;
18928
18929 linux*)
18930   case `$CC -V 2>&1 | sed 5q` in
18931   *Sun\ C*)
18932     # Sun C++ 5.9
18933
18934     # The more standards-conforming stlport4 library is
18935     # incompatible with the Cstd library. Avoid specifying
18936     # it if it's in CXXFLAGS. Ignore libCrun as
18937     # -library=stlport4 depends on it.
18938     case " $CXX $CXXFLAGS " in
18939     *" -library=stlport4 "*)
18940       solaris_use_stlport4=yes
18941       ;;
18942     esac
18943
18944     if test "$solaris_use_stlport4" != yes; then
18945       postdeps_CXX='-library=Cstd -library=Crun'
18946     fi
18947     ;;
18948   esac
18949   ;;
18950
18951 solaris*)
18952   case $cc_basename in
18953   CC*)
18954     # The more standards-conforming stlport4 library is
18955     # incompatible with the Cstd library. Avoid specifying
18956     # it if it's in CXXFLAGS. Ignore libCrun as
18957     # -library=stlport4 depends on it.
18958     case " $CXX $CXXFLAGS " in
18959     *" -library=stlport4 "*)
18960       solaris_use_stlport4=yes
18961       ;;
18962     esac
18963
18964     # Adding this requires a known-good setup of shared libraries for
18965     # Sun compiler versions before 5.6, else PIC objects from an old
18966     # archive will be linked into the output, leading to subtle bugs.
18967     if test "$solaris_use_stlport4" != yes; then
18968       postdeps_CXX='-library=Cstd -library=Crun'
18969     fi
18970     ;;
18971   esac
18972   ;;
18973 esac
18974
18975
18976 case " $postdeps_CXX " in
18977 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18978 esac
18979  compiler_lib_search_dirs_CXX=
18980 if test -n "${compiler_lib_search_path_CXX}"; then
18981  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18982 fi
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014     lt_prog_compiler_wl_CXX=
19015 lt_prog_compiler_pic_CXX=
19016 lt_prog_compiler_static_CXX=
19017
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19019 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19020
19021   # C++ specific cases for pic, static, wl, etc.
19022   if test "$GXX" = yes; then
19023     lt_prog_compiler_wl_CXX='-Wl,'
19024     lt_prog_compiler_static_CXX='-static'
19025
19026     case $host_os in
19027     aix*)
19028       # All AIX code is PIC.
19029       if test "$host_cpu" = ia64; then
19030         # AIX 5 now supports IA64 processor
19031         lt_prog_compiler_static_CXX='-Bstatic'
19032       fi
19033       ;;
19034
19035     amigaos*)
19036       case $host_cpu in
19037       powerpc)
19038             # see comment about AmigaOS4 .so support
19039             lt_prog_compiler_pic_CXX='-fPIC'
19040         ;;
19041       m68k)
19042             # FIXME: we need at least 68020 code to build shared libraries, but
19043             # adding the `-m68020' flag to GCC prevents building anything better,
19044             # like `-m68040'.
19045             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19046         ;;
19047       esac
19048       ;;
19049
19050     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19051       # PIC is the default for these OSes.
19052       ;;
19053     mingw* | cygwin* | os2* | pw32* | cegcc*)
19054       # This hack is so that the source file can tell whether it is being
19055       # built for inclusion in a dll (and should export symbols for example).
19056       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19057       # (--disable-auto-import) libraries
19058       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19059       ;;
19060     darwin* | rhapsody*)
19061       # PIC is the default on this platform
19062       # Common symbols not allowed in MH_DYLIB files
19063       lt_prog_compiler_pic_CXX='-fno-common'
19064       ;;
19065     *djgpp*)
19066       # DJGPP does not support shared libraries at all
19067       lt_prog_compiler_pic_CXX=
19068       ;;
19069     haiku*)
19070       # PIC is the default for Haiku.
19071       # The "-static" flag exists, but is broken.
19072       lt_prog_compiler_static_CXX=
19073       ;;
19074     interix[3-9]*)
19075       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19076       # Instead, we relocate shared libraries at runtime.
19077       ;;
19078     sysv4*MP*)
19079       if test -d /usr/nec; then
19080         lt_prog_compiler_pic_CXX=-Kconform_pic
19081       fi
19082       ;;
19083     hpux*)
19084       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19085       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19086       # sets the default TLS model and affects inlining.
19087       case $host_cpu in
19088       hppa*64*)
19089         ;;
19090       *)
19091         lt_prog_compiler_pic_CXX='-fPIC'
19092         ;;
19093       esac
19094       ;;
19095     *qnx* | *nto*)
19096       # QNX uses GNU C++, but need to define -shared option too, otherwise
19097       # it will coredump.
19098       lt_prog_compiler_pic_CXX='-fPIC -shared'
19099       ;;
19100     *)
19101       lt_prog_compiler_pic_CXX='-fPIC'
19102       ;;
19103     esac
19104   else
19105     case $host_os in
19106       aix[4-9]*)
19107         # All AIX code is PIC.
19108         if test "$host_cpu" = ia64; then
19109           # AIX 5 now supports IA64 processor
19110           lt_prog_compiler_static_CXX='-Bstatic'
19111         else
19112           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19113         fi
19114         ;;
19115       chorus*)
19116         case $cc_basename in
19117         cxch68*)
19118           # Green Hills C++ Compiler
19119           # _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"
19120           ;;
19121         esac
19122         ;;
19123       dgux*)
19124         case $cc_basename in
19125           ec++*)
19126             lt_prog_compiler_pic_CXX='-KPIC'
19127             ;;
19128           ghcx*)
19129             # Green Hills C++ Compiler
19130             lt_prog_compiler_pic_CXX='-pic'
19131             ;;
19132           *)
19133             ;;
19134         esac
19135         ;;
19136       freebsd* | dragonfly*)
19137         # FreeBSD uses GNU C++
19138         ;;
19139       hpux9* | hpux10* | hpux11*)
19140         case $cc_basename in
19141           CC*)
19142             lt_prog_compiler_wl_CXX='-Wl,'
19143             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19144             if test "$host_cpu" != ia64; then
19145               lt_prog_compiler_pic_CXX='+Z'
19146             fi
19147             ;;
19148           aCC*)
19149             lt_prog_compiler_wl_CXX='-Wl,'
19150             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19151             case $host_cpu in
19152             hppa*64*|ia64*)
19153               # +Z the default
19154               ;;
19155             *)
19156               lt_prog_compiler_pic_CXX='+Z'
19157               ;;
19158             esac
19159             ;;
19160           *)
19161             ;;
19162         esac
19163         ;;
19164       interix*)
19165         # This is c89, which is MS Visual C++ (no shared libs)
19166         # Anyone wants to do a port?
19167         ;;
19168       irix5* | irix6* | nonstopux*)
19169         case $cc_basename in
19170           CC*)
19171             lt_prog_compiler_wl_CXX='-Wl,'
19172             lt_prog_compiler_static_CXX='-non_shared'
19173             # CC pic flag -KPIC is the default.
19174             ;;
19175           *)
19176             ;;
19177         esac
19178         ;;
19179       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19180         case $cc_basename in
19181           KCC*)
19182             # KAI C++ Compiler
19183             lt_prog_compiler_wl_CXX='--backend -Wl,'
19184             lt_prog_compiler_pic_CXX='-fPIC'
19185             ;;
19186           ecpc* )
19187             # old Intel C++ for x86_64 which still supported -KPIC.
19188             lt_prog_compiler_wl_CXX='-Wl,'
19189             lt_prog_compiler_pic_CXX='-KPIC'
19190             lt_prog_compiler_static_CXX='-static'
19191             ;;
19192           icpc* )
19193             # Intel C++, used to be incompatible with GCC.
19194             # ICC 10 doesn't accept -KPIC any more.
19195             lt_prog_compiler_wl_CXX='-Wl,'
19196             lt_prog_compiler_pic_CXX='-fPIC'
19197             lt_prog_compiler_static_CXX='-static'
19198             ;;
19199           pgCC* | pgcpp*)
19200             # Portland Group C++ compiler
19201             lt_prog_compiler_wl_CXX='-Wl,'
19202             lt_prog_compiler_pic_CXX='-fpic'
19203             lt_prog_compiler_static_CXX='-Bstatic'
19204             ;;
19205           cxx*)
19206             # Compaq C++
19207             # Make sure the PIC flag is empty.  It appears that all Alpha
19208             # Linux and Compaq Tru64 Unix objects are PIC.
19209             lt_prog_compiler_pic_CXX=
19210             lt_prog_compiler_static_CXX='-non_shared'
19211             ;;
19212           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19213             # IBM XL 8.0, 9.0 on PPC and BlueGene
19214             lt_prog_compiler_wl_CXX='-Wl,'
19215             lt_prog_compiler_pic_CXX='-qpic'
19216             lt_prog_compiler_static_CXX='-qstaticlink'
19217             ;;
19218           *)
19219             case `$CC -V 2>&1 | sed 5q` in
19220             *Sun\ C*)
19221               # Sun C++ 5.9
19222               lt_prog_compiler_pic_CXX='-KPIC'
19223               lt_prog_compiler_static_CXX='-Bstatic'
19224               lt_prog_compiler_wl_CXX='-Qoption ld '
19225               ;;
19226             esac
19227             ;;
19228         esac
19229         ;;
19230       lynxos*)
19231         ;;
19232       m88k*)
19233         ;;
19234       mvs*)
19235         case $cc_basename in
19236           cxx*)
19237             lt_prog_compiler_pic_CXX='-W c,exportall'
19238             ;;
19239           *)
19240             ;;
19241         esac
19242         ;;
19243       netbsd*)
19244         ;;
19245       *qnx* | *nto*)
19246         # QNX uses GNU C++, but need to define -shared option too, otherwise
19247         # it will coredump.
19248         lt_prog_compiler_pic_CXX='-fPIC -shared'
19249         ;;
19250       osf3* | osf4* | osf5*)
19251         case $cc_basename in
19252           KCC*)
19253             lt_prog_compiler_wl_CXX='--backend -Wl,'
19254             ;;
19255           RCC*)
19256             # Rational C++ 2.4.1
19257             lt_prog_compiler_pic_CXX='-pic'
19258             ;;
19259           cxx*)
19260             # Digital/Compaq C++
19261             lt_prog_compiler_wl_CXX='-Wl,'
19262             # Make sure the PIC flag is empty.  It appears that all Alpha
19263             # Linux and Compaq Tru64 Unix objects are PIC.
19264             lt_prog_compiler_pic_CXX=
19265             lt_prog_compiler_static_CXX='-non_shared'
19266             ;;
19267           *)
19268             ;;
19269         esac
19270         ;;
19271       psos*)
19272         ;;
19273       solaris*)
19274         case $cc_basename in
19275           CC*)
19276             # Sun C++ 4.2, 5.x and Centerline C++
19277             lt_prog_compiler_pic_CXX='-KPIC'
19278             lt_prog_compiler_static_CXX='-Bstatic'
19279             lt_prog_compiler_wl_CXX='-Qoption ld '
19280             ;;
19281           gcx*)
19282             # Green Hills C++ Compiler
19283             lt_prog_compiler_pic_CXX='-PIC'
19284             ;;
19285           *)
19286             ;;
19287         esac
19288         ;;
19289       sunos4*)
19290         case $cc_basename in
19291           CC*)
19292             # Sun C++ 4.x
19293             lt_prog_compiler_pic_CXX='-pic'
19294             lt_prog_compiler_static_CXX='-Bstatic'
19295             ;;
19296           lcc*)
19297             # Lucid
19298             lt_prog_compiler_pic_CXX='-pic'
19299             ;;
19300           *)
19301             ;;
19302         esac
19303         ;;
19304       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19305         case $cc_basename in
19306           CC*)
19307             lt_prog_compiler_wl_CXX='-Wl,'
19308             lt_prog_compiler_pic_CXX='-KPIC'
19309             lt_prog_compiler_static_CXX='-Bstatic'
19310             ;;
19311         esac
19312         ;;
19313       tandem*)
19314         case $cc_basename in
19315           NCC*)
19316             # NonStop-UX NCC 3.20
19317             lt_prog_compiler_pic_CXX='-KPIC'
19318             ;;
19319           *)
19320             ;;
19321         esac
19322         ;;
19323       vxworks*)
19324         ;;
19325       *)
19326         lt_prog_compiler_can_build_shared_CXX=no
19327         ;;
19328     esac
19329   fi
19330
19331 case $host_os in
19332   # For platforms which do not support PIC, -DPIC is meaningless:
19333   *djgpp*)
19334     lt_prog_compiler_pic_CXX=
19335     ;;
19336   *)
19337     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19338     ;;
19339 esac
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19341 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19342
19343
19344
19345 #
19346 # Check to make sure the PIC flag actually works.
19347 #
19348 if test -n "$lt_prog_compiler_pic_CXX"; then
19349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19350 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19351 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19352   $as_echo_n "(cached) " >&6
19353 else
19354   lt_cv_prog_compiler_pic_works_CXX=no
19355    ac_outfile=conftest.$ac_objext
19356    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19357    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19358    # Insert the option either (1) after the last *FLAGS variable, or
19359    # (2) before a word containing "conftest.", or (3) at the end.
19360    # Note that $ac_compile itself does not contain backslashes and begins
19361    # with a dollar sign (not a hyphen), so the echo should work correctly.
19362    # The option is referenced via a variable to avoid confusing sed.
19363    lt_compile=`echo "$ac_compile" | $SED \
19364    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19365    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19366    -e 's:$: $lt_compiler_flag:'`
19367    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19368    (eval "$lt_compile" 2>conftest.err)
19369    ac_status=$?
19370    cat conftest.err >&5
19371    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372    if (exit $ac_status) && test -s "$ac_outfile"; then
19373      # The compiler can only warn and ignore the option if not recognized
19374      # So say no if there are warnings other than the usual output.
19375      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19376      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19377      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19378        lt_cv_prog_compiler_pic_works_CXX=yes
19379      fi
19380    fi
19381    $RM conftest*
19382
19383 fi
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19385 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19386
19387 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19388     case $lt_prog_compiler_pic_CXX in
19389      "" | " "*) ;;
19390      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19391      esac
19392 else
19393     lt_prog_compiler_pic_CXX=
19394      lt_prog_compiler_can_build_shared_CXX=no
19395 fi
19396
19397 fi
19398
19399
19400
19401 #
19402 # Check to make sure the static flag actually works.
19403 #
19404 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19406 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19407 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19408   $as_echo_n "(cached) " >&6
19409 else
19410   lt_cv_prog_compiler_static_works_CXX=no
19411    save_LDFLAGS="$LDFLAGS"
19412    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19413    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19414    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19415      # The linker can only warn and ignore the option if not recognized
19416      # So say no if there are warnings
19417      if test -s conftest.err; then
19418        # Append any errors to the config.log.
19419        cat conftest.err 1>&5
19420        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19421        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19422        if diff conftest.exp conftest.er2 >/dev/null; then
19423          lt_cv_prog_compiler_static_works_CXX=yes
19424        fi
19425      else
19426        lt_cv_prog_compiler_static_works_CXX=yes
19427      fi
19428    fi
19429    $RM -r conftest*
19430    LDFLAGS="$save_LDFLAGS"
19431
19432 fi
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19434 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19435
19436 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19437     :
19438 else
19439     lt_prog_compiler_static_CXX=
19440 fi
19441
19442
19443
19444
19445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19446 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19447 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19448   $as_echo_n "(cached) " >&6
19449 else
19450   lt_cv_prog_compiler_c_o_CXX=no
19451    $RM -r conftest 2>/dev/null
19452    mkdir conftest
19453    cd conftest
19454    mkdir out
19455    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19456
19457    lt_compiler_flag="-o out/conftest2.$ac_objext"
19458    # Insert the option either (1) after the last *FLAGS variable, or
19459    # (2) before a word containing "conftest.", or (3) at the end.
19460    # Note that $ac_compile itself does not contain backslashes and begins
19461    # with a dollar sign (not a hyphen), so the echo should work correctly.
19462    lt_compile=`echo "$ac_compile" | $SED \
19463    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19464    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19465    -e 's:$: $lt_compiler_flag:'`
19466    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19467    (eval "$lt_compile" 2>out/conftest.err)
19468    ac_status=$?
19469    cat out/conftest.err >&5
19470    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19472    then
19473      # The compiler can only warn and ignore the option if not recognized
19474      # So say no if there are warnings
19475      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19476      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19477      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19478        lt_cv_prog_compiler_c_o_CXX=yes
19479      fi
19480    fi
19481    chmod u+w . 2>&5
19482    $RM conftest*
19483    # SGI C++ compiler will create directory out/ii_files/ for
19484    # template instantiation
19485    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19486    $RM out/* && rmdir out
19487    cd ..
19488    $RM -r conftest
19489    $RM conftest*
19490
19491 fi
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19493 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19494
19495
19496
19497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19498 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19499 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19500   $as_echo_n "(cached) " >&6
19501 else
19502   lt_cv_prog_compiler_c_o_CXX=no
19503    $RM -r conftest 2>/dev/null
19504    mkdir conftest
19505    cd conftest
19506    mkdir out
19507    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19508
19509    lt_compiler_flag="-o out/conftest2.$ac_objext"
19510    # Insert the option either (1) after the last *FLAGS variable, or
19511    # (2) before a word containing "conftest.", or (3) at the end.
19512    # Note that $ac_compile itself does not contain backslashes and begins
19513    # with a dollar sign (not a hyphen), so the echo should work correctly.
19514    lt_compile=`echo "$ac_compile" | $SED \
19515    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19516    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19517    -e 's:$: $lt_compiler_flag:'`
19518    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19519    (eval "$lt_compile" 2>out/conftest.err)
19520    ac_status=$?
19521    cat out/conftest.err >&5
19522    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19524    then
19525      # The compiler can only warn and ignore the option if not recognized
19526      # So say no if there are warnings
19527      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19528      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19529      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19530        lt_cv_prog_compiler_c_o_CXX=yes
19531      fi
19532    fi
19533    chmod u+w . 2>&5
19534    $RM conftest*
19535    # SGI C++ compiler will create directory out/ii_files/ for
19536    # template instantiation
19537    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19538    $RM out/* && rmdir out
19539    cd ..
19540    $RM -r conftest
19541    $RM conftest*
19542
19543 fi
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19545 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19546
19547
19548
19549
19550 hard_links="nottested"
19551 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19552   # do not overwrite the value of need_locks provided by the user
19553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19554 $as_echo_n "checking if we can lock with hard links... " >&6; }
19555   hard_links=yes
19556   $RM conftest*
19557   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19558   touch conftest.a
19559   ln conftest.a conftest.b 2>&5 || hard_links=no
19560   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19562 $as_echo "$hard_links" >&6; }
19563   if test "$hard_links" = no; then
19564     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19565 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19566     need_locks=warn
19567   fi
19568 else
19569   need_locks=no
19570 fi
19571
19572
19573
19574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19575 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19576
19577   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19578   case $host_os in
19579   aix[4-9]*)
19580     # If we're using GNU nm, then we don't want the "-C" option.
19581     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19582     # Also, AIX nm treats weak defined symbols like other global defined
19583     # symbols, whereas GNU nm marks them as "W".
19584     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19585       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'
19586     else
19587       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'
19588     fi
19589     ;;
19590   pw32*)
19591     export_symbols_cmds_CXX="$ltdll_cmds"
19592   ;;
19593   cygwin* | mingw* | cegcc*)
19594     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'
19595   ;;
19596   *)
19597     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19598   ;;
19599   esac
19600   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19601
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19603 $as_echo "$ld_shlibs_CXX" >&6; }
19604 test "$ld_shlibs_CXX" = no && can_build_shared=no
19605
19606 with_gnu_ld_CXX=$with_gnu_ld
19607
19608
19609
19610
19611
19612
19613 #
19614 # Do we need to explicitly link libc?
19615 #
19616 case "x$archive_cmds_need_lc_CXX" in
19617 x|xyes)
19618   # Assume -lc should be added
19619   archive_cmds_need_lc_CXX=yes
19620
19621   if test "$enable_shared" = yes && test "$GCC" = yes; then
19622     case $archive_cmds_CXX in
19623     *'~'*)
19624       # FIXME: we may have to deal with multi-command sequences.
19625       ;;
19626     '$CC '*)
19627       # Test whether the compiler implicitly links with -lc since on some
19628       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19629       # to ld, don't add -lc before -lgcc.
19630       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19631 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19632 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19633   $as_echo_n "(cached) " >&6
19634 else
19635   $RM conftest*
19636         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19637
19638         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19639   (eval $ac_compile) 2>&5
19640   ac_status=$?
19641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19642   test $ac_status = 0; } 2>conftest.err; then
19643           soname=conftest
19644           lib=conftest
19645           libobjs=conftest.$ac_objext
19646           deplibs=
19647           wl=$lt_prog_compiler_wl_CXX
19648           pic_flag=$lt_prog_compiler_pic_CXX
19649           compiler_flags=-v
19650           linker_flags=-v
19651           verstring=
19652           output_objdir=.
19653           libname=conftest
19654           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19655           allow_undefined_flag_CXX=
19656           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19657   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19658   ac_status=$?
19659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19660   test $ac_status = 0; }
19661           then
19662             lt_cv_archive_cmds_need_lc_CXX=no
19663           else
19664             lt_cv_archive_cmds_need_lc_CXX=yes
19665           fi
19666           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19667         else
19668           cat conftest.err 1>&5
19669         fi
19670         $RM conftest*
19671
19672 fi
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19674 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19675       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19676       ;;
19677     esac
19678   fi
19679   ;;
19680 esac
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19746 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19747
19748 library_names_spec=
19749 libname_spec='lib$name'
19750 soname_spec=
19751 shrext_cmds=".so"
19752 postinstall_cmds=
19753 postuninstall_cmds=
19754 finish_cmds=
19755 finish_eval=
19756 shlibpath_var=
19757 shlibpath_overrides_runpath=unknown
19758 version_type=none
19759 dynamic_linker="$host_os ld.so"
19760 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19761 need_lib_prefix=unknown
19762 hardcode_into_libs=no
19763
19764 # when you set need_version to no, make sure it does not cause -set_version
19765 # flags to be left without arguments
19766 need_version=unknown
19767
19768 case $host_os in
19769 aix3*)
19770   version_type=linux
19771   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19772   shlibpath_var=LIBPATH
19773
19774   # AIX 3 has no versioning support, so we append a major version to the name.
19775   soname_spec='${libname}${release}${shared_ext}$major'
19776   ;;
19777
19778 aix[4-9]*)
19779   version_type=linux
19780   need_lib_prefix=no
19781   need_version=no
19782   hardcode_into_libs=yes
19783   if test "$host_cpu" = ia64; then
19784     # AIX 5 supports IA64
19785     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19786     shlibpath_var=LD_LIBRARY_PATH
19787   else
19788     # With GCC up to 2.95.x, collect2 would create an import file
19789     # for dependence libraries.  The import file would start with
19790     # the line `#! .'.  This would cause the generated library to
19791     # depend on `.', always an invalid library.  This was fixed in
19792     # development snapshots of GCC prior to 3.0.
19793     case $host_os in
19794       aix4 | aix4.[01] | aix4.[01].*)
19795       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19796            echo ' yes '
19797            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19798         :
19799       else
19800         can_build_shared=no
19801       fi
19802       ;;
19803     esac
19804     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19805     # soname into executable. Probably we can add versioning support to
19806     # collect2, so additional links can be useful in future.
19807     if test "$aix_use_runtimelinking" = yes; then
19808       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19809       # instead of lib<name>.a to let people know that these are not
19810       # typical AIX shared libraries.
19811       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19812     else
19813       # We preserve .a as extension for shared libraries through AIX4.2
19814       # and later when we are not doing run time linking.
19815       library_names_spec='${libname}${release}.a $libname.a'
19816       soname_spec='${libname}${release}${shared_ext}$major'
19817     fi
19818     shlibpath_var=LIBPATH
19819   fi
19820   ;;
19821
19822 amigaos*)
19823   case $host_cpu in
19824   powerpc)
19825     # Since July 2007 AmigaOS4 officially supports .so libraries.
19826     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19827     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19828     ;;
19829   m68k)
19830     library_names_spec='$libname.ixlibrary $libname.a'
19831     # Create ${libname}_ixlibrary.a entries in /sys/libs.
19832     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'
19833     ;;
19834   esac
19835   ;;
19836
19837 beos*)
19838   library_names_spec='${libname}${shared_ext}'
19839   dynamic_linker="$host_os ld.so"
19840   shlibpath_var=LIBRARY_PATH
19841   ;;
19842
19843 bsdi[45]*)
19844   version_type=linux
19845   need_version=no
19846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19847   soname_spec='${libname}${release}${shared_ext}$major'
19848   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19849   shlibpath_var=LD_LIBRARY_PATH
19850   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19851   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19852   # the default ld.so.conf also contains /usr/contrib/lib and
19853   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19854   # libtool to hard-code these into programs
19855   ;;
19856
19857 cygwin* | mingw* | pw32* | cegcc*)
19858   version_type=windows
19859   shrext_cmds=".dll"
19860   need_version=no
19861   need_lib_prefix=no
19862
19863   case $GCC,$host_os in
19864   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19865     library_names_spec='$libname.dll.a'
19866     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19867     postinstall_cmds='base_file=`basename \${file}`~
19868       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19869       dldir=$destdir/`dirname \$dlpath`~
19870       test -d \$dldir || mkdir -p \$dldir~
19871       $install_prog $dir/$dlname \$dldir/$dlname~
19872       chmod a+x \$dldir/$dlname~
19873       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19874         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19875       fi'
19876     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19877       dlpath=$dir/\$dldll~
19878        $RM \$dlpath'
19879     shlibpath_overrides_runpath=yes
19880
19881     case $host_os in
19882     cygwin*)
19883       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19884       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19885
19886       ;;
19887     mingw* | cegcc*)
19888       # MinGW DLLs use traditional 'lib' prefix
19889       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19890       ;;
19891     pw32*)
19892       # pw32 DLLs use 'pw' prefix rather than 'lib'
19893       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19894       ;;
19895     esac
19896     ;;
19897
19898   *)
19899     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19900     ;;
19901   esac
19902   dynamic_linker='Win32 ld.exe'
19903   # FIXME: first we should search . and the directory the executable is in
19904   shlibpath_var=PATH
19905   ;;
19906
19907 darwin* | rhapsody*)
19908   dynamic_linker="$host_os dyld"
19909   version_type=darwin
19910   need_lib_prefix=no
19911   need_version=no
19912   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19913   soname_spec='${libname}${release}${major}$shared_ext'
19914   shlibpath_overrides_runpath=yes
19915   shlibpath_var=DYLD_LIBRARY_PATH
19916   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19917
19918   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19919   ;;
19920
19921 dgux*)
19922   version_type=linux
19923   need_lib_prefix=no
19924   need_version=no
19925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19926   soname_spec='${libname}${release}${shared_ext}$major'
19927   shlibpath_var=LD_LIBRARY_PATH
19928   ;;
19929
19930 freebsd1*)
19931   dynamic_linker=no
19932   ;;
19933
19934 freebsd* | dragonfly*)
19935   # DragonFly does not have aout.  When/if they implement a new
19936   # versioning mechanism, adjust this.
19937   if test -x /usr/bin/objformat; then
19938     objformat=`/usr/bin/objformat`
19939   else
19940     case $host_os in
19941     freebsd[123]*) objformat=aout ;;
19942     *) objformat=elf ;;
19943     esac
19944   fi
19945   version_type=freebsd-$objformat
19946   case $version_type in
19947     freebsd-elf*)
19948       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19949       need_version=no
19950       need_lib_prefix=no
19951       ;;
19952     freebsd-*)
19953       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19954       need_version=yes
19955       ;;
19956   esac
19957   shlibpath_var=LD_LIBRARY_PATH
19958   case $host_os in
19959   freebsd2*)
19960     shlibpath_overrides_runpath=yes
19961     ;;
19962   freebsd3.[01]* | freebsdelf3.[01]*)
19963     shlibpath_overrides_runpath=yes
19964     hardcode_into_libs=yes
19965     ;;
19966   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19967   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19968     shlibpath_overrides_runpath=no
19969     hardcode_into_libs=yes
19970     ;;
19971   *) # from 4.6 on, and DragonFly
19972     shlibpath_overrides_runpath=yes
19973     hardcode_into_libs=yes
19974     ;;
19975   esac
19976   ;;
19977
19978 gnu*)
19979   version_type=linux
19980   need_lib_prefix=no
19981   need_version=no
19982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19983   soname_spec='${libname}${release}${shared_ext}$major'
19984   shlibpath_var=LD_LIBRARY_PATH
19985   hardcode_into_libs=yes
19986   ;;
19987
19988 haiku*)
19989   version_type=linux
19990   need_lib_prefix=no
19991   need_version=no
19992   dynamic_linker="$host_os runtime_loader"
19993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19994   soname_spec='${libname}${release}${shared_ext}$major'
19995   shlibpath_var=LIBRARY_PATH
19996   shlibpath_overrides_runpath=yes
19997   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19998   hardcode_into_libs=yes
19999   ;;
20000
20001 hpux9* | hpux10* | hpux11*)
20002   # Give a soname corresponding to the major version so that dld.sl refuses to
20003   # link against other versions.
20004   version_type=sunos
20005   need_lib_prefix=no
20006   need_version=no
20007   case $host_cpu in
20008   ia64*)
20009     shrext_cmds='.so'
20010     hardcode_into_libs=yes
20011     dynamic_linker="$host_os dld.so"
20012     shlibpath_var=LD_LIBRARY_PATH
20013     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20014     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20015     soname_spec='${libname}${release}${shared_ext}$major'
20016     if test "X$HPUX_IA64_MODE" = X32; then
20017       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20018     else
20019       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20020     fi
20021     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20022     ;;
20023   hppa*64*)
20024     shrext_cmds='.sl'
20025     hardcode_into_libs=yes
20026     dynamic_linker="$host_os dld.sl"
20027     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20028     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20029     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20030     soname_spec='${libname}${release}${shared_ext}$major'
20031     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20032     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20033     ;;
20034   *)
20035     shrext_cmds='.sl'
20036     dynamic_linker="$host_os dld.sl"
20037     shlibpath_var=SHLIB_PATH
20038     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20039     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20040     soname_spec='${libname}${release}${shared_ext}$major'
20041     ;;
20042   esac
20043   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20044   postinstall_cmds='chmod 555 $lib'
20045   # or fails outright, so override atomically:
20046   install_override_mode=555
20047   ;;
20048
20049 interix[3-9]*)
20050   version_type=linux
20051   need_lib_prefix=no
20052   need_version=no
20053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20054   soname_spec='${libname}${release}${shared_ext}$major'
20055   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20056   shlibpath_var=LD_LIBRARY_PATH
20057   shlibpath_overrides_runpath=no
20058   hardcode_into_libs=yes
20059   ;;
20060
20061 irix5* | irix6* | nonstopux*)
20062   case $host_os in
20063     nonstopux*) version_type=nonstopux ;;
20064     *)
20065         if test "$lt_cv_prog_gnu_ld" = yes; then
20066                 version_type=linux
20067         else
20068                 version_type=irix
20069         fi ;;
20070   esac
20071   need_lib_prefix=no
20072   need_version=no
20073   soname_spec='${libname}${release}${shared_ext}$major'
20074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20075   case $host_os in
20076   irix5* | nonstopux*)
20077     libsuff= shlibsuff=
20078     ;;
20079   *)
20080     case $LD in # libtool.m4 will add one of these switches to LD
20081     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20082       libsuff= shlibsuff= libmagic=32-bit;;
20083     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20084       libsuff=32 shlibsuff=N32 libmagic=N32;;
20085     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20086       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20087     *) libsuff= shlibsuff= libmagic=never-match;;
20088     esac
20089     ;;
20090   esac
20091   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20092   shlibpath_overrides_runpath=no
20093   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20094   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20095   hardcode_into_libs=yes
20096   ;;
20097
20098 # No shared lib support for Linux oldld, aout, or coff.
20099 linux*oldld* | linux*aout* | linux*coff*)
20100   dynamic_linker=no
20101   ;;
20102
20103 # This must be Linux ELF.
20104 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20105   version_type=linux
20106   need_lib_prefix=no
20107   need_version=no
20108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20109   soname_spec='${libname}${release}${shared_ext}$major'
20110   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20111   shlibpath_var=LD_LIBRARY_PATH
20112   shlibpath_overrides_runpath=no
20113
20114   # Some binutils ld are patched to set DT_RUNPATH
20115   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20116   $as_echo_n "(cached) " >&6
20117 else
20118   lt_cv_shlibpath_overrides_runpath=no
20119     save_LDFLAGS=$LDFLAGS
20120     save_libdir=$libdir
20121     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20122          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20123     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20124 /* end confdefs.h.  */
20125
20126 int
20127 main ()
20128 {
20129
20130   ;
20131   return 0;
20132 }
20133 _ACEOF
20134 if ac_fn_cxx_try_link "$LINENO"; then :
20135   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20136   lt_cv_shlibpath_overrides_runpath=yes
20137 fi
20138 fi
20139 rm -f core conftest.err conftest.$ac_objext \
20140     conftest$ac_exeext conftest.$ac_ext
20141     LDFLAGS=$save_LDFLAGS
20142     libdir=$save_libdir
20143
20144 fi
20145
20146   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20147
20148   # This implies no fast_install, which is unacceptable.
20149   # Some rework will be needed to allow for fast_install
20150   # before this can be enabled.
20151   hardcode_into_libs=yes
20152
20153   # Append ld.so.conf contents to the search path
20154   if test -f /etc/ld.so.conf; then
20155     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' ' '`
20156     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20157   fi
20158
20159   # We used to test for /lib/ld.so.1 and disable shared libraries on
20160   # powerpc, because MkLinux only supported shared libraries with the
20161   # GNU dynamic linker.  Since this was broken with cross compilers,
20162   # most powerpc-linux boxes support dynamic linking these days and
20163   # people can always --disable-shared, the test was removed, and we
20164   # assume the GNU/Linux dynamic linker is in use.
20165   dynamic_linker='GNU/Linux ld.so'
20166   ;;
20167
20168 netbsd*)
20169   version_type=sunos
20170   need_lib_prefix=no
20171   need_version=no
20172   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20173     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20174     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20175     dynamic_linker='NetBSD (a.out) ld.so'
20176   else
20177     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20178     soname_spec='${libname}${release}${shared_ext}$major'
20179     dynamic_linker='NetBSD ld.elf_so'
20180   fi
20181   shlibpath_var=LD_LIBRARY_PATH
20182   shlibpath_overrides_runpath=yes
20183   hardcode_into_libs=yes
20184   ;;
20185
20186 newsos6)
20187   version_type=linux
20188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20189   shlibpath_var=LD_LIBRARY_PATH
20190   shlibpath_overrides_runpath=yes
20191   ;;
20192
20193 *nto* | *qnx*)
20194   version_type=qnx
20195   need_lib_prefix=no
20196   need_version=no
20197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20198   soname_spec='${libname}${release}${shared_ext}$major'
20199   shlibpath_var=LD_LIBRARY_PATH
20200   shlibpath_overrides_runpath=no
20201   hardcode_into_libs=yes
20202   dynamic_linker='ldqnx.so'
20203   ;;
20204
20205 openbsd*)
20206   version_type=sunos
20207   sys_lib_dlsearch_path_spec="/usr/lib"
20208   need_lib_prefix=no
20209   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20210   case $host_os in
20211     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20212     *)                          need_version=no  ;;
20213   esac
20214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20215   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20216   shlibpath_var=LD_LIBRARY_PATH
20217   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20218     case $host_os in
20219       openbsd2.[89] | openbsd2.[89].*)
20220         shlibpath_overrides_runpath=no
20221         ;;
20222       *)
20223         shlibpath_overrides_runpath=yes
20224         ;;
20225       esac
20226   else
20227     shlibpath_overrides_runpath=yes
20228   fi
20229   ;;
20230
20231 os2*)
20232   libname_spec='$name'
20233   shrext_cmds=".dll"
20234   need_lib_prefix=no
20235   library_names_spec='$libname${shared_ext} $libname.a'
20236   dynamic_linker='OS/2 ld.exe'
20237   shlibpath_var=LIBPATH
20238   ;;
20239
20240 osf3* | osf4* | osf5*)
20241   version_type=osf
20242   need_lib_prefix=no
20243   need_version=no
20244   soname_spec='${libname}${release}${shared_ext}$major'
20245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20246   shlibpath_var=LD_LIBRARY_PATH
20247   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20248   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20249   ;;
20250
20251 rdos*)
20252   dynamic_linker=no
20253   ;;
20254
20255 solaris*)
20256   version_type=linux
20257   need_lib_prefix=no
20258   need_version=no
20259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20260   soname_spec='${libname}${release}${shared_ext}$major'
20261   shlibpath_var=LD_LIBRARY_PATH
20262   shlibpath_overrides_runpath=yes
20263   hardcode_into_libs=yes
20264   # ldd complains unless libraries are executable
20265   postinstall_cmds='chmod +x $lib'
20266   ;;
20267
20268 sunos4*)
20269   version_type=sunos
20270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20271   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20272   shlibpath_var=LD_LIBRARY_PATH
20273   shlibpath_overrides_runpath=yes
20274   if test "$with_gnu_ld" = yes; then
20275     need_lib_prefix=no
20276   fi
20277   need_version=yes
20278   ;;
20279
20280 sysv4 | sysv4.3*)
20281   version_type=linux
20282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20283   soname_spec='${libname}${release}${shared_ext}$major'
20284   shlibpath_var=LD_LIBRARY_PATH
20285   case $host_vendor in
20286     sni)
20287       shlibpath_overrides_runpath=no
20288       need_lib_prefix=no
20289       runpath_var=LD_RUN_PATH
20290       ;;
20291     siemens)
20292       need_lib_prefix=no
20293       ;;
20294     motorola)
20295       need_lib_prefix=no
20296       need_version=no
20297       shlibpath_overrides_runpath=no
20298       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20299       ;;
20300   esac
20301   ;;
20302
20303 sysv4*MP*)
20304   if test -d /usr/nec ;then
20305     version_type=linux
20306     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20307     soname_spec='$libname${shared_ext}.$major'
20308     shlibpath_var=LD_LIBRARY_PATH
20309   fi
20310   ;;
20311
20312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20313   version_type=freebsd-elf
20314   need_lib_prefix=no
20315   need_version=no
20316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20317   soname_spec='${libname}${release}${shared_ext}$major'
20318   shlibpath_var=LD_LIBRARY_PATH
20319   shlibpath_overrides_runpath=yes
20320   hardcode_into_libs=yes
20321   if test "$with_gnu_ld" = yes; then
20322     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20323   else
20324     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20325     case $host_os in
20326       sco3.2v5*)
20327         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20328         ;;
20329     esac
20330   fi
20331   sys_lib_dlsearch_path_spec='/usr/lib'
20332   ;;
20333
20334 tpf*)
20335   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20336   version_type=linux
20337   need_lib_prefix=no
20338   need_version=no
20339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20340   shlibpath_var=LD_LIBRARY_PATH
20341   shlibpath_overrides_runpath=no
20342   hardcode_into_libs=yes
20343   ;;
20344
20345 uts4*)
20346   version_type=linux
20347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20348   soname_spec='${libname}${release}${shared_ext}$major'
20349   shlibpath_var=LD_LIBRARY_PATH
20350   ;;
20351
20352 *)
20353   dynamic_linker=no
20354   ;;
20355 esac
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20357 $as_echo "$dynamic_linker" >&6; }
20358 test "$dynamic_linker" = no && can_build_shared=no
20359
20360 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20361 if test "$GCC" = yes; then
20362   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20363 fi
20364
20365 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20366   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20367 fi
20368 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20369   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20370 fi
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20410 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20411 hardcode_action_CXX=
20412 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20413    test -n "$runpath_var_CXX" ||
20414    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20415
20416   # We can hardcode non-existent directories.
20417   if test "$hardcode_direct_CXX" != no &&
20418      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20419      # have to relink, otherwise we might link with an installed library
20420      # when we should be linking with a yet-to-be-installed one
20421      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20422      test "$hardcode_minus_L_CXX" != no; then
20423     # Linking always hardcodes the temporary library directory.
20424     hardcode_action_CXX=relink
20425   else
20426     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20427     hardcode_action_CXX=immediate
20428   fi
20429 else
20430   # We cannot hardcode anything, or else we can only hardcode existing
20431   # directories.
20432   hardcode_action_CXX=unsupported
20433 fi
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20435 $as_echo "$hardcode_action_CXX" >&6; }
20436
20437 if test "$hardcode_action_CXX" = relink ||
20438    test "$inherit_rpath_CXX" = yes; then
20439   # Fast installation is not supported
20440   enable_fast_install=no
20441 elif test "$shlibpath_overrides_runpath" = yes ||
20442      test "$enable_shared" = no; then
20443   # Fast installation is not necessary
20444   enable_fast_install=needless
20445 fi
20446
20447
20448
20449
20450
20451
20452
20453   fi # test -n "$compiler"
20454
20455   CC=$lt_save_CC
20456   LDCXX=$LD
20457   LD=$lt_save_LD
20458   GCC=$lt_save_GCC
20459   with_gnu_ld=$lt_save_with_gnu_ld
20460   lt_cv_path_LDCXX=$lt_cv_path_LD
20461   lt_cv_path_LD=$lt_save_path_LD
20462   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20463   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20464 fi # test "$_lt_caught_CXX_error" != yes
20465
20466 ac_ext=c
20467 ac_cpp='$CPP $CPPFLAGS'
20468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487 # Only expand once:
20488
20489
20490
20491
20492
20493 # Identify the assembler which will work hand-in-glove with the newly
20494 # built GCC, so that we can examine its features.  This is the assembler
20495 # which will be driven by the driver program.
20496 #
20497 # If build != host, and we aren't building gas in-tree, we identify a
20498 # build->target assembler and hope that it will have the same features
20499 # as the host->target assembler we'll be using.
20500 gcc_cv_gas_major_version=
20501 gcc_cv_gas_minor_version=
20502 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20503
20504 if test "${gcc_cv_as+set}" = set; then :
20505
20506 else
20507
20508 if test -x "$DEFAULT_ASSEMBLER"; then
20509         gcc_cv_as="$DEFAULT_ASSEMBLER"
20510 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20511      && test -f ../gas/Makefile \
20512      && test x$build = x$host; then
20513         gcc_cv_as=../gas/as-new$build_exeext
20514 elif test -x as$build_exeext; then
20515         # Build using assembler in the current directory.
20516         gcc_cv_as=./as$build_exeext
20517 elif test -x $AS_FOR_TARGET; then
20518         gcc_cv_as="$AS_FOR_TARGET"
20519 else
20520         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20521 set dummy $AS_FOR_TARGET; ac_word=$2
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20523 $as_echo_n "checking for $ac_word... " >&6; }
20524 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20525   $as_echo_n "(cached) " >&6
20526 else
20527   case $gcc_cv_as in
20528   [\\/]* | ?:[\\/]*)
20529   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20530   ;;
20531   *)
20532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20533 for as_dir in $PATH
20534 do
20535   IFS=$as_save_IFS
20536   test -z "$as_dir" && as_dir=.
20537     for ac_exec_ext in '' $ac_executable_extensions; do
20538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20539     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20541     break 2
20542   fi
20543 done
20544   done
20545 IFS=$as_save_IFS
20546
20547   ;;
20548 esac
20549 fi
20550 gcc_cv_as=$ac_cv_path_gcc_cv_as
20551 if test -n "$gcc_cv_as"; then
20552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20553 $as_echo "$gcc_cv_as" >&6; }
20554 else
20555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20556 $as_echo "no" >&6; }
20557 fi
20558
20559
20560 fi
20561 fi
20562
20563 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20564
20565 case "$ORIGINAL_AS_FOR_TARGET" in
20566   ./as | ./as$build_exeext) ;;
20567   *) ac_config_files="$ac_config_files as:exec-tool.in"
20568  ;;
20569 esac
20570
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20572 $as_echo_n "checking what assembler to use... " >&6; }
20573 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20574   # Single tree build which includes gas.  We want to prefer it
20575   # over whatever linker top-level may have detected, since
20576   # we'll use what we're building after installation anyway.
20577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20578 $as_echo "newly built gas" >&6; }
20579   in_tree_gas=yes
20580   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20581 for f in $gcc_cv_as_bfd_srcdir/configure \
20582          $gcc_cv_as_gas_srcdir/configure \
20583          $gcc_cv_as_gas_srcdir/configure.in \
20584          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20585   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20586   if test x$gcc_cv_gas_version != x; then
20587     break
20588   fi
20589 done
20590 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20591 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20592 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20593 case $gcc_cv_gas_patch_version in
20594   "") gcc_cv_gas_patch_version="0" ;;
20595 esac
20596 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20597                             + $gcc_cv_gas_minor_version \) \* 1000 \
20598                             + $gcc_cv_gas_patch_version`
20599
20600   in_tree_gas_is_elf=no
20601   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20602      || (grep 'obj_format = multi' ../gas/Makefile \
20603          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20604   then
20605     in_tree_gas_is_elf=yes
20606   fi
20607 else
20608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20609 $as_echo "$gcc_cv_as" >&6; }
20610   in_tree_gas=no
20611 fi
20612
20613 # Identify the linker which will work hand-in-glove with the newly
20614 # built GCC, so that we can examine its features.  This is the linker
20615 # which will be driven by the driver program.
20616 #
20617 # If build != host, and we aren't building gas in-tree, we identify a
20618 # build->target linker and hope that it will have the same features
20619 # as the host->target linker we'll be using.
20620 gcc_cv_gld_major_version=
20621 gcc_cv_gld_minor_version=
20622 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20623 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20624
20625 if test "${gcc_cv_ld+set}" = set; then :
20626
20627 else
20628
20629 if test -x "$DEFAULT_LINKER"; then
20630         gcc_cv_ld="$DEFAULT_LINKER"
20631 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20632      && test -f ../ld/Makefile \
20633      && test x$build = x$host; then
20634         gcc_cv_ld=../ld/ld-new$build_exeext
20635 elif test -x collect-ld$build_exeext; then
20636         # Build using linker in the current directory.
20637         gcc_cv_ld=./collect-ld$build_exeext
20638 elif test -x $LD_FOR_TARGET; then
20639         gcc_cv_ld="$LD_FOR_TARGET"
20640 else
20641         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20642 set dummy $LD_FOR_TARGET; ac_word=$2
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20644 $as_echo_n "checking for $ac_word... " >&6; }
20645 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20646   $as_echo_n "(cached) " >&6
20647 else
20648   case $gcc_cv_ld in
20649   [\\/]* | ?:[\\/]*)
20650   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20651   ;;
20652   *)
20653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20654 for as_dir in $PATH
20655 do
20656   IFS=$as_save_IFS
20657   test -z "$as_dir" && as_dir=.
20658     for ac_exec_ext in '' $ac_executable_extensions; do
20659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20660     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20662     break 2
20663   fi
20664 done
20665   done
20666 IFS=$as_save_IFS
20667
20668   ;;
20669 esac
20670 fi
20671 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20672 if test -n "$gcc_cv_ld"; then
20673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20674 $as_echo "$gcc_cv_ld" >&6; }
20675 else
20676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20677 $as_echo "no" >&6; }
20678 fi
20679
20680
20681 fi
20682 fi
20683
20684 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20685 PLUGIN_LD=`basename $gcc_cv_ld`
20686
20687 # Check whether --with-plugin-ld was given.
20688 if test "${with_plugin_ld+set}" = set; then :
20689   withval=$with_plugin_ld; if test x"$withval" != x; then
20690    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20691    PLUGIN_LD="$withval"
20692  fi
20693 fi
20694
20695
20696
20697 cat >>confdefs.h <<_ACEOF
20698 #define PLUGIN_LD "$PLUGIN_LD"
20699 _ACEOF
20700
20701
20702 # Check to see if we are using gold instead of ld
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20704 $as_echo_n "checking whether we are using gold... " >&6; }
20705 ld_is_gold=no
20706 if test x$gcc_cv_ld != x; then
20707   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
20708      | grep "GNU gold" > /dev/null; then
20709     ld_is_gold=yes
20710   fi
20711 fi
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20713 $as_echo "$ld_is_gold" >&6; }
20714
20715 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20716
20717 case "$ORIGINAL_LD_FOR_TARGET" in
20718   ./collect-ld | ./collect-ld$build_exeext) ;;
20719   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20720  ;;
20721 esac
20722
20723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20724 $as_echo_n "checking what linker to use... " >&6; }
20725 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20726         # Single tree build which includes ld.  We want to prefer it
20727         # over whatever linker top-level may have detected, since
20728         # we'll use what we're building after installation anyway.
20729         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20730 $as_echo "newly built ld" >&6; }
20731         in_tree_ld=yes
20732         in_tree_ld_is_elf=no
20733         if (grep 'EMUL = .*elf' ../ld/Makefile \
20734             || grep 'EMUL = .*linux' ../ld/Makefile \
20735             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20736           in_tree_ld_is_elf=yes
20737         fi
20738         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
20739         do
20740                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20741                 if test x$gcc_cv_gld_version != x; then
20742                         break
20743                 fi
20744         done
20745         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20746         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20747 else
20748         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20749 $as_echo "$gcc_cv_ld" >&6; }
20750         in_tree_ld=no
20751 fi
20752
20753 # Figure out what nm we will be using.
20754 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20755 if test "${gcc_cv_nm+set}" = set; then :
20756
20757 else
20758
20759 if test -f $gcc_cv_binutils_srcdir/configure.in \
20760      && test -f ../binutils/Makefile \
20761      && test x$build = x$host; then
20762         gcc_cv_nm=../binutils/nm-new$build_exeext
20763 elif test -x nm$build_exeext; then
20764         gcc_cv_nm=./nm$build_exeext
20765 elif test -x $NM_FOR_TARGET; then
20766         gcc_cv_nm="$NM_FOR_TARGET"
20767 else
20768         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20769 set dummy $NM_FOR_TARGET; ac_word=$2
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20771 $as_echo_n "checking for $ac_word... " >&6; }
20772 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20773   $as_echo_n "(cached) " >&6
20774 else
20775   case $gcc_cv_nm in
20776   [\\/]* | ?:[\\/]*)
20777   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20778   ;;
20779   *)
20780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20781 for as_dir in $PATH
20782 do
20783   IFS=$as_save_IFS
20784   test -z "$as_dir" && as_dir=.
20785     for ac_exec_ext in '' $ac_executable_extensions; do
20786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20787     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20789     break 2
20790   fi
20791 done
20792   done
20793 IFS=$as_save_IFS
20794
20795   ;;
20796 esac
20797 fi
20798 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20799 if test -n "$gcc_cv_nm"; then
20800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20801 $as_echo "$gcc_cv_nm" >&6; }
20802 else
20803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20804 $as_echo "no" >&6; }
20805 fi
20806
20807
20808 fi
20809 fi
20810
20811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20812 $as_echo_n "checking what nm to use... " >&6; }
20813 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20814         # Single tree build which includes binutils.
20815         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20816 $as_echo "newly built nm" >&6; }
20817         in_tree_nm=yes
20818 else
20819         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20820 $as_echo "$gcc_cv_nm" >&6; }
20821         in_tree_nm=no
20822 fi
20823
20824 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20825
20826 case "$ORIGINAL_NM_FOR_TARGET" in
20827   ./nm | ./nm$build_exeext) ;;
20828   *) ac_config_files="$ac_config_files nm:exec-tool.in"
20829  ;;
20830 esac
20831
20832
20833 # Figure out what objdump we will be using.
20834 if test "${gcc_cv_objdump+set}" = set; then :
20835
20836 else
20837
20838 if test -f $gcc_cv_binutils_srcdir/configure.in \
20839      && test -f ../binutils/Makefile \
20840      && test x$build = x$host; then
20841         # Single tree build which includes binutils.
20842         gcc_cv_objdump=../binutils/objdump$build_exeext
20843 elif test -x objdump$build_exeext; then
20844         gcc_cv_objdump=./objdump$build_exeext
20845 elif test -x $OBJDUMP_FOR_TARGET; then
20846         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20847 else
20848         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20849 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20851 $as_echo_n "checking for $ac_word... " >&6; }
20852 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20853   $as_echo_n "(cached) " >&6
20854 else
20855   case $gcc_cv_objdump in
20856   [\\/]* | ?:[\\/]*)
20857   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20858   ;;
20859   *)
20860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20861 for as_dir in $PATH
20862 do
20863   IFS=$as_save_IFS
20864   test -z "$as_dir" && as_dir=.
20865     for ac_exec_ext in '' $ac_executable_extensions; do
20866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20867     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20869     break 2
20870   fi
20871 done
20872   done
20873 IFS=$as_save_IFS
20874
20875   ;;
20876 esac
20877 fi
20878 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20879 if test -n "$gcc_cv_objdump"; then
20880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20881 $as_echo "$gcc_cv_objdump" >&6; }
20882 else
20883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20884 $as_echo "no" >&6; }
20885 fi
20886
20887
20888 fi
20889 fi
20890
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20892 $as_echo_n "checking what objdump to use... " >&6; }
20893 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20894         # Single tree build which includes binutils.
20895         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20896 $as_echo "newly built objdump" >&6; }
20897 elif test x$gcc_cv_objdump = x; then
20898         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20899 $as_echo "not found" >&6; }
20900 else
20901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20902 $as_echo "$gcc_cv_objdump" >&6; }
20903 fi
20904
20905 # Figure out what readelf we will be using.
20906 if test "${gcc_cv_readelf+set}" = set; then :
20907
20908 else
20909
20910 if test -f $gcc_cv_binutils_srcdir/configure.in \
20911      && test -f ../binutils/Makefile \
20912      && test x$build = x$host; then
20913         # Single tree build which includes binutils.
20914         gcc_cv_readelf=../binutils/readelf$build_exeext
20915 elif test -x readelf$build_exeext; then
20916         gcc_cv_readelf=./readelf$build_exeext
20917 else
20918         # Extract the first word of "readelf", so it can be a program name with args.
20919 set dummy readelf; ac_word=$2
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20921 $as_echo_n "checking for $ac_word... " >&6; }
20922 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20923   $as_echo_n "(cached) " >&6
20924 else
20925   case $gcc_cv_readelf in
20926   [\\/]* | ?:[\\/]*)
20927   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20928   ;;
20929   *)
20930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20931 for as_dir in $PATH
20932 do
20933   IFS=$as_save_IFS
20934   test -z "$as_dir" && as_dir=.
20935     for ac_exec_ext in '' $ac_executable_extensions; do
20936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20937     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20939     break 2
20940   fi
20941 done
20942   done
20943 IFS=$as_save_IFS
20944
20945   ;;
20946 esac
20947 fi
20948 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20949 if test -n "$gcc_cv_readelf"; then
20950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20951 $as_echo "$gcc_cv_readelf" >&6; }
20952 else
20953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20954 $as_echo "no" >&6; }
20955 fi
20956
20957
20958 fi
20959 fi
20960
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20962 $as_echo_n "checking what readelf to use... " >&6; }
20963 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20964         # Single tree build which includes binutils.
20965         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20966 $as_echo "newly built readelf" >&6; }
20967 elif test x$gcc_cv_readelf = x; then
20968         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20969 $as_echo "not found" >&6; }
20970 else
20971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20972 $as_echo "$gcc_cv_readelf" >&6; }
20973 fi
20974
20975 # Figure out what assembler alignment features are present.
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20977 $as_echo_n "checking assembler flags... " >&6; }
20978 if test "${gcc_cv_as_flags+set}" = set; then :
20979   $as_echo_n "(cached) " >&6
20980 else
20981    case "$target" in
20982   i[34567]86-*-linux*)
20983         gcc_cv_as_flags="--32"
20984     ;;
20985   *)
20986     gcc_cv_as_flags=" "
20987     ;;
20988   esac
20989 fi
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
20991 $as_echo "$gcc_cv_as_flags" >&6; }
20992
20993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20994 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20995 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20996   $as_echo_n "(cached) " >&6
20997 else
20998   gcc_cv_as_balign_and_p2align=no
20999     if test $in_tree_gas = yes; then
21000     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21001   then gcc_cv_as_balign_and_p2align=yes
21002 fi
21003   elif test x$gcc_cv_as != x; then
21004     echo '.balign 4
21005 .p2align 2' > conftest.s
21006     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21007   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21008   (eval $ac_try) 2>&5
21009   ac_status=$?
21010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21011   test $ac_status = 0; }; }
21012     then
21013         gcc_cv_as_balign_and_p2align=yes
21014     else
21015       echo "configure: failed program was" >&5
21016       cat conftest.s >&5
21017     fi
21018     rm -f conftest.o conftest.s
21019   fi
21020 fi
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21022 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21023 if test $gcc_cv_as_balign_and_p2align = yes; then
21024
21025 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21026
21027 fi
21028
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21030 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21031 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21032   $as_echo_n "(cached) " >&6
21033 else
21034   gcc_cv_as_max_skip_p2align=no
21035     if test $in_tree_gas = yes; then
21036     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21037   then gcc_cv_as_max_skip_p2align=yes
21038 fi
21039   elif test x$gcc_cv_as != x; then
21040     echo '.p2align 4,,7' > conftest.s
21041     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21042   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21043   (eval $ac_try) 2>&5
21044   ac_status=$?
21045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21046   test $ac_status = 0; }; }
21047     then
21048         gcc_cv_as_max_skip_p2align=yes
21049     else
21050       echo "configure: failed program was" >&5
21051       cat conftest.s >&5
21052     fi
21053     rm -f conftest.o conftest.s
21054   fi
21055 fi
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21057 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21058 if test $gcc_cv_as_max_skip_p2align = yes; then
21059
21060 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21061
21062 fi
21063
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21065 $as_echo_n "checking assembler for .literal16... " >&6; }
21066 if test "${gcc_cv_as_literal16+set}" = set; then :
21067   $as_echo_n "(cached) " >&6
21068 else
21069   gcc_cv_as_literal16=no
21070     if test $in_tree_gas = yes; then
21071     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21072   then gcc_cv_as_literal16=yes
21073 fi
21074   elif test x$gcc_cv_as != x; then
21075     echo '.literal16' > conftest.s
21076     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21077   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21078   (eval $ac_try) 2>&5
21079   ac_status=$?
21080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21081   test $ac_status = 0; }; }
21082     then
21083         gcc_cv_as_literal16=yes
21084     else
21085       echo "configure: failed program was" >&5
21086       cat conftest.s >&5
21087     fi
21088     rm -f conftest.o conftest.s
21089   fi
21090 fi
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21092 $as_echo "$gcc_cv_as_literal16" >&6; }
21093 if test $gcc_cv_as_literal16 = yes; then
21094
21095 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21096
21097 fi
21098
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21100 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21101 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21102   $as_echo_n "(cached) " >&6
21103 else
21104   gcc_cv_as_subsection_m1=no
21105     if test $in_tree_gas = yes; then
21106     if test $in_tree_gas_is_elf = yes \
21107   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21108   then gcc_cv_as_subsection_m1=yes
21109 fi
21110   elif test x$gcc_cv_as != x; then
21111     echo 'conftest_label1: .word 0
21112 .subsection -1
21113 conftest_label2: .word 0
21114 .previous' > conftest.s
21115     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21116   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21117   (eval $ac_try) 2>&5
21118   ac_status=$?
21119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21120   test $ac_status = 0; }; }
21121     then
21122         if test x$gcc_cv_nm != x; then
21123     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21124     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21125     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21126     then :
21127     else gcc_cv_as_subsection_m1=yes
21128     fi
21129     rm -f conftest.nm1 conftest.nm2
21130   fi
21131     else
21132       echo "configure: failed program was" >&5
21133       cat conftest.s >&5
21134     fi
21135     rm -f conftest.o conftest.s
21136   fi
21137 fi
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21139 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21140 if test $gcc_cv_as_subsection_m1 = yes; then
21141
21142 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21143
21144 fi
21145
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21147 $as_echo_n "checking assembler for .weak... " >&6; }
21148 if test "${gcc_cv_as_weak+set}" = set; then :
21149   $as_echo_n "(cached) " >&6
21150 else
21151   gcc_cv_as_weak=no
21152     if test $in_tree_gas = yes; then
21153     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21154   then gcc_cv_as_weak=yes
21155 fi
21156   elif test x$gcc_cv_as != x; then
21157     echo '      .weak foobar' > conftest.s
21158     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21159   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21160   (eval $ac_try) 2>&5
21161   ac_status=$?
21162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21163   test $ac_status = 0; }; }
21164     then
21165         gcc_cv_as_weak=yes
21166     else
21167       echo "configure: failed program was" >&5
21168       cat conftest.s >&5
21169     fi
21170     rm -f conftest.o conftest.s
21171   fi
21172 fi
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21174 $as_echo "$gcc_cv_as_weak" >&6; }
21175 if test $gcc_cv_as_weak = yes; then
21176
21177 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21178
21179 fi
21180
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21182 $as_echo_n "checking assembler for .weakref... " >&6; }
21183 if test "${gcc_cv_as_weakref+set}" = set; then :
21184   $as_echo_n "(cached) " >&6
21185 else
21186   gcc_cv_as_weakref=no
21187     if test $in_tree_gas = yes; then
21188     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21189   then gcc_cv_as_weakref=yes
21190 fi
21191   elif test x$gcc_cv_as != x; then
21192     echo '      .weakref foobar, barfnot' > conftest.s
21193     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21194   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21195   (eval $ac_try) 2>&5
21196   ac_status=$?
21197   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21198   test $ac_status = 0; }; }
21199     then
21200         gcc_cv_as_weakref=yes
21201     else
21202       echo "configure: failed program was" >&5
21203       cat conftest.s >&5
21204     fi
21205     rm -f conftest.o conftest.s
21206   fi
21207 fi
21208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21209 $as_echo "$gcc_cv_as_weakref" >&6; }
21210 if test $gcc_cv_as_weakref = yes; then
21211
21212 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21213
21214 fi
21215
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21217 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21218 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21219   $as_echo_n "(cached) " >&6
21220 else
21221   gcc_cv_as_nsubspa_comdat=no
21222     if test $in_tree_gas = yes; then
21223     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21224   then gcc_cv_as_nsubspa_comdat=yes
21225 fi
21226   elif test x$gcc_cv_as != x; then
21227     echo '      .SPACE $TEXT$
21228         .NSUBSPA $CODE$,COMDAT' > conftest.s
21229     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21230   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21231   (eval $ac_try) 2>&5
21232   ac_status=$?
21233   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21234   test $ac_status = 0; }; }
21235     then
21236         gcc_cv_as_nsubspa_comdat=yes
21237     else
21238       echo "configure: failed program was" >&5
21239       cat conftest.s >&5
21240     fi
21241     rm -f conftest.o conftest.s
21242   fi
21243 fi
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21245 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21246 if test $gcc_cv_as_nsubspa_comdat = yes; then
21247
21248 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21249
21250 fi
21251
21252 # .hidden needs to be supported in both the assembler and the linker,
21253 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21254 # This is irritatingly difficult to feature test for; we have to check the
21255 # date string after the version number.  If we've got an in-tree
21256 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21257 # to be safe.
21258 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21260 $as_echo_n "checking assembler for .hidden... " >&6; }
21261 if test "${gcc_cv_as_hidden+set}" = set; then :
21262   $as_echo_n "(cached) " >&6
21263 else
21264   gcc_cv_as_hidden=no
21265     if test $in_tree_gas = yes; then
21266     if test $in_tree_gas_is_elf = yes \
21267   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21268   then gcc_cv_as_hidden=yes
21269 fi
21270   elif test x$gcc_cv_as != x; then
21271     echo '      .hidden foobar
21272 foobar:' > conftest.s
21273     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21274   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21275   (eval $ac_try) 2>&5
21276   ac_status=$?
21277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21278   test $ac_status = 0; }; }
21279     then
21280
21281 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21282 # STV_HIDDEN, so disable .hidden support if so.
21283 case "${target}" in
21284   i?86-*-solaris2*)
21285     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21286       cat > conftest.s <<EOF
21287 .globl hidden
21288         .hidden hidden
21289 hidden:
21290 .globl default
21291         .set    default,hidden
21292 EOF
21293       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21294         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21295         grep '\.hidden default' > /dev/null; then
21296         gcc_cv_as_hidden=no
21297       else
21298         gcc_cv_as_hidden=yes
21299       fi
21300     else
21301       # Assume bug is present if objdump is missing.
21302       gcc_cv_as_hidden=no
21303     fi
21304     ;;
21305   *)
21306     gcc_cv_as_hidden=yes
21307     ;;
21308 esac
21309     else
21310       echo "configure: failed program was" >&5
21311       cat conftest.s >&5
21312     fi
21313     rm -f conftest.o conftest.s
21314   fi
21315 fi
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21317 $as_echo "$gcc_cv_as_hidden" >&6; }
21318
21319
21320 # gnu_indirect_function type is an extension proposed at
21321 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21322 # selection of function implementation
21323 # Check whether --enable-gnu-indirect-function was given.
21324 if test "${enable_gnu_indirect_function+set}" = set; then :
21325   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21326     yes | no) ;;
21327     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21328 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21329   esac
21330 else
21331   enable_gnu_indirect_function="$default_gnu_indirect_function"
21332 fi
21333
21334 if test x$enable_gnu_indirect_function = xyes; then
21335
21336 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21337
21338 fi
21339
21340 if test $in_tree_ld != yes ; then
21341   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21342   if test x"$ld_is_gold" = xyes; then
21343     gcc_cv_ld_hidden=yes
21344   elif echo "$ld_ver" | grep GNU > /dev/null; then
21345     ld_vers=`echo $ld_ver | sed -n \
21346         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21347     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'`
21348     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21349     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21350     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21351   else
21352     case "${target}" in
21353       *-*-solaris2*)
21354         #
21355         # Solaris 2 ld -V output looks like this for a regular version:
21356         #
21357         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21358         #
21359         # but test versions add stuff at the end:
21360         #
21361         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21362         #
21363         ld_ver=`$gcc_cv_ld -V 2>&1`
21364         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21365           ld_vers=`echo $ld_ver | sed -n \
21366             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21367           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21368           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21369         fi
21370         ;;
21371     esac
21372   fi
21373 fi
21374
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21376 $as_echo_n "checking linker for .hidden support... " >&6; }
21377 if test "${gcc_cv_ld_hidden+set}" = set; then :
21378   $as_echo_n "(cached) " >&6
21379 else
21380   if test $in_tree_ld = yes ; then
21381   gcc_cv_ld_hidden=no
21382   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 \
21383      && test $in_tree_ld_is_elf = yes; then
21384      gcc_cv_ld_hidden=yes
21385   fi
21386 else
21387   gcc_cv_ld_hidden=yes
21388   if echo "$ld_ver" | grep GNU > /dev/null; then
21389     if test 0"$ld_date" -lt 20020404; then
21390       if test -n "$ld_date"; then
21391         # If there was date string, but was earlier than 2002-04-04, fail
21392         gcc_cv_ld_hidden=no
21393       elif test -z "$ld_vers"; then
21394         # If there was no date string nor ld version number, something is wrong
21395         gcc_cv_ld_hidden=no
21396       else
21397         test -z "$ld_vers_patch" && ld_vers_patch=0
21398         if test "$ld_vers_major" -lt 2; then
21399           gcc_cv_ld_hidden=no
21400         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21401           gcc_cv_ld_hidden="no"
21402         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21403           gcc_cv_ld_hidden=no
21404         fi
21405       fi
21406     fi
21407   else
21408     case "${target}" in
21409       hppa64*-*-hpux* | ia64*-*-hpux*)
21410         gcc_cv_ld_hidden=yes
21411         ;;
21412       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21413         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21414         # .symbolic was only added in Solaris 9 12/02.
21415         gcc_cv_ld_hidden=yes
21416         ;;
21417       *)
21418         gcc_cv_ld_hidden=no
21419         ;;
21420     esac
21421   fi
21422 fi
21423 fi
21424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21425 $as_echo "$gcc_cv_ld_hidden" >&6; }
21426 libgcc_visibility=no
21427
21428
21429 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21430   libgcc_visibility=yes
21431
21432 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21433
21434 fi
21435
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21437 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21438 gcc_cv_ld_ro_rw_mix=unknown
21439 if test $in_tree_ld = yes ; then
21440   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 \
21441      && test $in_tree_ld_is_elf = yes; then
21442     gcc_cv_ld_ro_rw_mix=read-write
21443   fi
21444 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21445   echo '.section myfoosect, "a"' > conftest1.s
21446   echo '.section myfoosect, "aw"' > conftest2.s
21447   echo '.byte 1' >> conftest2.s
21448   echo '.section myfoosect, "a"' > conftest3.s
21449   echo '.byte 0' >> conftest3.s
21450   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21451      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21452      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21453      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21454         conftest2.o conftest3.o > /dev/null 2>&1; then
21455     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21456                          | sed -e '/myfoosect/!d' -e N`
21457     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21458       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21459         gcc_cv_ld_ro_rw_mix=read-only
21460       else
21461         gcc_cv_ld_ro_rw_mix=read-write
21462       fi
21463     fi
21464   fi
21465   rm -f conftest.* conftest[123].*
21466 fi
21467 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21468
21469 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21470
21471 fi
21472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21473 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21474
21475 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21477 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21478 if test "${gcc_cv_as_leb128+set}" = set; then :
21479   $as_echo_n "(cached) " >&6
21480 else
21481   gcc_cv_as_leb128=no
21482     if test $in_tree_gas = yes; then
21483     if test $in_tree_gas_is_elf = yes \
21484   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21485   then gcc_cv_as_leb128=yes
21486 fi
21487   elif test x$gcc_cv_as != x; then
21488     echo '      .data
21489         .uleb128 L2 - L1
21490 L1:
21491         .uleb128 1280
21492         .sleb128 -1010
21493 L2:' > conftest.s
21494     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21495   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21496   (eval $ac_try) 2>&5
21497   ac_status=$?
21498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21499   test $ac_status = 0; }; }
21500     then
21501         # GAS versions before 2.11 do not support uleb128,
21502   # despite appearing to.
21503   # ??? There exists an elf-specific test that will crash
21504   # the assembler.  Perhaps it's better to figure out whether
21505   # arbitrary sections are supported and try the test.
21506   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21507   if echo "$as_ver" | grep GNU > /dev/null; then
21508     as_vers=`echo $as_ver | sed -n \
21509         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21510     as_major=`expr "$as_vers" : '\([0-9]*\)'`
21511     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21512     if test $as_major -eq 2 && test $as_minor -lt 11
21513     then :
21514     else gcc_cv_as_leb128=yes
21515     fi
21516   fi
21517     else
21518       echo "configure: failed program was" >&5
21519       cat conftest.s >&5
21520     fi
21521     rm -f conftest.o conftest.s
21522   fi
21523 fi
21524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21525 $as_echo "$gcc_cv_as_leb128" >&6; }
21526 if test $gcc_cv_as_leb128 = yes; then
21527
21528 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21529
21530 fi
21531
21532 # Check if we have assembler support for unwind directives.
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21534 $as_echo_n "checking assembler for cfi directives... " >&6; }
21535 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21536   $as_echo_n "(cached) " >&6
21537 else
21538   gcc_cv_as_cfi_directive=no
21539   if test x$gcc_cv_as != x; then
21540     echo '      .text
21541         .cfi_startproc
21542         .cfi_offset 0, 0
21543         .cfi_same_value 1
21544         .cfi_def_cfa 1, 2
21545         .cfi_escape 1, 2, 3, 4, 5
21546         .cfi_endproc' > conftest.s
21547     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21548   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21549   (eval $ac_try) 2>&5
21550   ac_status=$?
21551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21552   test $ac_status = 0; }; }
21553     then
21554         case "$target" in
21555   *-*-solaris*)
21556     # If the linker used on Solaris (like Sun ld) isn't capable of merging
21557     # read-only and read-write sections, we need to make sure that the
21558     # assembler used emits read-write .eh_frame sections.
21559     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21560       if test "x$gcc_cv_objdump" != x; then
21561         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21562                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21563           gcc_cv_as_cfi_directive=no
21564         else
21565           case "$target" in
21566             i?86-*-solaris2.1[0-9]*)
21567               # On Solaris/x86, make sure that GCC and gas agree on using
21568               # read-only .eh_frame sections for 64-bit.
21569               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21570                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21571                         sed -e /.eh_frame/!d -e N | \
21572                         grep READONLY > /dev/null; then
21573                 gcc_cv_as_cfi_directive=yes
21574               else
21575                 gcc_cv_as_cfi_directive=no
21576               fi
21577               ;;
21578             *)
21579               gcc_cv_as_cfi_directive=yes
21580               ;;
21581           esac
21582         fi
21583       else
21584         # no objdump, err on the side of caution
21585         gcc_cv_as_cfi_directive=no
21586       fi
21587     else
21588       gcc_cv_as_cfi_directive=yes
21589     fi
21590     ;;
21591   *-*-*)
21592     gcc_cv_as_cfi_directive=yes
21593     ;;
21594 esac
21595     else
21596       echo "configure: failed program was" >&5
21597       cat conftest.s >&5
21598     fi
21599     rm -f conftest.o conftest.s
21600   fi
21601 fi
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21603 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21604
21605 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21607 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21608 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21609   $as_echo_n "(cached) " >&6
21610 else
21611   gcc_cv_as_cfi_advance_working=no
21612   if test x$gcc_cv_as != x; then
21613     echo '      .text
21614         .cfi_startproc
21615         .cfi_adjust_cfa_offset 64
21616         .skip 75040, 0
21617         .cfi_adjust_cfa_offset 128
21618         .cfi_endproc' > conftest.s
21619     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21620   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21621   (eval $ac_try) 2>&5
21622   ac_status=$?
21623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21624   test $ac_status = 0; }; }
21625     then
21626
21627 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
21628     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
21629    gcc_cv_as_cfi_advance_working=yes
21630 fi
21631
21632     else
21633       echo "configure: failed program was" >&5
21634       cat conftest.s >&5
21635     fi
21636     rm -f conftest.o conftest.s
21637   fi
21638 fi
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21640 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21641
21642 else
21643   # no objdump, err on the side of caution
21644   gcc_cv_as_cfi_advance_working=no
21645 fi
21646
21647
21648 cat >>confdefs.h <<_ACEOF
21649 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21650        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21651 _ACEOF
21652
21653
21654
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21656 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21657 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21658   $as_echo_n "(cached) " >&6
21659 else
21660   gcc_cv_as_cfi_personality_directive=no
21661   if test x$gcc_cv_as != x; then
21662     echo '      .text
21663         .cfi_startproc
21664         .cfi_personality 0, symbol
21665         .cfi_endproc' > conftest.s
21666     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21667   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21668   (eval $ac_try) 2>&5
21669   ac_status=$?
21670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21671   test $ac_status = 0; }; }
21672     then
21673         gcc_cv_as_cfi_personality_directive=yes
21674     else
21675       echo "configure: failed program was" >&5
21676       cat conftest.s >&5
21677     fi
21678     rm -f conftest.o conftest.s
21679   fi
21680 fi
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21682 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21683
21684
21685 cat >>confdefs.h <<_ACEOF
21686 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21687     then echo 1; else echo 0; fi`
21688 _ACEOF
21689
21690
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21692 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21693 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21694   $as_echo_n "(cached) " >&6
21695 else
21696   gcc_cv_as_cfi_sections_directive=no
21697   if test x$gcc_cv_as != x; then
21698     echo '      .text
21699         .cfi_sections .debug_frame, .eh_frame
21700         .cfi_startproc
21701         .cfi_endproc' > conftest.s
21702     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21703   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21704   (eval $ac_try) 2>&5
21705   ac_status=$?
21706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21707   test $ac_status = 0; }; }
21708     then
21709         case $target_os in
21710   win32 | pe | cygwin* | mingw32* | uwin*)
21711     # Need to check that we generated the correct relocation for the
21712     # .debug_frame section.  This was fixed for binutils 2.21.
21713     gcc_cv_as_cfi_sections_directive=no
21714     if test "x$gcc_cv_objdump" != x; then
21715      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
21716         grep secrel > /dev/null; then
21717       gcc_cv_as_cfi_sections_directive=yes
21718      fi
21719     fi
21720     ;;
21721   *)
21722     gcc_cv_as_cfi_sections_directive=yes
21723     ;;
21724 esac
21725     else
21726       echo "configure: failed program was" >&5
21727       cat conftest.s >&5
21728     fi
21729     rm -f conftest.o conftest.s
21730   fi
21731 fi
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21733 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21734
21735
21736
21737 cat >>confdefs.h <<_ACEOF
21738 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21739     then echo 1; else echo 0; fi`
21740 _ACEOF
21741
21742
21743 # GAS versions up to and including 2.11.0 may mis-optimize
21744 # .eh_frame data.
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21746 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21747 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21748   $as_echo_n "(cached) " >&6
21749 else
21750   gcc_cv_as_eh_frame=no
21751     if test $in_tree_gas = yes; then
21752     if test $in_tree_gas_is_elf = yes \
21753   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21754   then gcc_cv_as_eh_frame=yes
21755 fi
21756   elif test x$gcc_cv_as != x; then
21757     echo '      .text
21758 .LFB1:
21759         .4byte  0
21760 .L1:
21761         .4byte  0
21762 .LFE1:
21763         .section        .eh_frame,"aw",@progbits
21764 __FRAME_BEGIN__:
21765         .4byte  .LECIE1-.LSCIE1
21766 .LSCIE1:
21767         .4byte  0x0
21768         .byte   0x1
21769         .ascii "z\0"
21770         .byte   0x1
21771         .byte   0x78
21772         .byte   0x1a
21773         .byte   0x0
21774         .byte   0x4
21775         .4byte  1
21776         .p2align 1
21777 .LECIE1:
21778 .LSFDE1:
21779         .4byte  .LEFDE1-.LASFDE1
21780 .LASFDE1:
21781         .4byte  .LASFDE1-__FRAME_BEGIN__
21782         .4byte  .LFB1
21783         .4byte  .LFE1-.LFB1
21784         .byte   0x4
21785         .4byte  .LFE1-.LFB1
21786         .byte   0x4
21787         .4byte  .L1-.LFB1
21788 .LEFDE1:' > conftest.s
21789     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21790   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21791   (eval $ac_try) 2>&5
21792   ac_status=$?
21793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21794   test $ac_status = 0; }; }
21795     then
21796           cat > conftest.lit <<EOF
21797  0000 10000000 00000000 017a0001 781a0004  .........z..x...
21798  0010 01000000 12000000 18000000 00000000  ................
21799  0020 08000000 04080000 0044               .........D      
21800 EOF
21801 cat > conftest.big <<EOF
21802  0000 00000010 00000000 017a0001 781a0004  .........z..x...
21803  0010 00000001 00000012 00000018 00000000  ................
21804  0020 00000008 04000000 0844               .........D      
21805 EOF
21806   # If the assembler didn't choke, and we can objdump,
21807   # and we got the correct data, then succeed.
21808   # The text in the here-document typically retains its unix-style line
21809   # endings, while the output of objdump will use host line endings.
21810   # Therefore, use diff -b for the comparisons.
21811   if test x$gcc_cv_objdump != x \
21812   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21813      | tail -3 > conftest.got \
21814   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21815     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21816   then
21817     gcc_cv_as_eh_frame=yes
21818   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21819   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21820   (eval $ac_try) 2>&5
21821   ac_status=$?
21822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21823   test $ac_status = 0; }; }; then
21824     gcc_cv_as_eh_frame=buggy
21825   else
21826     # Uh oh, what do we do now?
21827     gcc_cv_as_eh_frame=no
21828   fi
21829     else
21830       echo "configure: failed program was" >&5
21831       cat conftest.s >&5
21832     fi
21833     rm -f conftest.o conftest.s
21834   fi
21835 fi
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21837 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21838
21839
21840 if test $gcc_cv_as_eh_frame = buggy; then
21841
21842 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21843
21844 fi
21845
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21847 $as_echo_n "checking assembler for section merging support... " >&6; }
21848 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21849   $as_echo_n "(cached) " >&6
21850 else
21851   gcc_cv_as_shf_merge=no
21852     if test $in_tree_gas = yes; then
21853     if test $in_tree_gas_is_elf = yes \
21854   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21855   then gcc_cv_as_shf_merge=yes
21856 fi
21857   elif test x$gcc_cv_as != x; then
21858     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21859     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21860   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21861   (eval $ac_try) 2>&5
21862   ac_status=$?
21863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21864   test $ac_status = 0; }; }
21865     then
21866         gcc_cv_as_shf_merge=yes
21867     else
21868       echo "configure: failed program was" >&5
21869       cat conftest.s >&5
21870     fi
21871     rm -f conftest.o conftest.s
21872   fi
21873 fi
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21875 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21876
21877 if test $gcc_cv_as_shf_merge = no; then
21878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21879 $as_echo_n "checking assembler for section merging support... " >&6; }
21880 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21881   $as_echo_n "(cached) " >&6
21882 else
21883   gcc_cv_as_shf_merge=no
21884     if test $in_tree_gas = yes; then
21885     if test $in_tree_gas_is_elf = yes \
21886   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21887   then gcc_cv_as_shf_merge=yes
21888 fi
21889   elif test x$gcc_cv_as != x; then
21890     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21891     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21892   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21893   (eval $ac_try) 2>&5
21894   ac_status=$?
21895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21896   test $ac_status = 0; }; }
21897     then
21898         gcc_cv_as_shf_merge=yes
21899     else
21900       echo "configure: failed program was" >&5
21901       cat conftest.s >&5
21902     fi
21903     rm -f conftest.o conftest.s
21904   fi
21905 fi
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21907 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21908
21909 fi
21910
21911 cat >>confdefs.h <<_ACEOF
21912 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21913 _ACEOF
21914
21915
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21917 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21918 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21919   $as_echo_n "(cached) " >&6
21920 else
21921   gcc_cv_as_comdat_group=no
21922     if test $in_tree_gas = yes; then
21923     if test $in_tree_gas_is_elf = yes \
21924   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21925   then gcc_cv_as_comdat_group=yes
21926 fi
21927   elif test x$gcc_cv_as != x; then
21928     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21929     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21930   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21931   (eval $ac_try) 2>&5
21932   ac_status=$?
21933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21934   test $ac_status = 0; }; }
21935     then
21936         gcc_cv_as_comdat_group=yes
21937     else
21938       echo "configure: failed program was" >&5
21939       cat conftest.s >&5
21940     fi
21941     rm -f conftest.o conftest.s
21942   fi
21943 fi
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21945 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21946
21947 if test $gcc_cv_as_comdat_group = yes; then
21948   gcc_cv_as_comdat_group_percent=no
21949 else
21950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21951 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21952 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21953   $as_echo_n "(cached) " >&6
21954 else
21955   gcc_cv_as_comdat_group_percent=no
21956     if test $in_tree_gas = yes; then
21957     if test $in_tree_gas_is_elf = yes \
21958   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21959   then gcc_cv_as_comdat_group_percent=yes
21960 fi
21961   elif test x$gcc_cv_as != x; then
21962     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21963     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21964   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21965   (eval $ac_try) 2>&5
21966   ac_status=$?
21967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21968   test $ac_status = 0; }; }
21969     then
21970         gcc_cv_as_comdat_group_percent=yes
21971     else
21972       echo "configure: failed program was" >&5
21973       cat conftest.s >&5
21974     fi
21975     rm -f conftest.o conftest.s
21976   fi
21977 fi
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21979 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21980
21981 fi
21982 if test x"$ld_is_gold" = xyes; then
21983   comdat_group=yes
21984 elif test $in_tree_ld = yes ; then
21985   comdat_group=no
21986   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 \
21987      && test $in_tree_ld_is_elf = yes; then
21988      comdat_group=yes
21989   fi
21990 elif echo "$ld_ver" | grep GNU > /dev/null; then
21991   comdat_group=yes
21992   if test 0"$ld_date" -lt 20050308; then
21993     if test -n "$ld_date"; then
21994       # If there was date string, but was earlier than 2005-03-08, fail
21995       comdat_group=no
21996     elif test "$ld_vers_major" -lt 2; then
21997       comdat_group=no
21998     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21999       comdat_group=no
22000     fi
22001   fi
22002 else
22003   case "${target}" in
22004     *-*-solaris2.1[1-9]*)
22005       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22006       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22007       # version 1.688.
22008       #
22009       # FIXME: Maybe need to refine later when COMDAT group support with
22010       # Sun as is implemented.
22011       if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
22012         comdat_group=yes
22013       else
22014         comdat_group=no
22015       fi
22016       ;;
22017     *)
22018       # Assume linkers other than GNU ld don't support COMDAT group.
22019       comdat_group=no
22020       ;;
22021   esac
22022 fi
22023 # Allow overriding the automatic COMDAT group tests above.
22024 # Check whether --enable-comdat was given.
22025 if test "${enable_comdat+set}" = set; then :
22026   enableval=$enable_comdat; comdat_group="$enable_comdat"
22027 fi
22028
22029 if test $comdat_group = no; then
22030   gcc_cv_as_comdat_group=no
22031   gcc_cv_as_comdat_group_percent=no
22032 fi
22033
22034 cat >>confdefs.h <<_ACEOF
22035 #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`
22036 _ACEOF
22037
22038
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22040 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22041 if test "${gcc_cv_as_discriminator+set}" = set; then :
22042   $as_echo_n "(cached) " >&6
22043 else
22044   gcc_cv_as_discriminator=no
22045     if test $in_tree_gas = yes; then
22046     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22047   then gcc_cv_as_discriminator=yes
22048 fi
22049   elif test x$gcc_cv_as != x; then
22050     echo '      .text
22051         .file 1 "conf.c"
22052         .loc 1 1 0 discriminator 1' > conftest.s
22053     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22054   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22055   (eval $ac_try) 2>&5
22056   ac_status=$?
22057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22058   test $ac_status = 0; }; }
22059     then
22060         gcc_cv_as_discriminator=yes
22061     else
22062       echo "configure: failed program was" >&5
22063       cat conftest.s >&5
22064     fi
22065     rm -f conftest.o conftest.s
22066   fi
22067 fi
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22069 $as_echo "$gcc_cv_as_discriminator" >&6; }
22070 if test $gcc_cv_as_discriminator = yes; then
22071
22072 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22073
22074 fi
22075
22076 # Thread-local storage - the check is heavily parameterized.
22077 conftest_s=
22078 tls_first_major=
22079 tls_first_minor=
22080 tls_as_opt=
22081 case "$target" in
22082   alpha*-*-*)
22083     conftest_s='
22084         .section ".tdata","awT",@progbits
22085 foo:    .long   25
22086         .text
22087         ldq     $27,__tls_get_addr($29)         !literal!1
22088         lda     $16,foo($29)                    !tlsgd!1
22089         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
22090         ldq     $27,__tls_get_addr($29)         !literal!2
22091         lda     $16,foo($29)                    !tlsldm!2
22092         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
22093         ldq     $1,foo($29)                     !gotdtprel
22094         ldah    $2,foo($29)                     !dtprelhi
22095         lda     $3,foo($2)                      !dtprello
22096         lda     $4,foo($29)                     !dtprel
22097         ldq     $1,foo($29)                     !gottprel
22098         ldah    $2,foo($29)                     !tprelhi
22099         lda     $3,foo($2)                      !tprello
22100         lda     $4,foo($29)                     !tprel'
22101         tls_first_major=2
22102         tls_first_minor=13
22103         tls_as_opt=--fatal-warnings
22104         ;;
22105   cris-*-*|crisv32-*-*)
22106     conftest_s='
22107         .section ".tdata","awT",@progbits
22108 x:      .long   25
22109         .text
22110         move.d x:IE,$r10
22111         nop'
22112         tls_first_major=2
22113         tls_first_minor=20
22114         tls_as_opt=--fatal-warnings
22115         ;;
22116   frv*-*-*)
22117     conftest_s='
22118         .section ".tdata","awT",@progbits
22119 x:      .long   25
22120         .text
22121         call    #gettlsoff(x)'
22122         tls_first_major=2
22123         tls_first_minor=14
22124         ;;
22125   hppa*-*-linux*)
22126     conftest_s='
22127 t1:     .reg    %r20
22128 t2:     .reg    %r21
22129 gp:     .reg    %r19
22130         .section ".tdata","awT",@progbits
22131 foo:    .long   25
22132         .text
22133         .align  4
22134         addil LT%foo-$tls_gdidx$,gp
22135         ldo RT%foo-$tls_gdidx$(%r1),%arg0
22136         b __tls_get_addr
22137         nop
22138         addil LT%foo-$tls_ldidx$,gp
22139         b __tls_get_addr
22140         ldo RT%foo-$tls_ldidx$(%r1),%arg0
22141         addil LR%foo-$tls_dtpoff$,%ret0
22142         ldo RR%foo-$tls_dtpoff$(%r1),%t1
22143         mfctl %cr27,%t1
22144         addil LT%foo-$tls_ieoff$,gp
22145         ldw RT%foo-$tls_ieoff$(%r1),%t2
22146         add %t1,%t2,%t3
22147         mfctl %cr27,%t1
22148         addil LR%foo-$tls_leoff$,%t1
22149         ldo RR%foo-$tls_leoff$(%r1),%t2'
22150         tls_first_major=2
22151         tls_first_minor=15
22152         tls_as_opt=--fatal-warnings
22153         ;;
22154   arm*-*-*)
22155     conftest_s='
22156         .section ".tdata","awT",%progbits
22157 foo:    .long   25
22158         .text
22159 .word foo(gottpoff)
22160 .word foo(tpoff)
22161 .word foo(tlsgd)
22162 .word foo(tlsldm)
22163 .word foo(tlsldo)'
22164         tls_first_major=2
22165         tls_first_minor=17
22166         ;;
22167   i[34567]86-*-*)
22168     case "$target" in
22169       i[34567]86-*-solaris2.*)
22170         on_solaris=yes
22171         tga_func=___tls_get_addr
22172         ;;
22173       *)
22174         on_solaris=no
22175         ;;
22176     esac
22177     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22178       conftest_s='
22179         .section .tdata,"awt",@progbits'
22180       tls_first_major=0
22181       tls_first_minor=0
22182
22183 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22184
22185     else
22186       conftest_s='
22187         .section ".tdata","awT",@progbits'
22188       tls_first_major=2
22189       tls_first_minor=14
22190       tls_as_opt="--fatal-warnings"
22191     fi
22192     conftest_s="$conftest_s
22193 foo:    .long   25
22194         .text
22195         movl    %gs:0, %eax
22196         leal    foo@tlsgd(,%ebx,1), %eax
22197         leal    foo@tlsldm(%ebx), %eax
22198         leal    foo@dtpoff(%eax), %edx
22199         movl    foo@gottpoff(%ebx), %eax
22200         subl    foo@gottpoff(%ebx), %eax
22201         addl    foo@gotntpoff(%ebx), %eax
22202         movl    foo@indntpoff, %eax
22203         movl    \$foo@tpoff, %eax
22204         subl    \$foo@tpoff, %eax
22205         leal    foo@ntpoff(%ecx), %eax"
22206     ;;
22207   x86_64-*-*)
22208     conftest_s='
22209         .section ".tdata","awT",@progbits
22210 foo:    .long   25
22211         .text
22212         movq    %fs:0, %rax
22213         leaq    foo@TLSGD(%rip), %rdi
22214         leaq    foo@TLSLD(%rip), %rdi
22215         leaq    foo@DTPOFF(%rax), %rdx
22216         movq    foo@GOTTPOFF(%rip), %rax
22217         movq    $foo@TPOFF, %rax'
22218         tls_first_major=2
22219         tls_first_minor=14
22220         tls_as_opt=--fatal-warnings
22221         ;;
22222   ia64-*-*)
22223     conftest_s='
22224         .section ".tdata","awT",@progbits
22225 foo:    data8   25
22226         .text
22227         addl    r16 = @ltoff(@dtpmod(foo#)), gp
22228         addl    r17 = @ltoff(@dtprel(foo#)), gp
22229         addl    r18 = @ltoff(@tprel(foo#)), gp
22230         addl    r19 = @dtprel(foo#), gp
22231         adds    r21 = @dtprel(foo#), r13
22232         movl    r23 = @dtprel(foo#)
22233         addl    r20 = @tprel(foo#), gp
22234         adds    r22 = @tprel(foo#), r13
22235         movl    r24 = @tprel(foo#)'
22236         tls_first_major=2
22237         tls_first_minor=13
22238         tls_as_opt=--fatal-warnings
22239         ;;
22240   mips*-*-*)
22241     conftest_s='
22242         .section .tdata,"awT",@progbits
22243 x:
22244         .word 2
22245         .text
22246         addiu $4, $28, %tlsgd(x)
22247         addiu $4, $28, %tlsldm(x)
22248         lui $4, %dtprel_hi(x)
22249         addiu $4, $4, %dtprel_lo(x)
22250         lw $4, %gottprel(x)($28)
22251         lui $4, %tprel_hi(x)
22252         addiu $4, $4, %tprel_lo(x)'
22253         tls_first_major=2
22254         tls_first_minor=16
22255         tls_as_opt='-32 --fatal-warnings'
22256         ;;
22257   m68k-*-*)
22258     conftest_s='
22259         .section .tdata,"awT",@progbits
22260 x:
22261         .word 2
22262         .text
22263 foo:
22264         move.l x@TLSGD(%a5),%a0
22265         move.l x@TLSLDM(%a5),%a0
22266         move.l x@TLSLDO(%a5),%a0
22267         move.l x@TLSIE(%a5),%a0
22268         move.l x@TLSLE(%a5),%a0'
22269         tls_first_major=2
22270         tls_first_minor=19
22271         tls_as_opt='--fatal-warnings'
22272         ;;
22273   powerpc-*-*)
22274     conftest_s='
22275         .section ".tdata","awT",@progbits
22276         .align 2
22277 ld0:    .space 4
22278 ld1:    .space 4
22279 x1:     .space 4
22280 x2:     .space 4
22281 x3:     .space 4
22282         .text
22283         addi 3,31,ld0@got@tlsgd
22284         bl __tls_get_addr
22285         addi 3,31,x1@got@tlsld
22286         bl __tls_get_addr
22287         addi 9,3,x1@dtprel
22288         addis 9,3,x2@dtprel@ha
22289         addi 9,9,x2@dtprel@l
22290         lwz 9,x3@got@tprel(31)
22291         add 9,9,x@tls
22292         addi 9,2,x1@tprel
22293         addis 9,2,x2@tprel@ha
22294         addi 9,9,x2@tprel@l'
22295         tls_first_major=2
22296         tls_first_minor=14
22297         tls_as_opt="-a32 --fatal-warnings"
22298         ;;
22299   powerpc64-*-*)
22300     conftest_s='
22301         .section ".tdata","awT",@progbits
22302         .align 3
22303 ld0:    .space 8
22304 ld1:    .space 8
22305 x1:     .space 8
22306 x2:     .space 8
22307 x3:     .space 8
22308         .text
22309         addi 3,2,ld0@got@tlsgd
22310         bl .__tls_get_addr
22311         nop
22312         addi 3,2,ld1@toc
22313         bl .__tls_get_addr
22314         nop
22315         addi 3,2,x1@got@tlsld
22316         bl .__tls_get_addr
22317         nop
22318         addi 9,3,x1@dtprel
22319         bl .__tls_get_addr
22320         nop
22321         addis 9,3,x2@dtprel@ha
22322         addi 9,9,x2@dtprel@l
22323         bl .__tls_get_addr
22324         nop
22325         ld 9,x3@got@dtprel(2)
22326         add 9,9,3
22327         bl .__tls_get_addr
22328         nop'
22329         tls_first_major=2
22330         tls_first_minor=14
22331         tls_as_opt="-a64 --fatal-warnings"
22332         ;;
22333   s390-*-*)
22334     conftest_s='
22335         .section ".tdata","awT",@progbits
22336 foo:    .long   25
22337         .text
22338         .long   foo@TLSGD
22339         .long   foo@TLSLDM
22340         .long   foo@DTPOFF
22341         .long   foo@NTPOFF
22342         .long   foo@GOTNTPOFF
22343         .long   foo@INDNTPOFF
22344         l       %r1,foo@GOTNTPOFF(%r12)
22345         l       %r1,0(%r1):tls_load:foo
22346         bas     %r14,0(%r1,%r13):tls_gdcall:foo
22347         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
22348         tls_first_major=2
22349         tls_first_minor=14
22350         tls_as_opt="-m31 --fatal-warnings"
22351         ;;
22352   s390x-*-*)
22353     conftest_s='
22354         .section ".tdata","awT",@progbits
22355 foo:    .long   25
22356         .text
22357         .quad   foo@TLSGD
22358         .quad   foo@TLSLDM
22359         .quad   foo@DTPOFF
22360         .quad   foo@NTPOFF
22361         .quad   foo@GOTNTPOFF
22362         lg      %r1,foo@GOTNTPOFF(%r12)
22363         larl    %r1,foo@INDNTPOFF
22364         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
22365         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22366         tls_first_major=2
22367         tls_first_minor=14
22368         tls_as_opt="-m64 -Aesame --fatal-warnings"
22369         ;;
22370   sh-*-* | sh[34]-*-*)
22371     conftest_s='
22372         .section ".tdata","awT",@progbits
22373 foo:    .long   25
22374         .text
22375         .long   foo@TLSGD
22376         .long   foo@TLSLDM
22377         .long   foo@DTPOFF
22378         .long   foo@GOTTPOFF
22379         .long   foo@TPOFF'
22380         tls_first_major=2
22381         tls_first_minor=13
22382         tls_as_opt=--fatal-warnings
22383         ;;
22384   sparc*-*-*)
22385     case "$target" in
22386       sparc*-sun-solaris2.*)
22387         on_solaris=yes
22388         tga_func=__tls_get_addr
22389         ;;
22390       *)
22391         on_solaris=no
22392         ;;
22393     esac
22394     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22395       conftest_s='
22396         .section ".tdata",#alloc,#write,#tls'
22397         tls_first_major=0
22398         tls_first_minor=0
22399     else
22400       conftest_s='
22401         .section ".tdata","awT",@progbits'
22402         tls_first_major=2
22403         tls_first_minor=14
22404         tls_as_opt="-32 --fatal-warnings"
22405     fi
22406     conftest_s="$conftest_s
22407 foo:    .long   25
22408         .text
22409         sethi   %tgd_hi22(foo), %o0
22410         add     %o0, %tgd_lo10(foo), %o1
22411         add     %l7, %o1, %o0, %tgd_add(foo)
22412         call    __tls_get_addr, %tgd_call(foo)
22413         sethi   %tldm_hi22(foo), %l1
22414         add     %l1, %tldm_lo10(foo), %l2
22415         add     %l7, %l2, %o0, %tldm_add(foo)
22416         call    __tls_get_addr, %tldm_call(foo)
22417         sethi   %tldo_hix22(foo), %l3
22418         xor     %l3, %tldo_lox10(foo), %l4
22419         add     %o0, %l4, %l5, %tldo_add(foo)
22420         sethi   %tie_hi22(foo), %o3
22421         add     %o3, %tie_lo10(foo), %o3
22422         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22423         add     %g7, %o2, %o4, %tie_add(foo)
22424         sethi   %tle_hix22(foo), %l1
22425         xor     %l1, %tle_lox10(foo), %o5
22426         ld      [%g7 + %o5], %o1"
22427         ;;
22428   xtensa*-*-*)
22429     conftest_s='
22430         .section ".tdata","awT",@progbits
22431 foo:    .long   25
22432         .text
22433         movi    a8, foo@TLSFUNC
22434         movi    a10, foo@TLSARG
22435         callx8.tls a8, foo@TLSCALL'
22436         tls_first_major=2
22437         tls_first_minor=19
22438         ;;
22439 esac
22440 set_have_as_tls=no
22441 if test "x$enable_tls" = xno ; then
22442   : # TLS explicitly disabled.
22443 elif test "x$enable_tls" = xyes ; then
22444   set_have_as_tls=yes # TLS explicitly enabled.
22445 elif test -z "$tls_first_major"; then
22446   : # If we don't have a check, assume no support.
22447 else
22448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22449 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22450 if test "${gcc_cv_as_tls+set}" = set; then :
22451   $as_echo_n "(cached) " >&6
22452 else
22453   gcc_cv_as_tls=no
22454     if test $in_tree_gas = yes; then
22455     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22456   then gcc_cv_as_tls=yes
22457 fi
22458   elif test x$gcc_cv_as != x; then
22459     echo "$conftest_s" > conftest.s
22460     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22461   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22462   (eval $ac_try) 2>&5
22463   ac_status=$?
22464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22465   test $ac_status = 0; }; }
22466     then
22467         gcc_cv_as_tls=yes
22468     else
22469       echo "configure: failed program was" >&5
22470       cat conftest.s >&5
22471     fi
22472     rm -f conftest.o conftest.s
22473   fi
22474 fi
22475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22476 $as_echo "$gcc_cv_as_tls" >&6; }
22477 if test $gcc_cv_as_tls = yes; then
22478   set_have_as_tls=yes
22479 fi
22480 fi
22481 case "$target" in
22482   # TLS was introduced in the Solaris 9 FCS release and backported to
22483   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
22484   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22485   # ld and GCC don't support any longer.
22486   *-*-solaris2.*)
22487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22488 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22489     ld_tls_support=no
22490     # Check ld and ld.so.1 TLS support.
22491     if echo "$ld_ver" | grep GNU > /dev/null; then
22492       # Assume all interesting versions of GNU ld have TLS support.
22493       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22494       ld_tls_support=yes
22495     else
22496       case "$target" in
22497         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22498         i?86-*-solaris2.8)
22499           min_tls_ld_vers_minor=280
22500           ;;
22501         # Solaris 8/SPARC ld has TLS support since version 1.272.
22502         sparc*-*-solaris2.8)
22503           min_tls_ld_vers_minor=272
22504           ;;
22505         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22506         i?86-*-solaris2.9)
22507           min_tls_ld_vers_minor=374
22508           ;;
22509         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22510         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22511           min_tls_ld_vers_minor=343
22512           ;;
22513       esac
22514       if test "$ls_vers_major" -gt 1 || \
22515         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22516         ld_tls_support=yes
22517       else
22518         set_have_as_tls=no
22519       fi
22520     fi
22521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22522 $as_echo "$ld_tls_support" >&6; }
22523
22524     save_LIBS="$LIBS"
22525     save_LDFLAGS="$LDFLAGS"
22526     LIBS=
22527     LDFLAGS=
22528
22529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22530 $as_echo_n "checking alternate thread library... " >&6; }
22531     case "$target" in
22532       # TLS support was backported to Solaris 8 patches, but only lives in
22533       # the alternate thread library which became the default in Solaris 9.
22534       # We want to always use that, irrespective of TLS support.
22535       *-*-solaris2.8)
22536         # Take multilib subdir into account.  There's no spec to handle
22537         # this.  The 64 symlink exists since Solaris 8.
22538         lwp_dir=/usr/lib/lwp
22539         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22540         LDFLAGS="-L$lwp_dir -R$lwp_dir"
22541         ;;
22542       *-*-solaris2*)
22543         lwp_dir="none"
22544         lwp_spec=""
22545         ;;
22546     esac
22547     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22548
22549 cat >>confdefs.h <<_ACEOF
22550 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22551 _ACEOF
22552
22553     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22554 $as_echo "$lwp_dir" >&6; }
22555
22556     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22557 $as_echo_n "checking library containing $tga_func... " >&6; }
22558     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22559     # (32-bit x86) only lived in libthread, so check for that.  Keep
22560     # set_have_as_tls if found, disable if not.
22561     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22563 $as_echo_n "checking for library containing $tga_func... " >&6; }
22564 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22565   $as_echo_n "(cached) " >&6
22566 else
22567   ac_func_search_save_LIBS=$LIBS
22568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22569 /* end confdefs.h.  */
22570
22571 /* Override any GCC internal prototype to avoid an error.
22572    Use char because int might match the return type of a GCC
22573    builtin and then its argument prototype would still apply.  */
22574 #ifdef __cplusplus
22575 extern "C"
22576 #endif
22577 char $tga_func ();
22578 int
22579 main ()
22580 {
22581 return $tga_func ();
22582   ;
22583   return 0;
22584 }
22585 _ACEOF
22586 for ac_lib in '' thread; do
22587   if test -z "$ac_lib"; then
22588     ac_res="none required"
22589   else
22590     ac_res=-l$ac_lib
22591     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22592   fi
22593   if ac_fn_c_try_link "$LINENO"; then :
22594   eval "$as_ac_Search=\$ac_res"
22595 fi
22596 rm -f core conftest.err conftest.$ac_objext \
22597     conftest$ac_exeext
22598   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22599   break
22600 fi
22601 done
22602 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22603
22604 else
22605   eval "$as_ac_Search=no"
22606 fi
22607 rm conftest.$ac_ext
22608 LIBS=$ac_func_search_save_LIBS
22609 fi
22610 eval ac_res=\$$as_ac_Search
22611                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22612 $as_echo "$ac_res" >&6; }
22613 eval ac_res=\$$as_ac_Search
22614 if test "$ac_res" != no; then :
22615   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22616
22617 else
22618   set_have_as_tls=no
22619 fi
22620
22621     # Clear LIBS if we cannot support TLS.
22622     if test $set_have_as_tls = no; then
22623       LIBS=
22624     fi
22625     # Always define LIB_TLS_SPEC, even without TLS support.
22626
22627 cat >>confdefs.h <<_ACEOF
22628 #define LIB_TLS_SPEC "$LIBS"
22629 _ACEOF
22630
22631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
22632 $as_echo "$LIBS" >&6; }
22633
22634     LIBS="$save_LIBS"
22635     LDFLAGS="$save_LDFLAGS"
22636     ;;
22637 esac
22638 if test $set_have_as_tls = yes ; then
22639
22640 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22641
22642 fi
22643
22644 # Target-specific assembler checks.
22645
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22647 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22648 gcc_cv_ld_static_dynamic=no
22649 if test $in_tree_ld = yes ; then
22650   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
22651     gcc_cv_ld_static_dynamic=yes
22652   fi
22653 elif test x$gcc_cv_ld != x; then
22654         # Check if linker supports -Bstatic/-Bdynamic option
22655         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22656           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22657                 gcc_cv_ld_static_dynamic=yes
22658         fi
22659 fi
22660 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22661
22662 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22663
22664 fi
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22666 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22667
22668 if test x"$demangler_in_ld" = xyes; then
22669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22670 $as_echo_n "checking linker --demangle support... " >&6; }
22671   gcc_cv_ld_demangle=no
22672   if test $in_tree_ld = yes; then
22673     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 \
22674       gcc_cv_ld_demangle=yes
22675     fi
22676   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22677     # Check if the GNU linker supports --demangle option
22678     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22679       gcc_cv_ld_demangle=yes
22680     fi
22681   fi
22682   if test x"$gcc_cv_ld_demangle" = xyes; then
22683
22684 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22685
22686   fi
22687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22688 $as_echo "$gcc_cv_ld_demangle" >&6; }
22689 fi
22690
22691 case "$target" in
22692   # All TARGET_ABI_OSF targets.
22693   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22695 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22696 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22697   $as_echo_n "(cached) " >&6
22698 else
22699   gcc_cv_as_alpha_explicit_relocs=no
22700     if test $in_tree_gas = yes; then
22701     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22702   then gcc_cv_as_alpha_explicit_relocs=yes
22703 fi
22704   elif test x$gcc_cv_as != x; then
22705     echo '      .set nomacro
22706         .text
22707         extbl   $3, $2, $3      !lituse_bytoff!1
22708         ldq     $2, a($29)      !literal!1
22709         ldq     $4, b($29)      !literal!2
22710         ldq_u   $3, 0($2)       !lituse_base!1
22711         ldq     $27, f($29)     !literal!5
22712         jsr     $26, ($27), f   !lituse_jsr!5
22713         ldah    $29, 0($26)     !gpdisp!3
22714         lda     $0, c($29)      !gprel
22715         ldah    $1, d($29)      !gprelhigh
22716         lda     $1, d($1)       !gprellow
22717         lda     $29, 0($29)     !gpdisp!3' > conftest.s
22718     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22719   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22720   (eval $ac_try) 2>&5
22721   ac_status=$?
22722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22723   test $ac_status = 0; }; }
22724     then
22725         gcc_cv_as_alpha_explicit_relocs=yes
22726     else
22727       echo "configure: failed program was" >&5
22728       cat conftest.s >&5
22729     fi
22730     rm -f conftest.o conftest.s
22731   fi
22732 fi
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22734 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22735 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22736
22737 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22738
22739 fi
22740     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22741 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22742 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22743   $as_echo_n "(cached) " >&6
22744 else
22745   gcc_cv_as_alpha_jsrdirect_relocs=no
22746     if test $in_tree_gas = yes; then
22747     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22748   then gcc_cv_as_alpha_jsrdirect_relocs=yes
22749 fi
22750   elif test x$gcc_cv_as != x; then
22751     echo '      .set nomacro
22752         .text
22753         ldq     $27, a($29)     !literal!1
22754         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
22755     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22756   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22757   (eval $ac_try) 2>&5
22758   ac_status=$?
22759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22760   test $ac_status = 0; }; }
22761     then
22762         gcc_cv_as_alpha_jsrdirect_relocs=yes
22763     else
22764       echo "configure: failed program was" >&5
22765       cat conftest.s >&5
22766     fi
22767     rm -f conftest.o conftest.s
22768   fi
22769 fi
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22771 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22772 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22773
22774 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22775
22776 fi
22777     ;;
22778
22779   cris-*-*)
22780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22781 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22782 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22783   $as_echo_n "(cached) " >&6
22784 else
22785   gcc_cv_as_cris_no_mul_bug=no
22786     if test $in_tree_gas = yes; then
22787     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22788   then gcc_cv_as_cris_no_mul_bug=yes
22789 fi
22790   elif test x$gcc_cv_as != x; then
22791     echo '.text' > conftest.s
22792     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22793   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22794   (eval $ac_try) 2>&5
22795   ac_status=$?
22796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22797   test $ac_status = 0; }; }
22798     then
22799         gcc_cv_as_cris_no_mul_bug=yes
22800     else
22801       echo "configure: failed program was" >&5
22802       cat conftest.s >&5
22803     fi
22804     rm -f conftest.o conftest.s
22805   fi
22806 fi
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22808 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22809 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22810
22811 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22812
22813 fi
22814     ;;
22815
22816   sparc*-*-*)
22817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22818 $as_echo_n "checking assembler for .register... " >&6; }
22819 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22820   $as_echo_n "(cached) " >&6
22821 else
22822   gcc_cv_as_sparc_register_op=no
22823   if test x$gcc_cv_as != x; then
22824     echo '.register %g2, #scratch' > conftest.s
22825     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22826   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22827   (eval $ac_try) 2>&5
22828   ac_status=$?
22829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22830   test $ac_status = 0; }; }
22831     then
22832         gcc_cv_as_sparc_register_op=yes
22833     else
22834       echo "configure: failed program was" >&5
22835       cat conftest.s >&5
22836     fi
22837     rm -f conftest.o conftest.s
22838   fi
22839 fi
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22841 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22842 if test $gcc_cv_as_sparc_register_op = yes; then
22843
22844 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22845
22846 fi
22847
22848     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22849 $as_echo_n "checking assembler for -relax option... " >&6; }
22850 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22851   $as_echo_n "(cached) " >&6
22852 else
22853   gcc_cv_as_sparc_relax=no
22854   if test x$gcc_cv_as != x; then
22855     echo '.text' > conftest.s
22856     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -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_relax=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_relax" >&5
22872 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22873 if test $gcc_cv_as_sparc_relax = yes; then
22874
22875 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22876
22877 fi
22878
22879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22880 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22881 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22882   $as_echo_n "(cached) " >&6
22883 else
22884   gcc_cv_as_sparc_gotdata_op=no
22885   if test x$gcc_cv_as != x; then
22886     echo '.text
22887 foo:
22888         nop
22889 bar:
22890         sethi %gdop_hix22(foo), %g1
22891         xor    %g1, %gdop_lox10(foo), %g1
22892         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22893     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22894   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22895   (eval $ac_try) 2>&5
22896   ac_status=$?
22897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22898   test $ac_status = 0; }; }
22899     then
22900         if test x$gcc_cv_ld != x \
22901        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22902          if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
22903            if test x$gcc_cv_objdump != x; then
22904              if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
22905                 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
22906                gcc_cv_as_sparc_gotdata_op=no
22907              else
22908                gcc_cv_as_sparc_gotdata_op=yes
22909              fi
22910            fi
22911          else
22912            gcc_cv_as_sparc_gotdata_op=yes
22913          fi
22914        fi
22915        rm -f conftest
22916     else
22917       echo "configure: failed program was" >&5
22918       cat conftest.s >&5
22919     fi
22920     rm -f conftest.o conftest.s
22921   fi
22922 fi
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22924 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22925 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22926
22927 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22928
22929 fi
22930
22931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22932 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22933 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22934   $as_echo_n "(cached) " >&6
22935 else
22936   gcc_cv_as_sparc_ua_pcrel=no
22937   if test x$gcc_cv_as != x; then
22938     echo '.text
22939 foo:
22940         nop
22941 .data
22942 .align 4
22943 .byte 0
22944 .uaword %r_disp32(foo)' > conftest.s
22945     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22946   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22947   (eval $ac_try) 2>&5
22948   ac_status=$?
22949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22950   test $ac_status = 0; }; }
22951     then
22952         if test x$gcc_cv_ld != x \
22953        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22954          gcc_cv_as_sparc_ua_pcrel=yes
22955        fi
22956        rm -f conftest
22957     else
22958       echo "configure: failed program was" >&5
22959       cat conftest.s >&5
22960     fi
22961     rm -f conftest.o conftest.s
22962   fi
22963 fi
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22965 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22966 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22967
22968 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22969
22970
22971       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22972 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22973 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22974   $as_echo_n "(cached) " >&6
22975 else
22976   gcc_cv_as_sparc_ua_pcrel_hidden=no
22977   if test x$gcc_cv_as != x; then
22978     echo '.data
22979 .align 4
22980 .byte 0x31
22981 .uaword %r_disp32(foo)
22982 .byte 0x32, 0x33, 0x34
22983 .global foo
22984 .hidden foo
22985 foo:
22986 .skip 4' > conftest.s
22987     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22988   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22989   (eval $ac_try) 2>&5
22990   ac_status=$?
22991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22992   test $ac_status = 0; }; }
22993     then
22994         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22995          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22996          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22997             | grep ' 31000000 07323334' > /dev/null 2>&1; then
22998             if $gcc_cv_objdump -R conftest 2> /dev/null \
22999                | grep 'DISP32' > /dev/null 2>&1; then
23000                 :
23001             else
23002                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23003             fi
23004          fi
23005          rm -f conftest
23006     else
23007       echo "configure: failed program was" >&5
23008       cat conftest.s >&5
23009     fi
23010     rm -f conftest.o conftest.s
23011   fi
23012 fi
23013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23014 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23015 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23016
23017 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23018
23019 fi
23020
23021 fi # unaligned pcrel relocs
23022
23023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23024 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23025 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23026   $as_echo_n "(cached) " >&6
23027 else
23028   gcc_cv_as_sparc_offsetable_lo10=no
23029   if test x$gcc_cv_as != x; then
23030     echo '.text
23031         or %g1, %lo(ab) + 12, %g1
23032         or %g1, %lo(ab + 12), %g1' > conftest.s
23033     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23034   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23035   (eval $ac_try) 2>&5
23036   ac_status=$?
23037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23038   test $ac_status = 0; }; }
23039     then
23040         if test x$gcc_cv_objdump != x \
23041        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23042           | grep ' 82106000 82106000' > /dev/null 2>&1; then
23043          gcc_cv_as_sparc_offsetable_lo10=yes
23044        fi
23045     else
23046       echo "configure: failed program was" >&5
23047       cat conftest.s >&5
23048     fi
23049     rm -f conftest.o conftest.s
23050   fi
23051 fi
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23053 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23054 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23055
23056 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23057
23058 fi
23059     ;;
23060
23061   i[34567]86-*-* | x86_64-*-*)
23062     case $target_os in
23063       cygwin*)
23064         # Full C++ conformance when using a shared libstdc++-v3 requires some
23065         # support from the Cygwin DLL, which in more recent versions exports
23066         # wrappers to aid in interposing and redirecting operators new, delete,
23067         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
23068         # are configuring for a version of Cygwin that exports the wrappers.
23069         if test x$host = x$target; then
23070           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23071 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23072   gcc_ac_cygwin_dll_wrappers=yes
23073 else
23074   gcc_ac_cygwin_dll_wrappers=no
23075 fi
23076
23077         else
23078           # Can't check presence of libc functions during cross-compile, so
23079           # we just have to assume we're building for an up-to-date target.
23080           gcc_ac_cygwin_dll_wrappers=yes
23081         fi
23082
23083 cat >>confdefs.h <<_ACEOF
23084 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23085 _ACEOF
23086
23087     esac
23088     case $target_os in
23089       cygwin* | pe | mingw32*)
23090         # Recent binutils allows the three-operand form of ".comm" on PE.  This
23091         # definition is used unconditionally to initialise the default state of
23092         # the target option variable that governs usage of the feature.
23093         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23094 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23095 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23096   $as_echo_n "(cached) " >&6
23097 else
23098   gcc_cv_as_comm_has_align=no
23099     if test $in_tree_gas = yes; then
23100     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23101   then gcc_cv_as_comm_has_align=yes
23102 fi
23103   elif test x$gcc_cv_as != x; then
23104     echo '.comm foo,1,32' > conftest.s
23105     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23106   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23107   (eval $ac_try) 2>&5
23108   ac_status=$?
23109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23110   test $ac_status = 0; }; }
23111     then
23112         gcc_cv_as_comm_has_align=yes
23113     else
23114       echo "configure: failed program was" >&5
23115       cat conftest.s >&5
23116     fi
23117     rm -f conftest.o conftest.s
23118   fi
23119 fi
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23121 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23122
23123
23124 cat >>confdefs.h <<_ACEOF
23125 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23126 _ACEOF
23127
23128         # Used for DWARF 2 in PE
23129         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23130 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23131 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23132   $as_echo_n "(cached) " >&6
23133 else
23134   gcc_cv_as_ix86_pe_secrel32=no
23135     if test $in_tree_gas = yes; then
23136     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23137   then gcc_cv_as_ix86_pe_secrel32=yes
23138 fi
23139   elif test x$gcc_cv_as != x; then
23140     echo '.text
23141 foo:    nop
23142 .data
23143         .secrel32 foo' > conftest.s
23144     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23145   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23146   (eval $ac_try) 2>&5
23147   ac_status=$?
23148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23149   test $ac_status = 0; }; }
23150     then
23151         if test x$gcc_cv_ld != x \
23152            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23153              gcc_cv_as_ix86_pe_secrel32=yes
23154            fi
23155            rm -f conftest
23156     else
23157       echo "configure: failed program was" >&5
23158       cat conftest.s >&5
23159     fi
23160     rm -f conftest.o conftest.s
23161   fi
23162 fi
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23164 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23165 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23166
23167 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23168
23169 fi
23170         # Test if the assembler supports the extended form of the .section
23171         # directive that specifies section alignment.  LTO support uses this,
23172         # but normally only after installation, so we warn but don't fail the
23173         # configure if LTO is enabled but the assembler does not support it.
23174         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23175 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23176 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23177   $as_echo_n "(cached) " >&6
23178 else
23179   gcc_cv_as_section_has_align=no
23180     if test $in_tree_gas = yes; then
23181     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23182   then gcc_cv_as_section_has_align=yes
23183 fi
23184   elif test x$gcc_cv_as != x; then
23185     echo '.section lto_test,"dr0"' > conftest.s
23186     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23187   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23188   (eval $ac_try) 2>&5
23189   ac_status=$?
23190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23191   test $ac_status = 0; }; }
23192     then
23193         gcc_cv_as_section_has_align=yes
23194     else
23195       echo "configure: failed program was" >&5
23196       cat conftest.s >&5
23197     fi
23198     rm -f conftest.o conftest.s
23199   fi
23200 fi
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23202 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23203
23204         if test x$gcc_cv_as_section_has_align != xyes; then
23205           case ",$enable_languages," in
23206             *,lto,*)
23207               { $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
23208 $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;}
23209               ;;
23210           esac
23211         fi
23212         ;;
23213     esac
23214
23215     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23216 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23217 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23218   $as_echo_n "(cached) " >&6
23219 else
23220   gcc_cv_as_ix86_filds=no
23221   if test x$gcc_cv_as != x; then
23222     echo 'filds mem; fists mem' > conftest.s
23223     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23224   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23225   (eval $ac_try) 2>&5
23226   ac_status=$?
23227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23228   test $ac_status = 0; }; }
23229     then
23230         gcc_cv_as_ix86_filds=yes
23231     else
23232       echo "configure: failed program was" >&5
23233       cat conftest.s >&5
23234     fi
23235     rm -f conftest.o conftest.s
23236   fi
23237 fi
23238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23239 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23240 if test $gcc_cv_as_ix86_filds = yes; then
23241
23242 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23243
23244 fi
23245
23246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23247 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23248 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23249   $as_echo_n "(cached) " >&6
23250 else
23251   gcc_cv_as_ix86_fildq=no
23252   if test x$gcc_cv_as != x; then
23253     echo 'fildq mem; fistpq 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_fildq=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_fildq" >&5
23270 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23271 if test $gcc_cv_as_ix86_fildq = yes; then
23272
23273 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23274
23275 fi
23276
23277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23278 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23279 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23280   $as_echo_n "(cached) " >&6
23281 else
23282   gcc_cv_as_ix86_cmov_sun_syntax=no
23283   if test x$gcc_cv_as != x; then
23284     echo 'cmovl.l %edx, %eax' > 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_cmov_sun_syntax=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_cmov_sun_syntax" >&5
23301 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23302 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23303
23304 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23305
23306 fi
23307
23308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23309 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23310 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23311   $as_echo_n "(cached) " >&6
23312 else
23313   gcc_cv_as_ix86_ffreep=no
23314   if test x$gcc_cv_as != x; then
23315     echo 'ffreep %st(1)' > 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_ffreep=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_ffreep" >&5
23332 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23333 if test $gcc_cv_as_ix86_ffreep = yes; then
23334
23335 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23336
23337 fi
23338
23339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23340 $as_echo_n "checking assembler for .quad directive... " >&6; }
23341 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23342   $as_echo_n "(cached) " >&6
23343 else
23344   gcc_cv_as_ix86_quad=no
23345   if test x$gcc_cv_as != x; then
23346     echo '.quad 0' > 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_quad=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_quad" >&5
23363 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23364 if test $gcc_cv_as_ix86_quad = yes; then
23365
23366 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23367
23368 fi
23369
23370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23371 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23372 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23373   $as_echo_n "(cached) " >&6
23374 else
23375   gcc_cv_as_ix86_sahf=no
23376   if test x$gcc_cv_as != x; then
23377     echo '.code64
23378        sahf' > conftest.s
23379     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23380   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23381   (eval $ac_try) 2>&5
23382   ac_status=$?
23383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23384   test $ac_status = 0; }; }
23385     then
23386         gcc_cv_as_ix86_sahf=yes
23387     else
23388       echo "configure: failed program was" >&5
23389       cat conftest.s >&5
23390     fi
23391     rm -f conftest.o conftest.s
23392   fi
23393 fi
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23395 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23396 if test $gcc_cv_as_ix86_sahf = yes; then
23397
23398 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23399
23400 fi
23401
23402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23403 $as_echo_n "checking assembler for swap suffix... " >&6; }
23404 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23405   $as_echo_n "(cached) " >&6
23406 else
23407   gcc_cv_as_ix86_swap=no
23408   if test x$gcc_cv_as != x; then
23409     echo 'movl.s %esp, %ebp' > 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_swap=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_swap" >&5
23426 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23427 if test $gcc_cv_as_ix86_swap = yes; then
23428
23429 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23430
23431 fi
23432
23433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23434 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23435 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23436   $as_echo_n "(cached) " >&6
23437 else
23438   gcc_cv_as_ix86_diff_sect_delta=no
23439   if test x$gcc_cv_as != x; then
23440     echo '.section .rodata
23441 .L1:
23442         .long .L2-.L1
23443         .long .L3-.L1
23444         .text
23445 .L3:    nop
23446 .L2:    nop' > conftest.s
23447     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23448   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23449   (eval $ac_try) 2>&5
23450   ac_status=$?
23451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23452   test $ac_status = 0; }; }
23453     then
23454         gcc_cv_as_ix86_diff_sect_delta=yes
23455     else
23456       echo "configure: failed program was" >&5
23457       cat conftest.s >&5
23458     fi
23459     rm -f conftest.o conftest.s
23460   fi
23461 fi
23462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23463 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23464 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23465
23466 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23467
23468 fi
23469
23470     # These two are used unconditionally by i386.[ch]; it is to be defined
23471     # to 1 if the feature is present, 0 otherwise.
23472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23473 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23474 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23475   $as_echo_n "(cached) " >&6
23476 else
23477   gcc_cv_as_ix86_gotoff_in_data=no
23478     if test $in_tree_gas = yes; then
23479     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23480   then gcc_cv_as_ix86_gotoff_in_data=yes
23481 fi
23482   elif test x$gcc_cv_as != x; then
23483     echo '      .text
23484 .L0:
23485         nop
23486         .data
23487         .long .L0@GOTOFF' > conftest.s
23488     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23489   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23490   (eval $ac_try) 2>&5
23491   ac_status=$?
23492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23493   test $ac_status = 0; }; }
23494     then
23495         gcc_cv_as_ix86_gotoff_in_data=yes
23496     else
23497       echo "configure: failed program was" >&5
23498       cat conftest.s >&5
23499     fi
23500     rm -f conftest.o conftest.s
23501   fi
23502 fi
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23504 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23505
23506
23507 cat >>confdefs.h <<_ACEOF
23508 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23509 _ACEOF
23510
23511
23512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23513 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23514 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23515   $as_echo_n "(cached) " >&6
23516 else
23517   gcc_cv_as_ix86_rep_lock_prefix=no
23518   if test x$gcc_cv_as != x; then
23519     echo 'rep movsl
23520          lock addl %edi, (%eax,%esi)
23521          lock orl $0, (%esp)' > conftest.s
23522     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23523   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23524   (eval $ac_try) 2>&5
23525   ac_status=$?
23526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23527   test $ac_status = 0; }; }
23528     then
23529         gcc_cv_as_ix86_rep_lock_prefix=yes
23530     else
23531       echo "configure: failed program was" >&5
23532       cat conftest.s >&5
23533     fi
23534     rm -f conftest.o conftest.s
23535   fi
23536 fi
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23538 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23539 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23540
23541 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23542
23543 fi
23544
23545     ;;
23546
23547   ia64*-*-*)
23548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23549 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23550 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23551   $as_echo_n "(cached) " >&6
23552 else
23553   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23554     if test $in_tree_gas = yes; then
23555     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23556   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23557 fi
23558   elif test x$gcc_cv_as != x; then
23559     echo '      .text
23560         addl r15 = @ltoffx(x#), gp
23561         ;;
23562         ld8.mov r16 = [r15], x#' > conftest.s
23563     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23564   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23565   (eval $ac_try) 2>&5
23566   ac_status=$?
23567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23568   test $ac_status = 0; }; }
23569     then
23570         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23571     else
23572       echo "configure: failed program was" >&5
23573       cat conftest.s >&5
23574     fi
23575     rm -f conftest.o conftest.s
23576   fi
23577 fi
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23579 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23580 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23581
23582 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23583
23584 fi
23585
23586     ;;
23587
23588   powerpc*-*-*)
23589     case $target in
23590       *-*-aix*) conftest_s='    .machine "pwr5"
23591         .csect .text[PR]
23592         mfcr 3,128';;
23593       *-*-darwin*)
23594         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23595 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23596 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23597   $as_echo_n "(cached) " >&6
23598 else
23599   gcc_cv_as_machine_directive=no
23600   if test x$gcc_cv_as != x; then
23601     echo '      .machine ppc7400' > conftest.s
23602     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23603   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23604   (eval $ac_try) 2>&5
23605   ac_status=$?
23606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23607   test $ac_status = 0; }; }
23608     then
23609         gcc_cv_as_machine_directive=yes
23610     else
23611       echo "configure: failed program was" >&5
23612       cat conftest.s >&5
23613     fi
23614     rm -f conftest.o conftest.s
23615   fi
23616 fi
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23618 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23619
23620         if test x$gcc_cv_as_machine_directive != xyes; then
23621           echo "*** This target requires an assembler supporting \".machine\"" >&2
23622           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23623           test x$build = x$target && exit 1
23624         fi
23625         conftest_s='    .text
23626         mfcr r3,128';;
23627       *) conftest_s='   .machine power4
23628         .text
23629         mfcr 3,128';;
23630     esac
23631
23632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23633 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23634 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23635   $as_echo_n "(cached) " >&6
23636 else
23637   gcc_cv_as_powerpc_mfcrf=no
23638     if test $in_tree_gas = yes; then
23639     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23640   then gcc_cv_as_powerpc_mfcrf=yes
23641 fi
23642   elif test x$gcc_cv_as != x; then
23643     echo "$conftest_s" > conftest.s
23644     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23645   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23646   (eval $ac_try) 2>&5
23647   ac_status=$?
23648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23649   test $ac_status = 0; }; }
23650     then
23651         gcc_cv_as_powerpc_mfcrf=yes
23652     else
23653       echo "configure: failed program was" >&5
23654       cat conftest.s >&5
23655     fi
23656     rm -f conftest.o conftest.s
23657   fi
23658 fi
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23660 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23661 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23662
23663 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23664
23665 fi
23666
23667     case $target in
23668       *-*-aix*) conftest_s='    .machine "pwr5"
23669         .csect .text[PR]
23670         popcntb 3,3';;
23671       *) conftest_s='   .machine power5
23672         .text
23673         popcntb 3,3';;
23674     esac
23675
23676     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23677 $as_echo_n "checking assembler for popcntb support... " >&6; }
23678 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23679   $as_echo_n "(cached) " >&6
23680 else
23681   gcc_cv_as_powerpc_popcntb=no
23682     if test $in_tree_gas = yes; then
23683     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23684   then gcc_cv_as_powerpc_popcntb=yes
23685 fi
23686   elif test x$gcc_cv_as != x; then
23687     echo "$conftest_s" > conftest.s
23688     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23689   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23690   (eval $ac_try) 2>&5
23691   ac_status=$?
23692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23693   test $ac_status = 0; }; }
23694     then
23695         gcc_cv_as_powerpc_popcntb=yes
23696     else
23697       echo "configure: failed program was" >&5
23698       cat conftest.s >&5
23699     fi
23700     rm -f conftest.o conftest.s
23701   fi
23702 fi
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23704 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23705 if test $gcc_cv_as_powerpc_popcntb = yes; then
23706
23707 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23708
23709 fi
23710
23711     case $target in
23712       *-*-aix*) conftest_s='    .machine "pwr5x"
23713         .csect .text[PR]
23714         frin 1,1';;
23715       *) conftest_s='   .machine power5
23716         .text
23717         frin 1,1';;
23718     esac
23719
23720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23721 $as_echo_n "checking assembler for fp round support... " >&6; }
23722 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23723   $as_echo_n "(cached) " >&6
23724 else
23725   gcc_cv_as_powerpc_fprnd=no
23726     if test $in_tree_gas = yes; then
23727     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23728   then gcc_cv_as_powerpc_fprnd=yes
23729 fi
23730   elif test x$gcc_cv_as != x; then
23731     echo "$conftest_s" > conftest.s
23732     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23733   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23734   (eval $ac_try) 2>&5
23735   ac_status=$?
23736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23737   test $ac_status = 0; }; }
23738     then
23739         gcc_cv_as_powerpc_fprnd=yes
23740     else
23741       echo "configure: failed program was" >&5
23742       cat conftest.s >&5
23743     fi
23744     rm -f conftest.o conftest.s
23745   fi
23746 fi
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23748 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23749 if test $gcc_cv_as_powerpc_fprnd = yes; then
23750
23751 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23752
23753 fi
23754
23755     case $target in
23756       *-*-aix*) conftest_s='    .machine "pwr6"
23757         .csect .text[PR]
23758         mffgpr 1,3';;
23759       *) conftest_s='   .machine power6
23760         .text
23761         mffgpr 1,3';;
23762     esac
23763
23764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23765 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23766 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23767   $as_echo_n "(cached) " >&6
23768 else
23769   gcc_cv_as_powerpc_mfpgpr=no
23770     if test $in_tree_gas = yes; then
23771     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23772   then gcc_cv_as_powerpc_mfpgpr=yes
23773 fi
23774   elif test x$gcc_cv_as != x; then
23775     echo "$conftest_s" > conftest.s
23776     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23777   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23778   (eval $ac_try) 2>&5
23779   ac_status=$?
23780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23781   test $ac_status = 0; }; }
23782     then
23783         gcc_cv_as_powerpc_mfpgpr=yes
23784     else
23785       echo "configure: failed program was" >&5
23786       cat conftest.s >&5
23787     fi
23788     rm -f conftest.o conftest.s
23789   fi
23790 fi
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23792 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23793 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23794
23795 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23796
23797 fi
23798
23799     case $target in
23800       *-*-aix*) conftest_s='    .csect .text[PR]
23801 LCF..0:
23802         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23803       *-*-darwin*)
23804         conftest_s='    .text
23805 LCF0:
23806         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23807       *) conftest_s='   .text
23808 .LCF0:
23809         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23810     esac
23811
23812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23813 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23814 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23815   $as_echo_n "(cached) " >&6
23816 else
23817   gcc_cv_as_powerpc_rel16=no
23818     if test $in_tree_gas = yes; then
23819     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23820   then gcc_cv_as_powerpc_rel16=yes
23821 fi
23822   elif test x$gcc_cv_as != x; then
23823     echo "$conftest_s" > conftest.s
23824     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23825   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23826   (eval $ac_try) 2>&5
23827   ac_status=$?
23828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23829   test $ac_status = 0; }; }
23830     then
23831         gcc_cv_as_powerpc_rel16=yes
23832     else
23833       echo "configure: failed program was" >&5
23834       cat conftest.s >&5
23835     fi
23836     rm -f conftest.o conftest.s
23837   fi
23838 fi
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23840 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23841 if test $gcc_cv_as_powerpc_rel16 = yes; then
23842
23843 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23844
23845 fi
23846
23847     case $target in
23848       *-*-aix*) conftest_s='    .machine "pwr6"
23849         .csect .text[PR]
23850         cmpb 3,4,5';;
23851       *) conftest_s='   .machine power6
23852         .text
23853         cmpb 3,4,5';;
23854     esac
23855
23856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23857 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23858 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23859   $as_echo_n "(cached) " >&6
23860 else
23861   gcc_cv_as_powerpc_cmpb=no
23862     if test $in_tree_gas = yes; then
23863     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23864   then gcc_cv_as_powerpc_cmpb=yes
23865 fi
23866   elif test x$gcc_cv_as != x; then
23867     echo "$conftest_s" > conftest.s
23868     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23869   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23870   (eval $ac_try) 2>&5
23871   ac_status=$?
23872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23873   test $ac_status = 0; }; }
23874     then
23875         gcc_cv_as_powerpc_cmpb=yes
23876     else
23877       echo "configure: failed program was" >&5
23878       cat conftest.s >&5
23879     fi
23880     rm -f conftest.o conftest.s
23881   fi
23882 fi
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23884 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23885 if test $gcc_cv_as_powerpc_cmpb = yes; then
23886
23887 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23888
23889 fi
23890
23891     case $target in
23892       *-*-aix*) conftest_s='    .machine "pwr6"
23893         .csect .text[PR]
23894         dadd 1,2,3';;
23895       *) conftest_s='   .machine power6
23896         .text
23897         dadd 1,2,3';;
23898     esac
23899
23900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23901 $as_echo_n "checking assembler for decimal float support... " >&6; }
23902 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23903   $as_echo_n "(cached) " >&6
23904 else
23905   gcc_cv_as_powerpc_dfp=no
23906     if test $in_tree_gas = yes; then
23907     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23908   then gcc_cv_as_powerpc_dfp=yes
23909 fi
23910   elif test x$gcc_cv_as != x; then
23911     echo "$conftest_s" > conftest.s
23912     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23913   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23914   (eval $ac_try) 2>&5
23915   ac_status=$?
23916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23917   test $ac_status = 0; }; }
23918     then
23919         gcc_cv_as_powerpc_dfp=yes
23920     else
23921       echo "configure: failed program was" >&5
23922       cat conftest.s >&5
23923     fi
23924     rm -f conftest.o conftest.s
23925   fi
23926 fi
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23928 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23929 if test $gcc_cv_as_powerpc_dfp = yes; then
23930
23931 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23932
23933 fi
23934
23935     case $target in
23936       *-*-aix*) conftest_s='    .machine "pwr7"
23937         .csect .text[PR]
23938         lxvd2x 1,2,3';;
23939       *) conftest_s='   .machine power7
23940         .text
23941         lxvd2x 1,2,3';;
23942     esac
23943
23944     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23945 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23946 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23947   $as_echo_n "(cached) " >&6
23948 else
23949   gcc_cv_as_powerpc_vsx=no
23950     if test $in_tree_gas = yes; then
23951     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23952   then gcc_cv_as_powerpc_vsx=yes
23953 fi
23954   elif test x$gcc_cv_as != x; then
23955     echo "$conftest_s" > conftest.s
23956     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23957   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23958   (eval $ac_try) 2>&5
23959   ac_status=$?
23960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23961   test $ac_status = 0; }; }
23962     then
23963         gcc_cv_as_powerpc_vsx=yes
23964     else
23965       echo "configure: failed program was" >&5
23966       cat conftest.s >&5
23967     fi
23968     rm -f conftest.o conftest.s
23969   fi
23970 fi
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23972 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23973 if test $gcc_cv_as_powerpc_vsx = yes; then
23974
23975 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23976
23977 fi
23978
23979     case $target in
23980       *-*-aix*) conftest_s='    .machine "pwr7"
23981         .csect .text[PR]
23982         popcntd 3,3';;
23983       *) conftest_s='   .machine power7
23984         .text
23985         popcntd 3,3';;
23986     esac
23987
23988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23989 $as_echo_n "checking assembler for popcntd support... " >&6; }
23990 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23991   $as_echo_n "(cached) " >&6
23992 else
23993   gcc_cv_as_powerpc_popcntd=no
23994     if test $in_tree_gas = yes; then
23995     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23996   then gcc_cv_as_powerpc_popcntd=yes
23997 fi
23998   elif test x$gcc_cv_as != x; then
23999     echo "$conftest_s" > conftest.s
24000     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24001   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24002   (eval $ac_try) 2>&5
24003   ac_status=$?
24004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24005   test $ac_status = 0; }; }
24006     then
24007         gcc_cv_as_powerpc_popcntd=yes
24008     else
24009       echo "configure: failed program was" >&5
24010       cat conftest.s >&5
24011     fi
24012     rm -f conftest.o conftest.s
24013   fi
24014 fi
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24016 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24017 if test $gcc_cv_as_powerpc_popcntd = yes; then
24018
24019 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24020
24021 fi
24022
24023     case $target in
24024       *-*-aix*) conftest_s='    .csect .text[PR]
24025         lwsync';;
24026       *) conftest_s='   .text
24027         lwsync';;
24028     esac
24029
24030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24031 $as_echo_n "checking assembler for lwsync support... " >&6; }
24032 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24033   $as_echo_n "(cached) " >&6
24034 else
24035   gcc_cv_as_powerpc_lwsync=no
24036     if test $in_tree_gas = yes; then
24037     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24038   then gcc_cv_as_powerpc_lwsync=yes
24039 fi
24040   elif test x$gcc_cv_as != x; then
24041     echo "$conftest_s" > conftest.s
24042     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24043   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24044   (eval $ac_try) 2>&5
24045   ac_status=$?
24046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24047   test $ac_status = 0; }; }
24048     then
24049         gcc_cv_as_powerpc_lwsync=yes
24050     else
24051       echo "configure: failed program was" >&5
24052       cat conftest.s >&5
24053     fi
24054     rm -f conftest.o conftest.s
24055   fi
24056 fi
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24058 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24059 if test $gcc_cv_as_powerpc_lwsync = yes; then
24060
24061 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24062
24063 fi
24064
24065     case $target in
24066       *-*-aix*) conftest_s='    .machine "476"
24067         .csect .text[PR]
24068         dci 0';;
24069       *) conftest_s='   .machine "476"
24070         .text
24071         dci 0';;
24072     esac
24073
24074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24075 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24076 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24077   $as_echo_n "(cached) " >&6
24078 else
24079   gcc_cv_as_powerpc_dci=no
24080     if test $in_tree_gas = yes; then
24081     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24082   then gcc_cv_as_powerpc_dci=yes
24083 fi
24084   elif test x$gcc_cv_as != x; then
24085     echo "$conftest_s" > conftest.s
24086     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24087   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24088   (eval $ac_try) 2>&5
24089   ac_status=$?
24090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24091   test $ac_status = 0; }; }
24092     then
24093         gcc_cv_as_powerpc_dci=yes
24094     else
24095       echo "configure: failed program was" >&5
24096       cat conftest.s >&5
24097     fi
24098     rm -f conftest.o conftest.s
24099   fi
24100 fi
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24102 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24103 if test $gcc_cv_as_powerpc_dci = yes; then
24104
24105 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24106
24107 fi
24108
24109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24110 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24111 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24112   $as_echo_n "(cached) " >&6
24113 else
24114   gcc_cv_as_powerpc_gnu_attribute=no
24115     if test $in_tree_gas = yes; then
24116     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24117   then gcc_cv_as_powerpc_gnu_attribute=yes
24118 fi
24119   elif test x$gcc_cv_as != x; then
24120     echo '.gnu_attribute 4,1' > conftest.s
24121     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24122   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24123   (eval $ac_try) 2>&5
24124   ac_status=$?
24125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24126   test $ac_status = 0; }; }
24127     then
24128         gcc_cv_as_powerpc_gnu_attribute=yes
24129     else
24130       echo "configure: failed program was" >&5
24131       cat conftest.s >&5
24132     fi
24133     rm -f conftest.o conftest.s
24134   fi
24135 fi
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24137 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24138 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24139
24140 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24141
24142 fi
24143
24144     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24145 $as_echo_n "checking assembler for tls marker support... " >&6; }
24146 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24147   $as_echo_n "(cached) " >&6
24148 else
24149   gcc_cv_as_powerpc_tls_markers=no
24150     if test $in_tree_gas = yes; then
24151     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24152   then gcc_cv_as_powerpc_tls_markers=yes
24153 fi
24154   elif test x$gcc_cv_as != x; then
24155     echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24156     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24157   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24158   (eval $ac_try) 2>&5
24159   ac_status=$?
24160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24161   test $ac_status = 0; }; }
24162     then
24163         gcc_cv_as_powerpc_tls_markers=yes
24164     else
24165       echo "configure: failed program was" >&5
24166       cat conftest.s >&5
24167     fi
24168     rm -f conftest.o conftest.s
24169   fi
24170 fi
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24172 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24173 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24174
24175 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24176
24177 fi
24178
24179     case $target in
24180       *-*-aix*)
24181         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24182 $as_echo_n "checking assembler for .ref support... " >&6; }
24183 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24184   $as_echo_n "(cached) " >&6
24185 else
24186   gcc_cv_as_aix_ref=no
24187     if test $in_tree_gas = yes; then
24188     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24189   then :
24190 fi
24191   elif test x$gcc_cv_as != x; then
24192     echo '      .csect stuff[rw]
24193              stuff:
24194                 .long 1
24195                 .extern sym
24196                 .ref sym
24197           ' > conftest.s
24198     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24199   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24200   (eval $ac_try) 2>&5
24201   ac_status=$?
24202   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24203   test $ac_status = 0; }; }
24204     then
24205         gcc_cv_as_aix_ref=yes
24206     else
24207       echo "configure: failed program was" >&5
24208       cat conftest.s >&5
24209     fi
24210     rm -f conftest.o conftest.s
24211   fi
24212 fi
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24214 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24215 if test $gcc_cv_as_aix_ref = yes; then
24216
24217 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24218
24219 fi
24220         ;;
24221     esac
24222     ;;
24223
24224   mips*-*-*)
24225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24226 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24227 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24228   $as_echo_n "(cached) " >&6
24229 else
24230   gcc_cv_as_mips_explicit_relocs=no
24231     if test $in_tree_gas = yes; then
24232     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24233   then gcc_cv_as_mips_explicit_relocs=yes
24234 fi
24235   elif test x$gcc_cv_as != x; then
24236     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
24237     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24238   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24239   (eval $ac_try) 2>&5
24240   ac_status=$?
24241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24242   test $ac_status = 0; }; }
24243     then
24244         gcc_cv_as_mips_explicit_relocs=yes
24245     else
24246       echo "configure: failed program was" >&5
24247       cat conftest.s >&5
24248     fi
24249     rm -f conftest.o conftest.s
24250   fi
24251 fi
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24253 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24254 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24255   if test x$target_cpu_default = x
24256        then target_cpu_default=MASK_EXPLICIT_RELOCS
24257        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24258        fi
24259 fi
24260     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24261 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24262 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24263   $as_echo_n "(cached) " >&6
24264 else
24265   gcc_cv_as_mips_no_shared=no
24266     if test $in_tree_gas = yes; then
24267     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24268   then gcc_cv_as_mips_no_shared=yes
24269 fi
24270   elif test x$gcc_cv_as != x; then
24271     echo 'nop' > conftest.s
24272     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24273   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24274   (eval $ac_try) 2>&5
24275   ac_status=$?
24276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24277   test $ac_status = 0; }; }
24278     then
24279         gcc_cv_as_mips_no_shared=yes
24280     else
24281       echo "configure: failed program was" >&5
24282       cat conftest.s >&5
24283     fi
24284     rm -f conftest.o conftest.s
24285   fi
24286 fi
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24288 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24289 if test $gcc_cv_as_mips_no_shared = yes; then
24290
24291 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24292
24293 fi
24294
24295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24296 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24297 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24298   $as_echo_n "(cached) " >&6
24299 else
24300   gcc_cv_as_mips_gnu_attribute=no
24301     if test $in_tree_gas = yes; then
24302     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24303   then gcc_cv_as_mips_gnu_attribute=yes
24304 fi
24305   elif test x$gcc_cv_as != x; then
24306     echo '.gnu_attribute 4,1' > conftest.s
24307     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24308   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24309   (eval $ac_try) 2>&5
24310   ac_status=$?
24311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24312   test $ac_status = 0; }; }
24313     then
24314         gcc_cv_as_mips_gnu_attribute=yes
24315     else
24316       echo "configure: failed program was" >&5
24317       cat conftest.s >&5
24318     fi
24319     rm -f conftest.o conftest.s
24320   fi
24321 fi
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24323 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24324 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24325
24326 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24327
24328 fi
24329
24330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24331 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24332 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24333   $as_echo_n "(cached) " >&6
24334 else
24335   gcc_cv_as_mips_dtprelword=no
24336     if test $in_tree_gas = yes; then
24337     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24338   then gcc_cv_as_mips_dtprelword=yes
24339 fi
24340   elif test x$gcc_cv_as != x; then
24341     echo '.section .tdata,"awT",@progbits
24342 x:
24343         .word 2
24344         .text
24345         .dtprelword x+0x8000' > conftest.s
24346     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24347   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24348   (eval $ac_try) 2>&5
24349   ac_status=$?
24350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24351   test $ac_status = 0; }; }
24352     then
24353         gcc_cv_as_mips_dtprelword=yes
24354     else
24355       echo "configure: failed program was" >&5
24356       cat conftest.s >&5
24357     fi
24358     rm -f conftest.o conftest.s
24359   fi
24360 fi
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24362 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24363 if test $gcc_cv_as_mips_dtprelword = yes; then
24364
24365 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24366
24367 fi
24368
24369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24370 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24371     gcc_cv_as_ld_jalr_reloc=no
24372     if test $gcc_cv_as_mips_explicit_relocs = yes; then
24373       if test $in_tree_ld = yes ; then
24374         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 \
24375            && test $in_tree_ld_is_elf = yes; then
24376           gcc_cv_as_ld_jalr_reloc=yes
24377         fi
24378       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24379         echo '  .ent x' > conftest.s
24380         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
24381         echo '  ld $25,%call16(y)($28)' >> conftest.s
24382         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
24383         echo '1:        jalr $25' >> conftest.s
24384         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
24385         echo '1:        jalr $25' >> conftest.s
24386         echo '  .end x' >> conftest.s
24387         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24388            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24389           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24390              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24391             gcc_cv_as_ld_jalr_reloc=yes
24392           fi
24393         fi
24394         rm -f conftest.*
24395       fi
24396     fi
24397     if test $gcc_cv_as_ld_jalr_reloc = yes; then
24398       if test x$target_cpu_default = x; then
24399         target_cpu_default=MASK_RELAX_PIC_CALLS
24400       else
24401         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24402       fi
24403     fi
24404     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24405 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24406
24407     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24408 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24409 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24410   $as_echo_n "(cached) " >&6
24411 else
24412   gcc_cv_ld_mips_personality_relaxation=no
24413        if test $in_tree_ld = yes ; then
24414          if test "$gcc_cv_gld_major_version" -eq 2 \
24415                  -a "$gcc_cv_gld_minor_version" -ge 21 \
24416                  -o "$gcc_cv_gld_major_version" -gt 2; then
24417            gcc_cv_ld_mips_personality_relaxation=yes
24418          fi
24419        elif test x$gcc_cv_as != x \
24420                  -a x$gcc_cv_ld != x \
24421                  -a x$gcc_cv_readelf != x ; then
24422          cat > conftest.s <<EOF
24423         .cfi_startproc
24424         .cfi_personality 0x80,indirect_ptr
24425         .ent test
24426 test:
24427         nop
24428         .end test
24429         .cfi_endproc
24430
24431         .section .data,"aw",@progbits
24432 indirect_ptr:
24433         .dc.a personality
24434 EOF
24435          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24436             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24437            if $gcc_cv_readelf -d conftest 2>&1 \
24438               | grep TEXTREL > /dev/null 2>&1; then
24439              :
24440            elif $gcc_cv_readelf --relocs conftest 2>&1 \
24441                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24442              :
24443            else
24444              gcc_cv_ld_mips_personality_relaxation=yes
24445            fi
24446          fi
24447        fi
24448        rm -f conftest.s conftest.o conftest
24449 fi
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24451 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24452     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24453
24454 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24455
24456     fi
24457     ;;
24458 esac
24459
24460 # Mips and HP-UX need the GNU assembler.
24461 # Linux on IA64 might be able to use the Intel assembler.
24462
24463 case "$target" in
24464   mips*-*-* | *-*-hpux* )
24465     if test x$gas_flag = xyes \
24466        || test x"$host" != x"$build" \
24467        || test ! -x "$gcc_cv_as" \
24468        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24469       :
24470     else
24471       echo "*** This configuration requires the GNU assembler" >&2
24472       exit 1
24473     fi
24474     ;;
24475 esac
24476
24477 # ??? Not all targets support dwarf2 debug_line, even within a version
24478 # of gas.  Moreover, we need to emit a valid instruction to trigger any
24479 # info to the output file.  So, as supported targets are added to gas 2.11,
24480 # add some instruction here to (also) show we expect this might work.
24481 # ??? Once 2.11 is released, probably need to add first known working
24482 # version to the per-target configury.
24483 case "$target" in
24484   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
24485   | x86_64*-*-* | hppa*-*-* | arm*-*-* \
24486   | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
24487   | spu-*-* | fido*-*-* | m32c-*-* | microblaze-*-*)
24488     insn="nop"
24489     ;;
24490   ia64*-*-* | s390*-*-*)
24491     insn="nop 0"
24492     ;;
24493   mmix-*-*)
24494     insn="swym 0"
24495     ;;
24496 esac
24497 if test x"$insn" != x; then
24498  conftest_s="\
24499         .file 1 \"conftest.s\"
24500         .loc 1 3 0
24501         $insn"
24502  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24503 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24504 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24505   $as_echo_n "(cached) " >&6
24506 else
24507   gcc_cv_as_dwarf2_debug_line=no
24508     if test $in_tree_gas = yes; then
24509     if test $in_tree_gas_is_elf = yes \
24510   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24511   then gcc_cv_as_dwarf2_debug_line=yes
24512 fi
24513   elif test x$gcc_cv_as != x; then
24514     echo "$conftest_s" > conftest.s
24515     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24516   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24517   (eval $ac_try) 2>&5
24518   ac_status=$?
24519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24520   test $ac_status = 0; }; }
24521     then
24522         if test x$gcc_cv_objdump != x \
24523    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24524       | grep debug_line > /dev/null 2>&1; then
24525      gcc_cv_as_dwarf2_debug_line=yes
24526    fi
24527     else
24528       echo "configure: failed program was" >&5
24529       cat conftest.s >&5
24530     fi
24531     rm -f conftest.o conftest.s
24532   fi
24533 fi
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24535 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24536
24537
24538 # The .debug_line file table must be in the exact order that
24539 # we specified the files, since these indices are also used
24540 # by DW_AT_decl_file.  Approximate this test by testing if
24541 # the assembler bitches if the same index is assigned twice.
24542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24543 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24544 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24545   $as_echo_n "(cached) " >&6
24546 else
24547   gcc_cv_as_dwarf2_file_buggy=no
24548   if test x$gcc_cv_as != x; then
24549     echo '      .file 1 "foo.s"
24550         .file 1 "bar.s"' > conftest.s
24551     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24552   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24553   (eval $ac_try) 2>&5
24554   ac_status=$?
24555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24556   test $ac_status = 0; }; }
24557     then
24558         gcc_cv_as_dwarf2_file_buggy=yes
24559     else
24560       echo "configure: failed program was" >&5
24561       cat conftest.s >&5
24562     fi
24563     rm -f conftest.o conftest.s
24564   fi
24565 fi
24566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24567 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24568
24569
24570  if test $gcc_cv_as_dwarf2_debug_line = yes \
24571  && test $gcc_cv_as_dwarf2_file_buggy = no; then
24572
24573 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24574
24575  fi
24576
24577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24578 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24579 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24580   $as_echo_n "(cached) " >&6
24581 else
24582   gcc_cv_as_gdwarf2_flag=no
24583     if test $in_tree_gas = yes; then
24584     if test $in_tree_gas_is_elf = yes \
24585   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24586   then gcc_cv_as_gdwarf2_flag=yes
24587 fi
24588   elif test x$gcc_cv_as != x; then
24589     echo "$insn" > conftest.s
24590     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24591   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24592   (eval $ac_try) 2>&5
24593   ac_status=$?
24594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24595   test $ac_status = 0; }; }
24596     then
24597         gcc_cv_as_gdwarf2_flag=yes
24598     else
24599       echo "configure: failed program was" >&5
24600       cat conftest.s >&5
24601     fi
24602     rm -f conftest.o conftest.s
24603   fi
24604 fi
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24606 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24607 if test $gcc_cv_as_gdwarf2_flag = yes; then
24608
24609 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24610
24611 fi
24612
24613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24614 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24615 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24616   $as_echo_n "(cached) " >&6
24617 else
24618   gcc_cv_as_gstabs_flag=no
24619     if test $in_tree_gas = yes; then
24620     if test $in_tree_gas_is_elf = yes \
24621   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24622   then gcc_cv_as_gstabs_flag=yes
24623 fi
24624   elif test x$gcc_cv_as != x; then
24625     echo "$insn" > conftest.s
24626     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24627   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24628   (eval $ac_try) 2>&5
24629   ac_status=$?
24630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24631   test $ac_status = 0; }; }
24632     then
24633         # The native Solaris 9/Intel assembler doesn't understand --gstabs
24634    # and warns about it, but still exits successfully.  So check for
24635    # this.
24636    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24637   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24638   (eval $ac_try) 2>&5
24639   ac_status=$?
24640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24641   test $ac_status = 0; }; }
24642    then :
24643    else gcc_cv_as_gstabs_flag=yes
24644    fi
24645     else
24646       echo "configure: failed program was" >&5
24647       cat conftest.s >&5
24648     fi
24649     rm -f conftest.o conftest.s
24650   fi
24651 fi
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24653 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24654 if test $gcc_cv_as_gstabs_flag = yes; then
24655
24656 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24657
24658 fi
24659
24660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24661 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24662 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24663   $as_echo_n "(cached) " >&6
24664 else
24665   gcc_cv_as_debug_prefix_map_flag=no
24666     if test $in_tree_gas = yes; then
24667     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24668   then gcc_cv_as_debug_prefix_map_flag=yes
24669 fi
24670   elif test x$gcc_cv_as != x; then
24671     echo "$insn" > conftest.s
24672     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24673   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24674   (eval $ac_try) 2>&5
24675   ac_status=$?
24676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24677   test $ac_status = 0; }; }
24678     then
24679         gcc_cv_as_debug_prefix_map_flag=yes
24680     else
24681       echo "configure: failed program was" >&5
24682       cat conftest.s >&5
24683     fi
24684     rm -f conftest.o conftest.s
24685   fi
24686 fi
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24688 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24689 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24690
24691 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24692
24693 fi
24694 fi
24695
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24697 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24698 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24699   $as_echo_n "(cached) " >&6
24700 else
24701   gcc_cv_as_lcomm_with_alignment=no
24702   if test x$gcc_cv_as != x; then
24703     echo '.lcomm bar,4,16' > conftest.s
24704     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24705   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24706   (eval $ac_try) 2>&5
24707   ac_status=$?
24708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24709   test $ac_status = 0; }; }
24710     then
24711         gcc_cv_as_lcomm_with_alignment=yes
24712     else
24713       echo "configure: failed program was" >&5
24714       cat conftest.s >&5
24715     fi
24716     rm -f conftest.o conftest.s
24717   fi
24718 fi
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24720 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24721 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24722
24723 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24724
24725 fi
24726
24727 # Check whether --enable-gnu-unique-object was given.
24728 if test "${enable_gnu_unique_object+set}" = set; then :
24729   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24730     yes | no) ;;
24731     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24732 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24733   esac
24734 else
24735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24736 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24737 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24738   $as_echo_n "(cached) " >&6
24739 else
24740   gcc_cv_as_gnu_unique_object=no
24741     if test $in_tree_gas = yes; then
24742     if test $in_tree_gas_is_elf = yes \
24743   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24744   then gcc_cv_as_gnu_unique_object=yes
24745 fi
24746   elif test x$gcc_cv_as != x; then
24747     echo '.type foo, @gnu_unique_object' > conftest.s
24748     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24749   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24750   (eval $ac_try) 2>&5
24751   ac_status=$?
24752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24753   test $ac_status = 0; }; }
24754     then
24755         gcc_cv_as_gnu_unique_object=yes
24756     else
24757       echo "configure: failed program was" >&5
24758       cat conftest.s >&5
24759     fi
24760     rm -f conftest.o conftest.s
24761   fi
24762 fi
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24764 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24765 if test $gcc_cv_as_gnu_unique_object = yes; then
24766   # Also check for ld.so support, i.e. glibc 2.11 or higher.
24767    if test x$host = x$build -a x$host = x$target &&
24768        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24769       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
24770       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24771       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24772       if test "$glibcnum" -ge 2011 ; then
24773         enable_gnu_unique_object=yes
24774       fi
24775     fi
24776 fi
24777 fi
24778
24779 if test x$enable_gnu_unique_object = xyes; then
24780
24781 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24782
24783 fi
24784
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24786 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24787 if test "${gcc_cv_as_line_zero+set}" = set; then :
24788   $as_echo_n "(cached) " >&6
24789 else
24790   gcc_cv_as_line_zero=no
24791   if test $in_tree_gas = yes; then
24792     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24793   then gcc_cv_as_line_zero=yes
24794 fi
24795   elif test "x$gcc_cv_as" != x; then
24796     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24797     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24798   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24799   (eval $ac_try) 2>&5
24800   ac_status=$?
24801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24802   test $ac_status = 0; }; } &&
24803        test "x`cat conftest.out`" = x
24804     then
24805       gcc_cv_as_line_zero=yes
24806     else
24807       echo "configure: failed program was" >&5
24808       cat conftest.s >&5
24809       echo "configure: error output was" >&5
24810       cat conftest.out >&5
24811     fi
24812     rm -f conftest.o conftest.s conftest.out
24813   fi
24814 fi
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24816 $as_echo "$gcc_cv_as_line_zero" >&6; }
24817 if test "x$gcc_cv_as_line_zero" = xyes; then
24818
24819 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24820
24821 fi
24822
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24824 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24825 gcc_cv_ld_eh_frame_hdr=no
24826 if test $in_tree_ld = yes ; then
24827   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 \
24828      && test $in_tree_ld_is_elf = yes; then
24829     gcc_cv_ld_eh_frame_hdr=yes
24830   fi
24831 elif test x$gcc_cv_ld != x; then
24832         # Check if linker supports --eh-frame-hdr option
24833         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24834                 gcc_cv_ld_eh_frame_hdr=yes
24835         fi
24836 fi
24837
24838 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24839
24840 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24841
24842 fi
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24844 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24845
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24847 $as_echo_n "checking linker position independent executable support... " >&6; }
24848 gcc_cv_ld_pie=no
24849 if test $in_tree_ld = yes ; then
24850   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 \
24851      && test $in_tree_ld_is_elf = yes; then
24852     gcc_cv_ld_pie=yes
24853   fi
24854 elif test x$gcc_cv_ld != x; then
24855         # Check if linker supports -pie option
24856         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24857                 gcc_cv_ld_pie=yes
24858         fi
24859 fi
24860 if test x"$gcc_cv_ld_pie" = xyes; then
24861
24862 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24863
24864 fi
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24866 $as_echo "$gcc_cv_ld_pie" >&6; }
24867
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24869 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24870 gcc_cv_ld_eh_gc_sections=no
24871 if test $in_tree_ld = yes ; then
24872   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 \
24873      && test $in_tree_ld_is_elf = yes; then
24874     gcc_cv_ld_eh_gc_sections=yes
24875   fi
24876 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24877   cat > conftest.s <<EOF
24878         .section        .text
24879 .globl _start
24880         .type _start, @function
24881 _start:
24882         .long foo
24883         .size _start, .-_start
24884         .section        .text.foo,"ax",@progbits
24885         .type foo, @function
24886 foo:
24887         .long 0
24888         .size foo, .-foo
24889         .section        .gcc_except_table.foo,"a",@progbits
24890 .L0:
24891         .long 0
24892         .section        .eh_frame,"a",@progbits
24893         .long .L0
24894 EOF
24895   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24896     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24897          | grep "gc-sections option ignored" > /dev/null; then
24898       gcc_cv_ld_eh_gc_sections=no
24899     elif $gcc_cv_objdump -h conftest 2> /dev/null \
24900          | grep gcc_except_table > /dev/null; then
24901       gcc_cv_ld_eh_gc_sections=yes
24902       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24903       if test x$gcc_cv_as_comdat_group != xyes; then
24904         gcc_cv_ld_eh_gc_sections=no
24905         cat > conftest.s <<EOF
24906         .section        .text
24907 .globl _start
24908         .type _start, @function
24909 _start:
24910         .long foo
24911         .size _start, .-_start
24912         .section        .gnu.linkonce.t.foo,"ax",@progbits
24913         .type foo, @function
24914 foo:
24915         .long 0
24916         .size foo, .-foo
24917         .section        .gcc_except_table.foo,"a",@progbits
24918 .L0:
24919         .long 0
24920         .section        .eh_frame,"a",@progbits
24921         .long .L0
24922 EOF
24923         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24924           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24925                | grep "gc-sections option ignored" > /dev/null; then
24926             gcc_cv_ld_eh_gc_sections=no
24927           elif $gcc_cv_objdump -h conftest 2> /dev/null \
24928                | grep gcc_except_table > /dev/null; then
24929             gcc_cv_ld_eh_gc_sections=yes
24930           fi
24931         fi
24932       fi
24933     fi
24934   fi
24935   rm -f conftest.s conftest.o conftest
24936 fi
24937 case "$target" in
24938   hppa*-*-linux*)
24939     # ??? This apparently exposes a binutils bug with PC-relative relocations.
24940     gcc_cv_ld_eh_gc_sections=no
24941     ;;
24942 esac
24943 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24944
24945 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24946
24947 fi
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24949 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24950
24951 # --------
24952 # UNSORTED
24953 # --------
24954
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24956 $as_echo_n "checking linker --as-needed support... " >&6; }
24957 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24958   $as_echo_n "(cached) " >&6
24959 else
24960   gcc_cv_ld_as_needed=no
24961 if test $in_tree_ld = yes ; then
24962   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 \
24963      && test $in_tree_ld_is_elf = yes; then
24964     gcc_cv_ld_as_needed=yes
24965   fi
24966 elif test x$gcc_cv_ld != x; then
24967         # Check if linker supports --as-needed and --no-as-needed options
24968         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24969                 gcc_cv_ld_as_needed=yes
24970         fi
24971 fi
24972
24973 fi
24974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24975 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24976 if test x"$gcc_cv_ld_as_needed" = xyes; then
24977
24978 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24979
24980 fi
24981
24982 case "$target:$tm_file" in
24983   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24985 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24986 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24987   $as_echo_n "(cached) " >&6
24988 else
24989   gcc_cv_ld_no_dot_syms=no
24990     if test $in_tree_ld = yes ; then
24991       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
24992         gcc_cv_ld_no_dot_syms=yes
24993       fi
24994     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24995       cat > conftest1.s <<EOF
24996         .text
24997         bl .foo
24998 EOF
24999       cat > conftest2.s <<EOF
25000         .section ".opd","aw"
25001         .align 3
25002         .globl foo
25003         .type foo,@function
25004 foo:
25005         .quad .LEfoo,.TOC.@tocbase,0
25006         .text
25007 .LEfoo:
25008         blr
25009         .size foo,.-.LEfoo
25010 EOF
25011       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25012          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25013          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25014         gcc_cv_ld_no_dot_syms=yes
25015       fi
25016       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25017     fi
25018
25019 fi
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25021 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25022     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25023
25024 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25025
25026     fi
25027
25028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25029 $as_echo_n "checking linker large toc support... " >&6; }
25030 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25031   $as_echo_n "(cached) " >&6
25032 else
25033   gcc_cv_ld_large_toc=no
25034     if test $in_tree_ld = yes ; then
25035       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
25036         gcc_cv_ld_large_toc=yes
25037       fi
25038     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25039       cat > conftest.s <<EOF
25040         .section ".tbss","awT",@nobits
25041         .align 3
25042 ie0:    .space 8
25043         .global _start
25044         .text
25045 _start:
25046         addis 9,13,ie0@got@tprel@ha
25047         ld 9,ie0@got@tprel@l(9)
25048 EOF
25049       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25050          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25051         gcc_cv_ld_large_toc=yes
25052       fi
25053       rm -f conftest conftest.o conftest.s
25054     fi
25055
25056 fi
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25058 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25059     if test x"$gcc_cv_ld_large_toc" = xyes; then
25060
25061 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25062
25063     fi
25064     ;;
25065 esac
25066
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25068 $as_echo_n "checking linker --build-id support... " >&6; }
25069 if test "${gcc_cv_ld_buildid+set}" = set; then :
25070   $as_echo_n "(cached) " >&6
25071 else
25072   gcc_cv_ld_buildid=no
25073   if test $in_tree_ld = yes ; then
25074     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25075        "$gcc_cv_gld_minor_version" -ge 18 -o \
25076        "$gcc_cv_gld_major_version" -gt 2 \
25077        && test $in_tree_ld_is_elf = yes; then
25078       gcc_cv_ld_buildid=yes
25079     fi
25080   elif test x$gcc_cv_ld != x; then
25081     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25082       gcc_cv_ld_buildid=yes
25083     fi
25084   fi
25085 fi
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25087 $as_echo "$gcc_cv_ld_buildid" >&6; }
25088 if test x"$gcc_cv_ld_buildid" = xyes; then
25089
25090 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25091
25092 fi
25093
25094 # Check whether --enable-linker-build-id was given.
25095 if test "${enable_linker_build_id+set}" = set; then :
25096   enableval=$enable_linker_build_id;
25097 else
25098   enable_linker_build_id=no
25099 fi
25100
25101
25102 if test x"$enable_linker_build_id" = xyes; then
25103   if test x"$gcc_cv_ld_buildid" = xyes; then
25104
25105 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25106
25107   else
25108     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25109 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25110   fi
25111 fi
25112
25113 # In binutils 2.21, GNU ld gained support for new emulations fully
25114 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25116 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25117 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25118   $as_echo_n "(cached) " >&6
25119 else
25120   gcc_cv_ld_sol2_emulation=no
25121   if test $in_tree_ld = yes ; then
25122     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25123        "$gcc_cv_gld_minor_version" -ge 21 -o \
25124        "$gcc_cv_gld_major_version" -gt 2 \
25125        && test $in_tree_ld_is_elf = yes; then
25126       gcc_cv_ld_sol2_emulation=yes
25127     fi
25128   elif test x$gcc_cv_ld != x; then
25129     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25130        grep _sol2 > /dev/null; then
25131       gcc_cv_ld_sol2_emulation=yes
25132     fi
25133   fi
25134 fi
25135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25136 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25137 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25138
25139 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25140
25141 fi
25142
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25144 $as_echo_n "checking linker --sysroot support... " >&6; }
25145 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25146   $as_echo_n "(cached) " >&6
25147 else
25148   gcc_cv_ld_sysroot=no
25149   if test $in_tree_ld = yes ; then
25150       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
25151         gcc_cv_ld_sysroot=yes
25152       fi
25153   elif test x$gcc_cv_ld != x; then
25154     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25155       gcc_cv_ld_sysroot=yes
25156     fi
25157   fi
25158 fi
25159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25160 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25161 if test x"$gcc_cv_ld_sysroot" = xyes; then
25162
25163 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25164
25165 fi
25166
25167 if test x$with_sysroot = x && test x$host = x$target \
25168    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25169    && test "$prefix" != "NONE"; then
25170
25171 cat >>confdefs.h <<_ACEOF
25172 #define PREFIX_INCLUDE_DIR "$prefix/include"
25173 _ACEOF
25174
25175 fi
25176
25177 # Test for stack protector support in target C library.
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25179 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25180 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25181   $as_echo_n "(cached) " >&6
25182 else
25183   gcc_cv_libc_provides_ssp=no
25184     case "$target" in
25185        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25186       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25187         if test "x$with_headers" != x; then
25188           glibc_header_dir=$with_headers
25189         elif test "x$with_sysroot" = x; then
25190           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25191         elif test "x$with_build_sysroot" != "x"; then
25192           glibc_header_dir="${with_build_sysroot}/usr/include"
25193         elif test "x$with_sysroot" = xyes; then
25194           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25195         else
25196           glibc_header_dir="${with_sysroot}/usr/include"
25197         fi
25198       else
25199         glibc_header_dir=/usr/include
25200       fi
25201       # glibc 2.4 and later provides __stack_chk_fail and
25202       # either __stack_chk_guard, or TLS access to stack guard canary.
25203       if test -f $glibc_header_dir/features.h \
25204          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
25205             $glibc_header_dir/features.h > /dev/null; then
25206         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
25207            $glibc_header_dir/features.h > /dev/null; then
25208           gcc_cv_libc_provides_ssp=yes
25209         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
25210              $glibc_header_dir/features.h > /dev/null \
25211              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
25212              $glibc_header_dir/features.h > /dev/null; then
25213           gcc_cv_libc_provides_ssp=yes
25214         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
25215              $glibc_header_dir/features.h > /dev/null && \
25216              test -f $glibc_header_dir/bits/uClibc_config.h && \
25217              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
25218              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
25219           gcc_cv_libc_provides_ssp=yes
25220         fi
25221       fi
25222         ;;
25223        *-*-gnu*)
25224          # Avoid complicated tests (see
25225          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25226          # simply assert that glibc does provide this, which is true for all
25227          # realistically usable GNU/Hurd configurations.
25228          gcc_cv_libc_provides_ssp=yes;;
25229        *-*-darwin* | *-*-freebsd*)
25230          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25231 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25232   gcc_cv_libc_provides_ssp=yes
25233 else
25234   echo "no __stack_chk_fail on this target"
25235 fi
25236
25237         ;;
25238   *) gcc_cv_libc_provides_ssp=no ;;
25239     esac
25240 fi
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25242 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25243
25244 if test x$gcc_cv_libc_provides_ssp = xyes; then
25245
25246 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25247
25248 fi
25249
25250 # Check if TFmode long double should be used by default or not.
25251 # Some glibc targets used DFmode long double, but with glibc 2.4
25252 # and later they can use TFmode.
25253 case "$target" in
25254   powerpc*-*-linux* | \
25255   powerpc*-*-gnu* | \
25256   sparc*-*-linux* | \
25257   s390*-*-linux* | \
25258   alpha*-*-linux*)
25259
25260 # Check whether --with-long-double-128 was given.
25261 if test "${with_long_double_128+set}" = set; then :
25262   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25263 else
25264   gcc_cv_target_ldbl128=no
25265       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25266         if test "x$with_sysroot" = x; then
25267           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25268         elif test "x$with_build_sysroot" != "x"; then
25269           glibc_header_dir="${with_build_sysroot}/usr/include"
25270         elif test "x$with_sysroot" = xyes; then
25271           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25272         else
25273           glibc_header_dir="${with_sysroot}/usr/include"
25274         fi
25275       else
25276         glibc_header_dir=/usr/include
25277       fi
25278       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25279         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25280       && gcc_cv_target_ldbl128=yes
25281
25282 fi
25283
25284     ;;
25285 esac
25286 if test x$gcc_cv_target_ldbl128 = xyes; then
25287
25288 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25289
25290 fi
25291
25292 # Find out what GC implementation we want, or may, use.
25293
25294 # Check whether --with-gc was given.
25295 if test "${with_gc+set}" = set; then :
25296   withval=$with_gc; case "$withval" in
25297   page)
25298     GGC=ggc-$withval
25299     ;;
25300   zone)
25301     GGC=ggc-$withval
25302
25303 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25304
25305     ;;
25306   *)
25307     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25308     ;;
25309 esac
25310 else
25311   GGC=ggc-page
25312 fi
25313
25314
25315 echo "Using $GGC for garbage collection."
25316
25317 # Libraries to use on the host.  This will normally be set by the top
25318 # level Makefile.  Here we simply capture the value for our Makefile.
25319 if test -z "${HOST_LIBS+set}"; then
25320   HOST_LIBS=
25321 fi
25322
25323
25324 # Use the system's zlib library.
25325 zlibdir=-L../zlib
25326 zlibinc="-I\$(srcdir)/../zlib"
25327
25328 # Check whether --with-system-zlib was given.
25329 if test "${with_system_zlib+set}" = set; then :
25330   withval=$with_system_zlib; zlibdir=
25331 zlibinc=
25332
25333 fi
25334
25335
25336
25337
25338
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25340 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25341     # Check whether --enable-maintainer-mode was given.
25342 if test "${enable_maintainer_mode+set}" = set; then :
25343   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25344 else
25345   maintainer_mode=no
25346 fi
25347
25348
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25350 $as_echo "$maintainer_mode" >&6; }
25351
25352 if test "$maintainer_mode" = "yes"; then
25353   MAINT=''
25354 else
25355   MAINT='#'
25356 fi
25357
25358 # --------------
25359 # Language hooks
25360 # --------------
25361
25362 # Make empty files to contain the specs and options for each language.
25363 # Then add #include lines to for a compiler that has specs and/or options.
25364
25365 subdirs=
25366 lang_opt_files=
25367 lang_specs_files=
25368 lang_tree_files=
25369 # These (without "all_") are set in each config-lang.in.
25370 # `language' must be a single word so is spelled singularly.
25371 all_languages=
25372 all_compilers=
25373 all_outputs='Makefile gccbug'
25374 # List of language makefile fragments.
25375 all_lang_makefrags=
25376 # Additional files for gengtype
25377 all_gtfiles="$target_gtfiles"
25378
25379 # These are the languages that are set in --enable-languages,
25380 # and are available in the GCC tree.
25381 all_selected_languages=
25382
25383 # Add the language fragments.
25384 # Languages are added via two mechanisms.  Some information must be
25385 # recorded in makefile variables, these are defined in config-lang.in.
25386 # We accumulate them and plug them into the main Makefile.
25387 # The other mechanism is a set of hooks for each of the main targets
25388 # like `clean', `install', etc.
25389
25390 language_hooks="Make-hooks"
25391
25392 for lang in ${srcdir}/*/config-lang.in
25393 do
25394         test "$lang" = "${srcdir}/*/config-lang.in" && continue
25395
25396         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
25397         if test "x$lang_alias" = x
25398         then
25399               echo "$lang doesn't set \$language." 1>&2
25400               exit 1
25401         fi
25402         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25403         subdirs="$subdirs $subdir"
25404
25405         # $gcc_subdir is where the gcc integration files are to be found
25406         # for a language, both for internal compiler purposes (compiler
25407         # sources implementing front-end to GCC tree converters), and for
25408         # build infrastructure purposes (Make-lang.in, etc.)
25409         #
25410         # This will be <subdir> (relative to $srcdir) if a line like
25411         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25412         # is found in <langdir>/config-lang.in, and will remain <langdir>
25413         # otherwise.
25414         #
25415         # Except for the language alias (fetched above), the regular
25416         # "config-lang.in" contents are always retrieved from $gcc_subdir,
25417         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25418         # only this and the language alias.
25419
25420         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
25421         if [ "$gcc_subdir" = "" ]; then
25422            gcc_subdir="$subdir"
25423         fi
25424
25425         case ",$enable_languages," in
25426         *,$lang_alias,*)
25427             all_selected_languages="$all_selected_languages $lang_alias"
25428             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25429                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25430             fi
25431             ;;
25432         esac
25433
25434         language=
25435         boot_language=
25436         compilers=
25437         outputs=
25438         gtfiles=
25439         subdir_requires=
25440         . ${srcdir}/$gcc_subdir/config-lang.in
25441         if test "x$language" = x
25442         then
25443                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25444                 exit 1
25445         fi
25446
25447         ok=:
25448         case ",$enable_languages," in
25449                 *,$lang_alias,*) ;;
25450                 *)
25451                         for i in $subdir_requires; do
25452                                 test -f "${srcdir}/$i/config-lang.in" && continue
25453                                 ok=false
25454                                 break
25455                         done
25456                 ;;
25457         esac
25458         $ok || continue
25459
25460         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25461         if test -f $srcdir/$gcc_subdir/lang.opt; then
25462             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25463         fi
25464         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25465             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25466         fi
25467         all_languages="$all_languages $language"
25468         all_compilers="$all_compilers $compilers"
25469         all_outputs="$all_outputs $outputs"
25470         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25471         case ",$enable_languages," in
25472                 *,lto,*)
25473
25474 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25475
25476                     enable_lto=yes
25477
25478                     # LTO needs to speak the platform's object file format, and has a
25479                     # number of implementations of the required binary file access APIs.
25480                     # ELF is the most common, and default.  We only link libelf if ELF
25481                     # is indeed the selected format.
25482                     LTO_BINARY_READER=${lto_binary_reader}
25483                     LTO_USE_LIBELF=-lelf
25484                     if test "x$lto_binary_reader" != "xlto-elf" ; then
25485                       LTO_USE_LIBELF=
25486                     fi
25487
25488
25489                     ;;
25490                 *) ;;
25491         esac
25492 done
25493
25494 # Pick up gtfiles for c
25495 gtfiles=
25496 . ${srcdir}/c-config-lang.in
25497 all_gtfiles="$all_gtfiles [c] $gtfiles"
25498
25499 check_languages=
25500 for language in $all_selected_languages
25501 do
25502         check_languages="$check_languages check-$language"
25503 done
25504
25505 # We link each language in with a set of hooks, reached indirectly via
25506 # lang.${target}.  Only do so for selected languages.
25507
25508 rm -f Make-hooks
25509 touch Make-hooks
25510 target_list="all.cross start.encap rest.encap tags \
25511         install-common install-man install-info install-pdf install-html dvi \
25512         pdf html uninstall info man srcextra srcman srcinfo \
25513         mostlyclean clean distclean maintainer-clean install-plugin"
25514
25515 for t in $target_list
25516 do
25517         x=
25518         for lang in $all_selected_languages
25519         do
25520                 x="$x $lang.$t"
25521         done
25522         echo "lang.$t: $x" >> Make-hooks
25523 done
25524
25525 # --------
25526 # UNSORTED
25527 # --------
25528
25529 # Create .gdbinit.
25530
25531 echo "dir ." > .gdbinit
25532 echo "dir ${srcdir}" >> .gdbinit
25533 if test x$gdb_needs_out_file_path = xyes
25534 then
25535         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25536 fi
25537 if test "x$subdirs" != x; then
25538         for s in $subdirs
25539         do
25540                 echo "dir ${srcdir}/$s" >> .gdbinit
25541         done
25542 fi
25543 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25544
25545 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25546
25547
25548
25549 # Find a directory in which to install a shared libgcc.
25550
25551 # Check whether --enable-version-specific-runtime-libs was given.
25552 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25553   enableval=$enable_version_specific_runtime_libs;
25554 fi
25555
25556
25557
25558 # Check whether --with-slibdir was given.
25559 if test "${with_slibdir+set}" = set; then :
25560   withval=$with_slibdir; slibdir="$with_slibdir"
25561 else
25562   if test "${enable_version_specific_runtime_libs+set}" = set; then
25563   slibdir='$(libsubdir)'
25564 elif test "$host" != "$target"; then
25565   slibdir='$(build_tooldir)/lib'
25566 else
25567   slibdir='$(libdir)'
25568 fi
25569 fi
25570
25571
25572
25573 # Substitute configuration variables
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591
25592
25593
25594
25595
25596
25597
25598
25599
25600
25601
25602
25603
25604
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 # Echo link setup.
25637 if test x${build} = x${host} ; then
25638   if test x${host} = x${target} ; then
25639     echo "Links are now set up to build a native compiler for ${target}." 1>&2
25640   else
25641     echo "Links are now set up to build a cross-compiler" 1>&2
25642     echo " from ${host} to ${target}." 1>&2
25643   fi
25644 else
25645   if test x${host} = x${target} ; then
25646     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25647     echo " for ${target}." 1>&2
25648   else
25649     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25650     echo " from ${host} to ${target}." 1>&2
25651   fi
25652 fi
25653
25654
25655
25656
25657
25658
25659
25660
25661
25662 if test "x${CLOOGLIBS}" != "x" ; then
25663
25664 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25665
25666 fi
25667
25668
25669
25670 if test "x${LIBELFLIBS}" != "x" ; then
25671
25672 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25673
25674 fi
25675
25676 # Check for plugin support
25677 # Check whether --enable-plugin was given.
25678 if test "${enable_plugin+set}" = set; then :
25679   enableval=$enable_plugin; enable_plugin=$enableval
25680 else
25681   enable_plugin=yes; default_plugin=yes
25682 fi
25683
25684
25685 pluginlibs=
25686
25687 case "${host}" in
25688   *-*-darwin*)
25689     if test x$build = x$host; then
25690       export_sym_check="nm${exeext} -g"
25691     elif test x$host = x$target; then
25692       export_sym_check="$gcc_cv_nm -g"
25693     else
25694       export_sym_check=
25695     fi
25696   ;;
25697   *)
25698     if test x$build = x$host; then
25699       export_sym_check="objdump${exeext} -T"
25700     elif test x$host = x$target; then
25701       export_sym_check="$gcc_cv_objdump -T"
25702     else
25703       export_sym_check=
25704     fi
25705   ;;
25706 esac
25707
25708 if test x"$enable_plugin" = x"yes"; then
25709
25710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25711 $as_echo_n "checking for exported symbols... " >&6; }
25712   if test "x$export_sym_check" != x; then
25713     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25714     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25715     if $export_sym_check conftest | grep foobar > /dev/null; then
25716       : # No need to use a flag
25717       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25718 $as_echo "yes" >&6; }
25719     else
25720       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25721 $as_echo "yes" >&6; }
25722       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25723 $as_echo_n "checking for -rdynamic... " >&6; }
25724       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25725       if $export_sym_check conftest | grep foobar > /dev/null; then
25726         plugin_rdynamic=yes
25727         pluginlibs="-rdynamic"
25728       else
25729         plugin_rdynamic=no
25730         enable_plugin=no
25731       fi
25732       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25733 $as_echo "$plugin_rdynamic" >&6; }
25734     fi
25735   else
25736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
25737 $as_echo "unable to check" >&6; }
25738   fi
25739
25740   # Check -ldl
25741   saved_LIBS="$LIBS"
25742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25743 $as_echo_n "checking for library containing dlopen... " >&6; }
25744 if test "${ac_cv_search_dlopen+set}" = set; then :
25745   $as_echo_n "(cached) " >&6
25746 else
25747   ac_func_search_save_LIBS=$LIBS
25748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25749 /* end confdefs.h.  */
25750
25751 /* Override any GCC internal prototype to avoid an error.
25752    Use char because int might match the return type of a GCC
25753    builtin and then its argument prototype would still apply.  */
25754 #ifdef __cplusplus
25755 extern "C"
25756 #endif
25757 char dlopen ();
25758 int
25759 main ()
25760 {
25761 return dlopen ();
25762   ;
25763   return 0;
25764 }
25765 _ACEOF
25766 for ac_lib in '' dl; do
25767   if test -z "$ac_lib"; then
25768     ac_res="none required"
25769   else
25770     ac_res=-l$ac_lib
25771     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25772   fi
25773   if ac_fn_c_try_link "$LINENO"; then :
25774   ac_cv_search_dlopen=$ac_res
25775 fi
25776 rm -f core conftest.err conftest.$ac_objext \
25777     conftest$ac_exeext
25778   if test "${ac_cv_search_dlopen+set}" = set; then :
25779   break
25780 fi
25781 done
25782 if test "${ac_cv_search_dlopen+set}" = set; then :
25783
25784 else
25785   ac_cv_search_dlopen=no
25786 fi
25787 rm conftest.$ac_ext
25788 LIBS=$ac_func_search_save_LIBS
25789 fi
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25791 $as_echo "$ac_cv_search_dlopen" >&6; }
25792 ac_res=$ac_cv_search_dlopen
25793 if test "$ac_res" != no; then :
25794   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25795
25796 fi
25797
25798   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25799     pluginlibs="$pluginlibs -ldl"
25800   fi
25801   LIBS="$saved_LIBS"
25802
25803   # Check that we can build shared objects with -fPIC -shared
25804   saved_LDFLAGS="$LDFLAGS"
25805   case "${host}" in
25806     *-*-darwin*)
25807       LDFLAGS="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
25808     ;;
25809     *)
25810       LDFLAGS="$LDFLAGS -fPIC -shared"
25811     ;;
25812   esac
25813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25814 $as_echo_n "checking for -fPIC -shared... " >&6; }
25815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25816 /* end confdefs.h.  */
25817 extern int X;
25818 int
25819 main ()
25820 {
25821 return X == 0;
25822   ;
25823   return 0;
25824 }
25825 _ACEOF
25826 if ac_fn_c_try_link "$LINENO"; then :
25827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25828 $as_echo "yes" >&6; }; have_pic_shared=yes
25829 else
25830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25831 $as_echo "no" >&6; }; have_pic_shared=no
25832 fi
25833 rm -f core conftest.err conftest.$ac_objext \
25834     conftest$ac_exeext conftest.$ac_ext
25835   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25836     pluginlibs=
25837     enable_plugin=no
25838   fi
25839   LDFLAGS="$saved_LDFLAGS"
25840
25841   # If plugin support had been requested but not available, fail.
25842   if test x"$enable_plugin" = x"no" ; then
25843     if test x"$default_plugin" != x"yes"; then
25844       as_fn_error "
25845 Building GCC with plugin support requires a host that supports
25846 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25847     fi
25848   fi
25849 fi
25850
25851
25852
25853 if test x"$enable_plugin" = x"yes"; then
25854
25855 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25856
25857 fi
25858
25859 # Configure the subdirectories
25860 # AC_CONFIG_SUBDIRS($subdirs)
25861
25862 # Create the Makefile
25863 # and configure language subdirectories
25864 ac_config_files="$ac_config_files $all_outputs"
25865
25866
25867 ac_config_commands="$ac_config_commands default"
25868
25869 cat >confcache <<\_ACEOF
25870 # This file is a shell script that caches the results of configure
25871 # tests run on this system so they can be shared between configure
25872 # scripts and configure runs, see configure's option --config-cache.
25873 # It is not useful on other systems.  If it contains results you don't
25874 # want to keep, you may remove or edit it.
25875 #
25876 # config.status only pays attention to the cache file if you give it
25877 # the --recheck option to rerun configure.
25878 #
25879 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25880 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25881 # following values.
25882
25883 _ACEOF
25884
25885 # The following way of writing the cache mishandles newlines in values,
25886 # but we know of no workaround that is simple, portable, and efficient.
25887 # So, we kill variables containing newlines.
25888 # Ultrix sh set writes to stderr and can't be redirected directly,
25889 # and sets the high bit in the cache file unless we assign to the vars.
25890 (
25891   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25892     eval ac_val=\$$ac_var
25893     case $ac_val in #(
25894     *${as_nl}*)
25895       case $ac_var in #(
25896       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25897 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25898       esac
25899       case $ac_var in #(
25900       _ | IFS | as_nl) ;; #(
25901       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25902       *) { eval $ac_var=; unset $ac_var;} ;;
25903       esac ;;
25904     esac
25905   done
25906
25907   (set) 2>&1 |
25908     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25909     *${as_nl}ac_space=\ *)
25910       # `set' does not quote correctly, so add quotes: double-quote
25911       # substitution turns \\\\ into \\, and sed turns \\ into \.
25912       sed -n \
25913         "s/'/'\\\\''/g;
25914           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25915       ;; #(
25916     *)
25917       # `set' quotes correctly as required by POSIX, so do not add quotes.
25918       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25919       ;;
25920     esac |
25921     sort
25922 ) |
25923   sed '
25924      /^ac_cv_env_/b end
25925      t clear
25926      :clear
25927      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25928      t end
25929      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25930      :end' >>confcache
25931 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25932   if test -w "$cache_file"; then
25933     test "x$cache_file" != "x/dev/null" &&
25934       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25935 $as_echo "$as_me: updating cache $cache_file" >&6;}
25936     cat confcache >$cache_file
25937   else
25938     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25939 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25940   fi
25941 fi
25942 rm -f confcache
25943
25944 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25945 # Let make expand exec_prefix.
25946 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25947
25948 DEFS=-DHAVE_CONFIG_H
25949
25950 ac_libobjs=
25951 ac_ltlibobjs=
25952 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25953   # 1. Remove the extension, and $U if already installed.
25954   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25955   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25956   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25957   #    will be set to the directory where LIBOBJS objects are built.
25958   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25959   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25960 done
25961 LIBOBJS=$ac_libobjs
25962
25963 LTLIBOBJS=$ac_ltlibobjs
25964
25965
25966
25967
25968 : ${CONFIG_STATUS=./config.status}
25969 ac_write_fail=0
25970 ac_clean_files_save=$ac_clean_files
25971 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25973 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25974 as_write_fail=0
25975 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25976 #! $SHELL
25977 # Generated by $as_me.
25978 # Run this file to recreate the current configuration.
25979 # Compiler output produced by configure, useful for debugging
25980 # configure, is in config.log if it exists.
25981
25982 debug=false
25983 ac_cs_recheck=false
25984 ac_cs_silent=false
25985
25986 SHELL=\${CONFIG_SHELL-$SHELL}
25987 export SHELL
25988 _ASEOF
25989 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25990 ## -------------------- ##
25991 ## M4sh Initialization. ##
25992 ## -------------------- ##
25993
25994 # Be more Bourne compatible
25995 DUALCASE=1; export DUALCASE # for MKS sh
25996 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25997   emulate sh
25998   NULLCMD=:
25999   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26000   # is contrary to our usage.  Disable this feature.
26001   alias -g '${1+"$@"}'='"$@"'
26002   setopt NO_GLOB_SUBST
26003 else
26004   case `(set -o) 2>/dev/null` in #(
26005   *posix*) :
26006     set -o posix ;; #(
26007   *) :
26008      ;;
26009 esac
26010 fi
26011
26012
26013 as_nl='
26014 '
26015 export as_nl
26016 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26017 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26018 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26019 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26020 # Prefer a ksh shell builtin over an external printf program on Solaris,
26021 # but without wasting forks for bash or zsh.
26022 if test -z "$BASH_VERSION$ZSH_VERSION" \
26023     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26024   as_echo='print -r --'
26025   as_echo_n='print -rn --'
26026 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26027   as_echo='printf %s\n'
26028   as_echo_n='printf %s'
26029 else
26030   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26031     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26032     as_echo_n='/usr/ucb/echo -n'
26033   else
26034     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26035     as_echo_n_body='eval
26036       arg=$1;
26037       case $arg in #(
26038       *"$as_nl"*)
26039         expr "X$arg" : "X\\(.*\\)$as_nl";
26040         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26041       esac;
26042       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26043     '
26044     export as_echo_n_body
26045     as_echo_n='sh -c $as_echo_n_body as_echo'
26046   fi
26047   export as_echo_body
26048   as_echo='sh -c $as_echo_body as_echo'
26049 fi
26050
26051 # The user is always right.
26052 if test "${PATH_SEPARATOR+set}" != set; then
26053   PATH_SEPARATOR=:
26054   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26055     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26056       PATH_SEPARATOR=';'
26057   }
26058 fi
26059
26060
26061 # IFS
26062 # We need space, tab and new line, in precisely that order.  Quoting is
26063 # there to prevent editors from complaining about space-tab.
26064 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26065 # splitting by setting IFS to empty value.)
26066 IFS=" ""        $as_nl"
26067
26068 # Find who we are.  Look in the path if we contain no directory separator.
26069 case $0 in #((
26070   *[\\/]* ) as_myself=$0 ;;
26071   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26072 for as_dir in $PATH
26073 do
26074   IFS=$as_save_IFS
26075   test -z "$as_dir" && as_dir=.
26076     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26077   done
26078 IFS=$as_save_IFS
26079
26080      ;;
26081 esac
26082 # We did not find ourselves, most probably we were run as `sh COMMAND'
26083 # in which case we are not to be found in the path.
26084 if test "x$as_myself" = x; then
26085   as_myself=$0
26086 fi
26087 if test ! -f "$as_myself"; then
26088   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26089   exit 1
26090 fi
26091
26092 # Unset variables that we do not need and which cause bugs (e.g. in
26093 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26094 # suppresses any "Segmentation fault" message there.  '((' could
26095 # trigger a bug in pdksh 5.2.14.
26096 for as_var in BASH_ENV ENV MAIL MAILPATH
26097 do eval test x\${$as_var+set} = xset \
26098   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26099 done
26100 PS1='$ '
26101 PS2='> '
26102 PS4='+ '
26103
26104 # NLS nuisances.
26105 LC_ALL=C
26106 export LC_ALL
26107 LANGUAGE=C
26108 export LANGUAGE
26109
26110 # CDPATH.
26111 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26112
26113
26114 # as_fn_error ERROR [LINENO LOG_FD]
26115 # ---------------------------------
26116 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26117 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26118 # script with status $?, using 1 if that was 0.
26119 as_fn_error ()
26120 {
26121   as_status=$?; test $as_status -eq 0 && as_status=1
26122   if test "$3"; then
26123     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26124     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26125   fi
26126   $as_echo "$as_me: error: $1" >&2
26127   as_fn_exit $as_status
26128 } # as_fn_error
26129
26130
26131 # as_fn_set_status STATUS
26132 # -----------------------
26133 # Set $? to STATUS, without forking.
26134 as_fn_set_status ()
26135 {
26136   return $1
26137 } # as_fn_set_status
26138
26139 # as_fn_exit STATUS
26140 # -----------------
26141 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26142 as_fn_exit ()
26143 {
26144   set +e
26145   as_fn_set_status $1
26146   exit $1
26147 } # as_fn_exit
26148
26149 # as_fn_unset VAR
26150 # ---------------
26151 # Portably unset VAR.
26152 as_fn_unset ()
26153 {
26154   { eval $1=; unset $1;}
26155 }
26156 as_unset=as_fn_unset
26157 # as_fn_append VAR VALUE
26158 # ----------------------
26159 # Append the text in VALUE to the end of the definition contained in VAR. Take
26160 # advantage of any shell optimizations that allow amortized linear growth over
26161 # repeated appends, instead of the typical quadratic growth present in naive
26162 # implementations.
26163 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26164   eval 'as_fn_append ()
26165   {
26166     eval $1+=\$2
26167   }'
26168 else
26169   as_fn_append ()
26170   {
26171     eval $1=\$$1\$2
26172   }
26173 fi # as_fn_append
26174
26175 # as_fn_arith ARG...
26176 # ------------------
26177 # Perform arithmetic evaluation on the ARGs, and store the result in the
26178 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26179 # must be portable across $(()) and expr.
26180 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26181   eval 'as_fn_arith ()
26182   {
26183     as_val=$(( $* ))
26184   }'
26185 else
26186   as_fn_arith ()
26187   {
26188     as_val=`expr "$@" || test $? -eq 1`
26189   }
26190 fi # as_fn_arith
26191
26192
26193 if expr a : '\(a\)' >/dev/null 2>&1 &&
26194    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26195   as_expr=expr
26196 else
26197   as_expr=false
26198 fi
26199
26200 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26201   as_basename=basename
26202 else
26203   as_basename=false
26204 fi
26205
26206 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26207   as_dirname=dirname
26208 else
26209   as_dirname=false
26210 fi
26211
26212 as_me=`$as_basename -- "$0" ||
26213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26214          X"$0" : 'X\(//\)$' \| \
26215          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26216 $as_echo X/"$0" |
26217     sed '/^.*\/\([^/][^/]*\)\/*$/{
26218             s//\1/
26219             q
26220           }
26221           /^X\/\(\/\/\)$/{
26222             s//\1/
26223             q
26224           }
26225           /^X\/\(\/\).*/{
26226             s//\1/
26227             q
26228           }
26229           s/.*/./; q'`
26230
26231 # Avoid depending upon Character Ranges.
26232 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26233 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26234 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26235 as_cr_digits='0123456789'
26236 as_cr_alnum=$as_cr_Letters$as_cr_digits
26237
26238 ECHO_C= ECHO_N= ECHO_T=
26239 case `echo -n x` in #(((((
26240 -n*)
26241   case `echo 'xy\c'` in
26242   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26243   xy)  ECHO_C='\c';;
26244   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26245        ECHO_T=' ';;
26246   esac;;
26247 *)
26248   ECHO_N='-n';;
26249 esac
26250
26251 rm -f conf$$ conf$$.exe conf$$.file
26252 if test -d conf$$.dir; then
26253   rm -f conf$$.dir/conf$$.file
26254 else
26255   rm -f conf$$.dir
26256   mkdir conf$$.dir 2>/dev/null
26257 fi
26258 if (echo >conf$$.file) 2>/dev/null; then
26259   if ln -s conf$$.file conf$$ 2>/dev/null; then
26260     as_ln_s='ln -s'
26261     # ... but there are two gotchas:
26262     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26263     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26264     # In both cases, we have to default to `cp -p'.
26265     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26266       as_ln_s='cp -p'
26267   elif ln conf$$.file conf$$ 2>/dev/null; then
26268     as_ln_s=ln
26269   else
26270     as_ln_s='cp -p'
26271   fi
26272 else
26273   as_ln_s='cp -p'
26274 fi
26275 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26276 rmdir conf$$.dir 2>/dev/null
26277
26278
26279 # as_fn_mkdir_p
26280 # -------------
26281 # Create "$as_dir" as a directory, including parents if necessary.
26282 as_fn_mkdir_p ()
26283 {
26284
26285   case $as_dir in #(
26286   -*) as_dir=./$as_dir;;
26287   esac
26288   test -d "$as_dir" || eval $as_mkdir_p || {
26289     as_dirs=
26290     while :; do
26291       case $as_dir in #(
26292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26293       *) as_qdir=$as_dir;;
26294       esac
26295       as_dirs="'$as_qdir' $as_dirs"
26296       as_dir=`$as_dirname -- "$as_dir" ||
26297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26298          X"$as_dir" : 'X\(//\)[^/]' \| \
26299          X"$as_dir" : 'X\(//\)$' \| \
26300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26301 $as_echo X"$as_dir" |
26302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26303             s//\1/
26304             q
26305           }
26306           /^X\(\/\/\)[^/].*/{
26307             s//\1/
26308             q
26309           }
26310           /^X\(\/\/\)$/{
26311             s//\1/
26312             q
26313           }
26314           /^X\(\/\).*/{
26315             s//\1/
26316             q
26317           }
26318           s/.*/./; q'`
26319       test -d "$as_dir" && break
26320     done
26321     test -z "$as_dirs" || eval "mkdir $as_dirs"
26322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26323
26324
26325 } # as_fn_mkdir_p
26326 if mkdir -p . 2>/dev/null; then
26327   as_mkdir_p='mkdir -p "$as_dir"'
26328 else
26329   test -d ./-p && rmdir ./-p
26330   as_mkdir_p=false
26331 fi
26332
26333 if test -x / >/dev/null 2>&1; then
26334   as_test_x='test -x'
26335 else
26336   if ls -dL / >/dev/null 2>&1; then
26337     as_ls_L_option=L
26338   else
26339     as_ls_L_option=
26340   fi
26341   as_test_x='
26342     eval sh -c '\''
26343       if test -d "$1"; then
26344         test -d "$1/.";
26345       else
26346         case $1 in #(
26347         -*)set "./$1";;
26348         esac;
26349         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26350         ???[sx]*):;;*)false;;esac;fi
26351     '\'' sh
26352   '
26353 fi
26354 as_executable_p=$as_test_x
26355
26356 # Sed expression to map a string onto a valid CPP name.
26357 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26358
26359 # Sed expression to map a string onto a valid variable name.
26360 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26361
26362
26363 exec 6>&1
26364 ## ----------------------------------- ##
26365 ## Main body of $CONFIG_STATUS script. ##
26366 ## ----------------------------------- ##
26367 _ASEOF
26368 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26369
26370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26371 # Save the log message, to keep $0 and so on meaningful, and to
26372 # report actual input values of CONFIG_FILES etc. instead of their
26373 # values after options handling.
26374 ac_log="
26375 This file was extended by $as_me, which was
26376 generated by GNU Autoconf 2.64.  Invocation command line was
26377
26378   CONFIG_FILES    = $CONFIG_FILES
26379   CONFIG_HEADERS  = $CONFIG_HEADERS
26380   CONFIG_LINKS    = $CONFIG_LINKS
26381   CONFIG_COMMANDS = $CONFIG_COMMANDS
26382   $ $0 $@
26383
26384 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26385 "
26386
26387 _ACEOF
26388
26389 case $ac_config_files in *"
26390 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26391 esac
26392
26393 case $ac_config_headers in *"
26394 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26395 esac
26396
26397
26398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26399 # Files that config.status was made for.
26400 config_files="$ac_config_files"
26401 config_headers="$ac_config_headers"
26402 config_commands="$ac_config_commands"
26403
26404 _ACEOF
26405
26406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26407 ac_cs_usage="\
26408 \`$as_me' instantiates files and other configuration actions
26409 from templates according to the current configuration.  Unless the files
26410 and actions are specified as TAGs, all are instantiated by default.
26411
26412 Usage: $0 [OPTION]... [TAG]...
26413
26414   -h, --help       print this help, then exit
26415   -V, --version    print version number and configuration settings, then exit
26416   -q, --quiet, --silent
26417                    do not print progress messages
26418   -d, --debug      don't remove temporary files
26419       --recheck    update $as_me by reconfiguring in the same conditions
26420       --file=FILE[:TEMPLATE]
26421                    instantiate the configuration file FILE
26422       --header=FILE[:TEMPLATE]
26423                    instantiate the configuration header FILE
26424
26425 Configuration files:
26426 $config_files
26427
26428 Configuration headers:
26429 $config_headers
26430
26431 Configuration commands:
26432 $config_commands
26433
26434 Report bugs to the package provider."
26435
26436 _ACEOF
26437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26438 ac_cs_version="\\
26439 config.status
26440 configured by $0, generated by GNU Autoconf 2.64,
26441   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26442
26443 Copyright (C) 2009 Free Software Foundation, Inc.
26444 This config.status script is free software; the Free Software Foundation
26445 gives unlimited permission to copy, distribute and modify it."
26446
26447 ac_pwd='$ac_pwd'
26448 srcdir='$srcdir'
26449 AWK='$AWK'
26450 test -n "\$AWK" || AWK=awk
26451 _ACEOF
26452
26453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26454 # The default lists apply if the user does not specify any file.
26455 ac_need_defaults=:
26456 while test $# != 0
26457 do
26458   case $1 in
26459   --*=*)
26460     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26461     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26462     ac_shift=:
26463     ;;
26464   *)
26465     ac_option=$1
26466     ac_optarg=$2
26467     ac_shift=shift
26468     ;;
26469   esac
26470
26471   case $ac_option in
26472   # Handling of the options.
26473   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26474     ac_cs_recheck=: ;;
26475   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26476     $as_echo "$ac_cs_version"; exit ;;
26477   --debug | --debu | --deb | --de | --d | -d )
26478     debug=: ;;
26479   --file | --fil | --fi | --f )
26480     $ac_shift
26481     case $ac_optarg in
26482     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26483     esac
26484     as_fn_append CONFIG_FILES " '$ac_optarg'"
26485     ac_need_defaults=false;;
26486   --header | --heade | --head | --hea )
26487     $ac_shift
26488     case $ac_optarg in
26489     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26490     esac
26491     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26492     ac_need_defaults=false;;
26493   --he | --h)
26494     # Conflict between --help and --header
26495     as_fn_error "ambiguous option: \`$1'
26496 Try \`$0 --help' for more information.";;
26497   --help | --hel | -h )
26498     $as_echo "$ac_cs_usage"; exit ;;
26499   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26500   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26501     ac_cs_silent=: ;;
26502
26503   # This is an error.
26504   -*) as_fn_error "unrecognized option: \`$1'
26505 Try \`$0 --help' for more information." ;;
26506
26507   *) as_fn_append ac_config_targets " $1"
26508      ac_need_defaults=false ;;
26509
26510   esac
26511   shift
26512 done
26513
26514 ac_configure_extra_args=
26515
26516 if $ac_cs_silent; then
26517   exec 6>/dev/null
26518   ac_configure_extra_args="$ac_configure_extra_args --silent"
26519 fi
26520
26521 _ACEOF
26522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26523 if \$ac_cs_recheck; then
26524   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26525   shift
26526   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26527   CONFIG_SHELL='$SHELL'
26528   export CONFIG_SHELL
26529   exec "\$@"
26530 fi
26531
26532 _ACEOF
26533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26534 exec 5>>config.log
26535 {
26536   echo
26537   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26538 ## Running $as_me. ##
26539 _ASBOX
26540   $as_echo "$ac_log"
26541 } >&5
26542
26543 _ACEOF
26544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26545 #
26546 # INIT-COMMANDS
26547 #
26548 subdirs='$subdirs'
26549
26550 _ACEOF
26551
26552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26553
26554 # Handling of arguments.
26555 for ac_config_target in $ac_config_targets
26556 do
26557   case $ac_config_target in
26558     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26559     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26560     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26561     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26562     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26563     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26564
26565   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26566   esac
26567 done
26568
26569
26570 # If the user did not use the arguments to specify the items to instantiate,
26571 # then the envvar interface is used.  Set only those that are not.
26572 # We use the long form for the default assignment because of an extremely
26573 # bizarre bug on SunOS 4.1.3.
26574 if $ac_need_defaults; then
26575   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26576   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26577   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26578 fi
26579
26580 # Have a temporary directory for convenience.  Make it in the build tree
26581 # simply because there is no reason against having it here, and in addition,
26582 # creating and moving files from /tmp can sometimes cause problems.
26583 # Hook for its removal unless debugging.
26584 # Note that there is a small window in which the directory will not be cleaned:
26585 # after its creation but before its name has been assigned to `$tmp'.
26586 $debug ||
26587 {
26588   tmp=
26589   trap 'exit_status=$?
26590   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26591 ' 0
26592   trap 'as_fn_exit 1' 1 2 13 15
26593 }
26594 # Create a (secure) tmp directory for tmp files.
26595
26596 {
26597   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26598   test -n "$tmp" && test -d "$tmp"
26599 }  ||
26600 {
26601   tmp=./conf$$-$RANDOM
26602   (umask 077 && mkdir "$tmp")
26603 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26604
26605 # Set up the scripts for CONFIG_FILES section.
26606 # No need to generate them if there are no CONFIG_FILES.
26607 # This happens for instance with `./config.status config.h'.
26608 if test -n "$CONFIG_FILES"; then
26609
26610 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26611   ac_cs_awk_getline=:
26612   ac_cs_awk_pipe_init=
26613   ac_cs_awk_read_file='
26614       while ((getline aline < (F[key])) > 0)
26615         print(aline)
26616       close(F[key])'
26617   ac_cs_awk_pipe_fini=
26618 else
26619   ac_cs_awk_getline=false
26620   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26621   ac_cs_awk_read_file='
26622       print "|#_!!_#|"
26623       print "cat " F[key] " &&"
26624       '$ac_cs_awk_pipe_init
26625   # The final `:' finishes the AND list.
26626   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26627 fi
26628 ac_cr=`echo X | tr X '\015'`
26629 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26630 # But we know of no other shell where ac_cr would be empty at this
26631 # point, so we can use a bashism as a fallback.
26632 if test "x$ac_cr" = x; then
26633   eval ac_cr=\$\'\\r\'
26634 fi
26635 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26636 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26637   ac_cs_awk_cr='\r'
26638 else
26639   ac_cs_awk_cr=$ac_cr
26640 fi
26641
26642 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26643 _ACEOF
26644
26645 # Create commands to substitute file output variables.
26646 {
26647   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26648   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26649   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26650   echo "_ACAWK" &&
26651   echo "_ACEOF"
26652 } >conf$$files.sh &&
26653 . ./conf$$files.sh ||
26654   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26655 rm -f conf$$files.sh
26656
26657 {
26658   echo "cat >conf$$subs.awk <<_ACEOF" &&
26659   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26660   echo "_ACEOF"
26661 } >conf$$subs.sh ||
26662   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26663 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26664 ac_delim='%!_!# '
26665 for ac_last_try in false false false false false :; do
26666   . ./conf$$subs.sh ||
26667     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26668
26669   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26670   if test $ac_delim_n = $ac_delim_num; then
26671     break
26672   elif $ac_last_try; then
26673     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26674   else
26675     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26676   fi
26677 done
26678 rm -f conf$$subs.sh
26679
26680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26681 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26682 _ACEOF
26683 sed -n '
26684 h
26685 s/^/S["/; s/!.*/"]=/
26686 p
26687 g
26688 s/^[^!]*!//
26689 :repl
26690 t repl
26691 s/'"$ac_delim"'$//
26692 t delim
26693 :nl
26694 h
26695 s/\(.\{148\}\).*/\1/
26696 t more1
26697 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26698 p
26699 n
26700 b repl
26701 :more1
26702 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26703 p
26704 g
26705 s/.\{148\}//
26706 t nl
26707 :delim
26708 h
26709 s/\(.\{148\}\).*/\1/
26710 t more2
26711 s/["\\]/\\&/g; s/^/"/; s/$/"/
26712 p
26713 b
26714 :more2
26715 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26716 p
26717 g
26718 s/.\{148\}//
26719 t delim
26720 ' <conf$$subs.awk | sed '
26721 /^[^""]/{
26722   N
26723   s/\n//
26724 }
26725 ' >>$CONFIG_STATUS || ac_write_fail=1
26726 rm -f conf$$subs.awk
26727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26728 _ACAWK
26729 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26730   for (key in S) S_is_set[key] = 1
26731   FS = "\a"
26732   \$ac_cs_awk_pipe_init
26733 }
26734 {
26735   line = $ 0
26736   nfields = split(line, field, "@")
26737   substed = 0
26738   len = length(field[1])
26739   for (i = 2; i < nfields; i++) {
26740     key = field[i]
26741     keylen = length(key)
26742     if (S_is_set[key]) {
26743       value = S[key]
26744       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26745       len += length(value) + length(field[++i])
26746       substed = 1
26747     } else
26748       len += 1 + keylen
26749   }
26750   if (nfields == 3 && !substed) {
26751     key = field[2]
26752     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
26753       \$ac_cs_awk_read_file
26754       next
26755     }
26756   }
26757   print line
26758 }
26759 \$ac_cs_awk_pipe_fini
26760 _ACAWK
26761 _ACEOF
26762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26763 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26764   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26765 else
26766   cat
26767 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26768   || as_fn_error "could not setup config files machinery" "$LINENO" 5
26769 _ACEOF
26770
26771 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26772 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26773 # trailing colons and then remove the whole line if VPATH becomes empty
26774 # (actually we leave an empty line to preserve line numbers).
26775 if test "x$srcdir" = x.; then
26776   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26777 s/:*\$(srcdir):*/:/
26778 s/:*\${srcdir}:*/:/
26779 s/:*@srcdir@:*/:/
26780 s/^\([^=]*=[     ]*\):*/\1/
26781 s/:*$//
26782 s/^[^=]*=[       ]*$//
26783 }'
26784 fi
26785
26786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26787 fi # test -n "$CONFIG_FILES"
26788
26789 # Set up the scripts for CONFIG_HEADERS section.
26790 # No need to generate them if there are no CONFIG_HEADERS.
26791 # This happens for instance with `./config.status Makefile'.
26792 if test -n "$CONFIG_HEADERS"; then
26793 cat >"$tmp/defines.awk" <<\_ACAWK ||
26794 BEGIN {
26795 _ACEOF
26796
26797 # Transform confdefs.h into an awk script `defines.awk', embedded as
26798 # here-document in config.status, that substitutes the proper values into
26799 # config.h.in to produce config.h.
26800
26801 # Create a delimiter string that does not exist in confdefs.h, to ease
26802 # handling of long lines.
26803 ac_delim='%!_!# '
26804 for ac_last_try in false false :; do
26805   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26806   if test -z "$ac_t"; then
26807     break
26808   elif $ac_last_try; then
26809     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26810   else
26811     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26812   fi
26813 done
26814
26815 # For the awk script, D is an array of macro values keyed by name,
26816 # likewise P contains macro parameters if any.  Preserve backslash
26817 # newline sequences.
26818
26819 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26820 sed -n '
26821 s/.\{148\}/&'"$ac_delim"'/g
26822 t rset
26823 :rset
26824 s/^[     ]*#[    ]*define[       ][      ]*/ /
26825 t def
26826 d
26827 :def
26828 s/\\$//
26829 t bsnl
26830 s/["\\]/\\&/g
26831 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26832 D["\1"]=" \3"/p
26833 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26834 d
26835 :bsnl
26836 s/["\\]/\\&/g
26837 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26838 D["\1"]=" \3\\\\\\n"\\/p
26839 t cont
26840 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26841 t cont
26842 d
26843 :cont
26844 n
26845 s/.\{148\}/&'"$ac_delim"'/g
26846 t clear
26847 :clear
26848 s/\\$//
26849 t bsnlc
26850 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26851 d
26852 :bsnlc
26853 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26854 b cont
26855 ' <confdefs.h | sed '
26856 s/'"$ac_delim"'/"\\\
26857 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26858
26859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26860   for (key in D) D_is_set[key] = 1
26861   FS = "\a"
26862 }
26863 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26864   line = \$ 0
26865   split(line, arg, " ")
26866   if (arg[1] == "#") {
26867     defundef = arg[2]
26868     mac1 = arg[3]
26869   } else {
26870     defundef = substr(arg[1], 2)
26871     mac1 = arg[2]
26872   }
26873   split(mac1, mac2, "(") #)
26874   macro = mac2[1]
26875   prefix = substr(line, 1, index(line, defundef) - 1)
26876   if (D_is_set[macro]) {
26877     # Preserve the white space surrounding the "#".
26878     print prefix "define", macro P[macro] D[macro]
26879     next
26880   } else {
26881     # Replace #undef with comments.  This is necessary, for example,
26882     # in the case of _POSIX_SOURCE, which is predefined and required
26883     # on some systems where configure will not decide to define it.
26884     if (defundef == "undef") {
26885       print "/*", prefix defundef, macro, "*/"
26886       next
26887     }
26888   }
26889 }
26890 { print }
26891 _ACAWK
26892 _ACEOF
26893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26894   as_fn_error "could not setup config headers machinery" "$LINENO" 5
26895 fi # test -n "$CONFIG_HEADERS"
26896
26897
26898 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26899 shift
26900 for ac_tag
26901 do
26902   case $ac_tag in
26903   :[FHLC]) ac_mode=$ac_tag; continue;;
26904   esac
26905   case $ac_mode$ac_tag in
26906   :[FHL]*:*);;
26907   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26908   :[FH]-) ac_tag=-:-;;
26909   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26910   esac
26911   ac_save_IFS=$IFS
26912   IFS=:
26913   set x $ac_tag
26914   IFS=$ac_save_IFS
26915   shift
26916   ac_file=$1
26917   shift
26918
26919   case $ac_mode in
26920   :L) ac_source=$1;;
26921   :[FH])
26922     ac_file_inputs=
26923     for ac_f
26924     do
26925       case $ac_f in
26926       -) ac_f="$tmp/stdin";;
26927       *) # Look for the file first in the build tree, then in the source tree
26928          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26929          # because $ac_f cannot contain `:'.
26930          test -f "$ac_f" ||
26931            case $ac_f in
26932            [\\/$]*) false;;
26933            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26934            esac ||
26935            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26936       esac
26937       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26938       as_fn_append ac_file_inputs " '$ac_f'"
26939     done
26940
26941     # Let's still pretend it is `configure' which instantiates (i.e., don't
26942     # use $as_me), people would be surprised to read:
26943     #    /* config.h.  Generated by config.status.  */
26944     configure_input='Generated from '`
26945           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26946         `' by configure.'
26947     if test x"$ac_file" != x-; then
26948       configure_input="$ac_file.  $configure_input"
26949       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26950 $as_echo "$as_me: creating $ac_file" >&6;}
26951     fi
26952     # Neutralize special characters interpreted by sed in replacement strings.
26953     case $configure_input in #(
26954     *\&* | *\|* | *\\* )
26955        ac_sed_conf_input=`$as_echo "$configure_input" |
26956        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26957     *) ac_sed_conf_input=$configure_input;;
26958     esac
26959
26960     case $ac_tag in
26961     *:-:* | *:-) cat >"$tmp/stdin" \
26962       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26963     esac
26964     ;;
26965   esac
26966
26967   ac_dir=`$as_dirname -- "$ac_file" ||
26968 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26969          X"$ac_file" : 'X\(//\)[^/]' \| \
26970          X"$ac_file" : 'X\(//\)$' \| \
26971          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26972 $as_echo X"$ac_file" |
26973     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26974             s//\1/
26975             q
26976           }
26977           /^X\(\/\/\)[^/].*/{
26978             s//\1/
26979             q
26980           }
26981           /^X\(\/\/\)$/{
26982             s//\1/
26983             q
26984           }
26985           /^X\(\/\).*/{
26986             s//\1/
26987             q
26988           }
26989           s/.*/./; q'`
26990   as_dir="$ac_dir"; as_fn_mkdir_p
26991   ac_builddir=.
26992
26993 case "$ac_dir" in
26994 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26995 *)
26996   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26997   # A ".." for each directory in $ac_dir_suffix.
26998   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26999   case $ac_top_builddir_sub in
27000   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27001   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27002   esac ;;
27003 esac
27004 ac_abs_top_builddir=$ac_pwd
27005 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27006 # for backward compatibility:
27007 ac_top_builddir=$ac_top_build_prefix
27008
27009 case $srcdir in
27010   .)  # We are building in place.
27011     ac_srcdir=.
27012     ac_top_srcdir=$ac_top_builddir_sub
27013     ac_abs_top_srcdir=$ac_pwd ;;
27014   [\\/]* | ?:[\\/]* )  # Absolute name.
27015     ac_srcdir=$srcdir$ac_dir_suffix;
27016     ac_top_srcdir=$srcdir
27017     ac_abs_top_srcdir=$srcdir ;;
27018   *) # Relative name.
27019     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27020     ac_top_srcdir=$ac_top_build_prefix$srcdir
27021     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27022 esac
27023 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27024
27025
27026   case $ac_mode in
27027   :F)
27028   #
27029   # CONFIG_FILE
27030   #
27031
27032 _ACEOF
27033
27034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27035 # If the template does not know about datarootdir, expand it.
27036 # FIXME: This hack should be removed a few years after 2.60.
27037 ac_datarootdir_hack=; ac_datarootdir_seen=
27038 ac_sed_dataroot='
27039 /datarootdir/ {
27040   p
27041   q
27042 }
27043 /@datadir@/p
27044 /@docdir@/p
27045 /@infodir@/p
27046 /@localedir@/p
27047 /@mandir@/p'
27048 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27049 *datarootdir*) ac_datarootdir_seen=yes;;
27050 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27051   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27052 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27053 _ACEOF
27054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27055   ac_datarootdir_hack='
27056   s&@datadir@&$datadir&g
27057   s&@docdir@&$docdir&g
27058   s&@infodir@&$infodir&g
27059   s&@localedir@&$localedir&g
27060   s&@mandir@&$mandir&g
27061   s&\\\${datarootdir}&$datarootdir&g' ;;
27062 esac
27063 _ACEOF
27064
27065 # Neutralize VPATH when `$srcdir' = `.'.
27066 # Shell code in configure.ac might set extrasub.
27067 # FIXME: do we really want to maintain this feature?
27068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27069 ac_sed_extra="$ac_vpsub
27070 $extrasub
27071 _ACEOF
27072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27073 :t
27074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27075 s|@configure_input@|$ac_sed_conf_input|;t t
27076 s&@top_builddir@&$ac_top_builddir_sub&;t t
27077 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27078 s&@srcdir@&$ac_srcdir&;t t
27079 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27080 s&@top_srcdir@&$ac_top_srcdir&;t t
27081 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27082 s&@builddir@&$ac_builddir&;t t
27083 s&@abs_builddir@&$ac_abs_builddir&;t t
27084 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27085 $ac_datarootdir_hack
27086 "
27087 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27088 if $ac_cs_awk_getline; then
27089   $AWK -f "$tmp/subs.awk"
27090 else
27091   $AWK -f "$tmp/subs.awk" | $SHELL
27092 fi >$tmp/out \
27093   || as_fn_error "could not create $ac_file" "$LINENO" 5
27094
27095 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27096   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27097   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27098   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27099 which seems to be undefined.  Please make sure it is defined." >&5
27100 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27101 which seems to be undefined.  Please make sure it is defined." >&2;}
27102
27103   rm -f "$tmp/stdin"
27104   case $ac_file in
27105   -) cat "$tmp/out" && rm -f "$tmp/out";;
27106   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27107   esac \
27108   || as_fn_error "could not create $ac_file" "$LINENO" 5
27109  ;;
27110   :H)
27111   #
27112   # CONFIG_HEADER
27113   #
27114   if test x"$ac_file" != x-; then
27115     {
27116       $as_echo "/* $configure_input  */" \
27117       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27118     } >"$tmp/config.h" \
27119       || as_fn_error "could not create $ac_file" "$LINENO" 5
27120     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27121       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27122 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27123     else
27124       rm -f "$ac_file"
27125       mv "$tmp/config.h" "$ac_file" \
27126         || as_fn_error "could not create $ac_file" "$LINENO" 5
27127     fi
27128   else
27129     $as_echo "/* $configure_input  */" \
27130       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27131       || as_fn_error "could not create -" "$LINENO" 5
27132   fi
27133  ;;
27134
27135   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27136 $as_echo "$as_me: executing $ac_file commands" >&6;}
27137  ;;
27138   esac
27139
27140
27141   case $ac_file$ac_mode in
27142     "as":F) chmod +x as ;;
27143     "collect-ld":F) chmod +x collect-ld ;;
27144     "nm":F) chmod +x nm ;;
27145     "default":C)
27146 case ${CONFIG_HEADERS} in
27147   *auto-host.h:config.in*)
27148   echo > cstamp-h ;;
27149 esac
27150 # Make sure all the subdirs exist.
27151 for d in $subdirs doc build c-family
27152 do
27153     test -d $d || mkdir $d
27154 done
27155  ;;
27156
27157   esac
27158 done # for ac_tag
27159
27160
27161 as_fn_exit 0
27162 _ACEOF
27163 ac_clean_files=$ac_clean_files_save
27164
27165 test $ac_write_fail = 0 ||
27166   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27167
27168
27169 # configure is writing to config.log, and then calls config.status.
27170 # config.status does its own redirection, appending to config.log.
27171 # Unfortunately, on DOS this fails, as config.log is still kept open
27172 # by configure, so config.status won't be able to write to it; its
27173 # output is simply discarded.  So we exec the FD to /dev/null,
27174 # effectively closing config.log, so it can be properly (re)opened and
27175 # appended to by config.status.  When coming back to configure, we
27176 # need to make the FD available again.
27177 if test "$no_create" != yes; then
27178   ac_cs_success=:
27179   ac_config_status_args=
27180   test "$silent" = yes &&
27181     ac_config_status_args="$ac_config_status_args --quiet"
27182   exec 5>/dev/null
27183   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27184   exec 5>>config.log
27185   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27186   # would make configure fail if this is the last instruction.
27187   $ac_cs_success || as_fn_exit $?
27188 fi
27189 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27190   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27191 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27192 fi
27193