OSDN Git Service

* godump.c (go_format_type): Check for invalid type names, pointer
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 libgcc_tm_include_list
622 libgcc_tm_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 out_object_file
628 out_file
629 objc_boehm_gc
630 md_file
631 local_prefix
632 lang_tree_files
633 lang_specs_files
634 lang_opt_files
635 install
636 out_host_hook_obj
637 host_xm_defines
638 host_xm_include_list
639 host_xm_file_list
640 host_exeext
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_passes
646 extra_parts
647 extra_objs
648 extra_headers_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 slibdir
673 dollar
674 gcc_tooldir
675 enable_lto
676 MAINT
677 zlibinc
678 zlibdir
679 HOST_LIBS
680 GGC
681 libgcc_visibility
682 gcc_cv_readelf
683 gcc_cv_objdump
684 ORIGINAL_NM_FOR_TARGET
685 gcc_cv_nm
686 ORIGINAL_LD_FOR_TARGET
687 ORIGINAL_PLUGIN_LD_FOR_TARGET
688 gcc_cv_ld
689 ORIGINAL_AS_FOR_TARGET
690 gcc_cv_as
691 enable_fast_install
692 objdir
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 STRIP
699 OBJDUMP
700 ac_ct_DUMPBIN
701 DUMPBIN
702 LD
703 FGREP
704 SED
705 LIBTOOL
706 collect2
707 STMP_FIXINC
708 BUILD_LDFLAGS
709 BUILD_CFLAGS
710 CC_FOR_BUILD
711 inhibit_libc
712 SYSTEM_HEADER_DIR
713 ALL
714 CROSS
715 CATOBJEXT
716 GENCAT
717 INSTOBJEXT
718 DATADIRNAME
719 CATALOGS
720 POSUB
721 GMSGFMT
722 XGETTEXT
723 INCINTL
724 LIBINTL_DEP
725 LIBINTL
726 USE_NLS
727 extra_opt_files
728 extra_modes_file
729 gthread_flags
730 objext
731 manext
732 LIBICONV_DEP
733 LTLIBICONV
734 LIBICONV
735 LDEXP_LIB
736 GNAT_LIBEXC
737 COLLECT2_LIBS
738 CXXCPP
739 AR
740 NM
741 BISON
742 FLEX
743 GENERATED_MANPAGES
744 BUILD_INFO
745 MAKEINFO
746 have_mktemp_command
747 make_compare_target
748 INSTALL_DATA
749 INSTALL_PROGRAM
750 INSTALL
751 ranlib_flags
752 RANLIB
753 LN
754 LN_S
755 AWK
756 SET_MAKE
757 REPORT_BUGS_TEXI
758 REPORT_BUGS_TO
759 PKGVERSION
760 CONFIGURE_SPECS
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
763 TARGET_SYSTEM_ROOT
764 enable_shared
765 enable_fixed_point
766 enable_decimal_float
767 enable_multilib
768 ENABLE_BUILD_WITH_CXX
769 coverage_flags
770 valgrind_command
771 valgrind_path_defines
772 valgrind_path
773 TREEBROWSER
774 nocommon_flag
775 warn_cxxflags
776 warn_cflags
777 c_strict_warn
778 strict_warn
779 c_loose_warn
780 loose_warn
781 EGREP
782 GREP
783 CPP
784 OUTPUT_OPTION
785 NO_MINUS_C_MINUS_O
786 GNATMAKE
787 GNATBIND
788 ac_ct_CXX
789 CXXFLAGS
790 CXX
791 OBJEXT
792 EXEEXT
793 ac_ct_CC
794 CPPFLAGS
795 LDFLAGS
796 CFLAGS
797 CC
798 GENINSRC
799 target_subdir
800 host_subdir
801 build_subdir
802 build_libsubdir
803 target_noncanonical
804 target_os
805 target_vendor
806 target_cpu
807 target
808 host_os
809 host_vendor
810 host_cpu
811 host
812 build_os
813 build_vendor
814 build_cpu
815 build
816 target_alias
817 host_alias
818 build_alias
819 LIBS
820 ECHO_T
821 ECHO_N
822 ECHO_C
823 DEFS
824 mandir
825 localedir
826 libdir
827 psdir
828 pdfdir
829 dvidir
830 htmldir
831 infodir
832 docdir
833 oldincludedir
834 includedir
835 localstatedir
836 sharedstatedir
837 sysconfdir
838 datadir
839 datarootdir
840 libexecdir
841 sbindir
842 bindir
843 program_transform_name
844 prefix
845 exec_prefix
846 PACKAGE_URL
847 PACKAGE_BUGREPORT
848 PACKAGE_STRING
849 PACKAGE_VERSION
850 PACKAGE_TARNAME
851 PACKAGE_NAME
852 PATH_SEPARATOR
853 SHELL'
854 ac_subst_files='option_includes
855 language_hooks'
856 ac_user_opts='
857 enable_option_checking
858 with_build_libsubdir
859 with_local_prefix
860 with_gxx_include_dir
861 with_cpp_install_dir
862 enable_generated_files_in_srcdir
863 with_gnu_ld
864 with_ld
865 with_demangler_in_ld
866 with_gnu_as
867 with_as
868 enable_largefile
869 enable_werror_always
870 enable_checking
871 enable_coverage
872 enable_gather_detailed_mem_stats
873 enable_build_with_cxx
874 with_stabs
875 enable_multilib
876 enable___cxa_atexit
877 enable_decimal_float
878 enable_fixed_point
879 enable_threads
880 enable_tls
881 enable_objc_gc
882 with_dwarf2
883 enable_shared
884 with_build_sysroot
885 with_sysroot
886 with_specs
887 with_pkgversion
888 with_bugurl
889 enable_languages
890 with_multilib_list
891 enable_rpath
892 with_libiconv_prefix
893 enable_initfini_array
894 enable_sjlj_exceptions
895 with_system_libunwind
896 enable_secureplt
897 enable_leading_mingw64_underscores
898 enable_cld
899 enable_frame_pointer
900 enable_win32_registry
901 enable_static
902 with_pic
903 enable_fast_install
904 enable_libtool_lock
905 with_plugin_ld
906 enable_gnu_indirect_function
907 enable_comdat
908 enable_gnu_unique_object
909 enable_linker_build_id
910 with_long_double_128
911 with_gc
912 with_system_zlib
913 enable_maintainer_mode
914 enable_version_specific_runtime_libs
915 with_slibdir
916 enable_plugin
917 enable_libquadmath_support
918 with_linker_hash_style
919 '
920       ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CXX
929 CXXFLAGS
930 CCC
931 CPP
932 CXXCPP
933 GMPLIBS
934 GMPINC
935 PPLLIBS
936 PPLINC
937 CLOOGLIBS
938 CLOOGINC'
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 intended
1559                           for creating source tarballs for users without
1560                           texinfo bison or flex
1561   --disable-largefile     omit support for large files
1562   --enable-werror-always  enable -Werror despite compiler version
1563   --enable-checking[=LIST]
1564                           enable expensive run-time checks. With LIST, enable
1565                           only specific categories of checks. Categories are:
1566                           yes,no,all,none,release. Flags are:
1567                           assert,df,fold,gc,gcac,gimple,misc,
1568                           rtlflag,rtl,runtime,tree,valgrind,types
1569   --enable-coverage[=LEVEL]
1570                           enable compiler's code coverage collection. Use to
1571                           measure compiler performance and locate unused parts
1572                           of the compiler. With LEVEL, specify optimization.
1573                           Values are opt, noopt, default is noopt
1574   --enable-gather-detailed-mem-stats
1575                           enable detailed memory allocation stats gathering
1576   --enable-build-with-cxx build with C++ compiler instead of C compiler
1577   --enable-multilib       enable library support for multiple ABIs
1578   --enable-__cxa_atexit   enable __cxa_atexit for C++
1579   --enable-decimal-float={no,yes,bid,dpd}
1580                         enable decimal float extension to C.  Selecting 'bid'
1581                         or 'dpd' choses which decimal floating point format
1582                         to use
1583   --enable-fixed-point    enable fixed-point arithmetic extension to C
1584   --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1585                           package
1586   --enable-tls            enable or disable generation of tls code overriding
1587                           the assembler check for tls support
1588   --enable-objc-gc        enable the use of Boehm's garbage collector with the
1589                           GNU Objective-C runtime
1590   --disable-shared        don't provide a shared libgcc
1591   --enable-languages=LIST specify which front-ends to build
1592   --disable-rpath         do not hardcode runtime library paths
1593   --enable-initfini-array       use .init_array/.fini_array sections
1594   --enable-sjlj-exceptions
1595                           arrange to use setjmp/longjmp exception handling
1596   --enable-secureplt      enable -msecure-plt by default for PowerPC
1597   --enable-leading-mingw64-underscores
1598                           enable leading underscores on 64 bit mingw targets
1599   --enable-cld            enable -mcld by default for 32bit x86
1600   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1601                           x86
1602   --disable-win32-registry
1603                           disable lookup of installation paths in the Registry
1604                           on Windows hosts
1605   --enable-win32-registry enable registry lookup (default)
1606   --enable-win32-registry=KEY
1607                           use KEY instead of GCC version as the last portion
1608                           of the registry key
1609   --enable-shared[=PKGS]  build shared libraries [default=yes]
1610   --enable-static[=PKGS]  build static libraries [default=yes]
1611   --enable-fast-install[=PKGS]
1612                           optimize for fast installation [default=yes]
1613   --disable-libtool-lock  avoid locking (might break parallel builds)
1614   --enable-gnu-indirect-function
1615                           enable the use of the @gnu_indirect_function to
1616                           glibc systems
1617   --enable-comdat         enable COMDAT group support
1618   --enable-gnu-unique-object
1619                           enable the use of the @gnu_unique_object ELF
1620                           extension on glibc systems
1621   --enable-linker-build-id
1622                           compiler will always pass --build-id to linker
1623   --enable-maintainer-mode
1624                           enable make rules and dependencies not useful (and
1625                           sometimes confusing) to the casual installer
1626   --enable-version-specific-runtime-libs
1627                           specify that runtime libraries should be installed
1628                           in a compiler-specific directory
1629   --enable-plugin         enable plugin support
1630   --disable-libquadmath-support
1631                           disable libquadmath support for Fortran
1632
1633 Optional Packages:
1634   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1635   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1636   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1637   --with-local-prefix=DIR specifies directory to put local include
1638   --with-gxx-include-dir=DIR
1639                           specifies directory to put g++ header files
1640   --with-cpp-install-dir=DIR
1641                           install the user visible C preprocessor in DIR
1642                           (relative to PREFIX) as well as PREFIX/bin
1643   --with-gnu-ld           arrange to work with GNU ld
1644   --with-ld               arrange to use the specified ld (full pathname)
1645   --with-demangler-in-ld  try to use demangler in GNU ld
1646   --with-gnu-as           arrange to work with GNU as
1647   --with-as               arrange to use the specified as (full pathname)
1648   --with-stabs            arrange to use stabs instead of host debug format
1649   --with-dwarf2           force the default debug format to be DWARF 2
1650   --with-build-sysroot=sysroot
1651                           use sysroot as the system root during the build
1652   --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1653   --with-specs=SPECS      add SPECS to driver command-line processing
1654   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1655   --with-bugurl=URL       Direct users to URL to report a bug
1656   --with-multilib-list    select multilibs (SH only)
1657   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1658   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1659   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1660   --with-system-libunwind use installed libunwind
1661   --with-pic              try to use only PIC/non-PIC objects [default=use
1662                           both]
1663   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1664   --with-plugin-ld=[ARG]  specify the plugin linker
1665   --with-long-double-128  use 128-bit long double by default
1666   --with-gc={page,zone}   choose the garbage collection mechanism to use with
1667                           the compiler
1668   --with-system-zlib      use installed libz
1669   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1670   --with-linker-hash-style={sysv,gnu,both}
1671                           specify the linker hash style
1672
1673 Some influential environment variables:
1674   CC          C compiler command
1675   CFLAGS      C compiler flags
1676   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1677               nonstandard directory <lib dir>
1678   LIBS        libraries to pass to the linker, e.g. -l<library>
1679   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1680               you have headers in a nonstandard directory <include dir>
1681   CXX         C++ compiler command
1682   CXXFLAGS    C++ compiler flags
1683   CPP         C preprocessor
1684   CXXCPP      C++ preprocessor
1685   GMPLIBS     How to link GMP
1686   GMPINC      How to find GMP include files
1687   PPLLIBS     How to link PPL
1688   PPLINC      How to find PPL include files
1689   CLOOGLIBS   How to link CLOOG
1690   CLOOGINC    How to find CLOOG include files
1691
1692 Use these variables to override the choices made by `configure' or to help
1693 it to find libraries and programs with nonstandard names/locations.
1694
1695 Report bugs to the package provider.
1696 _ACEOF
1697 ac_status=$?
1698 fi
1699
1700 if test "$ac_init_help" = "recursive"; then
1701   # If there are subdirs, report their specific --help.
1702   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1703     test -d "$ac_dir" ||
1704       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1705       continue
1706     ac_builddir=.
1707
1708 case "$ac_dir" in
1709 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 *)
1711   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1712   # A ".." for each directory in $ac_dir_suffix.
1713   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1714   case $ac_top_builddir_sub in
1715   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1716   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1717   esac ;;
1718 esac
1719 ac_abs_top_builddir=$ac_pwd
1720 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1721 # for backward compatibility:
1722 ac_top_builddir=$ac_top_build_prefix
1723
1724 case $srcdir in
1725   .)  # We are building in place.
1726     ac_srcdir=.
1727     ac_top_srcdir=$ac_top_builddir_sub
1728     ac_abs_top_srcdir=$ac_pwd ;;
1729   [\\/]* | ?:[\\/]* )  # Absolute name.
1730     ac_srcdir=$srcdir$ac_dir_suffix;
1731     ac_top_srcdir=$srcdir
1732     ac_abs_top_srcdir=$srcdir ;;
1733   *) # Relative name.
1734     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1735     ac_top_srcdir=$ac_top_build_prefix$srcdir
1736     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1737 esac
1738 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1739
1740     cd "$ac_dir" || { ac_status=$?; continue; }
1741     # Check for guested configure.
1742     if test -f "$ac_srcdir/configure.gnu"; then
1743       echo &&
1744       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1745     elif test -f "$ac_srcdir/configure"; then
1746       echo &&
1747       $SHELL "$ac_srcdir/configure" --help=recursive
1748     else
1749       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1750     fi || ac_status=$?
1751     cd "$ac_pwd" || { ac_status=$?; break; }
1752   done
1753 fi
1754
1755 test -n "$ac_init_help" && exit $ac_status
1756 if $ac_init_version; then
1757   cat <<\_ACEOF
1758 configure
1759 generated by GNU Autoconf 2.64
1760
1761 Copyright (C) 2009 Free Software Foundation, Inc.
1762 This configure script is free software; the Free Software Foundation
1763 gives unlimited permission to copy, distribute and modify it.
1764 _ACEOF
1765   exit
1766 fi
1767
1768 ## ------------------------ ##
1769 ## Autoconf initialization. ##
1770 ## ------------------------ ##
1771
1772 # ac_fn_c_try_compile LINENO
1773 # --------------------------
1774 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1775 ac_fn_c_try_compile ()
1776 {
1777   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778   rm -f conftest.$ac_objext
1779   if { { ac_try="$ac_compile"
1780 case "(($ac_try" in
1781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782   *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786   (eval "$ac_compile") 2>conftest.err
1787   ac_status=$?
1788   if test -s conftest.err; then
1789     grep -v '^ *+' conftest.err >conftest.er1
1790     cat conftest.er1 >&5
1791     mv -f conftest.er1 conftest.err
1792   fi
1793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794   test $ac_status = 0; } && {
1795          test -z "$ac_c_werror_flag" ||
1796          test ! -s conftest.err
1797        } && test -s conftest.$ac_objext; then :
1798   ac_retval=0
1799 else
1800   $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803         ac_retval=1
1804 fi
1805   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806   return $ac_retval
1807
1808 } # ac_fn_c_try_compile
1809
1810 # ac_fn_cxx_try_compile LINENO
1811 # ----------------------------
1812 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1813 ac_fn_cxx_try_compile ()
1814 {
1815   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816   rm -f conftest.$ac_objext
1817   if { { ac_try="$ac_compile"
1818 case "(($ac_try" in
1819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820   *) ac_try_echo=$ac_try;;
1821 esac
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824   (eval "$ac_compile") 2>conftest.err
1825   ac_status=$?
1826   if test -s conftest.err; then
1827     grep -v '^ *+' conftest.err >conftest.er1
1828     cat conftest.er1 >&5
1829     mv -f conftest.er1 conftest.err
1830   fi
1831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832   test $ac_status = 0; } && {
1833          test -z "$ac_cxx_werror_flag" ||
1834          test ! -s conftest.err
1835        } && test -s conftest.$ac_objext; then :
1836   ac_retval=0
1837 else
1838   $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1840
1841         ac_retval=1
1842 fi
1843   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844   return $ac_retval
1845
1846 } # ac_fn_cxx_try_compile
1847
1848 # ac_fn_c_try_cpp LINENO
1849 # ----------------------
1850 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_c_try_cpp ()
1852 {
1853   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854   if { { ac_try="$ac_cpp conftest.$ac_ext"
1855 case "(($ac_try" in
1856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857   *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1862   ac_status=$?
1863   if test -s conftest.err; then
1864     grep -v '^ *+' conftest.err >conftest.er1
1865     cat conftest.er1 >&5
1866     mv -f conftest.er1 conftest.err
1867   fi
1868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869   test $ac_status = 0; } >/dev/null && {
1870          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1871          test ! -s conftest.err
1872        }; then :
1873   ac_retval=0
1874 else
1875   $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878     ac_retval=1
1879 fi
1880   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881   return $ac_retval
1882
1883 } # ac_fn_c_try_cpp
1884
1885 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1888 # the include files in INCLUDES and setting the cache variable VAR
1889 # accordingly.
1890 ac_fn_c_check_header_mongrel ()
1891 {
1892   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897   $as_echo_n "(cached) " >&6
1898 fi
1899 eval ac_res=\$$3
1900                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 else
1903   # Is the header compilable?
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1905 $as_echo_n "checking $2 usability... " >&6; }
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h.  */
1908 $4
1909 #include <$2>
1910 _ACEOF
1911 if ac_fn_c_try_compile "$LINENO"; then :
1912   ac_header_compiler=yes
1913 else
1914   ac_header_compiler=no
1915 fi
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1918 $as_echo "$ac_header_compiler" >&6; }
1919
1920 # Is the header present?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1922 $as_echo_n "checking $2 presence... " >&6; }
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h.  */
1925 #include <$2>
1926 _ACEOF
1927 if ac_fn_c_try_cpp "$LINENO"; then :
1928   ac_header_preproc=yes
1929 else
1930   ac_header_preproc=no
1931 fi
1932 rm -f conftest.err conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1934 $as_echo "$ac_header_preproc" >&6; }
1935
1936 # So?  What about this header?
1937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1938   yes:no: )
1939     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1940 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1941     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943     ;;
1944   no:yes:* )
1945     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1946 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1947     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1948 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1949     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1950 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1951     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1952 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1953     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1955     ;;
1956 esac
1957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1960   $as_echo_n "(cached) " >&6
1961 else
1962   eval "$3=\$ac_header_compiler"
1963 fi
1964 eval ac_res=\$$3
1965                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 fi
1968   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1969
1970 } # ac_fn_c_check_header_mongrel
1971
1972 # ac_fn_c_try_run LINENO
1973 # ----------------------
1974 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1975 # that executables *can* be run.
1976 ac_fn_c_try_run ()
1977 {
1978   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979   if { { ac_try="$ac_link"
1980 case "(($ac_try" in
1981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982   *) ac_try_echo=$ac_try;;
1983 esac
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986   (eval "$ac_link") 2>&5
1987   ac_status=$?
1988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1990   { { case "(($ac_try" in
1991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992   *) ac_try_echo=$ac_try;;
1993 esac
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996   (eval "$ac_try") 2>&5
1997   ac_status=$?
1998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999   test $ac_status = 0; }; }; then :
2000   ac_retval=0
2001 else
2002   $as_echo "$as_me: program exited with status $ac_status" >&5
2003        $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2005
2006        ac_retval=$ac_status
2007 fi
2008   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2010   return $ac_retval
2011
2012 } # ac_fn_c_try_run
2013
2014 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2015 # -------------------------------------------------------
2016 # Tests whether HEADER exists and can be compiled using the include files in
2017 # INCLUDES, setting the cache variable VAR accordingly.
2018 ac_fn_c_check_header_compile ()
2019 {
2020   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024   $as_echo_n "(cached) " >&6
2025 else
2026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h.  */
2028 $4
2029 #include <$2>
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032   eval "$3=yes"
2033 else
2034   eval "$3=no"
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 fi
2038 eval ac_res=\$$3
2039                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2042
2043 } # ac_fn_c_check_header_compile
2044
2045 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2046 # --------------------------------------------
2047 # Tries to find the compile-time value of EXPR in a program that includes
2048 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2049 # computed
2050 ac_fn_c_compute_int ()
2051 {
2052   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053   if test "$cross_compiling" = yes; then
2054     # Depending upon the size, compute the lo and hi bounds.
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h.  */
2057 $4
2058 int
2059 main ()
2060 {
2061 static int test_array [1 - 2 * !(($2) >= 0)];
2062 test_array [0] = 0
2063
2064   ;
2065   return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069   ac_lo=0 ac_mid=0
2070   while :; do
2071     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h.  */
2073 $4
2074 int
2075 main ()
2076 {
2077 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2078 test_array [0] = 0
2079
2080   ;
2081   return 0;
2082 }
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085   ac_hi=$ac_mid; break
2086 else
2087   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2088                         if test $ac_lo -le $ac_mid; then
2089                           ac_lo= ac_hi=
2090                           break
2091                         fi
2092                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095   done
2096 else
2097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h.  */
2099 $4
2100 int
2101 main ()
2102 {
2103 static int test_array [1 - 2 * !(($2) < 0)];
2104 test_array [0] = 0
2105
2106   ;
2107   return 0;
2108 }
2109 _ACEOF
2110 if ac_fn_c_try_compile "$LINENO"; then :
2111   ac_hi=-1 ac_mid=-1
2112   while :; do
2113     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h.  */
2115 $4
2116 int
2117 main ()
2118 {
2119 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2120 test_array [0] = 0
2121
2122   ;
2123   return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127   ac_lo=$ac_mid; break
2128 else
2129   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2130                         if test $ac_mid -le $ac_hi; then
2131                           ac_lo= ac_hi=
2132                           break
2133                         fi
2134                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2135 fi
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137   done
2138 else
2139   ac_lo= ac_hi=
2140 fi
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 # Binary search between lo and hi bounds.
2145 while test "x$ac_lo" != "x$ac_hi"; do
2146   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h.  */
2149 $4
2150 int
2151 main ()
2152 {
2153 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2154 test_array [0] = 0
2155
2156   ;
2157   return 0;
2158 }
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161   ac_hi=$ac_mid
2162 else
2163   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2164 fi
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 done
2167 case $ac_lo in #((
2168 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2169 '') ac_retval=1 ;;
2170 esac
2171   else
2172     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h.  */
2174 $4
2175 static long int longval () { return $2; }
2176 static unsigned long int ulongval () { return $2; }
2177 #include <stdio.h>
2178 #include <stdlib.h>
2179 int
2180 main ()
2181 {
2182
2183   FILE *f = fopen ("conftest.val", "w");
2184   if (! f)
2185     return 1;
2186   if (($2) < 0)
2187     {
2188       long int i = longval ();
2189       if (i != ($2))
2190         return 1;
2191       fprintf (f, "%ld", i);
2192     }
2193   else
2194     {
2195       unsigned long int i = ulongval ();
2196       if (i != ($2))
2197         return 1;
2198       fprintf (f, "%lu", i);
2199     }
2200   /* Do not output a trailing newline, as this causes \r\n confusion
2201      on some platforms.  */
2202   return ferror (f) || fclose (f) != 0;
2203
2204   ;
2205   return 0;
2206 }
2207 _ACEOF
2208 if ac_fn_c_try_run "$LINENO"; then :
2209   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2210 else
2211   ac_retval=1
2212 fi
2213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2214   conftest.$ac_objext conftest.beam conftest.$ac_ext
2215 rm -f conftest.val
2216
2217   fi
2218   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2219   return $ac_retval
2220
2221 } # ac_fn_c_compute_int
2222
2223 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2224 # -------------------------------------------
2225 # Tests whether TYPE exists after having included INCLUDES, setting cache
2226 # variable VAR accordingly.
2227 ac_fn_c_check_type ()
2228 {
2229   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231 $as_echo_n "checking for $2... " >&6; }
2232 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233   $as_echo_n "(cached) " >&6
2234 else
2235   eval "$3=no"
2236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h.  */
2238 $4
2239 int
2240 main ()
2241 {
2242 if (sizeof ($2))
2243          return 0;
2244   ;
2245   return 0;
2246 }
2247 _ACEOF
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h.  */
2251 $4
2252 int
2253 main ()
2254 {
2255 if (sizeof (($2)))
2256             return 0;
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 if ac_fn_c_try_compile "$LINENO"; then :
2262
2263 else
2264   eval "$3=yes"
2265 fi
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 fi
2270 eval ac_res=\$$3
2271                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272 $as_echo "$ac_res" >&6; }
2273   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2274
2275 } # ac_fn_c_check_type
2276
2277 # ac_fn_c_find_intX_t LINENO BITS VAR
2278 # -----------------------------------
2279 # Finds a signed integer type with width BITS, setting cache variable VAR
2280 # accordingly.
2281 ac_fn_c_find_intX_t ()
2282 {
2283   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2285 $as_echo_n "checking for int$2_t... " >&6; }
2286 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2287   $as_echo_n "(cached) " >&6
2288 else
2289   eval "$3=no"
2290      for ac_type in int$2_t 'int' 'long int' \
2291          'long long int' 'short int' 'signed char'; do
2292        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h.  */
2294 $ac_includes_default
2295 int
2296 main ()
2297 {
2298 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2299 test_array [0] = 0
2300
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h.  */
2308 $ac_includes_default
2309 int
2310 main ()
2311 {
2312 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2313                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2314 test_array [0] = 0
2315
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321
2322 else
2323   case $ac_type in #(
2324   int$2_t) :
2325     eval "$3=yes" ;; #(
2326   *) :
2327     eval "$3=\$ac_type" ;;
2328 esac
2329 fi
2330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331 fi
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333        eval as_val=\$$3
2334    if test "x$as_val" = x""no; then :
2335
2336 else
2337   break
2338 fi
2339      done
2340 fi
2341 eval ac_res=\$$3
2342                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2345
2346 } # ac_fn_c_find_intX_t
2347
2348 # ac_fn_c_try_link LINENO
2349 # -----------------------
2350 # Try to link conftest.$ac_ext, and return whether this succeeded.
2351 ac_fn_c_try_link ()
2352 {
2353   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2354   rm -f conftest.$ac_objext conftest$ac_exeext
2355   if { { ac_try="$ac_link"
2356 case "(($ac_try" in
2357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2358   *) ac_try_echo=$ac_try;;
2359 esac
2360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2361 $as_echo "$ac_try_echo"; } >&5
2362   (eval "$ac_link") 2>conftest.err
2363   ac_status=$?
2364   if test -s conftest.err; then
2365     grep -v '^ *+' conftest.err >conftest.er1
2366     cat conftest.er1 >&5
2367     mv -f conftest.er1 conftest.err
2368   fi
2369   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2370   test $ac_status = 0; } && {
2371          test -z "$ac_c_werror_flag" ||
2372          test ! -s conftest.err
2373        } && test -s conftest$ac_exeext && {
2374          test "$cross_compiling" = yes ||
2375          $as_test_x conftest$ac_exeext
2376        }; then :
2377   ac_retval=0
2378 else
2379   $as_echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382         ac_retval=1
2383 fi
2384   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2385   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2386   # interfere with the next link command; also delete a directory that is
2387   # left behind by Apple's compiler.  We do this before executing the actions.
2388   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2389   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2390   return $ac_retval
2391
2392 } # ac_fn_c_try_link
2393
2394 # ac_fn_c_find_uintX_t LINENO BITS VAR
2395 # ------------------------------------
2396 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2397 # accordingly.
2398 ac_fn_c_find_uintX_t ()
2399 {
2400   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2402 $as_echo_n "checking for uint$2_t... " >&6; }
2403 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2404   $as_echo_n "(cached) " >&6
2405 else
2406   eval "$3=no"
2407      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2408          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2409        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2410 /* end confdefs.h.  */
2411 $ac_includes_default
2412 int
2413 main ()
2414 {
2415 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2416 test_array [0] = 0
2417
2418   ;
2419   return 0;
2420 }
2421 _ACEOF
2422 if ac_fn_c_try_compile "$LINENO"; then :
2423   case $ac_type in #(
2424   uint$2_t) :
2425     eval "$3=yes" ;; #(
2426   *) :
2427     eval "$3=\$ac_type" ;;
2428 esac
2429 fi
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431        eval as_val=\$$3
2432    if test "x$as_val" = x""no; then :
2433
2434 else
2435   break
2436 fi
2437      done
2438 fi
2439 eval ac_res=\$$3
2440                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2441 $as_echo "$ac_res" >&6; }
2442   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2443
2444 } # ac_fn_c_find_uintX_t
2445
2446 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2447 # ----------------------------------------------
2448 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2449 ac_fn_c_check_header_preproc ()
2450 {
2451   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2453 $as_echo_n "checking for $2... " >&6; }
2454 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2455   $as_echo_n "(cached) " >&6
2456 else
2457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h.  */
2459 #include <$2>
2460 _ACEOF
2461 if ac_fn_c_try_cpp "$LINENO"; then :
2462   eval "$3=yes"
2463 else
2464   eval "$3=no"
2465 fi
2466 rm -f conftest.err conftest.$ac_ext
2467 fi
2468 eval ac_res=\$$3
2469                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2471   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2472
2473 } # ac_fn_c_check_header_preproc
2474
2475 # ac_fn_cxx_try_cpp LINENO
2476 # ------------------------
2477 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2478 ac_fn_cxx_try_cpp ()
2479 {
2480   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481   if { { ac_try="$ac_cpp conftest.$ac_ext"
2482 case "(($ac_try" in
2483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484   *) ac_try_echo=$ac_try;;
2485 esac
2486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2487 $as_echo "$ac_try_echo"; } >&5
2488   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2489   ac_status=$?
2490   if test -s conftest.err; then
2491     grep -v '^ *+' conftest.err >conftest.er1
2492     cat conftest.er1 >&5
2493     mv -f conftest.er1 conftest.err
2494   fi
2495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2496   test $ac_status = 0; } >/dev/null && {
2497          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2498          test ! -s conftest.err
2499        }; then :
2500   ac_retval=0
2501 else
2502   $as_echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2504
2505     ac_retval=1
2506 fi
2507   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2508   return $ac_retval
2509
2510 } # ac_fn_cxx_try_cpp
2511
2512 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2513 # ------------------------------------------------
2514 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2515 ac_fn_cxx_check_header_preproc ()
2516 {
2517   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2519 $as_echo_n "checking for $2... " >&6; }
2520 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2521   $as_echo_n "(cached) " >&6
2522 else
2523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h.  */
2525 #include <$2>
2526 _ACEOF
2527 if ac_fn_cxx_try_cpp "$LINENO"; then :
2528   eval "$3=yes"
2529 else
2530   eval "$3=no"
2531 fi
2532 rm -f conftest.err conftest.$ac_ext
2533 fi
2534 eval ac_res=\$$3
2535                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536 $as_echo "$ac_res" >&6; }
2537   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538
2539 } # ac_fn_cxx_check_header_preproc
2540
2541 # ac_fn_c_check_func LINENO FUNC VAR
2542 # ----------------------------------
2543 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2544 ac_fn_c_check_func ()
2545 {
2546   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2548 $as_echo_n "checking for $2... " >&6; }
2549 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2550   $as_echo_n "(cached) " >&6
2551 else
2552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h.  */
2554 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2556 #define $2 innocuous_$2
2557
2558 /* System header to define __stub macros and hopefully few prototypes,
2559     which can conflict with char $2 (); below.
2560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2561     <limits.h> exists even on freestanding compilers.  */
2562
2563 #ifdef __STDC__
2564 # include <limits.h>
2565 #else
2566 # include <assert.h>
2567 #endif
2568
2569 #undef $2
2570
2571 /* Override any GCC internal prototype to avoid an error.
2572    Use char because int might match the return type of a GCC
2573    builtin and then its argument prototype would still apply.  */
2574 #ifdef __cplusplus
2575 extern "C"
2576 #endif
2577 char $2 ();
2578 /* The GNU C library defines this for functions which it implements
2579     to always fail with ENOSYS.  Some functions are actually named
2580     something starting with __ and the normal name is an alias.  */
2581 #if defined __stub_$2 || defined __stub___$2
2582 choke me
2583 #endif
2584
2585 int
2586 main ()
2587 {
2588 return $2 ();
2589   ;
2590   return 0;
2591 }
2592 _ACEOF
2593 if ac_fn_c_try_link "$LINENO"; then :
2594   eval "$3=yes"
2595 else
2596   eval "$3=no"
2597 fi
2598 rm -f core conftest.err conftest.$ac_objext \
2599     conftest$ac_exeext conftest.$ac_ext
2600 fi
2601 eval ac_res=\$$3
2602                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 $as_echo "$ac_res" >&6; }
2604   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2605
2606 } # ac_fn_c_check_func
2607
2608 # ac_fn_cxx_try_link LINENO
2609 # -------------------------
2610 # Try to link conftest.$ac_ext, and return whether this succeeded.
2611 ac_fn_cxx_try_link ()
2612 {
2613   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2614   rm -f conftest.$ac_objext conftest$ac_exeext
2615   if { { ac_try="$ac_link"
2616 case "(($ac_try" in
2617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618   *) ac_try_echo=$ac_try;;
2619 esac
2620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2621 $as_echo "$ac_try_echo"; } >&5
2622   (eval "$ac_link") 2>conftest.err
2623   ac_status=$?
2624   if test -s conftest.err; then
2625     grep -v '^ *+' conftest.err >conftest.er1
2626     cat conftest.er1 >&5
2627     mv -f conftest.er1 conftest.err
2628   fi
2629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2630   test $ac_status = 0; } && {
2631          test -z "$ac_cxx_werror_flag" ||
2632          test ! -s conftest.err
2633        } && test -s conftest$ac_exeext && {
2634          test "$cross_compiling" = yes ||
2635          $as_test_x conftest$ac_exeext
2636        }; then :
2637   ac_retval=0
2638 else
2639   $as_echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2641
2642         ac_retval=1
2643 fi
2644   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2645   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2646   # interfere with the next link command; also delete a directory that is
2647   # left behind by Apple's compiler.  We do this before executing the actions.
2648   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2649   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2650   return $ac_retval
2651
2652 } # ac_fn_cxx_try_link
2653 cat >config.log <<_ACEOF
2654 This file contains any messages produced by compilers while
2655 running configure, to aid debugging if configure makes a mistake.
2656
2657 It was created by $as_me, which was
2658 generated by GNU Autoconf 2.64.  Invocation command line was
2659
2660   $ $0 $@
2661
2662 _ACEOF
2663 exec 5>>config.log
2664 {
2665 cat <<_ASUNAME
2666 ## --------- ##
2667 ## Platform. ##
2668 ## --------- ##
2669
2670 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2671 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2672 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2673 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2674 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2675
2676 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2677 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2678
2679 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2680 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2681 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2682 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2683 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2684 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2685 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2686
2687 _ASUNAME
2688
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692   IFS=$as_save_IFS
2693   test -z "$as_dir" && as_dir=.
2694     $as_echo "PATH: $as_dir"
2695   done
2696 IFS=$as_save_IFS
2697
2698 } >&5
2699
2700 cat >&5 <<_ACEOF
2701
2702
2703 ## ----------- ##
2704 ## Core tests. ##
2705 ## ----------- ##
2706
2707 _ACEOF
2708
2709
2710 # Keep a trace of the command line.
2711 # Strip out --no-create and --no-recursion so they do not pile up.
2712 # Strip out --silent because we don't want to record it for future runs.
2713 # Also quote any args containing shell meta-characters.
2714 # Make two passes to allow for proper duplicate-argument suppression.
2715 ac_configure_args=
2716 ac_configure_args0=
2717 ac_configure_args1=
2718 ac_must_keep_next=false
2719 for ac_pass in 1 2
2720 do
2721   for ac_arg
2722   do
2723     case $ac_arg in
2724     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2725     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2726     | -silent | --silent | --silen | --sile | --sil)
2727       continue ;;
2728     *\'*)
2729       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2730     esac
2731     case $ac_pass in
2732     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2733     2)
2734       as_fn_append ac_configure_args1 " '$ac_arg'"
2735       if test $ac_must_keep_next = true; then
2736         ac_must_keep_next=false # Got value, back to normal.
2737       else
2738         case $ac_arg in
2739           *=* | --config-cache | -C | -disable-* | --disable-* \
2740           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2741           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2742           | -with-* | --with-* | -without-* | --without-* | --x)
2743             case "$ac_configure_args0 " in
2744               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2745             esac
2746             ;;
2747           -* ) ac_must_keep_next=true ;;
2748         esac
2749       fi
2750       as_fn_append ac_configure_args " '$ac_arg'"
2751       ;;
2752     esac
2753   done
2754 done
2755 { ac_configure_args0=; unset ac_configure_args0;}
2756 { ac_configure_args1=; unset ac_configure_args1;}
2757
2758 # When interrupted or exit'd, cleanup temporary files, and complete
2759 # config.log.  We remove comments because anyway the quotes in there
2760 # would cause problems or look ugly.
2761 # WARNING: Use '\'' to represent an apostrophe within the trap.
2762 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2763 trap 'exit_status=$?
2764   # Save into config.log some information that might help in debugging.
2765   {
2766     echo
2767
2768     cat <<\_ASBOX
2769 ## ---------------- ##
2770 ## Cache variables. ##
2771 ## ---------------- ##
2772 _ASBOX
2773     echo
2774     # The following way of writing the cache mishandles newlines in values,
2775 (
2776   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2777     eval ac_val=\$$ac_var
2778     case $ac_val in #(
2779     *${as_nl}*)
2780       case $ac_var in #(
2781       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2782 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2783       esac
2784       case $ac_var in #(
2785       _ | IFS | as_nl) ;; #(
2786       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2787       *) { eval $ac_var=; unset $ac_var;} ;;
2788       esac ;;
2789     esac
2790   done
2791   (set) 2>&1 |
2792     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2793     *${as_nl}ac_space=\ *)
2794       sed -n \
2795         "s/'\''/'\''\\\\'\'''\''/g;
2796           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2797       ;; #(
2798     *)
2799       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2800       ;;
2801     esac |
2802     sort
2803 )
2804     echo
2805
2806     cat <<\_ASBOX
2807 ## ----------------- ##
2808 ## Output variables. ##
2809 ## ----------------- ##
2810 _ASBOX
2811     echo
2812     for ac_var in $ac_subst_vars
2813     do
2814       eval ac_val=\$$ac_var
2815       case $ac_val in
2816       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2817       esac
2818       $as_echo "$ac_var='\''$ac_val'\''"
2819     done | sort
2820     echo
2821
2822     if test -n "$ac_subst_files"; then
2823       cat <<\_ASBOX
2824 ## ------------------- ##
2825 ## File substitutions. ##
2826 ## ------------------- ##
2827 _ASBOX
2828       echo
2829       for ac_var in $ac_subst_files
2830       do
2831         eval ac_val=\$$ac_var
2832         case $ac_val in
2833         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2834         esac
2835         $as_echo "$ac_var='\''$ac_val'\''"
2836       done | sort
2837       echo
2838     fi
2839
2840     if test -s confdefs.h; then
2841       cat <<\_ASBOX
2842 ## ----------- ##
2843 ## confdefs.h. ##
2844 ## ----------- ##
2845 _ASBOX
2846       echo
2847       cat confdefs.h
2848       echo
2849     fi
2850     test "$ac_signal" != 0 &&
2851       $as_echo "$as_me: caught signal $ac_signal"
2852     $as_echo "$as_me: exit $exit_status"
2853   } >&5
2854   rm -f core *.core core.conftest.* &&
2855     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2856     exit $exit_status
2857 ' 0
2858 for ac_signal in 1 2 13 15; do
2859   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2860 done
2861 ac_signal=0
2862
2863 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2864 rm -f -r conftest* confdefs.h
2865
2866 $as_echo "/* confdefs.h */" > confdefs.h
2867
2868 # Predefined preprocessor variables.
2869
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE_NAME "$PACKAGE_NAME"
2872 _ACEOF
2873
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2876 _ACEOF
2877
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2880 _ACEOF
2881
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_STRING "$PACKAGE_STRING"
2884 _ACEOF
2885
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2888 _ACEOF
2889
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_URL "$PACKAGE_URL"
2892 _ACEOF
2893
2894
2895 # Let the site file select an alternate cache file if it wants to.
2896 # Prefer an explicitly selected file to automatically selected ones.
2897 ac_site_file1=NONE
2898 ac_site_file2=NONE
2899 if test -n "$CONFIG_SITE"; then
2900   ac_site_file1=$CONFIG_SITE
2901 elif test "x$prefix" != xNONE; then
2902   ac_site_file1=$prefix/share/config.site
2903   ac_site_file2=$prefix/etc/config.site
2904 else
2905   ac_site_file1=$ac_default_prefix/share/config.site
2906   ac_site_file2=$ac_default_prefix/etc/config.site
2907 fi
2908 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2909 do
2910   test "x$ac_site_file" = xNONE && continue
2911   if test -r "$ac_site_file"; then
2912     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2913 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2914     sed 's/^/| /' "$ac_site_file" >&5
2915     . "$ac_site_file"
2916   fi
2917 done
2918
2919 if test -r "$cache_file"; then
2920   # Some versions of bash will fail to source /dev/null (special
2921   # files actually), so we avoid doing that.
2922   if test -f "$cache_file"; then
2923     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2924 $as_echo "$as_me: loading cache $cache_file" >&6;}
2925     case $cache_file in
2926       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2927       *)                      . "./$cache_file";;
2928     esac
2929   fi
2930 else
2931   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2932 $as_echo "$as_me: creating cache $cache_file" >&6;}
2933   >$cache_file
2934 fi
2935
2936 # Check that the precious variables saved in the cache have kept the same
2937 # value.
2938 ac_cache_corrupted=false
2939 for ac_var in $ac_precious_vars; do
2940   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2941   eval ac_new_set=\$ac_env_${ac_var}_set
2942   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2943   eval ac_new_val=\$ac_env_${ac_var}_value
2944   case $ac_old_set,$ac_new_set in
2945     set,)
2946       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2947 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2948       ac_cache_corrupted=: ;;
2949     ,set)
2950       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2951 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2952       ac_cache_corrupted=: ;;
2953     ,);;
2954     *)
2955       if test "x$ac_old_val" != "x$ac_new_val"; then
2956         # differences in whitespace do not lead to failure.
2957         ac_old_val_w=`echo x $ac_old_val`
2958         ac_new_val_w=`echo x $ac_new_val`
2959         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2960           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2961 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2962           ac_cache_corrupted=:
2963         else
2964           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2965 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2966           eval $ac_var=\$ac_old_val
2967         fi
2968         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2969 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2970         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2971 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2972       fi;;
2973   esac
2974   # Pass precious variables to config.status.
2975   if test "$ac_new_set" = set; then
2976     case $ac_new_val in
2977     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2978     *) ac_arg=$ac_var=$ac_new_val ;;
2979     esac
2980     case " $ac_configure_args " in
2981       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2982       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2983     esac
2984   fi
2985 done
2986 if $ac_cache_corrupted; then
2987   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2990 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2991   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2992 fi
2993 ## -------------------- ##
2994 ## Main body of script. ##
2995 ## -------------------- ##
2996
2997 ac_ext=c
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002
3003
3004
3005
3006
3007
3008 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3009
3010
3011 gcc_version=`cat $srcdir/BASE-VER`
3012
3013 # Determine the host, build, and target systems
3014 ac_aux_dir=
3015 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3016   for ac_t in install-sh install.sh shtool; do
3017     if test -f "$ac_dir/$ac_t"; then
3018       ac_aux_dir=$ac_dir
3019       ac_install_sh="$ac_aux_dir/$ac_t -c"
3020       break 2
3021     fi
3022   done
3023 done
3024 if test -z "$ac_aux_dir"; then
3025   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3026 fi
3027
3028 # These three variables are undocumented and unsupported,
3029 # and are intended to be withdrawn in a future Autoconf release.
3030 # They can cause serious problems if a builder's source tree is in a directory
3031 # whose full name contains unusual characters.
3032 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3033 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3034 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3035
3036
3037 # Make sure we can run config.sub.
3038 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3039   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3040
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3042 $as_echo_n "checking build system type... " >&6; }
3043 if test "${ac_cv_build+set}" = set; then :
3044   $as_echo_n "(cached) " >&6
3045 else
3046   ac_build_alias=$build_alias
3047 test "x$ac_build_alias" = x &&
3048   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3049 test "x$ac_build_alias" = x &&
3050   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3051 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3052   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3053
3054 fi
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3056 $as_echo "$ac_cv_build" >&6; }
3057 case $ac_cv_build in
3058 *-*-*) ;;
3059 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3060 esac
3061 build=$ac_cv_build
3062 ac_save_IFS=$IFS; IFS='-'
3063 set x $ac_cv_build
3064 shift
3065 build_cpu=$1
3066 build_vendor=$2
3067 shift; shift
3068 # Remember, the first character of IFS is used to create $*,
3069 # except with old shells:
3070 build_os=$*
3071 IFS=$ac_save_IFS
3072 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3073
3074
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3076 $as_echo_n "checking host system type... " >&6; }
3077 if test "${ac_cv_host+set}" = set; then :
3078   $as_echo_n "(cached) " >&6
3079 else
3080   if test "x$host_alias" = x; then
3081   ac_cv_host=$ac_cv_build
3082 else
3083   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3084     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3085 fi
3086
3087 fi
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3089 $as_echo "$ac_cv_host" >&6; }
3090 case $ac_cv_host in
3091 *-*-*) ;;
3092 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3093 esac
3094 host=$ac_cv_host
3095 ac_save_IFS=$IFS; IFS='-'
3096 set x $ac_cv_host
3097 shift
3098 host_cpu=$1
3099 host_vendor=$2
3100 shift; shift
3101 # Remember, the first character of IFS is used to create $*,
3102 # except with old shells:
3103 host_os=$*
3104 IFS=$ac_save_IFS
3105 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3106
3107
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3109 $as_echo_n "checking target system type... " >&6; }
3110 if test "${ac_cv_target+set}" = set; then :
3111   $as_echo_n "(cached) " >&6
3112 else
3113   if test "x$target_alias" = x; then
3114   ac_cv_target=$ac_cv_host
3115 else
3116   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3117     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3118 fi
3119
3120 fi
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3122 $as_echo "$ac_cv_target" >&6; }
3123 case $ac_cv_target in
3124 *-*-*) ;;
3125 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3126 esac
3127 target=$ac_cv_target
3128 ac_save_IFS=$IFS; IFS='-'
3129 set x $ac_cv_target
3130 shift
3131 target_cpu=$1
3132 target_vendor=$2
3133 shift; shift
3134 # Remember, the first character of IFS is used to create $*,
3135 # except with old shells:
3136 target_os=$*
3137 IFS=$ac_save_IFS
3138 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3139
3140
3141 # The aliases save the names the user supplied, while $host etc.
3142 # will get canonicalized.
3143 test -n "$target_alias" &&
3144   test "$program_prefix$program_suffix$program_transform_name" = \
3145     NONENONEs,x,x, &&
3146   program_prefix=${target_alias}-
3147
3148 # Determine the noncanonical target name, for directory use.
3149  case ${build_alias} in
3150   "") build_noncanonical=${build} ;;
3151   *) build_noncanonical=${build_alias} ;;
3152 esac
3153
3154  case ${host_alias} in
3155   "") host_noncanonical=${build_noncanonical} ;;
3156   *) host_noncanonical=${host_alias} ;;
3157 esac
3158
3159  case ${target_alias} in
3160   "") target_noncanonical=${host_noncanonical} ;;
3161   *) target_noncanonical=${target_alias} ;;
3162 esac
3163
3164
3165
3166
3167 # Determine the target- and build-specific subdirectories
3168
3169 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3170 # have matching libraries, they should use host libraries: Makefile.tpl
3171 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3172 # However, they still use the build modules, because the corresponding
3173 # host modules (e.g. bison) are only built for the host when bootstrap
3174 # finishes. So:
3175 # - build_subdir is where we find build modules, and never changes.
3176 # - build_libsubdir is where we find build libraries, and can be overridden.
3177
3178 # Prefix 'build-' so this never conflicts with target_subdir.
3179 build_subdir="build-${build_noncanonical}"
3180
3181 # Check whether --with-build-libsubdir was given.
3182 if test "${with_build_libsubdir+set}" = set; then :
3183   withval=$with_build_libsubdir; build_libsubdir="$withval"
3184 else
3185   build_libsubdir="$build_subdir"
3186 fi
3187
3188 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3189 if ( test $srcdir = . && test -d gcc ) \
3190    || test -d $srcdir/../host-${host_noncanonical}; then
3191   host_subdir="host-${host_noncanonical}"
3192 else
3193   host_subdir=.
3194 fi
3195 # No prefix.
3196 target_subdir=${target_noncanonical}
3197
3198
3199 # Set program_transform_name
3200 test "$program_prefix" != NONE &&
3201   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3202 # Use a double $ so make ignores it.
3203 test "$program_suffix" != NONE &&
3204   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3205 # Double any \ or $.
3206 # By default was `s,x,x', remove it if useless.
3207 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3208 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3209
3210
3211 # Check for bogus environment variables.
3212 # Test if LIBRARY_PATH contains the notation for the current directory
3213 # since this would lead to problems installing/building glibc.
3214 # LIBRARY_PATH contains the current directory if one of the following
3215 # is true:
3216 # - one of the terminals (":" and ";") is the first or last sign
3217 # - two terminals occur directly after each other
3218 # - the path contains an element with a dot in it
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3220 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3221 case ${LIBRARY_PATH} in
3222   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3223     library_path_setting="contains current directory"
3224     ;;
3225   *)
3226     library_path_setting="ok"
3227     ;;
3228 esac
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3230 $as_echo "$library_path_setting" >&6; }
3231 if test "$library_path_setting" != "ok"; then
3232 as_fn_error "
3233 *** LIBRARY_PATH shouldn't contain the current directory when
3234 *** building gcc. Please change the environment variable
3235 *** and run configure again." "$LINENO" 5
3236 fi
3237
3238 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3239 # since this would lead to problems installing/building glibc.
3240 # GCC_EXEC_PREFIX contains the current directory if one of the following
3241 # is true:
3242 # - one of the terminals (":" and ";") is the first or last sign
3243 # - two terminals occur directly after each other
3244 # - the path contains an element with a dot in it
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3246 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3247 case ${GCC_EXEC_PREFIX} in
3248   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3249     gcc_exec_prefix_setting="contains current directory"
3250     ;;
3251   *)
3252     gcc_exec_prefix_setting="ok"
3253     ;;
3254 esac
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3256 $as_echo "$gcc_exec_prefix_setting" >&6; }
3257 if test "$gcc_exec_prefix_setting" != "ok"; then
3258 as_fn_error "
3259 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3260 *** building gcc. Please change the environment variable
3261 *** and run configure again." "$LINENO" 5
3262 fi
3263
3264 # -----------
3265 # Directories
3266 # -----------
3267
3268 # Specify the local prefix
3269 local_prefix=
3270
3271 # Check whether --with-local-prefix was given.
3272 if test "${with_local_prefix+set}" = set; then :
3273   withval=$with_local_prefix; case "${withval}" in
3274 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3275 no)     ;;
3276 *)      local_prefix=$with_local_prefix ;;
3277 esac
3278 fi
3279
3280
3281 # Default local prefix if it is empty
3282 if test x$local_prefix = x; then
3283         local_prefix=/usr/local
3284 fi
3285
3286 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3287 # passed in by the toplevel make and thus we'd get different behavior
3288 # depending on where we built the sources.
3289 gcc_gxx_include_dir=
3290 # Specify the g++ header file directory
3291
3292 # Check whether --with-gxx-include-dir was given.
3293 if test "${with_gxx_include_dir+set}" = set; then :
3294   withval=$with_gxx_include_dir; case "${withval}" in
3295 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3296 no)     ;;
3297 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3298 esac
3299 fi
3300
3301
3302 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3303 if test x${gcc_gxx_include_dir} = x; then
3304   if test x${enable_version_specific_runtime_libs} = xyes; then
3305     gcc_gxx_include_dir='${libsubdir}/include/c++'
3306   else
3307     libstdcxx_incdir='include/c++/$(version)'
3308     if test x$host != x$target; then
3309        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3310     fi
3311     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3312   fi
3313 fi
3314
3315
3316 # Check whether --with-cpp_install_dir was given.
3317 if test "${with_cpp_install_dir+set}" = set; then :
3318   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3319   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3320 elif test x$withval != xno; then
3321   cpp_install_dir=$withval
3322 fi
3323 fi
3324
3325
3326 # We would like to our source tree to be readonly.  However when releases or
3327 # pre-releases are generated, the flex/bison generated files as well as the
3328 # various formats of manuals need to be included along with the rest of the
3329 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3330 # just that.
3331
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3333 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3334     # Check whether --enable-generated-files-in-srcdir was given.
3335 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3336   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3337 else
3338   generated_files_in_srcdir=no
3339 fi
3340
3341
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3343 $as_echo "$generated_files_in_srcdir" >&6; }
3344
3345 if test "$generated_files_in_srcdir" = "yes"; then
3346   GENINSRC=''
3347 else
3348   GENINSRC='#'
3349 fi
3350
3351
3352 # -------------------
3353 # Find default linker
3354 # -------------------
3355
3356 # With GNU ld
3357
3358 # Check whether --with-gnu-ld was given.
3359 if test "${with_gnu_ld+set}" = set; then :
3360   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3361 else
3362   gnu_ld_flag=no
3363 fi
3364
3365
3366 # With pre-defined ld
3367
3368 # Check whether --with-ld was given.
3369 if test "${with_ld+set}" = set; then :
3370   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3371 fi
3372
3373 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3374   if test ! -x "$DEFAULT_LINKER"; then
3375     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3376   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3377     gnu_ld_flag=yes
3378   fi
3379
3380 cat >>confdefs.h <<_ACEOF
3381 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3382 _ACEOF
3383
3384 fi
3385
3386 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3387
3388 cat >>confdefs.h <<_ACEOF
3389 #define HAVE_GNU_LD $gnu_ld
3390 _ACEOF
3391
3392
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3394 $as_echo_n "checking whether a default linker was specified... " >&6; }
3395 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3396   if test x"$gnu_ld_flag" = x"no"; then
3397     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3398 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3399   else
3400     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3401 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3402   fi
3403 else
3404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 fi
3407
3408 # With demangler in GNU ld
3409
3410 # Check whether --with-demangler-in-ld was given.
3411 if test "${with_demangler_in_ld+set}" = set; then :
3412   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3413 else
3414   demangler_in_ld=no
3415 fi
3416
3417
3418 # ----------------------
3419 # Find default assembler
3420 # ----------------------
3421
3422 # With GNU as
3423
3424 # Check whether --with-gnu-as was given.
3425 if test "${with_gnu_as+set}" = set; then :
3426   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3427 else
3428   gas_flag=no
3429 fi
3430
3431
3432
3433 # Check whether --with-as was given.
3434 if test "${with_as+set}" = set; then :
3435   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3436 fi
3437
3438 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3439   if test ! -x "$DEFAULT_ASSEMBLER"; then
3440     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3441   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3442     gas_flag=yes
3443   fi
3444
3445 cat >>confdefs.h <<_ACEOF
3446 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3447 _ACEOF
3448
3449 fi
3450
3451 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3452
3453 cat >>confdefs.h <<_ACEOF
3454 #define HAVE_GNU_AS $gnu_as
3455 _ACEOF
3456
3457
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3459 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3460 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3461   if test x"$gas_flag" = x"no"; then
3462     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3463 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3464   else
3465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3466 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3467   fi
3468 else
3469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3471 fi
3472
3473 # ---------------
3474 # Find C compiler
3475 # ---------------
3476
3477 # If a non-executable a.out is present (e.g. created by GNU as above even if
3478 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3479 # file, even when creating an executable, so an execution test fails.
3480 # Remove possible default executable files to avoid this.
3481 #
3482 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3483 # Autoconf includes it.
3484 rm -f a.out a.exe b.out
3485
3486 # Find the native compiler
3487 ac_ext=c
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 if test -n "$ac_tool_prefix"; then
3493   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3494 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if test "${ac_cv_prog_CC+set}" = set; then :
3498   $as_echo_n "(cached) " >&6
3499 else
3500   if test -n "$CC"; then
3501   ac_cv_prog_CC="$CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506   IFS=$as_save_IFS
3507   test -z "$as_dir" && as_dir=.
3508     for ac_exec_ext in '' $ac_executable_extensions; do
3509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512     break 2
3513   fi
3514 done
3515   done
3516 IFS=$as_save_IFS
3517
3518 fi
3519 fi
3520 CC=$ac_cv_prog_CC
3521 if test -n "$CC"; then
3522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523 $as_echo "$CC" >&6; }
3524 else
3525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3527 fi
3528
3529
3530 fi
3531 if test -z "$ac_cv_prog_CC"; then
3532   ac_ct_CC=$CC
3533   # Extract the first word of "gcc", so it can be a program name with args.
3534 set dummy gcc; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3538   $as_echo_n "(cached) " >&6
3539 else
3540   if test -n "$ac_ct_CC"; then
3541   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3545 do
3546   IFS=$as_save_IFS
3547   test -z "$as_dir" && as_dir=.
3548     for ac_exec_ext in '' $ac_executable_extensions; do
3549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550     ac_cv_prog_ac_ct_CC="gcc"
3551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552     break 2
3553   fi
3554 done
3555   done
3556 IFS=$as_save_IFS
3557
3558 fi
3559 fi
3560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3561 if test -n "$ac_ct_CC"; then
3562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3563 $as_echo "$ac_ct_CC" >&6; }
3564 else
3565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3567 fi
3568
3569   if test "x$ac_ct_CC" = x; then
3570     CC=""
3571   else
3572     case $cross_compiling:$ac_tool_warned in
3573 yes:)
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3576 ac_tool_warned=yes ;;
3577 esac
3578     CC=$ac_ct_CC
3579   fi
3580 else
3581   CC="$ac_cv_prog_CC"
3582 fi
3583
3584 if test -z "$CC"; then
3585           if test -n "$ac_tool_prefix"; then
3586     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3587 set dummy ${ac_tool_prefix}cc; ac_word=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if test "${ac_cv_prog_CC+set}" = set; then :
3591   $as_echo_n "(cached) " >&6
3592 else
3593   if test -n "$CC"; then
3594   ac_cv_prog_CC="$CC" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599   IFS=$as_save_IFS
3600   test -z "$as_dir" && as_dir=.
3601     for ac_exec_ext in '' $ac_executable_extensions; do
3602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603     ac_cv_prog_CC="${ac_tool_prefix}cc"
3604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605     break 2
3606   fi
3607 done
3608   done
3609 IFS=$as_save_IFS
3610
3611 fi
3612 fi
3613 CC=$ac_cv_prog_CC
3614 if test -n "$CC"; then
3615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3616 $as_echo "$CC" >&6; }
3617 else
3618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3620 fi
3621
3622
3623   fi
3624 fi
3625 if test -z "$CC"; then
3626   # Extract the first word of "cc", so it can be a program name with args.
3627 set dummy cc; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_CC+set}" = set; then :
3631   $as_echo_n "(cached) " >&6
3632 else
3633   if test -n "$CC"; then
3634   ac_cv_prog_CC="$CC" # Let the user override the test.
3635 else
3636   ac_prog_rejected=no
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3639 do
3640   IFS=$as_save_IFS
3641   test -z "$as_dir" && as_dir=.
3642     for ac_exec_ext in '' $ac_executable_extensions; do
3643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3645        ac_prog_rejected=yes
3646        continue
3647      fi
3648     ac_cv_prog_CC="cc"
3649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3650     break 2
3651   fi
3652 done
3653   done
3654 IFS=$as_save_IFS
3655
3656 if test $ac_prog_rejected = yes; then
3657   # We found a bogon in the path, so make sure we never use it.
3658   set dummy $ac_cv_prog_CC
3659   shift
3660   if test $# != 0; then
3661     # We chose a different compiler from the bogus one.
3662     # However, it has the same basename, so the bogon will be chosen
3663     # first if we set CC to just the basename; use the full file name.
3664     shift
3665     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3666   fi
3667 fi
3668 fi
3669 fi
3670 CC=$ac_cv_prog_CC
3671 if test -n "$CC"; then
3672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3673 $as_echo "$CC" >&6; }
3674 else
3675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 $as_echo "no" >&6; }
3677 fi
3678
3679
3680 fi
3681 if test -z "$CC"; then
3682   if test -n "$ac_tool_prefix"; then
3683   for ac_prog in cl.exe
3684   do
3685     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if test "${ac_cv_prog_CC+set}" = set; then :
3690   $as_echo_n "(cached) " >&6
3691 else
3692   if test -n "$CC"; then
3693   ac_cv_prog_CC="$CC" # Let the user override the test.
3694 else
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3697 do
3698   IFS=$as_save_IFS
3699   test -z "$as_dir" && as_dir=.
3700     for ac_exec_ext in '' $ac_executable_extensions; do
3701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3704     break 2
3705   fi
3706 done
3707   done
3708 IFS=$as_save_IFS
3709
3710 fi
3711 fi
3712 CC=$ac_cv_prog_CC
3713 if test -n "$CC"; then
3714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 $as_echo "$CC" >&6; }
3716 else
3717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3719 fi
3720
3721
3722     test -n "$CC" && break
3723   done
3724 fi
3725 if test -z "$CC"; then
3726   ac_ct_CC=$CC
3727   for ac_prog in cl.exe
3728 do
3729   # Extract the first word of "$ac_prog", so it can be a program name with args.
3730 set dummy $ac_prog; ac_word=$2
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3734   $as_echo_n "(cached) " >&6
3735 else
3736   if test -n "$ac_ct_CC"; then
3737   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3738 else
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3741 do
3742   IFS=$as_save_IFS
3743   test -z "$as_dir" && as_dir=.
3744     for ac_exec_ext in '' $ac_executable_extensions; do
3745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746     ac_cv_prog_ac_ct_CC="$ac_prog"
3747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3748     break 2
3749   fi
3750 done
3751   done
3752 IFS=$as_save_IFS
3753
3754 fi
3755 fi
3756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3757 if test -n "$ac_ct_CC"; then
3758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3759 $as_echo "$ac_ct_CC" >&6; }
3760 else
3761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 $as_echo "no" >&6; }
3763 fi
3764
3765
3766   test -n "$ac_ct_CC" && break
3767 done
3768
3769   if test "x$ac_ct_CC" = x; then
3770     CC=""
3771   else
3772     case $cross_compiling:$ac_tool_warned in
3773 yes:)
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3776 ac_tool_warned=yes ;;
3777 esac
3778     CC=$ac_ct_CC
3779   fi
3780 fi
3781
3782 fi
3783
3784
3785 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error "no acceptable C compiler found in \$PATH
3788 See \`config.log' for more details." "$LINENO" 5; }
3789
3790 # Provide some information about the compiler.
3791 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3792 set X $ac_compile
3793 ac_compiler=$2
3794 for ac_option in --version -v -V -qversion; do
3795   { { ac_try="$ac_compiler $ac_option >&5"
3796 case "(($ac_try" in
3797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798   *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3803   ac_status=$?
3804   if test -s conftest.err; then
3805     sed '10a\
3806 ... rest of stderr output deleted ...
3807          10q' conftest.err >conftest.er1
3808     cat conftest.er1 >&5
3809     rm -f conftest.er1 conftest.err
3810   fi
3811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812   test $ac_status = 0; }
3813 done
3814
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h.  */
3817
3818 int
3819 main ()
3820 {
3821
3822   ;
3823   return 0;
3824 }
3825 _ACEOF
3826 ac_clean_files_save=$ac_clean_files
3827 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3828 # Try to create an executable without -o first, disregard a.out.
3829 # It will help us diagnose broken compilers, and finding out an intuition
3830 # of exeext.
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3832 $as_echo_n "checking for C compiler default output file name... " >&6; }
3833 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3834
3835 # The possible output files:
3836 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3837
3838 ac_rmfiles=
3839 for ac_file in $ac_files
3840 do
3841   case $ac_file in
3842     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3843     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3844   esac
3845 done
3846 rm -f $ac_rmfiles
3847
3848 if { { ac_try="$ac_link_default"
3849 case "(($ac_try" in
3850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851   *) ac_try_echo=$ac_try;;
3852 esac
3853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3854 $as_echo "$ac_try_echo"; } >&5
3855   (eval "$ac_link_default") 2>&5
3856   ac_status=$?
3857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3858   test $ac_status = 0; }; then :
3859   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3860 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3861 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3862 # so that the user can short-circuit this test for compilers unknown to
3863 # Autoconf.
3864 for ac_file in $ac_files ''
3865 do
3866   test -f "$ac_file" || continue
3867   case $ac_file in
3868     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3869         ;;
3870     [ab].out )
3871         # We found the default executable, but exeext='' is most
3872         # certainly right.
3873         break;;
3874     *.* )
3875         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3876         then :; else
3877            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3878         fi
3879         # We set ac_cv_exeext here because the later test for it is not
3880         # safe: cross compilers may not add the suffix if given an `-o'
3881         # argument, so we may need to know it at that point already.
3882         # Even if this section looks crufty: it has the advantage of
3883         # actually working.
3884         break;;
3885     * )
3886         break;;
3887   esac
3888 done
3889 test "$ac_cv_exeext" = no && ac_cv_exeext=
3890
3891 else
3892   ac_file=''
3893 fi
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3895 $as_echo "$ac_file" >&6; }
3896 if test -z "$ac_file"; then :
3897   $as_echo "$as_me: failed program was:" >&5
3898 sed 's/^/| /' conftest.$ac_ext >&5
3899
3900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902 { as_fn_set_status 77
3903 as_fn_error "C compiler cannot create executables
3904 See \`config.log' for more details." "$LINENO" 5; }; }
3905 fi
3906 ac_exeext=$ac_cv_exeext
3907
3908 # Check that the compiler produces executables we can run.  If not, either
3909 # the compiler is broken, or we cross compile.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3911 $as_echo_n "checking whether the C compiler works... " >&6; }
3912 # If not cross compiling, check that we can run a simple program.
3913 if test "$cross_compiling" != yes; then
3914   if { ac_try='./$ac_file'
3915   { { case "(($ac_try" in
3916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917   *) ac_try_echo=$ac_try;;
3918 esac
3919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920 $as_echo "$ac_try_echo"; } >&5
3921   (eval "$ac_try") 2>&5
3922   ac_status=$?
3923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924   test $ac_status = 0; }; }; then
3925     cross_compiling=no
3926   else
3927     if test "$cross_compiling" = maybe; then
3928         cross_compiling=yes
3929     else
3930         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 as_fn_error "cannot run C compiled programs.
3933 If you meant to cross compile, use \`--host'.
3934 See \`config.log' for more details." "$LINENO" 5; }
3935     fi
3936   fi
3937 fi
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3939 $as_echo "yes" >&6; }
3940
3941 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3942 ac_clean_files=$ac_clean_files_save
3943 # Check that the compiler produces executables we can run.  If not, either
3944 # the compiler is broken, or we cross compile.
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3946 $as_echo_n "checking whether we are cross compiling... " >&6; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3948 $as_echo "$cross_compiling" >&6; }
3949
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3951 $as_echo_n "checking for suffix of executables... " >&6; }
3952 if { { ac_try="$ac_link"
3953 case "(($ac_try" in
3954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955   *) ac_try_echo=$ac_try;;
3956 esac
3957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958 $as_echo "$ac_try_echo"; } >&5
3959   (eval "$ac_link") 2>&5
3960   ac_status=$?
3961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962   test $ac_status = 0; }; then :
3963   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3964 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3965 # work properly (i.e., refer to `conftest.exe'), while it won't with
3966 # `rm'.
3967 for ac_file in conftest.exe conftest conftest.*; do
3968   test -f "$ac_file" || continue
3969   case $ac_file in
3970     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3971     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3972           break;;
3973     * ) break;;
3974   esac
3975 done
3976 else
3977   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error "cannot compute suffix of executables: cannot compile and link
3980 See \`config.log' for more details." "$LINENO" 5; }
3981 fi
3982 rm -f conftest$ac_cv_exeext
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3984 $as_echo "$ac_cv_exeext" >&6; }
3985
3986 rm -f conftest.$ac_ext
3987 EXEEXT=$ac_cv_exeext
3988 ac_exeext=$EXEEXT
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3990 $as_echo_n "checking for suffix of object files... " >&6; }
3991 if test "${ac_cv_objext+set}" = set; then :
3992   $as_echo_n "(cached) " >&6
3993 else
3994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h.  */
3996
3997 int
3998 main ()
3999 {
4000
4001   ;
4002   return 0;
4003 }
4004 _ACEOF
4005 rm -f conftest.o conftest.obj
4006 if { { ac_try="$ac_compile"
4007 case "(($ac_try" in
4008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009   *) ac_try_echo=$ac_try;;
4010 esac
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 $as_echo "$ac_try_echo"; } >&5
4013   (eval "$ac_compile") 2>&5
4014   ac_status=$?
4015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016   test $ac_status = 0; }; then :
4017   for ac_file in conftest.o conftest.obj conftest.*; do
4018   test -f "$ac_file" || continue;
4019   case $ac_file in
4020     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4021     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4022        break;;
4023   esac
4024 done
4025 else
4026   $as_echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4028
4029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4031 as_fn_error "cannot compute suffix of object files: cannot compile
4032 See \`config.log' for more details." "$LINENO" 5; }
4033 fi
4034 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4037 $as_echo "$ac_cv_objext" >&6; }
4038 OBJEXT=$ac_cv_objext
4039 ac_objext=$OBJEXT
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4041 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4042 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4043   $as_echo_n "(cached) " >&6
4044 else
4045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h.  */
4047
4048 int
4049 main ()
4050 {
4051 #ifndef __GNUC__
4052        choke me
4053 #endif
4054
4055   ;
4056   return 0;
4057 }
4058 _ACEOF
4059 if ac_fn_c_try_compile "$LINENO"; then :
4060   ac_compiler_gnu=yes
4061 else
4062   ac_compiler_gnu=no
4063 fi
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4066
4067 fi
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4069 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4070 if test $ac_compiler_gnu = yes; then
4071   GCC=yes
4072 else
4073   GCC=
4074 fi
4075 ac_test_CFLAGS=${CFLAGS+set}
4076 ac_save_CFLAGS=$CFLAGS
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4078 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4079 if test "${ac_cv_prog_cc_g+set}" = set; then :
4080   $as_echo_n "(cached) " >&6
4081 else
4082   ac_save_c_werror_flag=$ac_c_werror_flag
4083    ac_c_werror_flag=yes
4084    ac_cv_prog_cc_g=no
4085    CFLAGS="-g"
4086    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h.  */
4088
4089 int
4090 main ()
4091 {
4092
4093   ;
4094   return 0;
4095 }
4096 _ACEOF
4097 if ac_fn_c_try_compile "$LINENO"; then :
4098   ac_cv_prog_cc_g=yes
4099 else
4100   CFLAGS=""
4101       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h.  */
4103
4104 int
4105 main ()
4106 {
4107
4108   ;
4109   return 0;
4110 }
4111 _ACEOF
4112 if ac_fn_c_try_compile "$LINENO"; then :
4113
4114 else
4115   ac_c_werror_flag=$ac_save_c_werror_flag
4116          CFLAGS="-g"
4117          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h.  */
4119
4120 int
4121 main ()
4122 {
4123
4124   ;
4125   return 0;
4126 }
4127 _ACEOF
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129   ac_cv_prog_cc_g=yes
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136    ac_c_werror_flag=$ac_save_c_werror_flag
4137 fi
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4139 $as_echo "$ac_cv_prog_cc_g" >&6; }
4140 if test "$ac_test_CFLAGS" = set; then
4141   CFLAGS=$ac_save_CFLAGS
4142 elif test $ac_cv_prog_cc_g = yes; then
4143   if test "$GCC" = yes; then
4144     CFLAGS="-g -O2"
4145   else
4146     CFLAGS="-g"
4147   fi
4148 else
4149   if test "$GCC" = yes; then
4150     CFLAGS="-O2"
4151   else
4152     CFLAGS=
4153   fi
4154 fi
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4156 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4157 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4158   $as_echo_n "(cached) " >&6
4159 else
4160   ac_cv_prog_cc_c89=no
4161 ac_save_CC=$CC
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h.  */
4164 #include <stdarg.h>
4165 #include <stdio.h>
4166 #include <sys/types.h>
4167 #include <sys/stat.h>
4168 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4169 struct buf { int x; };
4170 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4171 static char *e (p, i)
4172      char **p;
4173      int i;
4174 {
4175   return p[i];
4176 }
4177 static char *f (char * (*g) (char **, int), char **p, ...)
4178 {
4179   char *s;
4180   va_list v;
4181   va_start (v,p);
4182   s = g (p, va_arg (v,int));
4183   va_end (v);
4184   return s;
4185 }
4186
4187 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4188    function prototypes and stuff, but not '\xHH' hex character constants.
4189    These don't provoke an error unfortunately, instead are silently treated
4190    as 'x'.  The following induces an error, until -std is added to get
4191    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4192    array size at least.  It's necessary to write '\x00'==0 to get something
4193    that's true only with -std.  */
4194 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4195
4196 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4197    inside strings and character constants.  */
4198 #define FOO(x) 'x'
4199 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4200
4201 int test (int i, double x);
4202 struct s1 {int (*f) (int a);};
4203 struct s2 {int (*f) (double a);};
4204 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4205 int argc;
4206 char **argv;
4207 int
4208 main ()
4209 {
4210 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4211   ;
4212   return 0;
4213 }
4214 _ACEOF
4215 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4216         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4217 do
4218   CC="$ac_save_CC $ac_arg"
4219   if ac_fn_c_try_compile "$LINENO"; then :
4220   ac_cv_prog_cc_c89=$ac_arg
4221 fi
4222 rm -f core conftest.err conftest.$ac_objext
4223   test "x$ac_cv_prog_cc_c89" != "xno" && break
4224 done
4225 rm -f conftest.$ac_ext
4226 CC=$ac_save_CC
4227
4228 fi
4229 # AC_CACHE_VAL
4230 case "x$ac_cv_prog_cc_c89" in
4231   x)
4232     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4233 $as_echo "none needed" >&6; } ;;
4234   xno)
4235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4236 $as_echo "unsupported" >&6; } ;;
4237   *)
4238     CC="$CC $ac_cv_prog_cc_c89"
4239     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4240 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4241 esac
4242 if test "x$ac_cv_prog_cc_c89" != xno; then :
4243
4244 fi
4245
4246 ac_ext=c
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251
4252 if test "x$CC" != xcc; then
4253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4254 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4255 else
4256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4257 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4258 fi
4259 set dummy $CC; ac_cc=`$as_echo "$2" |
4260                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4261 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4262   $as_echo_n "(cached) " >&6
4263 else
4264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h.  */
4266
4267 int
4268 main ()
4269 {
4270
4271   ;
4272   return 0;
4273 }
4274 _ACEOF
4275 # Make sure it works both with $CC and with simple cc.
4276 # We do the test twice because some compilers refuse to overwrite an
4277 # existing .o file with -o, though they will create one.
4278 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4279 rm -f conftest2.*
4280 if { { case "(($ac_try" in
4281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282   *) ac_try_echo=$ac_try;;
4283 esac
4284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285 $as_echo "$ac_try_echo"; } >&5
4286   (eval "$ac_try") 2>&5
4287   ac_status=$?
4288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4289   test $ac_status = 0; } &&
4290    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292   *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296   (eval "$ac_try") 2>&5
4297   ac_status=$?
4298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299   test $ac_status = 0; };
4300 then
4301   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4302   if test "x$CC" != xcc; then
4303     # Test first that cc exists at all.
4304     if { ac_try='cc -c conftest.$ac_ext >&5'
4305   { { case "(($ac_try" in
4306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307   *) ac_try_echo=$ac_try;;
4308 esac
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311   (eval "$ac_try") 2>&5
4312   ac_status=$?
4313   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314   test $ac_status = 0; }; }; then
4315       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4316       rm -f conftest2.*
4317       if { { case "(($ac_try" in
4318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319   *) ac_try_echo=$ac_try;;
4320 esac
4321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4322 $as_echo "$ac_try_echo"; } >&5
4323   (eval "$ac_try") 2>&5
4324   ac_status=$?
4325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326   test $ac_status = 0; } &&
4327          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329   *) ac_try_echo=$ac_try;;
4330 esac
4331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332 $as_echo "$ac_try_echo"; } >&5
4333   (eval "$ac_try") 2>&5
4334   ac_status=$?
4335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336   test $ac_status = 0; };
4337       then
4338         # cc works too.
4339         :
4340       else
4341         # cc exists but doesn't like -o.
4342         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4343       fi
4344     fi
4345   fi
4346 else
4347   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4348 fi
4349 rm -f core conftest*
4350
4351 fi
4352 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4354 $as_echo "yes" >&6; }
4355 else
4356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4358
4359 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4360
4361 fi
4362
4363 # expand $ac_aux_dir to an absolute path
4364 am_aux_dir=`cd $ac_aux_dir && pwd`
4365
4366 # FIXME: we rely on the cache variable name because
4367 # there is no other way.
4368 set dummy $CC
4369 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4370 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4371 if test "$am_t" != yes; then
4372    # Losing compiler, so override with the script.
4373    # FIXME: It is wrong to rewrite CC.
4374    # But if we don't then we get into trouble of one sort or another.
4375    # A longer-term fix would be to have automake use am__CC in this case,
4376    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4377    CC="$am_aux_dir/compile $CC"
4378 fi
4379
4380
4381 ac_ext=cpp
4382 ac_cpp='$CXXCPP $CPPFLAGS'
4383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4386 if test -z "$CXX"; then
4387   if test -n "$CCC"; then
4388     CXX=$CCC
4389   else
4390     if test -n "$ac_tool_prefix"; then
4391   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4392   do
4393     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if test "${ac_cv_prog_CXX+set}" = set; then :
4398   $as_echo_n "(cached) " >&6
4399 else
4400   if test -n "$CXX"; then
4401   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406   IFS=$as_save_IFS
4407   test -z "$as_dir" && as_dir=.
4408     for ac_exec_ext in '' $ac_executable_extensions; do
4409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412     break 2
4413   fi
4414 done
4415   done
4416 IFS=$as_save_IFS
4417
4418 fi
4419 fi
4420 CXX=$ac_cv_prog_CXX
4421 if test -n "$CXX"; then
4422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4423 $as_echo "$CXX" >&6; }
4424 else
4425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4427 fi
4428
4429
4430     test -n "$CXX" && break
4431   done
4432 fi
4433 if test -z "$CXX"; then
4434   ac_ct_CXX=$CXX
4435   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4436 do
4437   # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy $ac_prog; ac_word=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4442   $as_echo_n "(cached) " >&6
4443 else
4444   if test -n "$ac_ct_CXX"; then
4445   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4446 else
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4449 do
4450   IFS=$as_save_IFS
4451   test -z "$as_dir" && as_dir=.
4452     for ac_exec_ext in '' $ac_executable_extensions; do
4453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454     ac_cv_prog_ac_ct_CXX="$ac_prog"
4455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4456     break 2
4457   fi
4458 done
4459   done
4460 IFS=$as_save_IFS
4461
4462 fi
4463 fi
4464 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4465 if test -n "$ac_ct_CXX"; then
4466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4467 $as_echo "$ac_ct_CXX" >&6; }
4468 else
4469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4471 fi
4472
4473
4474   test -n "$ac_ct_CXX" && break
4475 done
4476
4477   if test "x$ac_ct_CXX" = x; then
4478     CXX="g++"
4479   else
4480     case $cross_compiling:$ac_tool_warned in
4481 yes:)
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484 ac_tool_warned=yes ;;
4485 esac
4486     CXX=$ac_ct_CXX
4487   fi
4488 fi
4489
4490   fi
4491 fi
4492 # Provide some information about the compiler.
4493 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4494 set X $ac_compile
4495 ac_compiler=$2
4496 for ac_option in --version -v -V -qversion; do
4497   { { ac_try="$ac_compiler $ac_option >&5"
4498 case "(($ac_try" in
4499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500   *) ac_try_echo=$ac_try;;
4501 esac
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 $as_echo "$ac_try_echo"; } >&5
4504   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4505   ac_status=$?
4506   if test -s conftest.err; then
4507     sed '10a\
4508 ... rest of stderr output deleted ...
4509          10q' conftest.err >conftest.er1
4510     cat conftest.er1 >&5
4511     rm -f conftest.er1 conftest.err
4512   fi
4513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514   test $ac_status = 0; }
4515 done
4516
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4518 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4519 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4520   $as_echo_n "(cached) " >&6
4521 else
4522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h.  */
4524
4525 int
4526 main ()
4527 {
4528 #ifndef __GNUC__
4529        choke me
4530 #endif
4531
4532   ;
4533   return 0;
4534 }
4535 _ACEOF
4536 if ac_fn_cxx_try_compile "$LINENO"; then :
4537   ac_compiler_gnu=yes
4538 else
4539   ac_compiler_gnu=no
4540 fi
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4543
4544 fi
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4546 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4547 if test $ac_compiler_gnu = yes; then
4548   GXX=yes
4549 else
4550   GXX=
4551 fi
4552 ac_test_CXXFLAGS=${CXXFLAGS+set}
4553 ac_save_CXXFLAGS=$CXXFLAGS
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4555 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4556 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4557   $as_echo_n "(cached) " >&6
4558 else
4559   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4560    ac_cxx_werror_flag=yes
4561    ac_cv_prog_cxx_g=no
4562    CXXFLAGS="-g"
4563    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h.  */
4565
4566 int
4567 main ()
4568 {
4569
4570   ;
4571   return 0;
4572 }
4573 _ACEOF
4574 if ac_fn_cxx_try_compile "$LINENO"; then :
4575   ac_cv_prog_cxx_g=yes
4576 else
4577   CXXFLAGS=""
4578       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h.  */
4580
4581 int
4582 main ()
4583 {
4584
4585   ;
4586   return 0;
4587 }
4588 _ACEOF
4589 if ac_fn_cxx_try_compile "$LINENO"; then :
4590
4591 else
4592   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4593          CXXFLAGS="-g"
4594          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h.  */
4596
4597 int
4598 main ()
4599 {
4600
4601   ;
4602   return 0;
4603 }
4604 _ACEOF
4605 if ac_fn_cxx_try_compile "$LINENO"; then :
4606   ac_cv_prog_cxx_g=yes
4607 fi
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4614 fi
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4616 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4617 if test "$ac_test_CXXFLAGS" = set; then
4618   CXXFLAGS=$ac_save_CXXFLAGS
4619 elif test $ac_cv_prog_cxx_g = yes; then
4620   if test "$GXX" = yes; then
4621     CXXFLAGS="-g -O2"
4622   else
4623     CXXFLAGS="-g"
4624   fi
4625 else
4626   if test "$GXX" = yes; then
4627     CXXFLAGS="-O2"
4628   else
4629     CXXFLAGS=
4630   fi
4631 fi
4632 ac_ext=c
4633 ac_cpp='$CPP $CPPFLAGS'
4634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4637
4638
4639
4640
4641 if test -n "$ac_tool_prefix"; then
4642   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4643 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4647   $as_echo_n "(cached) " >&6
4648 else
4649   if test -n "$GNATBIND"; then
4650   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657     for ac_exec_ext in '' $ac_executable_extensions; do
4658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661     break 2
4662   fi
4663 done
4664   done
4665 IFS=$as_save_IFS
4666
4667 fi
4668 fi
4669 GNATBIND=$ac_cv_prog_GNATBIND
4670 if test -n "$GNATBIND"; then
4671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4672 $as_echo "$GNATBIND" >&6; }
4673 else
4674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4676 fi
4677
4678
4679 fi
4680 if test -z "$ac_cv_prog_GNATBIND"; then
4681   ac_ct_GNATBIND=$GNATBIND
4682   # Extract the first word of "gnatbind", so it can be a program name with args.
4683 set dummy gnatbind; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4687   $as_echo_n "(cached) " >&6
4688 else
4689   if test -n "$ac_ct_GNATBIND"; then
4690   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4694 do
4695   IFS=$as_save_IFS
4696   test -z "$as_dir" && as_dir=.
4697     for ac_exec_ext in '' $ac_executable_extensions; do
4698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4699     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701     break 2
4702   fi
4703 done
4704   done
4705 IFS=$as_save_IFS
4706
4707 fi
4708 fi
4709 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4710 if test -n "$ac_ct_GNATBIND"; then
4711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4712 $as_echo "$ac_ct_GNATBIND" >&6; }
4713 else
4714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4716 fi
4717
4718   if test "x$ac_ct_GNATBIND" = x; then
4719     GNATBIND="no"
4720   else
4721     case $cross_compiling:$ac_tool_warned in
4722 yes:)
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4725 ac_tool_warned=yes ;;
4726 esac
4727     GNATBIND=$ac_ct_GNATBIND
4728   fi
4729 else
4730   GNATBIND="$ac_cv_prog_GNATBIND"
4731 fi
4732
4733 if test -n "$ac_tool_prefix"; then
4734   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4735 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4739   $as_echo_n "(cached) " >&6
4740 else
4741   if test -n "$GNATMAKE"; then
4742   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749     for ac_exec_ext in '' $ac_executable_extensions; do
4750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753     break 2
4754   fi
4755 done
4756   done
4757 IFS=$as_save_IFS
4758
4759 fi
4760 fi
4761 GNATMAKE=$ac_cv_prog_GNATMAKE
4762 if test -n "$GNATMAKE"; then
4763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4764 $as_echo "$GNATMAKE" >&6; }
4765 else
4766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4768 fi
4769
4770
4771 fi
4772 if test -z "$ac_cv_prog_GNATMAKE"; then
4773   ac_ct_GNATMAKE=$GNATMAKE
4774   # Extract the first word of "gnatmake", so it can be a program name with args.
4775 set dummy gnatmake; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4779   $as_echo_n "(cached) " >&6
4780 else
4781   if test -n "$ac_ct_GNATMAKE"; then
4782   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787   IFS=$as_save_IFS
4788   test -z "$as_dir" && as_dir=.
4789     for ac_exec_ext in '' $ac_executable_extensions; do
4790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793     break 2
4794   fi
4795 done
4796   done
4797 IFS=$as_save_IFS
4798
4799 fi
4800 fi
4801 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4802 if test -n "$ac_ct_GNATMAKE"; then
4803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4804 $as_echo "$ac_ct_GNATMAKE" >&6; }
4805 else
4806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4808 fi
4809
4810   if test "x$ac_ct_GNATMAKE" = x; then
4811     GNATMAKE="no"
4812   else
4813     case $cross_compiling:$ac_tool_warned in
4814 yes:)
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 ac_tool_warned=yes ;;
4818 esac
4819     GNATMAKE=$ac_ct_GNATMAKE
4820   fi
4821 else
4822   GNATMAKE="$ac_cv_prog_GNATMAKE"
4823 fi
4824
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4826 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4827 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4828   $as_echo_n "(cached) " >&6
4829 else
4830   cat >conftest.adb <<EOF
4831 procedure conftest is begin null; end conftest;
4832 EOF
4833 acx_cv_cc_gcc_supports_ada=no
4834 # There is a bug in old released versions of GCC which causes the
4835 # driver to exit successfully when the appropriate language module
4836 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4837 # Therefore we must check for the error message as well as an
4838 # unsuccessful exit.
4839 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4840 # given a .adb file, but produce no object file.  So we must check
4841 # if an object file was really produced to guard against this.
4842 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4843 if test x"$errors" = x && test -f conftest.$ac_objext; then
4844   acx_cv_cc_gcc_supports_ada=yes
4845 fi
4846 rm -f conftest.*
4847 fi
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4849 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4850
4851 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4852   have_gnat=yes
4853 else
4854   have_gnat=no
4855 fi
4856
4857
4858 # autoconf is lame and doesn't give us any substitution variable for this.
4859 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4860   NO_MINUS_C_MINUS_O=yes
4861 else
4862   OUTPUT_OPTION='-o $@'
4863 fi
4864
4865
4866
4867 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4868 # optimizations to be activated explicitly by the toplevel.
4869 case "$CC" in
4870   */prev-gcc/xgcc*) ;;
4871   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4872 esac
4873
4874
4875 # -------------------------
4876 # Check C compiler features
4877 # -------------------------
4878
4879
4880 ac_ext=c
4881 ac_cpp='$CPP $CPPFLAGS'
4882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4886 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4887 # On Suns, sometimes $CPP names a directory.
4888 if test -n "$CPP" && test -d "$CPP"; then
4889   CPP=
4890 fi
4891 if test -z "$CPP"; then
4892   if test "${ac_cv_prog_CPP+set}" = set; then :
4893   $as_echo_n "(cached) " >&6
4894 else
4895       # Double quotes because CPP needs to be expanded
4896     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4897     do
4898       ac_preproc_ok=false
4899 for ac_c_preproc_warn_flag in '' yes
4900 do
4901   # Use a header file that comes with gcc, so configuring glibc
4902   # with a fresh cross-compiler works.
4903   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4904   # <limits.h> exists even on freestanding compilers.
4905   # On the NeXT, cc -E runs the code through the compiler's parser,
4906   # not just through cpp. "Syntax error" is here to catch this case.
4907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h.  */
4909 #ifdef __STDC__
4910 # include <limits.h>
4911 #else
4912 # include <assert.h>
4913 #endif
4914                      Syntax error
4915 _ACEOF
4916 if ac_fn_c_try_cpp "$LINENO"; then :
4917
4918 else
4919   # Broken: fails on valid input.
4920 continue
4921 fi
4922 rm -f conftest.err conftest.$ac_ext
4923
4924   # OK, works on sane cases.  Now check whether nonexistent headers
4925   # can be detected and how.
4926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h.  */
4928 #include <ac_nonexistent.h>
4929 _ACEOF
4930 if ac_fn_c_try_cpp "$LINENO"; then :
4931   # Broken: success on invalid input.
4932 continue
4933 else
4934   # Passes both tests.
4935 ac_preproc_ok=:
4936 break
4937 fi
4938 rm -f conftest.err conftest.$ac_ext
4939
4940 done
4941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4942 rm -f conftest.err conftest.$ac_ext
4943 if $ac_preproc_ok; then :
4944   break
4945 fi
4946
4947     done
4948     ac_cv_prog_CPP=$CPP
4949
4950 fi
4951   CPP=$ac_cv_prog_CPP
4952 else
4953   ac_cv_prog_CPP=$CPP
4954 fi
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4956 $as_echo "$CPP" >&6; }
4957 ac_preproc_ok=false
4958 for ac_c_preproc_warn_flag in '' yes
4959 do
4960   # Use a header file that comes with gcc, so configuring glibc
4961   # with a fresh cross-compiler works.
4962   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4963   # <limits.h> exists even on freestanding compilers.
4964   # On the NeXT, cc -E runs the code through the compiler's parser,
4965   # not just through cpp. "Syntax error" is here to catch this case.
4966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h.  */
4968 #ifdef __STDC__
4969 # include <limits.h>
4970 #else
4971 # include <assert.h>
4972 #endif
4973                      Syntax error
4974 _ACEOF
4975 if ac_fn_c_try_cpp "$LINENO"; then :
4976
4977 else
4978   # Broken: fails on valid input.
4979 continue
4980 fi
4981 rm -f conftest.err conftest.$ac_ext
4982
4983   # OK, works on sane cases.  Now check whether nonexistent headers
4984   # can be detected and how.
4985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h.  */
4987 #include <ac_nonexistent.h>
4988 _ACEOF
4989 if ac_fn_c_try_cpp "$LINENO"; then :
4990   # Broken: success on invalid input.
4991 continue
4992 else
4993   # Passes both tests.
4994 ac_preproc_ok=:
4995 break
4996 fi
4997 rm -f conftest.err conftest.$ac_ext
4998
4999 done
5000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5001 rm -f conftest.err conftest.$ac_ext
5002 if $ac_preproc_ok; then :
5003
5004 else
5005   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5007 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5008 See \`config.log' for more details." "$LINENO" 5; }
5009 fi
5010
5011 ac_ext=c
5012 ac_cpp='$CPP $CPPFLAGS'
5013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016
5017
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5019 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5020 if test "${ac_cv_path_GREP+set}" = set; then :
5021   $as_echo_n "(cached) " >&6
5022 else
5023   if test -z "$GREP"; then
5024   ac_path_GREP_found=false
5025   # Loop through the user's path and test for each of PROGNAME-LIST
5026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5028 do
5029   IFS=$as_save_IFS
5030   test -z "$as_dir" && as_dir=.
5031     for ac_prog in grep ggrep; do
5032     for ac_exec_ext in '' $ac_executable_extensions; do
5033       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5034       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5035 # Check for GNU ac_path_GREP and select it if it is found.
5036   # Check for GNU $ac_path_GREP
5037 case `"$ac_path_GREP" --version 2>&1` in
5038 *GNU*)
5039   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5040 *)
5041   ac_count=0
5042   $as_echo_n 0123456789 >"conftest.in"
5043   while :
5044   do
5045     cat "conftest.in" "conftest.in" >"conftest.tmp"
5046     mv "conftest.tmp" "conftest.in"
5047     cp "conftest.in" "conftest.nl"
5048     $as_echo 'GREP' >> "conftest.nl"
5049     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5050     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5051     as_fn_arith $ac_count + 1 && ac_count=$as_val
5052     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5053       # Best one so far, save it but keep looking for a better one
5054       ac_cv_path_GREP="$ac_path_GREP"
5055       ac_path_GREP_max=$ac_count
5056     fi
5057     # 10*(2^10) chars as input seems more than enough
5058     test $ac_count -gt 10 && break
5059   done
5060   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5061 esac
5062
5063       $ac_path_GREP_found && break 3
5064     done
5065   done
5066   done
5067 IFS=$as_save_IFS
5068   if test -z "$ac_cv_path_GREP"; then
5069     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5070   fi
5071 else
5072   ac_cv_path_GREP=$GREP
5073 fi
5074
5075 fi
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5077 $as_echo "$ac_cv_path_GREP" >&6; }
5078  GREP="$ac_cv_path_GREP"
5079
5080
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5082 $as_echo_n "checking for egrep... " >&6; }
5083 if test "${ac_cv_path_EGREP+set}" = set; then :
5084   $as_echo_n "(cached) " >&6
5085 else
5086   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5087    then ac_cv_path_EGREP="$GREP -E"
5088    else
5089      if test -z "$EGREP"; then
5090   ac_path_EGREP_found=false
5091   # Loop through the user's path and test for each of PROGNAME-LIST
5092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5094 do
5095   IFS=$as_save_IFS
5096   test -z "$as_dir" && as_dir=.
5097     for ac_prog in egrep; do
5098     for ac_exec_ext in '' $ac_executable_extensions; do
5099       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5100       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5101 # Check for GNU ac_path_EGREP and select it if it is found.
5102   # Check for GNU $ac_path_EGREP
5103 case `"$ac_path_EGREP" --version 2>&1` in
5104 *GNU*)
5105   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5106 *)
5107   ac_count=0
5108   $as_echo_n 0123456789 >"conftest.in"
5109   while :
5110   do
5111     cat "conftest.in" "conftest.in" >"conftest.tmp"
5112     mv "conftest.tmp" "conftest.in"
5113     cp "conftest.in" "conftest.nl"
5114     $as_echo 'EGREP' >> "conftest.nl"
5115     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5116     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5117     as_fn_arith $ac_count + 1 && ac_count=$as_val
5118     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5119       # Best one so far, save it but keep looking for a better one
5120       ac_cv_path_EGREP="$ac_path_EGREP"
5121       ac_path_EGREP_max=$ac_count
5122     fi
5123     # 10*(2^10) chars as input seems more than enough
5124     test $ac_count -gt 10 && break
5125   done
5126   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5127 esac
5128
5129       $ac_path_EGREP_found && break 3
5130     done
5131   done
5132   done
5133 IFS=$as_save_IFS
5134   if test -z "$ac_cv_path_EGREP"; then
5135     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5136   fi
5137 else
5138   ac_cv_path_EGREP=$EGREP
5139 fi
5140
5141    fi
5142 fi
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5144 $as_echo "$ac_cv_path_EGREP" >&6; }
5145  EGREP="$ac_cv_path_EGREP"
5146
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5149 $as_echo_n "checking for ANSI C header files... " >&6; }
5150 if test "${ac_cv_header_stdc+set}" = set; then :
5151   $as_echo_n "(cached) " >&6
5152 else
5153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h.  */
5155 #include <stdlib.h>
5156 #include <stdarg.h>
5157 #include <string.h>
5158 #include <float.h>
5159
5160 int
5161 main ()
5162 {
5163
5164   ;
5165   return 0;
5166 }
5167 _ACEOF
5168 if ac_fn_c_try_compile "$LINENO"; then :
5169   ac_cv_header_stdc=yes
5170 else
5171   ac_cv_header_stdc=no
5172 fi
5173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174
5175 if test $ac_cv_header_stdc = yes; then
5176   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h.  */
5179 #include <string.h>
5180
5181 _ACEOF
5182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5183   $EGREP "memchr" >/dev/null 2>&1; then :
5184
5185 else
5186   ac_cv_header_stdc=no
5187 fi
5188 rm -f conftest*
5189
5190 fi
5191
5192 if test $ac_cv_header_stdc = yes; then
5193   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h.  */
5196 #include <stdlib.h>
5197
5198 _ACEOF
5199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5200   $EGREP "free" >/dev/null 2>&1; then :
5201
5202 else
5203   ac_cv_header_stdc=no
5204 fi
5205 rm -f conftest*
5206
5207 fi
5208
5209 if test $ac_cv_header_stdc = yes; then
5210   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5211   if test "$cross_compiling" = yes; then :
5212   :
5213 else
5214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h.  */
5216 #include <ctype.h>
5217 #include <stdlib.h>
5218 #if ((' ' & 0x0FF) == 0x020)
5219 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5220 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5221 #else
5222 # define ISLOWER(c) \
5223                    (('a' <= (c) && (c) <= 'i') \
5224                      || ('j' <= (c) && (c) <= 'r') \
5225                      || ('s' <= (c) && (c) <= 'z'))
5226 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5227 #endif
5228
5229 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5230 int
5231 main ()
5232 {
5233   int i;
5234   for (i = 0; i < 256; i++)
5235     if (XOR (islower (i), ISLOWER (i))
5236         || toupper (i) != TOUPPER (i))
5237       return 2;
5238   return 0;
5239 }
5240 _ACEOF
5241 if ac_fn_c_try_run "$LINENO"; then :
5242
5243 else
5244   ac_cv_header_stdc=no
5245 fi
5246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5247   conftest.$ac_objext conftest.beam conftest.$ac_ext
5248 fi
5249
5250 fi
5251 fi
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5253 $as_echo "$ac_cv_header_stdc" >&6; }
5254 if test $ac_cv_header_stdc = yes; then
5255
5256 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5257
5258 fi
5259
5260 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5261 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5262                   inttypes.h stdint.h unistd.h
5263 do :
5264   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5265 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5266 "
5267 eval as_val=\$$as_ac_Header
5268    if test "x$as_val" = x""yes; then :
5269   cat >>confdefs.h <<_ACEOF
5270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5271 _ACEOF
5272
5273 fi
5274
5275 done
5276
5277
5278
5279   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5280 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5281   MINIX=yes
5282 else
5283   MINIX=
5284 fi
5285
5286
5287   if test "$MINIX" = yes; then
5288
5289 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5290
5291
5292 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5293
5294
5295 $as_echo "#define _MINIX 1" >>confdefs.h
5296
5297   fi
5298
5299
5300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5301 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5302 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5303   $as_echo_n "(cached) " >&6
5304 else
5305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h.  */
5307
5308 #         define __EXTENSIONS__ 1
5309           $ac_includes_default
5310 int
5311 main ()
5312 {
5313
5314   ;
5315   return 0;
5316 }
5317 _ACEOF
5318 if ac_fn_c_try_compile "$LINENO"; then :
5319   ac_cv_safe_to_define___extensions__=yes
5320 else
5321   ac_cv_safe_to_define___extensions__=no
5322 fi
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324 fi
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5326 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5327   test $ac_cv_safe_to_define___extensions__ = yes &&
5328     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5329
5330   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5331
5332   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5333
5334   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5335
5336   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5337
5338
5339 ac_ext=c
5340 ac_cpp='$CPP $CPPFLAGS'
5341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5345 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5346 # On Suns, sometimes $CPP names a directory.
5347 if test -n "$CPP" && test -d "$CPP"; then
5348   CPP=
5349 fi
5350 if test -z "$CPP"; then
5351   if test "${ac_cv_prog_CPP+set}" = set; then :
5352   $as_echo_n "(cached) " >&6
5353 else
5354       # Double quotes because CPP needs to be expanded
5355     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5356     do
5357       ac_preproc_ok=false
5358 for ac_c_preproc_warn_flag in '' yes
5359 do
5360   # Use a header file that comes with gcc, so configuring glibc
5361   # with a fresh cross-compiler works.
5362   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5363   # <limits.h> exists even on freestanding compilers.
5364   # On the NeXT, cc -E runs the code through the compiler's parser,
5365   # not just through cpp. "Syntax error" is here to catch this case.
5366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h.  */
5368 #ifdef __STDC__
5369 # include <limits.h>
5370 #else
5371 # include <assert.h>
5372 #endif
5373                      Syntax error
5374 _ACEOF
5375 if ac_fn_c_try_cpp "$LINENO"; then :
5376
5377 else
5378   # Broken: fails on valid input.
5379 continue
5380 fi
5381 rm -f conftest.err conftest.$ac_ext
5382
5383   # OK, works on sane cases.  Now check whether nonexistent headers
5384   # can be detected and how.
5385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h.  */
5387 #include <ac_nonexistent.h>
5388 _ACEOF
5389 if ac_fn_c_try_cpp "$LINENO"; then :
5390   # Broken: success on invalid input.
5391 continue
5392 else
5393   # Passes both tests.
5394 ac_preproc_ok=:
5395 break
5396 fi
5397 rm -f conftest.err conftest.$ac_ext
5398
5399 done
5400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5401 rm -f conftest.err conftest.$ac_ext
5402 if $ac_preproc_ok; then :
5403   break
5404 fi
5405
5406     done
5407     ac_cv_prog_CPP=$CPP
5408
5409 fi
5410   CPP=$ac_cv_prog_CPP
5411 else
5412   ac_cv_prog_CPP=$CPP
5413 fi
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5415 $as_echo "$CPP" >&6; }
5416 ac_preproc_ok=false
5417 for ac_c_preproc_warn_flag in '' yes
5418 do
5419   # Use a header file that comes with gcc, so configuring glibc
5420   # with a fresh cross-compiler works.
5421   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5422   # <limits.h> exists even on freestanding compilers.
5423   # On the NeXT, cc -E runs the code through the compiler's parser,
5424   # not just through cpp. "Syntax error" is here to catch this case.
5425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h.  */
5427 #ifdef __STDC__
5428 # include <limits.h>
5429 #else
5430 # include <assert.h>
5431 #endif
5432                      Syntax error
5433 _ACEOF
5434 if ac_fn_c_try_cpp "$LINENO"; then :
5435
5436 else
5437   # Broken: fails on valid input.
5438 continue
5439 fi
5440 rm -f conftest.err conftest.$ac_ext
5441
5442   # OK, works on sane cases.  Now check whether nonexistent headers
5443   # can be detected and how.
5444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h.  */
5446 #include <ac_nonexistent.h>
5447 _ACEOF
5448 if ac_fn_c_try_cpp "$LINENO"; then :
5449   # Broken: success on invalid input.
5450 continue
5451 else
5452   # Passes both tests.
5453 ac_preproc_ok=:
5454 break
5455 fi
5456 rm -f conftest.err conftest.$ac_ext
5457
5458 done
5459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5460 rm -f conftest.err conftest.$ac_ext
5461 if $ac_preproc_ok; then :
5462
5463 else
5464   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5466 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5467 See \`config.log' for more details." "$LINENO" 5; }
5468 fi
5469
5470 ac_ext=c
5471 ac_cpp='$CPP $CPPFLAGS'
5472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5477 $as_echo_n "checking for inline... " >&6; }
5478 if test "${ac_cv_c_inline+set}" = set; then :
5479   $as_echo_n "(cached) " >&6
5480 else
5481   ac_cv_c_inline=no
5482 for ac_kw in inline __inline__ __inline; do
5483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h.  */
5485 #ifndef __cplusplus
5486 typedef int foo_t;
5487 static $ac_kw foo_t static_foo () {return 0; }
5488 $ac_kw foo_t foo () {return 0; }
5489 #endif
5490
5491 _ACEOF
5492 if ac_fn_c_try_compile "$LINENO"; then :
5493   ac_cv_c_inline=$ac_kw
5494 fi
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496   test "$ac_cv_c_inline" != no && break
5497 done
5498
5499 fi
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5501 $as_echo "$ac_cv_c_inline" >&6; }
5502
5503 case $ac_cv_c_inline in
5504   inline | yes) ;;
5505   *)
5506     case $ac_cv_c_inline in
5507       no) ac_val=;;
5508       *) ac_val=$ac_cv_c_inline;;
5509     esac
5510     cat >>confdefs.h <<_ACEOF
5511 #ifndef __cplusplus
5512 #define inline $ac_val
5513 #endif
5514 _ACEOF
5515     ;;
5516 esac
5517
5518
5519 # Check whether --enable-largefile was given.
5520 if test "${enable_largefile+set}" = set; then :
5521   enableval=$enable_largefile;
5522 fi
5523
5524 if test "$enable_largefile" != no; then
5525
5526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5527 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5528 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5529   $as_echo_n "(cached) " >&6
5530 else
5531   ac_cv_sys_largefile_CC=no
5532      if test "$GCC" != yes; then
5533        ac_save_CC=$CC
5534        while :; do
5535          # IRIX 6.2 and later do not support large files by default,
5536          # so use the C compiler's -n32 option if that helps.
5537          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h.  */
5539 #include <sys/types.h>
5540  /* Check that off_t can represent 2**63 - 1 correctly.
5541     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5542     since some C++ compilers masquerading as C compilers
5543     incorrectly reject 9223372036854775807.  */
5544 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5545   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5546                        && LARGE_OFF_T % 2147483647 == 1)
5547                       ? 1 : -1];
5548 int
5549 main ()
5550 {
5551
5552   ;
5553   return 0;
5554 }
5555 _ACEOF
5556          if ac_fn_c_try_compile "$LINENO"; then :
5557   break
5558 fi
5559 rm -f core conftest.err conftest.$ac_objext
5560          CC="$CC -n32"
5561          if ac_fn_c_try_compile "$LINENO"; then :
5562   ac_cv_sys_largefile_CC=' -n32'; break
5563 fi
5564 rm -f core conftest.err conftest.$ac_objext
5565          break
5566        done
5567        CC=$ac_save_CC
5568        rm -f conftest.$ac_ext
5569     fi
5570 fi
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5572 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5573   if test "$ac_cv_sys_largefile_CC" != no; then
5574     CC=$CC$ac_cv_sys_largefile_CC
5575   fi
5576
5577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5578 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5579 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5580   $as_echo_n "(cached) " >&6
5581 else
5582   while :; do
5583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h.  */
5585 #include <sys/types.h>
5586  /* Check that off_t can represent 2**63 - 1 correctly.
5587     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5588     since some C++ compilers masquerading as C compilers
5589     incorrectly reject 9223372036854775807.  */
5590 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5591   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5592                        && LARGE_OFF_T % 2147483647 == 1)
5593                       ? 1 : -1];
5594 int
5595 main ()
5596 {
5597
5598   ;
5599   return 0;
5600 }
5601 _ACEOF
5602 if ac_fn_c_try_compile "$LINENO"; then :
5603   ac_cv_sys_file_offset_bits=no; break
5604 fi
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h.  */
5608 #define _FILE_OFFSET_BITS 64
5609 #include <sys/types.h>
5610  /* Check that off_t can represent 2**63 - 1 correctly.
5611     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5612     since some C++ compilers masquerading as C compilers
5613     incorrectly reject 9223372036854775807.  */
5614 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5615   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5616                        && LARGE_OFF_T % 2147483647 == 1)
5617                       ? 1 : -1];
5618 int
5619 main ()
5620 {
5621
5622   ;
5623   return 0;
5624 }
5625 _ACEOF
5626 if ac_fn_c_try_compile "$LINENO"; then :
5627   ac_cv_sys_file_offset_bits=64; break
5628 fi
5629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630   ac_cv_sys_file_offset_bits=unknown
5631   break
5632 done
5633 fi
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5635 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5636 case $ac_cv_sys_file_offset_bits in #(
5637   no | unknown) ;;
5638   *)
5639 cat >>confdefs.h <<_ACEOF
5640 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5641 _ACEOF
5642 ;;
5643 esac
5644 rm -rf conftest*
5645   if test $ac_cv_sys_file_offset_bits = unknown; then
5646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5647 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5648 if test "${ac_cv_sys_large_files+set}" = set; then :
5649   $as_echo_n "(cached) " >&6
5650 else
5651   while :; do
5652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h.  */
5654 #include <sys/types.h>
5655  /* Check that off_t can represent 2**63 - 1 correctly.
5656     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5657     since some C++ compilers masquerading as C compilers
5658     incorrectly reject 9223372036854775807.  */
5659 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5660   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5661                        && LARGE_OFF_T % 2147483647 == 1)
5662                       ? 1 : -1];
5663 int
5664 main ()
5665 {
5666
5667   ;
5668   return 0;
5669 }
5670 _ACEOF
5671 if ac_fn_c_try_compile "$LINENO"; then :
5672   ac_cv_sys_large_files=no; break
5673 fi
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h.  */
5677 #define _LARGE_FILES 1
5678 #include <sys/types.h>
5679  /* Check that off_t can represent 2**63 - 1 correctly.
5680     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5681     since some C++ compilers masquerading as C compilers
5682     incorrectly reject 9223372036854775807.  */
5683 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5684   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5685                        && LARGE_OFF_T % 2147483647 == 1)
5686                       ? 1 : -1];
5687 int
5688 main ()
5689 {
5690
5691   ;
5692   return 0;
5693 }
5694 _ACEOF
5695 if ac_fn_c_try_compile "$LINENO"; then :
5696   ac_cv_sys_large_files=1; break
5697 fi
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699   ac_cv_sys_large_files=unknown
5700   break
5701 done
5702 fi
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5704 $as_echo "$ac_cv_sys_large_files" >&6; }
5705 case $ac_cv_sys_large_files in #(
5706   no | unknown) ;;
5707   *)
5708 cat >>confdefs.h <<_ACEOF
5709 #define _LARGE_FILES $ac_cv_sys_large_files
5710 _ACEOF
5711 ;;
5712 esac
5713 rm -rf conftest*
5714   fi
5715 fi
5716
5717
5718 # sizeof(char) is 1 by definition.
5719 # The cast to long int works around a bug in the HP C Compiler
5720 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5721 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5722 # This bug is HP SR number 8606223364.
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5724 $as_echo_n "checking size of void *... " >&6; }
5725 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5726   $as_echo_n "(cached) " >&6
5727 else
5728   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5729
5730 else
5731   if test "$ac_cv_type_void_p" = yes; then
5732      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5734 { as_fn_set_status 77
5735 as_fn_error "cannot compute sizeof (void *)
5736 See \`config.log' for more details." "$LINENO" 5; }; }
5737    else
5738      ac_cv_sizeof_void_p=0
5739    fi
5740 fi
5741
5742 fi
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5744 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5745
5746
5747
5748 cat >>confdefs.h <<_ACEOF
5749 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5750 _ACEOF
5751
5752
5753 # The cast to long int works around a bug in the HP C Compiler
5754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5756 # This bug is HP SR number 8606223364.
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5758 $as_echo_n "checking size of short... " >&6; }
5759 if test "${ac_cv_sizeof_short+set}" = set; then :
5760   $as_echo_n "(cached) " >&6
5761 else
5762   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5763
5764 else
5765   if test "$ac_cv_type_short" = yes; then
5766      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5768 { as_fn_set_status 77
5769 as_fn_error "cannot compute sizeof (short)
5770 See \`config.log' for more details." "$LINENO" 5; }; }
5771    else
5772      ac_cv_sizeof_short=0
5773    fi
5774 fi
5775
5776 fi
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5778 $as_echo "$ac_cv_sizeof_short" >&6; }
5779
5780
5781
5782 cat >>confdefs.h <<_ACEOF
5783 #define SIZEOF_SHORT $ac_cv_sizeof_short
5784 _ACEOF
5785
5786
5787 # The cast to long int works around a bug in the HP C Compiler
5788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5790 # This bug is HP SR number 8606223364.
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5792 $as_echo_n "checking size of int... " >&6; }
5793 if test "${ac_cv_sizeof_int+set}" = set; then :
5794   $as_echo_n "(cached) " >&6
5795 else
5796   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5797
5798 else
5799   if test "$ac_cv_type_int" = yes; then
5800      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5802 { as_fn_set_status 77
5803 as_fn_error "cannot compute sizeof (int)
5804 See \`config.log' for more details." "$LINENO" 5; }; }
5805    else
5806      ac_cv_sizeof_int=0
5807    fi
5808 fi
5809
5810 fi
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5812 $as_echo "$ac_cv_sizeof_int" >&6; }
5813
5814
5815
5816 cat >>confdefs.h <<_ACEOF
5817 #define SIZEOF_INT $ac_cv_sizeof_int
5818 _ACEOF
5819
5820
5821 # The cast to long int works around a bug in the HP C Compiler
5822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5824 # This bug is HP SR number 8606223364.
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5826 $as_echo_n "checking size of long... " >&6; }
5827 if test "${ac_cv_sizeof_long+set}" = set; then :
5828   $as_echo_n "(cached) " >&6
5829 else
5830   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5831
5832 else
5833   if test "$ac_cv_type_long" = yes; then
5834      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836 { as_fn_set_status 77
5837 as_fn_error "cannot compute sizeof (long)
5838 See \`config.log' for more details." "$LINENO" 5; }; }
5839    else
5840      ac_cv_sizeof_long=0
5841    fi
5842 fi
5843
5844 fi
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5846 $as_echo "$ac_cv_sizeof_long" >&6; }
5847
5848
5849
5850 cat >>confdefs.h <<_ACEOF
5851 #define SIZEOF_LONG $ac_cv_sizeof_long
5852 _ACEOF
5853
5854
5855 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5856 if test "x$ac_cv_type_long_long" = x""yes; then :
5857
5858 cat >>confdefs.h <<_ACEOF
5859 #define HAVE_LONG_LONG 1
5860 _ACEOF
5861
5862 # The cast to long int works around a bug in the HP C Compiler
5863 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5864 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5865 # This bug is HP SR number 8606223364.
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5867 $as_echo_n "checking size of long long... " >&6; }
5868 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5869   $as_echo_n "(cached) " >&6
5870 else
5871   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5872
5873 else
5874   if test "$ac_cv_type_long_long" = yes; then
5875      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5877 { as_fn_set_status 77
5878 as_fn_error "cannot compute sizeof (long long)
5879 See \`config.log' for more details." "$LINENO" 5; }; }
5880    else
5881      ac_cv_sizeof_long_long=0
5882    fi
5883 fi
5884
5885 fi
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5887 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5888
5889
5890
5891 cat >>confdefs.h <<_ACEOF
5892 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5893 _ACEOF
5894
5895
5896 fi
5897
5898 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5899 if test "x$ac_cv_type___int64" = x""yes; then :
5900
5901 cat >>confdefs.h <<_ACEOF
5902 #define HAVE___INT64 1
5903 _ACEOF
5904
5905 # The cast to long int works around a bug in the HP C Compiler
5906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5908 # This bug is HP SR number 8606223364.
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5910 $as_echo_n "checking size of __int64... " >&6; }
5911 if test "${ac_cv_sizeof___int64+set}" = set; then :
5912   $as_echo_n "(cached) " >&6
5913 else
5914   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5915
5916 else
5917   if test "$ac_cv_type___int64" = yes; then
5918      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5920 { as_fn_set_status 77
5921 as_fn_error "cannot compute sizeof (__int64)
5922 See \`config.log' for more details." "$LINENO" 5; }; }
5923    else
5924      ac_cv_sizeof___int64=0
5925    fi
5926 fi
5927
5928 fi
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5930 $as_echo "$ac_cv_sizeof___int64" >&6; }
5931
5932
5933
5934 cat >>confdefs.h <<_ACEOF
5935 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5936 _ACEOF
5937
5938
5939 fi
5940
5941 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5942 case $ac_cv_c_int8_t in #(
5943   no|yes) ;; #(
5944   *)
5945
5946 cat >>confdefs.h <<_ACEOF
5947 #define int8_t $ac_cv_c_int8_t
5948 _ACEOF
5949 ;;
5950 esac
5951
5952 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5953 case $ac_cv_c_int16_t in #(
5954   no|yes) ;; #(
5955   *)
5956
5957 cat >>confdefs.h <<_ACEOF
5958 #define int16_t $ac_cv_c_int16_t
5959 _ACEOF
5960 ;;
5961 esac
5962
5963 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5964 case $ac_cv_c_int32_t in #(
5965   no|yes) ;; #(
5966   *)
5967
5968 cat >>confdefs.h <<_ACEOF
5969 #define int32_t $ac_cv_c_int32_t
5970 _ACEOF
5971 ;;
5972 esac
5973
5974 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5975 case $ac_cv_c_int64_t in #(
5976   no|yes) ;; #(
5977   *)
5978
5979 cat >>confdefs.h <<_ACEOF
5980 #define int64_t $ac_cv_c_int64_t
5981 _ACEOF
5982 ;;
5983 esac
5984
5985
5986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5987 $as_echo_n "checking for long long int... " >&6; }
5988 if test "${ac_cv_type_long_long_int+set}" = set; then :
5989   $as_echo_n "(cached) " >&6
5990 else
5991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h.  */
5993
5994   /* For now, do not test the preprocessor; as of 2007 there are too many
5995          implementations with broken preprocessors.  Perhaps this can
5996          be revisited in 2012.  In the meantime, code should not expect
5997          #if to work with literals wider than 32 bits.  */
5998       /* Test literals.  */
5999       long long int ll = 9223372036854775807ll;
6000       long long int nll = -9223372036854775807LL;
6001       unsigned long long int ull = 18446744073709551615ULL;
6002       /* Test constant expressions.   */
6003       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6004                      ? 1 : -1)];
6005       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6006                      ? 1 : -1)];
6007       int i = 63;
6008 int
6009 main ()
6010 {
6011 /* Test availability of runtime routines for shift and division.  */
6012       long long int llmax = 9223372036854775807ll;
6013       unsigned long long int ullmax = 18446744073709551615ull;
6014       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6015               | (llmax / ll) | (llmax % ll)
6016               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6017               | (ullmax / ull) | (ullmax % ull));
6018   ;
6019   return 0;
6020 }
6021
6022 _ACEOF
6023 if ac_fn_c_try_link "$LINENO"; then :
6024                         if test "$cross_compiling" = yes; then :
6025   ac_cv_type_long_long_int=yes
6026 else
6027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h.  */
6029 #include <limits.h>
6030                #ifndef LLONG_MAX
6031                # define HALF \
6032                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6033                # define LLONG_MAX (HALF - 1 + HALF)
6034                #endif
6035 int
6036 main ()
6037 {
6038 long long int n = 1;
6039                int i;
6040                for (i = 0; ; i++)
6041                  {
6042                    long long int m = n << i;
6043                    if (m >> i != n)
6044                      return 1;
6045                    if (LLONG_MAX / 2 < m)
6046                      break;
6047                  }
6048                return 0;
6049   ;
6050   return 0;
6051 }
6052 _ACEOF
6053 if ac_fn_c_try_run "$LINENO"; then :
6054   ac_cv_type_long_long_int=yes
6055 else
6056   ac_cv_type_long_long_int=no
6057 fi
6058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6059   conftest.$ac_objext conftest.beam conftest.$ac_ext
6060 fi
6061
6062 else
6063   ac_cv_type_long_long_int=no
6064 fi
6065 rm -f core conftest.err conftest.$ac_objext \
6066     conftest$ac_exeext conftest.$ac_ext
6067 fi
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6069 $as_echo "$ac_cv_type_long_long_int" >&6; }
6070   if test $ac_cv_type_long_long_int = yes; then
6071
6072 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6073
6074   fi
6075
6076
6077
6078   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6079 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6080
6081 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6082
6083 else
6084   test $ac_cv_type_long_long_int = yes \
6085        && ac_type='long long int' \
6086        || ac_type='long int'
6087
6088 cat >>confdefs.h <<_ACEOF
6089 #define intmax_t $ac_type
6090 _ACEOF
6091
6092 fi
6093
6094
6095
6096   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6097 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6098
6099 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6100
6101 else
6102   for ac_type in 'int' 'long int' 'long long int'; do
6103        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h.  */
6105 $ac_includes_default
6106 int
6107 main ()
6108 {
6109 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6110 test_array [0] = 0
6111
6112   ;
6113   return 0;
6114 }
6115 _ACEOF
6116 if ac_fn_c_try_compile "$LINENO"; then :
6117
6118 cat >>confdefs.h <<_ACEOF
6119 #define intptr_t $ac_type
6120 _ACEOF
6121
6122           ac_type=
6123 fi
6124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125        test -z "$ac_type" && break
6126      done
6127 fi
6128
6129
6130 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6131 case $ac_cv_c_uint8_t in #(
6132   no|yes) ;; #(
6133   *)
6134
6135 $as_echo "#define _UINT8_T 1" >>confdefs.h
6136
6137
6138 cat >>confdefs.h <<_ACEOF
6139 #define uint8_t $ac_cv_c_uint8_t
6140 _ACEOF
6141 ;;
6142   esac
6143
6144 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6145 case $ac_cv_c_uint16_t in #(
6146   no|yes) ;; #(
6147   *)
6148
6149
6150 cat >>confdefs.h <<_ACEOF
6151 #define uint16_t $ac_cv_c_uint16_t
6152 _ACEOF
6153 ;;
6154   esac
6155
6156 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6157 case $ac_cv_c_uint32_t in #(
6158   no|yes) ;; #(
6159   *)
6160
6161 $as_echo "#define _UINT32_T 1" >>confdefs.h
6162
6163
6164 cat >>confdefs.h <<_ACEOF
6165 #define uint32_t $ac_cv_c_uint32_t
6166 _ACEOF
6167 ;;
6168   esac
6169
6170 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6171 case $ac_cv_c_uint64_t in #(
6172   no|yes) ;; #(
6173   *)
6174
6175 $as_echo "#define _UINT64_T 1" >>confdefs.h
6176
6177
6178 cat >>confdefs.h <<_ACEOF
6179 #define uint64_t $ac_cv_c_uint64_t
6180 _ACEOF
6181 ;;
6182   esac
6183
6184
6185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6186 $as_echo_n "checking for unsigned long long int... " >&6; }
6187 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6188   $as_echo_n "(cached) " >&6
6189 else
6190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h.  */
6192
6193   /* For now, do not test the preprocessor; as of 2007 there are too many
6194          implementations with broken preprocessors.  Perhaps this can
6195          be revisited in 2012.  In the meantime, code should not expect
6196          #if to work with literals wider than 32 bits.  */
6197       /* Test literals.  */
6198       long long int ll = 9223372036854775807ll;
6199       long long int nll = -9223372036854775807LL;
6200       unsigned long long int ull = 18446744073709551615ULL;
6201       /* Test constant expressions.   */
6202       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6203                      ? 1 : -1)];
6204       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6205                      ? 1 : -1)];
6206       int i = 63;
6207 int
6208 main ()
6209 {
6210 /* Test availability of runtime routines for shift and division.  */
6211       long long int llmax = 9223372036854775807ll;
6212       unsigned long long int ullmax = 18446744073709551615ull;
6213       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6214               | (llmax / ll) | (llmax % ll)
6215               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6216               | (ullmax / ull) | (ullmax % ull));
6217   ;
6218   return 0;
6219 }
6220
6221 _ACEOF
6222 if ac_fn_c_try_link "$LINENO"; then :
6223   ac_cv_type_unsigned_long_long_int=yes
6224 else
6225   ac_cv_type_unsigned_long_long_int=no
6226 fi
6227 rm -f core conftest.err conftest.$ac_objext \
6228     conftest$ac_exeext conftest.$ac_ext
6229 fi
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6231 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6232   if test $ac_cv_type_unsigned_long_long_int = yes; then
6233
6234 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6235
6236   fi
6237
6238
6239
6240   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6241 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6242
6243 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6244
6245 else
6246   test $ac_cv_type_unsigned_long_long_int = yes \
6247        && ac_type='unsigned long long int' \
6248        || ac_type='unsigned long int'
6249
6250 cat >>confdefs.h <<_ACEOF
6251 #define uintmax_t $ac_type
6252 _ACEOF
6253
6254 fi
6255
6256
6257
6258   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6259 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6260
6261 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6262
6263 else
6264   for ac_type in 'unsigned int' 'unsigned long int' \
6265         'unsigned long long int'; do
6266        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h.  */
6268 $ac_includes_default
6269 int
6270 main ()
6271 {
6272 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6273 test_array [0] = 0
6274
6275   ;
6276   return 0;
6277 }
6278 _ACEOF
6279 if ac_fn_c_try_compile "$LINENO"; then :
6280
6281 cat >>confdefs.h <<_ACEOF
6282 #define uintptr_t $ac_type
6283 _ACEOF
6284
6285           ac_type=
6286 fi
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288        test -z "$ac_type" && break
6289      done
6290 fi
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306 # ---------------------
6307 # Warnings and checking
6308 # ---------------------
6309
6310 # Check $CC warning features (if it's GCC).
6311 # We want to use -pedantic, but we don't want warnings about
6312 # * 'long long'
6313 # * variadic macros
6314 # * overlong strings
6315 # So, we only use -pedantic if we can disable those warnings.
6316
6317 loose_warn=
6318 save_CFLAGS="$CFLAGS"
6319 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6320   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6321
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6323 $as_echo_n "checking whether $CC supports $option... " >&6; }
6324 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6325   $as_echo_n "(cached) " >&6
6326 else
6327   CFLAGS="$option"
6328     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h.  */
6330
6331 int
6332 main ()
6333 {
6334
6335   ;
6336   return 0;
6337 }
6338 _ACEOF
6339 if ac_fn_c_try_compile "$LINENO"; then :
6340   eval "$as_acx_Woption=yes"
6341 else
6342   eval "$as_acx_Woption=no"
6343 fi
6344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6345
6346 fi
6347 eval ac_res=\$$as_acx_Woption
6348                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6349 $as_echo "$ac_res" >&6; }
6350   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6351   loose_warn="$loose_warn${loose_warn:+ }$option"
6352 fi
6353   done
6354 CFLAGS="$save_CFLAGS"
6355
6356 c_loose_warn=
6357 save_CFLAGS="$CFLAGS"
6358 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6359   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6360
6361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6362 $as_echo_n "checking whether $CC supports $option... " >&6; }
6363 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6364   $as_echo_n "(cached) " >&6
6365 else
6366   CFLAGS="$option"
6367     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h.  */
6369
6370 int
6371 main ()
6372 {
6373
6374   ;
6375   return 0;
6376 }
6377 _ACEOF
6378 if ac_fn_c_try_compile "$LINENO"; then :
6379   eval "$as_acx_Woption=yes"
6380 else
6381   eval "$as_acx_Woption=no"
6382 fi
6383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384
6385 fi
6386 eval ac_res=\$$as_acx_Woption
6387                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6388 $as_echo "$ac_res" >&6; }
6389   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6390   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6391 fi
6392   done
6393 CFLAGS="$save_CFLAGS"
6394
6395 strict_warn=
6396 save_CFLAGS="$CFLAGS"
6397 for option in -Wmissing-format-attribute; do
6398   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6399
6400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6401 $as_echo_n "checking whether $CC supports $option... " >&6; }
6402 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6403   $as_echo_n "(cached) " >&6
6404 else
6405   CFLAGS="$option"
6406     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h.  */
6408
6409 int
6410 main ()
6411 {
6412
6413   ;
6414   return 0;
6415 }
6416 _ACEOF
6417 if ac_fn_c_try_compile "$LINENO"; then :
6418   eval "$as_acx_Woption=yes"
6419 else
6420   eval "$as_acx_Woption=no"
6421 fi
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423
6424 fi
6425 eval ac_res=\$$as_acx_Woption
6426                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6427 $as_echo "$ac_res" >&6; }
6428   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6429   strict_warn="$strict_warn${strict_warn:+ }$option"
6430 fi
6431   done
6432 CFLAGS="$save_CFLAGS"
6433
6434 c_strict_warn=
6435 save_CFLAGS="$CFLAGS"
6436 for option in -Wold-style-definition -Wc++-compat; do
6437   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6438
6439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6440 $as_echo_n "checking whether $CC supports $option... " >&6; }
6441 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6442   $as_echo_n "(cached) " >&6
6443 else
6444   CFLAGS="$option"
6445     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h.  */
6447
6448 int
6449 main ()
6450 {
6451
6452   ;
6453   return 0;
6454 }
6455 _ACEOF
6456 if ac_fn_c_try_compile "$LINENO"; then :
6457   eval "$as_acx_Woption=yes"
6458 else
6459   eval "$as_acx_Woption=no"
6460 fi
6461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462
6463 fi
6464 eval ac_res=\$$as_acx_Woption
6465                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6466 $as_echo "$ac_res" >&6; }
6467   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6468   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6469 fi
6470   done
6471 CFLAGS="$save_CFLAGS"
6472
6473 if test "$GCC" = yes; then :
6474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6475 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6476 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6477   $as_echo_n "(cached) " >&6
6478 else
6479   save_CFLAGS="$CFLAGS"
6480 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h.  */
6483
6484 int
6485 main ()
6486 {
6487
6488   ;
6489   return 0;
6490 }
6491 _ACEOF
6492 if ac_fn_c_try_compile "$LINENO"; then :
6493   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6494 else
6495   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6496 fi
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 CFLAGS="$save_CFLAGS"
6499 fi
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6501 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6502 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6503   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6504 fi
6505
6506 fi
6507
6508 # Check whether --enable-werror-always was given.
6509 if test "${enable_werror_always+set}" = set; then :
6510   enableval=$enable_werror_always;
6511 else
6512   enable_werror_always=no
6513 fi
6514
6515 if test $enable_werror_always = yes; then :
6516   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6517 fi
6518
6519
6520
6521 # The above macros do nothing if the compiler is not GCC.  However, the
6522 # Makefile has more goo to add other flags, so these variables are used
6523 # to enable warnings only for GCC.
6524 warn_cflags=
6525 warn_cxxflags=
6526 if test "x$GCC" = "xyes"; then
6527   warn_cflags='$(GCC_WARN_CFLAGS)'
6528   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6529 fi
6530
6531
6532
6533 # Enable expensive internal checks
6534 is_release=
6535 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6536   is_release=yes
6537 fi
6538
6539 # Check whether --enable-checking was given.
6540 if test "${enable_checking+set}" = set; then :
6541   enableval=$enable_checking; ac_checking_flags="${enableval}"
6542 else
6543
6544 # Determine the default checks.
6545 if test x$is_release = x ; then
6546   ac_checking_flags=yes
6547 else
6548   ac_checking_flags=release
6549 fi
6550 fi
6551
6552 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6553 for check in release $ac_checking_flags
6554 do
6555         case $check in
6556         # these set all the flags to specific states
6557         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6558                         ac_fold_checking= ; ac_gc_checking=1 ;
6559                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6560                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6561                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6562                         ac_types_checking=1 ;;
6563         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6564                         ac_fold_checking= ; ac_gc_checking= ;
6565                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6566                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6567                         ac_tree_checking= ; ac_valgrind_checking= ;
6568                         ac_types_checking= ;;
6569         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6570                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6571                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6572                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6573                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6574                         ac_types_checking=1 ;;
6575         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6576                         ac_fold_checking= ; ac_gc_checking= ;
6577                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6578                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6579                         ac_tree_checking= ; ac_valgrind_checking= ;
6580                         ac_types_checking= ;;
6581         # these enable particular checks
6582         assert)         ac_assert_checking=1 ;;
6583         df)             ac_df_checking=1 ;;
6584         fold)           ac_fold_checking=1 ;;
6585         gc)             ac_gc_checking=1 ;;
6586         gcac)           ac_gc_always_collect=1 ;;
6587         gimple)         ac_gimple_checking=1 ;;
6588         misc)           ac_checking=1 ;;
6589         rtl)            ac_rtl_checking=1 ;;
6590         rtlflag)        ac_rtlflag_checking=1 ;;
6591         runtime)        ac_runtime_checking=1 ;;
6592         tree)           ac_tree_checking=1 ;;
6593         types)          ac_types_checking=1 ;;
6594         valgrind)       ac_valgrind_checking=1 ;;
6595         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6596         esac
6597 done
6598 IFS="$ac_save_IFS"
6599
6600 nocommon_flag=""
6601 if test x$ac_checking != x ; then
6602
6603 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6604
6605   nocommon_flag=-fno-common
6606 fi
6607
6608 if test x$ac_df_checking != x ; then
6609
6610 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6611
6612 fi
6613 if test x$ac_assert_checking != x ; then
6614
6615 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6616
6617 fi
6618 if test x$ac_gimple_checking != x ; then
6619
6620 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6621
6622 fi
6623
6624 if test x$ac_runtime_checking != x ; then
6625
6626 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6627
6628 fi
6629 if test x$ac_tree_checking != x ; then
6630
6631 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6632
6633   TREEBROWSER=tree-browser.o
6634 fi
6635 if test x$ac_types_checking != x ; then
6636
6637 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6638
6639 fi
6640
6641 if test x$ac_rtl_checking != x ; then
6642
6643 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6644
6645 fi
6646 if test x$ac_rtlflag_checking != x ; then
6647
6648 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6649
6650 fi
6651 if test x$ac_gc_checking != x ; then
6652
6653 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6654
6655 fi
6656 if test x$ac_gc_always_collect != x ; then
6657
6658 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6659
6660 fi
6661 if test x$ac_fold_checking != x ; then
6662
6663 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6664
6665 fi
6666 valgrind_path_defines=
6667 valgrind_command=
6668
6669 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6670 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6671   have_valgrind_h=yes
6672 else
6673   have_valgrind_h=no
6674 fi
6675
6676
6677
6678 if test x$ac_valgrind_checking != x ; then
6679   # It is certainly possible that there's valgrind but no valgrind.h.
6680   # GCC relies on making annotations so we must have both.
6681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6682 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h.  */
6685 #include <valgrind/memcheck.h>
6686 #ifndef VALGRIND_DISCARD
6687 #error VALGRIND_DISCARD not defined
6688 #endif
6689 _ACEOF
6690 if ac_fn_c_try_cpp "$LINENO"; then :
6691   gcc_cv_header_valgrind_memcheck_h=yes
6692 else
6693   gcc_cv_header_valgrind_memcheck_h=no
6694 fi
6695 rm -f conftest.err conftest.$ac_ext
6696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6697 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6699 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h.  */
6702 #include <memcheck.h>
6703 #ifndef VALGRIND_DISCARD
6704 #error VALGRIND_DISCARD not defined
6705 #endif
6706 _ACEOF
6707 if ac_fn_c_try_cpp "$LINENO"; then :
6708   gcc_cv_header_memcheck_h=yes
6709 else
6710   gcc_cv_header_memcheck_h=no
6711 fi
6712 rm -f conftest.err conftest.$ac_ext
6713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6714 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6715
6716 # Prepare PATH_SEPARATOR.
6717 # The user is always right.
6718 if test "${PATH_SEPARATOR+set}" != set; then
6719   echo "#! /bin/sh" >conf$$.sh
6720   echo  "exit 0"   >>conf$$.sh
6721   chmod +x conf$$.sh
6722   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6723     PATH_SEPARATOR=';'
6724   else
6725     PATH_SEPARATOR=:
6726   fi
6727   rm -f conf$$.sh
6728 fi
6729
6730 # Find out how to test for executable files. Don't use a zero-byte file,
6731 # as systems may use methods other than mode bits to determine executability.
6732 cat >conf$$.file <<_ASEOF
6733 #! /bin/sh
6734 exit 0
6735 _ASEOF
6736 chmod +x conf$$.file
6737 if test -x conf$$.file >/dev/null 2>&1; then
6738   ac_executable_p="test -x"
6739 else
6740   ac_executable_p="test -f"
6741 fi
6742 rm -f conf$$.file
6743
6744 # Extract the first word of "valgrind", so it can be a program name with args.
6745 set dummy valgrind; ac_word=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6749   $as_echo_n "(cached) " >&6
6750 else
6751   case "$valgrind_path" in
6752   [\\/]* | ?:[\\/]*)
6753     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6754     ;;
6755   *)
6756     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6757     for ac_dir in $PATH; do
6758       IFS="$ac_save_IFS"
6759       test -z "$ac_dir" && ac_dir=.
6760       for ac_exec_ext in '' $ac_executable_extensions; do
6761         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6762           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6763             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6764             break 2
6765           fi
6766         fi
6767       done
6768     done
6769     IFS="$ac_save_IFS"
6770     ;;
6771 esac
6772 fi
6773 valgrind_path="$ac_cv_path_valgrind_path"
6774 if test -n "$valgrind_path"; then
6775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6776 $as_echo "$valgrind_path" >&6; }
6777 else
6778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6780 fi
6781
6782   if test "x$valgrind_path" = "x" \
6783     || (test $have_valgrind_h = no \
6784         && test $gcc_cv_header_memcheck_h = no \
6785         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6786         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6787   fi
6788   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6789   valgrind_command="$valgrind_path -q"
6790
6791 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6792
6793   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6794
6795 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6796
6797   fi
6798   if test $gcc_cv_header_memcheck_h = yes; then
6799
6800 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6801
6802   fi
6803 fi
6804
6805
6806
6807 # Enable code coverage collection
6808 # Check whether --enable-coverage was given.
6809 if test "${enable_coverage+set}" = set; then :
6810   enableval=$enable_coverage; case "${enableval}" in
6811   yes|noopt)
6812     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6813     ;;
6814   opt)
6815     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6816     ;;
6817   no)
6818     # a.k.a. --disable-coverage
6819     coverage_flags=""
6820     ;;
6821   *)
6822     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6823     ;;
6824 esac
6825 else
6826   coverage_flags=""
6827 fi
6828
6829
6830
6831 # Check whether --enable-gather-detailed-mem-stats was given.
6832 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6833   enableval=$enable_gather_detailed_mem_stats;
6834 else
6835   enable_gather_detailed_mem_stats=no
6836 fi
6837
6838 if test x$enable_gather_detailed_mem_stats = xyes ; then
6839
6840 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6841
6842 fi
6843
6844 # -------------------------------
6845 # Miscenalleous configure options
6846 # -------------------------------
6847
6848 # See if we are building gcc with C++.
6849 # Check whether --enable-build-with-cxx was given.
6850 if test "${enable_build_with_cxx+set}" = set; then :
6851   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6852 else
6853   ENABLE_BUILD_WITH_CXX=no
6854 fi
6855
6856
6857 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6858
6859 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6860
6861 fi
6862
6863 # With stabs
6864
6865 # Check whether --with-stabs was given.
6866 if test "${with_stabs+set}" = set; then :
6867   withval=$with_stabs; stabs="$with_stabs"
6868 else
6869   stabs=no
6870 fi
6871
6872
6873 # Determine whether or not multilibs are enabled.
6874 # Check whether --enable-multilib was given.
6875 if test "${enable_multilib+set}" = set; then :
6876   enableval=$enable_multilib;
6877 else
6878   enable_multilib=yes
6879 fi
6880
6881
6882
6883 # Enable __cxa_atexit for C++.
6884 # Check whether --enable-__cxa_atexit was given.
6885 if test "${enable___cxa_atexit+set}" = set; then :
6886   enableval=$enable___cxa_atexit;
6887 fi
6888
6889
6890 # Enable C extension for decimal float if target supports it.
6891
6892 # Check whether --enable-decimal-float was given.
6893 if test "${enable_decimal_float+set}" = set; then :
6894   enableval=$enable_decimal_float;
6895   case $enable_decimal_float in
6896     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6897     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6898 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6899   esac
6900
6901 else
6902
6903   case $target in
6904     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6905     i?86*-*-mingw* | x86_64*-*-mingw* | \
6906     i?86*-*-cygwin*)
6907       enable_decimal_float=yes
6908       ;;
6909     *)
6910       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6911 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6912       enable_decimal_float=no
6913       ;;
6914   esac
6915
6916 fi
6917
6918
6919 # x86's use BID format instead of DPD
6920 case x$enable_decimal_float in
6921   xyes)
6922     case $target in
6923       i?86*-*-* | x86_64*-*-*)
6924         enable_decimal_float=bid
6925         ;;
6926       *)
6927         enable_decimal_float=dpd
6928         ;;
6929     esac
6930     default_decimal_float=$enable_decimal_float
6931     ;;
6932   xno)
6933     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6934     # dependency on libdecnumber.
6935     default_decimal_float=dpd
6936     ;;
6937 esac
6938
6939
6940
6941
6942 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6943
6944 cat >>confdefs.h <<_ACEOF
6945 #define ENABLE_DECIMAL_FLOAT $dfp
6946 _ACEOF
6947
6948
6949 # Use default_decimal_float for dependency.
6950 enable_decimal_float=$default_decimal_float
6951
6952 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6953
6954 cat >>confdefs.h <<_ACEOF
6955 #define ENABLE_DECIMAL_BID_FORMAT $bid
6956 _ACEOF
6957
6958
6959 # Enable C extension for fixed-point arithmetic.
6960 # Check whether --enable-fixed-point was given.
6961 if test "${enable_fixed_point+set}" = set; then :
6962   enableval=$enable_fixed_point;
6963 else
6964
6965   case $target in
6966     mips*-*-*)
6967       case $host in
6968         mips*-sgi-irix*)
6969           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6970 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6971           enable_fixed_point=no
6972           ;;
6973         *)
6974           enable_fixed_point=yes
6975           ;;
6976       esac
6977       ;;
6978     *)
6979       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6980 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6981       enable_fixed_point=no
6982       ;;
6983   esac
6984
6985 fi
6986
6987
6988
6989 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6990
6991 cat >>confdefs.h <<_ACEOF
6992 #define ENABLE_FIXED_POINT $fixedpoint
6993 _ACEOF
6994
6995
6996 # Enable threads
6997 # Pass with no value to take the default
6998 # Pass with a value to specify a thread package
6999 # Check whether --enable-threads was given.
7000 if test "${enable_threads+set}" = set; then :
7001   enableval=$enable_threads;
7002 else
7003   enable_threads=''
7004 fi
7005
7006
7007 # Check whether --enable-tls was given.
7008 if test "${enable_tls+set}" = set; then :
7009   enableval=$enable_tls;
7010   case $enable_tls in
7011     yes | no) ;;
7012     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7013 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7014   esac
7015
7016 else
7017   enable_tls=''
7018 fi
7019
7020
7021 # Check whether --enable-objc-gc was given.
7022 if test "${enable_objc_gc+set}" = set; then :
7023   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7024         objc_boehm_gc=''
7025 else
7026         objc_boehm_gc=1
7027 fi
7028 else
7029   objc_boehm_gc=''
7030 fi
7031
7032
7033
7034 # Check whether --with-dwarf2 was given.
7035 if test "${with_dwarf2+set}" = set; then :
7036   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7037 else
7038   dwarf2=no
7039 fi
7040
7041
7042 # Check whether --enable-shared was given.
7043 if test "${enable_shared+set}" = set; then :
7044   enableval=$enable_shared;
7045   case $enable_shared in
7046   yes | no) ;;
7047   *)
7048     enable_shared=no
7049     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7050     for pkg in $enableval; do
7051       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7052         enable_shared=yes
7053       fi
7054     done
7055     IFS="$ac_save_ifs"
7056     ;;
7057   esac
7058
7059 else
7060   enable_shared=yes
7061 fi
7062
7063
7064
7065
7066 # Check whether --with-build-sysroot was given.
7067 if test "${with_build_sysroot+set}" = set; then :
7068   withval=$with_build_sysroot;
7069 fi
7070
7071
7072
7073 # Check whether --with-sysroot was given.
7074 if test "${with_sysroot+set}" = set; then :
7075   withval=$with_sysroot;
7076  case ${with_sysroot} in
7077  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7078  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7079  esac
7080
7081  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7082  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7083
7084  if test "x$prefix" = xNONE; then
7085   test_prefix=/usr/local
7086  else
7087   test_prefix=$prefix
7088  fi
7089  if test "x$exec_prefix" = xNONE; then
7090   test_exec_prefix=$test_prefix
7091  else
7092   test_exec_prefix=$exec_prefix
7093  fi
7094  case ${TARGET_SYSTEM_ROOT} in
7095  "${test_prefix}"|"${test_prefix}/"*|\
7096  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7097  '${prefix}'|'${prefix}/'*|\
7098  '${exec_prefix}'|'${exec_prefix}/'*)
7099    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7100    TARGET_SYSTEM_ROOT_DEFINE="$t"
7101    ;;
7102  esac
7103
7104 else
7105
7106  TARGET_SYSTEM_ROOT=
7107  TARGET_SYSTEM_ROOT_DEFINE=
7108  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7109
7110 fi
7111
7112
7113
7114
7115
7116
7117 # Check whether --with-specs was given.
7118 if test "${with_specs+set}" = set; then :
7119   withval=$with_specs; CONFIGURE_SPECS=$withval
7120 else
7121   CONFIGURE_SPECS=
7122
7123 fi
7124
7125
7126
7127
7128
7129 # Check whether --with-pkgversion was given.
7130 if test "${with_pkgversion+set}" = set; then :
7131   withval=$with_pkgversion; case "$withval" in
7132       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7133       no)  PKGVERSION= ;;
7134       *)   PKGVERSION="($withval) " ;;
7135      esac
7136 else
7137   PKGVERSION="(GCC) "
7138
7139 fi
7140
7141
7142
7143
7144
7145 # Check whether --with-bugurl was given.
7146 if test "${with_bugurl+set}" = set; then :
7147   withval=$with_bugurl; case "$withval" in
7148       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7149       no)  BUGURL=
7150            ;;
7151       *)   BUGURL="$withval"
7152            ;;
7153      esac
7154 else
7155   BUGURL="http://gcc.gnu.org/bugs.html"
7156
7157 fi
7158
7159   case ${BUGURL} in
7160   "")
7161     REPORT_BUGS_TO=
7162     REPORT_BUGS_TEXI=
7163     ;;
7164   *)
7165     REPORT_BUGS_TO="<$BUGURL>"
7166     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7167     ;;
7168   esac;
7169
7170
7171
7172
7173 # Sanity check enable_languages in case someone does not run the toplevel
7174 # configure # script.
7175 # Check whether --enable-languages was given.
7176 if test "${enable_languages+set}" = set; then :
7177   enableval=$enable_languages; case ,${enable_languages}, in
7178        ,,|,yes,)
7179                 # go safe -- we cannot be much sure without the toplevel
7180                 # configure's
7181                 # analysis of which target libs are present and usable
7182                 enable_languages=c
7183                 ;;
7184          *,all,*)
7185                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7186                 ;;
7187         *,c,*)
7188                 ;;
7189         *)
7190                 enable_languages=c,${enable_languages}
7191                 ;;
7192 esac
7193 else
7194   enable_languages=c
7195 fi
7196
7197
7198
7199 # Check whether --with-multilib-list was given.
7200 if test "${with_multilib_list+set}" = set; then :
7201   withval=$with_multilib_list; :
7202 else
7203   with_multilib_list=default
7204 fi
7205
7206
7207 # -------------------------
7208 # Checks for other programs
7209 # -------------------------
7210
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7212 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7213 set x ${MAKE-make}
7214 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7215 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7216   $as_echo_n "(cached) " >&6
7217 else
7218   cat >conftest.make <<\_ACEOF
7219 SHELL = /bin/sh
7220 all:
7221         @echo '@@@%%%=$(MAKE)=@@@%%%'
7222 _ACEOF
7223 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7224 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7225   *@@@%%%=?*=@@@%%%*)
7226     eval ac_cv_prog_make_${ac_make}_set=yes;;
7227   *)
7228     eval ac_cv_prog_make_${ac_make}_set=no;;
7229 esac
7230 rm -f conftest.make
7231 fi
7232 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7234 $as_echo "yes" >&6; }
7235   SET_MAKE=
7236 else
7237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238 $as_echo "no" >&6; }
7239   SET_MAKE="MAKE=${MAKE-make}"
7240 fi
7241
7242
7243 # Find some useful tools
7244 for ac_prog in gawk mawk nawk awk
7245 do
7246   # Extract the first word of "$ac_prog", so it can be a program name with args.
7247 set dummy $ac_prog; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if test "${ac_cv_prog_AWK+set}" = set; then :
7251   $as_echo_n "(cached) " >&6
7252 else
7253   if test -n "$AWK"; then
7254   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259   IFS=$as_save_IFS
7260   test -z "$as_dir" && as_dir=.
7261     for ac_exec_ext in '' $ac_executable_extensions; do
7262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7263     ac_cv_prog_AWK="$ac_prog"
7264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265     break 2
7266   fi
7267 done
7268   done
7269 IFS=$as_save_IFS
7270
7271 fi
7272 fi
7273 AWK=$ac_cv_prog_AWK
7274 if test -n "$AWK"; then
7275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7276 $as_echo "$AWK" >&6; }
7277 else
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7280 fi
7281
7282
7283   test -n "$AWK" && break
7284 done
7285
7286 # We need awk to create options.c and options.h.
7287 # Bail out if it's missing.
7288 case ${AWK} in
7289   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7290 esac
7291
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7293 $as_echo_n "checking whether ln -s works... " >&6; }
7294 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7295   $as_echo_n "(cached) " >&6
7296 else
7297   rm -f conftestdata_t
7298 echo >conftestdata_f
7299 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7300 then
7301   gcc_cv_prog_LN_S="ln -s"
7302 else
7303   if ln conftestdata_f conftestdata_t 2>/dev/null
7304   then
7305     gcc_cv_prog_LN_S=ln
7306   else
7307     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7308     then
7309       gcc_cv_prog_LN_S="cp -p"
7310     else
7311       gcc_cv_prog_LN_S=cp
7312     fi
7313   fi
7314 fi
7315 rm -f conftestdata_f conftestdata_t
7316
7317 fi
7318 LN_S="$gcc_cv_prog_LN_S"
7319 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7321 $as_echo "yes" >&6; }
7322 else
7323   if test "$gcc_cv_prog_LN_S" = "ln"; then
7324     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7325 $as_echo "no, using ln" >&6; }
7326   else
7327     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7328 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7329   fi
7330 fi
7331
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7333 $as_echo_n "checking whether ln works... " >&6; }
7334 if test "${acx_cv_prog_LN+set}" = set; then :
7335   $as_echo_n "(cached) " >&6
7336 else
7337   rm -f conftestdata_t
7338 echo >conftestdata_f
7339 if ln conftestdata_f conftestdata_t 2>/dev/null
7340 then
7341   acx_cv_prog_LN=ln
7342 else
7343   acx_cv_prog_LN=no
7344 fi
7345 rm -f conftestdata_f conftestdata_t
7346
7347 fi
7348 if test $acx_cv_prog_LN = no; then
7349   LN="$LN_S"
7350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7351 $as_echo "no, using $LN" >&6; }
7352 else
7353   LN="$acx_cv_prog_LN"
7354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7355 $as_echo "yes" >&6; }
7356 fi
7357
7358 if test -n "$ac_tool_prefix"; then
7359   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362 $as_echo_n "checking for $ac_word... " >&6; }
7363 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7364   $as_echo_n "(cached) " >&6
7365 else
7366   if test -n "$RANLIB"; then
7367   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7368 else
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 for as_dir in $PATH
7371 do
7372   IFS=$as_save_IFS
7373   test -z "$as_dir" && as_dir=.
7374     for ac_exec_ext in '' $ac_executable_extensions; do
7375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7376     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378     break 2
7379   fi
7380 done
7381   done
7382 IFS=$as_save_IFS
7383
7384 fi
7385 fi
7386 RANLIB=$ac_cv_prog_RANLIB
7387 if test -n "$RANLIB"; then
7388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7389 $as_echo "$RANLIB" >&6; }
7390 else
7391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7393 fi
7394
7395
7396 fi
7397 if test -z "$ac_cv_prog_RANLIB"; then
7398   ac_ct_RANLIB=$RANLIB
7399   # Extract the first word of "ranlib", so it can be a program name with args.
7400 set dummy ranlib; ac_word=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 $as_echo_n "checking for $ac_word... " >&6; }
7403 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7404   $as_echo_n "(cached) " >&6
7405 else
7406   if test -n "$ac_ct_RANLIB"; then
7407   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7408 else
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 for as_dir in $PATH
7411 do
7412   IFS=$as_save_IFS
7413   test -z "$as_dir" && as_dir=.
7414     for ac_exec_ext in '' $ac_executable_extensions; do
7415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7416     ac_cv_prog_ac_ct_RANLIB="ranlib"
7417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418     break 2
7419   fi
7420 done
7421   done
7422 IFS=$as_save_IFS
7423
7424 fi
7425 fi
7426 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7427 if test -n "$ac_ct_RANLIB"; then
7428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7429 $as_echo "$ac_ct_RANLIB" >&6; }
7430 else
7431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7433 fi
7434
7435   if test "x$ac_ct_RANLIB" = x; then
7436     RANLIB=":"
7437   else
7438     case $cross_compiling:$ac_tool_warned in
7439 yes:)
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7442 ac_tool_warned=yes ;;
7443 esac
7444     RANLIB=$ac_ct_RANLIB
7445   fi
7446 else
7447   RANLIB="$ac_cv_prog_RANLIB"
7448 fi
7449
7450 case "${host}" in
7451 *-*-darwin*)
7452   # By default, the Darwin ranlib will not treat common symbols as
7453   # definitions when  building the archive table of contents.  Other
7454   # ranlibs do that; pass an option to the Darwin ranlib that makes
7455   # it behave similarly.
7456   ranlib_flags="-c"
7457   ;;
7458 *)
7459   ranlib_flags=""
7460 esac
7461
7462
7463 # Find a good install program.  We prefer a C program (faster),
7464 # so one script is as good as another.  But avoid the broken or
7465 # incompatible versions:
7466 # SysV /etc/install, /usr/sbin/install
7467 # SunOS /usr/etc/install
7468 # IRIX /sbin/install
7469 # AIX /bin/install
7470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7472 # ./install, which can be erroneously created by make from ./install.sh.
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7474 $as_echo_n "checking for a BSD compatible install... " >&6; }
7475 if test -z "$INSTALL"; then
7476 if test "${ac_cv_path_install+set}" = set; then :
7477   $as_echo_n "(cached) " >&6
7478 else
7479     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7480   for ac_dir in $PATH; do
7481     # Account for people who put trailing slashes in PATH elements.
7482     case "$ac_dir/" in
7483     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7484     *)
7485       # OSF1 and SCO ODT 3.0 have their own names for install.
7486       for ac_prog in ginstall scoinst install; do
7487         if test -f $ac_dir/$ac_prog; then
7488           if test $ac_prog = install &&
7489             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7490             # AIX install.  It has an incompatible calling convention.
7491             # OSF/1 installbsd also uses dspmsg, but is usable.
7492             :
7493           else
7494             ac_cv_path_install="$ac_dir/$ac_prog -c"
7495             break 2
7496           fi
7497         fi
7498       done
7499       ;;
7500     esac
7501   done
7502   IFS="$ac_save_IFS"
7503
7504 fi
7505   if test "${ac_cv_path_install+set}" = set; then
7506     INSTALL="$ac_cv_path_install"
7507   else
7508     # As a last resort, use the slow shell script.  We don't cache a
7509     # path for INSTALL within a source directory, because that will
7510     # break other packages using the cache if that directory is
7511     # removed, or if the path is relative.
7512     INSTALL="$ac_install_sh"
7513   fi
7514 fi
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7516 $as_echo "$INSTALL" >&6; }
7517
7518 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7519 # It thinks the first close brace ends the variable substitution.
7520 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7521
7522 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7523
7524
7525 # See if cmp has --ignore-initial.
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7527 $as_echo_n "checking for cmp's capabilities... " >&6; }
7528 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7529   $as_echo_n "(cached) " >&6
7530 else
7531    echo abfoo >t1
7532   echo cdfoo >t2
7533   gcc_cv_prog_cmp_skip=slowcompare
7534   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7535     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7536       :
7537     else
7538       gcc_cv_prog_cmp_skip=gnucompare
7539     fi
7540   fi
7541   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7542     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7543       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7544         :
7545       else
7546         gcc_cv_prog_cmp_skip=fastcompare
7547       fi
7548     fi
7549   fi
7550   rm t1 t2
7551
7552 fi
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7554 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7555 make_compare_target=$gcc_cv_prog_cmp_skip
7556
7557
7558
7559 # See if we have the mktemp command.
7560 # Extract the first word of "mktemp", so it can be a program name with args.
7561 set dummy mktemp; ac_word=$2
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563 $as_echo_n "checking for $ac_word... " >&6; }
7564 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7565   $as_echo_n "(cached) " >&6
7566 else
7567   if test -n "$have_mktemp_command"; then
7568   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7569 else
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 for as_dir in $PATH
7572 do
7573   IFS=$as_save_IFS
7574   test -z "$as_dir" && as_dir=.
7575     for ac_exec_ext in '' $ac_executable_extensions; do
7576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7577     ac_cv_prog_have_mktemp_command="yes"
7578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579     break 2
7580   fi
7581 done
7582   done
7583 IFS=$as_save_IFS
7584
7585   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7586 fi
7587 fi
7588 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7589 if test -n "$have_mktemp_command"; then
7590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7591 $as_echo "$have_mktemp_command" >&6; }
7592 else
7593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7595 fi
7596
7597
7598
7599 # See if makeinfo has been installed and is modern enough
7600 # that we can use it.
7601
7602   # Extract the first word of "makeinfo", so it can be a program name with args.
7603 set dummy makeinfo; ac_word=$2
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605 $as_echo_n "checking for $ac_word... " >&6; }
7606 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7607   $as_echo_n "(cached) " >&6
7608 else
7609   if test -n "$MAKEINFO"; then
7610   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7611 else
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 for as_dir in $PATH
7614 do
7615   IFS=$as_save_IFS
7616   test -z "$as_dir" && as_dir=.
7617     for ac_exec_ext in '' $ac_executable_extensions; do
7618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7619     ac_cv_prog_MAKEINFO="makeinfo"
7620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621     break 2
7622   fi
7623 done
7624   done
7625 IFS=$as_save_IFS
7626
7627 fi
7628 fi
7629 MAKEINFO=$ac_cv_prog_MAKEINFO
7630 if test -n "$MAKEINFO"; then
7631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7632 $as_echo "$MAKEINFO" >&6; }
7633 else
7634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7636 fi
7637
7638
7639   if test -n "$MAKEINFO"; then
7640     # Found it, now check the version.
7641     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7642 $as_echo_n "checking for modern makeinfo... " >&6; }
7643 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7644   $as_echo_n "(cached) " >&6
7645 else
7646   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7647                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7648
7649                     case $ac_prog_version in
7650                       '')  gcc_cv_prog_makeinfo_modern=no;;
7651                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7652                       *)   gcc_cv_prog_makeinfo_modern=no;;
7653                     esac
7654
7655 fi
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7657 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7658   else
7659     gcc_cv_prog_makeinfo_modern=no
7660   fi
7661   if test $gcc_cv_prog_makeinfo_modern = no; then
7662     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7663   fi
7664
7665 if test $gcc_cv_prog_makeinfo_modern = no; then
7666   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7667 *** Makeinfo is missing or too old.
7668 *** Info documentation will not be built." >&5
7669 $as_echo "$as_me: WARNING:
7670 *** Makeinfo is missing or too old.
7671 *** Info documentation will not be built." >&2;}
7672   BUILD_INFO=
7673 else
7674   BUILD_INFO=info
7675 fi
7676
7677
7678 # Is pod2man recent enough to regenerate manpages?
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7680 $as_echo_n "checking for recent Pod::Man... " >&6; }
7681 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7683 $as_echo "yes" >&6; }
7684   GENERATED_MANPAGES=generated-manpages
7685 else
7686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7688   GENERATED_MANPAGES=
7689 fi
7690
7691
7692 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7693
7694 # How about lex?
7695 for ac_prog in flex
7696 do
7697   # Extract the first word of "$ac_prog", so it can be a program name with args.
7698 set dummy $ac_prog; ac_word=$2
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700 $as_echo_n "checking for $ac_word... " >&6; }
7701 if test "${ac_cv_prog_FLEX+set}" = set; then :
7702   $as_echo_n "(cached) " >&6
7703 else
7704   if test -n "$FLEX"; then
7705   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7706 else
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7709 do
7710   IFS=$as_save_IFS
7711   test -z "$as_dir" && as_dir=.
7712     for ac_exec_ext in '' $ac_executable_extensions; do
7713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7714     ac_cv_prog_FLEX="$ac_prog"
7715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716     break 2
7717   fi
7718 done
7719   done
7720 IFS=$as_save_IFS
7721
7722 fi
7723 fi
7724 FLEX=$ac_cv_prog_FLEX
7725 if test -n "$FLEX"; then
7726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7727 $as_echo "$FLEX" >&6; }
7728 else
7729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7731 fi
7732
7733
7734   test -n "$FLEX" && break
7735 done
7736 test -n "$FLEX" || FLEX="$MISSING flex"
7737
7738
7739 # Bison?
7740 for ac_prog in bison
7741 do
7742   # Extract the first word of "$ac_prog", so it can be a program name with args.
7743 set dummy $ac_prog; ac_word=$2
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745 $as_echo_n "checking for $ac_word... " >&6; }
7746 if test "${ac_cv_prog_BISON+set}" = set; then :
7747   $as_echo_n "(cached) " >&6
7748 else
7749   if test -n "$BISON"; then
7750   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7751 else
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 for as_dir in $PATH
7754 do
7755   IFS=$as_save_IFS
7756   test -z "$as_dir" && as_dir=.
7757     for ac_exec_ext in '' $ac_executable_extensions; do
7758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7759     ac_cv_prog_BISON="$ac_prog"
7760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7761     break 2
7762   fi
7763 done
7764   done
7765 IFS=$as_save_IFS
7766
7767 fi
7768 fi
7769 BISON=$ac_cv_prog_BISON
7770 if test -n "$BISON"; then
7771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7772 $as_echo "$BISON" >&6; }
7773 else
7774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7776 fi
7777
7778
7779   test -n "$BISON" && break
7780 done
7781 test -n "$BISON" || BISON="$MISSING bison"
7782
7783
7784 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7785 # check for build == host before using them.
7786
7787 # NM
7788 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7789   && test -d ../binutils ; then
7790   NM='${objdir}/../binutils/nm-new'
7791 else
7792   # Extract the first word of "nm", so it can be a program name with args.
7793 set dummy nm; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if test "${ac_cv_prog_NM+set}" = set; then :
7797   $as_echo_n "(cached) " >&6
7798 else
7799   if test -n "$NM"; then
7800   ac_cv_prog_NM="$NM" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805   IFS=$as_save_IFS
7806   test -z "$as_dir" && as_dir=.
7807     for ac_exec_ext in '' $ac_executable_extensions; do
7808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809     ac_cv_prog_NM="nm"
7810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811     break 2
7812   fi
7813 done
7814   done
7815 IFS=$as_save_IFS
7816
7817   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7818 fi
7819 fi
7820 NM=$ac_cv_prog_NM
7821 if test -n "$NM"; then
7822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7823 $as_echo "$NM" >&6; }
7824 else
7825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826 $as_echo "no" >&6; }
7827 fi
7828
7829
7830 fi
7831
7832 # AR
7833 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7834   && test -d ../binutils ; then
7835   AR='${objdir}/../binutils/ar'
7836 else
7837   # Extract the first word of "ar", so it can be a program name with args.
7838 set dummy ar; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if test "${ac_cv_prog_AR+set}" = set; then :
7842   $as_echo_n "(cached) " >&6
7843 else
7844   if test -n "$AR"; then
7845   ac_cv_prog_AR="$AR" # Let the user override the test.
7846 else
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7849 do
7850   IFS=$as_save_IFS
7851   test -z "$as_dir" && as_dir=.
7852     for ac_exec_ext in '' $ac_executable_extensions; do
7853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854     ac_cv_prog_AR="ar"
7855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856     break 2
7857   fi
7858 done
7859   done
7860 IFS=$as_save_IFS
7861
7862   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7863 fi
7864 fi
7865 AR=$ac_cv_prog_AR
7866 if test -n "$AR"; then
7867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7868 $as_echo "$AR" >&6; }
7869 else
7870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }
7872 fi
7873
7874
7875 fi
7876
7877
7878 # --------------------
7879 # Checks for C headers
7880 # --------------------
7881
7882 # Need to reject headers which give warnings, so that the -Werror bootstrap
7883 # works later. *sigh*  This needs to come before all header checks.
7884
7885 ac_c_preproc_warn_flag=yes
7886
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7888 $as_echo_n "checking for ANSI C header files... " >&6; }
7889 if test "${ac_cv_header_stdc+set}" = set; then :
7890   $as_echo_n "(cached) " >&6
7891 else
7892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h.  */
7894 #include <stdlib.h>
7895 #include <stdarg.h>
7896 #include <string.h>
7897 #include <float.h>
7898
7899 int
7900 main ()
7901 {
7902
7903   ;
7904   return 0;
7905 }
7906 _ACEOF
7907 if ac_fn_c_try_compile "$LINENO"; then :
7908   ac_cv_header_stdc=yes
7909 else
7910   ac_cv_header_stdc=no
7911 fi
7912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7913
7914 if test $ac_cv_header_stdc = yes; then
7915   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h.  */
7918 #include <string.h>
7919
7920 _ACEOF
7921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7922   $EGREP "memchr" >/dev/null 2>&1; then :
7923
7924 else
7925   ac_cv_header_stdc=no
7926 fi
7927 rm -f conftest*
7928
7929 fi
7930
7931 if test $ac_cv_header_stdc = yes; then
7932   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h.  */
7935 #include <stdlib.h>
7936
7937 _ACEOF
7938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7939   $EGREP "free" >/dev/null 2>&1; then :
7940
7941 else
7942   ac_cv_header_stdc=no
7943 fi
7944 rm -f conftest*
7945
7946 fi
7947
7948 if test $ac_cv_header_stdc = yes; then
7949   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7950   if test "$cross_compiling" = yes; then :
7951   :
7952 else
7953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h.  */
7955 #include <ctype.h>
7956 #include <stdlib.h>
7957 #if ((' ' & 0x0FF) == 0x020)
7958 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7959 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7960 #else
7961 # define ISLOWER(c) \
7962                    (('a' <= (c) && (c) <= 'i') \
7963                      || ('j' <= (c) && (c) <= 'r') \
7964                      || ('s' <= (c) && (c) <= 'z'))
7965 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7966 #endif
7967
7968 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7969 int
7970 main ()
7971 {
7972   int i;
7973   for (i = 0; i < 256; i++)
7974     if (XOR (islower (i), ISLOWER (i))
7975         || toupper (i) != TOUPPER (i))
7976       return 2;
7977   return 0;
7978 }
7979 _ACEOF
7980 if ac_fn_c_try_run "$LINENO"; then :
7981
7982 else
7983   ac_cv_header_stdc=no
7984 fi
7985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7986   conftest.$ac_objext conftest.beam conftest.$ac_ext
7987 fi
7988
7989 fi
7990 fi
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7992 $as_echo "$ac_cv_header_stdc" >&6; }
7993 if test $ac_cv_header_stdc = yes; then
7994
7995 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7996
7997 fi
7998
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8000 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8001 if test "${ac_cv_header_time+set}" = set; then :
8002   $as_echo_n "(cached) " >&6
8003 else
8004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h.  */
8006 #include <sys/types.h>
8007 #include <sys/time.h>
8008 #include <time.h>
8009
8010 int
8011 main ()
8012 {
8013 if ((struct tm *) 0)
8014 return 0;
8015   ;
8016   return 0;
8017 }
8018 _ACEOF
8019 if ac_fn_c_try_compile "$LINENO"; then :
8020   ac_cv_header_time=yes
8021 else
8022   ac_cv_header_time=no
8023 fi
8024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8025 fi
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8027 $as_echo "$ac_cv_header_time" >&6; }
8028 if test $ac_cv_header_time = yes; then
8029
8030 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8031
8032 fi
8033
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8035 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8036 if test "${gcc_cv_header_string+set}" = set; then :
8037   $as_echo_n "(cached) " >&6
8038 else
8039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h.  */
8041 #include <string.h>
8042 #include <strings.h>
8043 int
8044 main ()
8045 {
8046
8047   ;
8048   return 0;
8049 }
8050 _ACEOF
8051 if ac_fn_c_try_compile "$LINENO"; then :
8052   gcc_cv_header_string=yes
8053 else
8054   gcc_cv_header_string=no
8055 fi
8056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057 fi
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8059 $as_echo "$gcc_cv_header_string" >&6; }
8060 if test $gcc_cv_header_string = yes; then
8061
8062 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8063
8064 fi
8065
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8067 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8068 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8069   $as_echo_n "(cached) " >&6
8070 else
8071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h.  */
8073 #include <sys/types.h>
8074 #include <sys/wait.h>
8075 #ifndef WEXITSTATUS
8076 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8077 #endif
8078 #ifndef WIFEXITED
8079 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8080 #endif
8081
8082 int
8083 main ()
8084 {
8085   int s;
8086   wait (&s);
8087   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8088   ;
8089   return 0;
8090 }
8091 _ACEOF
8092 if ac_fn_c_try_compile "$LINENO"; then :
8093   ac_cv_header_sys_wait_h=yes
8094 else
8095   ac_cv_header_sys_wait_h=no
8096 fi
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098 fi
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8100 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8101 if test $ac_cv_header_sys_wait_h = yes; then
8102
8103 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8104
8105 fi
8106
8107 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8108                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8109                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8110                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8111 do :
8112   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8113 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8114 eval as_val=\$$as_ac_Header
8115    if test "x$as_val" = x""yes; then :
8116   cat >>confdefs.h <<_ACEOF
8117 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8118 _ACEOF
8119
8120 fi
8121 done
8122
8123
8124 # Check for thread headers.
8125 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8126 if test "x$ac_cv_header_thread_h" = x""yes; then :
8127   have_thread_h=yes
8128 else
8129   have_thread_h=
8130 fi
8131
8132 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8133 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8134   have_pthread_h=yes
8135 else
8136   have_pthread_h=
8137 fi
8138
8139
8140 # These tests can't be done till we know if we have limits.h.
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8142 $as_echo_n "checking for CHAR_BIT... " >&6; }
8143 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8144   $as_echo_n "(cached) " >&6
8145 else
8146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h.  */
8148 #ifdef HAVE_LIMITS_H
8149 #include <limits.h>
8150 #endif
8151 #ifdef CHAR_BIT
8152 found
8153 #endif
8154 _ACEOF
8155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8156   $EGREP "found" >/dev/null 2>&1; then :
8157   gcc_cv_decl_char_bit=yes
8158 else
8159   gcc_cv_decl_char_bit=no
8160 fi
8161 rm -f conftest*
8162
8163
8164 fi
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8166 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8167 if test $gcc_cv_decl_char_bit = no; then
8168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8169 $as_echo_n "checking number of bits in a byte... " >&6; }
8170 if test "${gcc_cv_c_nbby+set}" = set; then :
8171   $as_echo_n "(cached) " >&6
8172 else
8173   i=8
8174  gcc_cv_c_nbby=
8175  while test $i -lt 65; do
8176    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177 /* end confdefs.h.  */
8178
8179 int
8180 main ()
8181 {
8182 switch(0) {
8183   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8184   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8185   ; }
8186   ;
8187   return 0;
8188 }
8189 _ACEOF
8190 if ac_fn_c_try_compile "$LINENO"; then :
8191   gcc_cv_c_nbby=$i; break
8192 fi
8193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8194    i=`expr $i + 1`
8195  done
8196  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8197
8198 fi
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8200 $as_echo "$gcc_cv_c_nbby" >&6; }
8201 if test $gcc_cv_c_nbby = failed; then
8202   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8203 else
8204
8205 cat >>confdefs.h <<_ACEOF
8206 #define CHAR_BIT $gcc_cv_c_nbby
8207 _ACEOF
8208
8209 fi
8210 fi
8211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8212 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8213 if test "${ac_cv_c_bigendian+set}" = set; then :
8214   $as_echo_n "(cached) " >&6
8215 else
8216   ac_cv_c_bigendian=unknown
8217     # See if we're dealing with a universal compiler.
8218     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h.  */
8220 #ifndef __APPLE_CC__
8221                not a universal capable compiler
8222              #endif
8223              typedef int dummy;
8224
8225 _ACEOF
8226 if ac_fn_c_try_compile "$LINENO"; then :
8227
8228         # Check for potential -arch flags.  It is not universal unless
8229         # there are at least two -arch flags with different values.
8230         ac_arch=
8231         ac_prev=
8232         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8233          if test -n "$ac_prev"; then
8234            case $ac_word in
8235              i?86 | x86_64 | ppc | ppc64)
8236                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8237                  ac_arch=$ac_word
8238                else
8239                  ac_cv_c_bigendian=universal
8240                  break
8241                fi
8242                ;;
8243            esac
8244            ac_prev=
8245          elif test "x$ac_word" = "x-arch"; then
8246            ac_prev=arch
8247          fi
8248        done
8249 fi
8250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8251     if test $ac_cv_c_bigendian = unknown; then
8252       # See if sys/param.h defines the BYTE_ORDER macro.
8253       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h.  */
8255 #include <sys/types.h>
8256              #include <sys/param.h>
8257
8258 int
8259 main ()
8260 {
8261 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8262                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8263                      && LITTLE_ENDIAN)
8264               bogus endian macros
8265              #endif
8266
8267   ;
8268   return 0;
8269 }
8270 _ACEOF
8271 if ac_fn_c_try_compile "$LINENO"; then :
8272   # It does; now see whether it defined to BIG_ENDIAN or not.
8273          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h.  */
8275 #include <sys/types.h>
8276                 #include <sys/param.h>
8277
8278 int
8279 main ()
8280 {
8281 #if BYTE_ORDER != BIG_ENDIAN
8282                  not big endian
8283                 #endif
8284
8285   ;
8286   return 0;
8287 }
8288 _ACEOF
8289 if ac_fn_c_try_compile "$LINENO"; then :
8290   ac_cv_c_bigendian=yes
8291 else
8292   ac_cv_c_bigendian=no
8293 fi
8294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295 fi
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297     fi
8298     if test $ac_cv_c_bigendian = unknown; then
8299       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8300       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301 /* end confdefs.h.  */
8302 #include <limits.h>
8303
8304 int
8305 main ()
8306 {
8307 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8308               bogus endian macros
8309              #endif
8310
8311   ;
8312   return 0;
8313 }
8314 _ACEOF
8315 if ac_fn_c_try_compile "$LINENO"; then :
8316   # It does; now see whether it defined to _BIG_ENDIAN or not.
8317          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h.  */
8319 #include <limits.h>
8320
8321 int
8322 main ()
8323 {
8324 #ifndef _BIG_ENDIAN
8325                  not big endian
8326                 #endif
8327
8328   ;
8329   return 0;
8330 }
8331 _ACEOF
8332 if ac_fn_c_try_compile "$LINENO"; then :
8333   ac_cv_c_bigendian=yes
8334 else
8335   ac_cv_c_bigendian=no
8336 fi
8337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8338 fi
8339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8340     fi
8341     if test $ac_cv_c_bigendian = unknown; then
8342       # Compile a test program.
8343       if test "$cross_compiling" = yes; then :
8344   # Try to guess by grepping values from an object file.
8345          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h.  */
8347 short int ascii_mm[] =
8348                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8349                 short int ascii_ii[] =
8350                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8351                 int use_ascii (int i) {
8352                   return ascii_mm[i] + ascii_ii[i];
8353                 }
8354                 short int ebcdic_ii[] =
8355                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8356                 short int ebcdic_mm[] =
8357                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8358                 int use_ebcdic (int i) {
8359                   return ebcdic_mm[i] + ebcdic_ii[i];
8360                 }
8361                 extern int foo;
8362
8363 int
8364 main ()
8365 {
8366 return use_ascii (foo) == use_ebcdic (foo);
8367   ;
8368   return 0;
8369 }
8370 _ACEOF
8371 if ac_fn_c_try_compile "$LINENO"; then :
8372   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8373               ac_cv_c_bigendian=yes
8374             fi
8375             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8376               if test "$ac_cv_c_bigendian" = unknown; then
8377                 ac_cv_c_bigendian=no
8378               else
8379                 # finding both strings is unlikely to happen, but who knows?
8380                 ac_cv_c_bigendian=unknown
8381               fi
8382             fi
8383 fi
8384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 else
8386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387 /* end confdefs.h.  */
8388 $ac_includes_default
8389 int
8390 main ()
8391 {
8392
8393              /* Are we little or big endian?  From Harbison&Steele.  */
8394              union
8395              {
8396                long int l;
8397                char c[sizeof (long int)];
8398              } u;
8399              u.l = 1;
8400              return u.c[sizeof (long int) - 1] == 1;
8401
8402   ;
8403   return 0;
8404 }
8405 _ACEOF
8406 if ac_fn_c_try_run "$LINENO"; then :
8407   ac_cv_c_bigendian=no
8408 else
8409   ac_cv_c_bigendian=yes
8410 fi
8411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8412   conftest.$ac_objext conftest.beam conftest.$ac_ext
8413 fi
8414
8415     fi
8416 fi
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8418 $as_echo "$ac_cv_c_bigendian" >&6; }
8419  case $ac_cv_c_bigendian in #(
8420    yes)
8421      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8422 ;; #(
8423    no)
8424       ;; #(
8425    universal)
8426
8427 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8428
8429      ;; #(
8430    *)
8431      as_fn_error "unknown endianness
8432  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8433  esac
8434
8435
8436 # ----------------------
8437 # Checks for C++ headers
8438 # ----------------------
8439
8440 ac_ext=cpp
8441 ac_cpp='$CXXCPP $CPPFLAGS'
8442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8446 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8447 if test -z "$CXXCPP"; then
8448   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8449   $as_echo_n "(cached) " >&6
8450 else
8451       # Double quotes because CXXCPP needs to be expanded
8452     for CXXCPP in "$CXX -E" "/lib/cpp"
8453     do
8454       ac_preproc_ok=false
8455 for ac_cxx_preproc_warn_flag in '' yes
8456 do
8457   # Use a header file that comes with gcc, so configuring glibc
8458   # with a fresh cross-compiler works.
8459   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8460   # <limits.h> exists even on freestanding compilers.
8461   # On the NeXT, cc -E runs the code through the compiler's parser,
8462   # not just through cpp. "Syntax error" is here to catch this case.
8463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h.  */
8465 #ifdef __STDC__
8466 # include <limits.h>
8467 #else
8468 # include <assert.h>
8469 #endif
8470                      Syntax error
8471 _ACEOF
8472 if ac_fn_cxx_try_cpp "$LINENO"; then :
8473
8474 else
8475   # Broken: fails on valid input.
8476 continue
8477 fi
8478 rm -f conftest.err conftest.$ac_ext
8479
8480   # OK, works on sane cases.  Now check whether nonexistent headers
8481   # can be detected and how.
8482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h.  */
8484 #include <ac_nonexistent.h>
8485 _ACEOF
8486 if ac_fn_cxx_try_cpp "$LINENO"; then :
8487   # Broken: success on invalid input.
8488 continue
8489 else
8490   # Passes both tests.
8491 ac_preproc_ok=:
8492 break
8493 fi
8494 rm -f conftest.err conftest.$ac_ext
8495
8496 done
8497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8498 rm -f conftest.err conftest.$ac_ext
8499 if $ac_preproc_ok; then :
8500   break
8501 fi
8502
8503     done
8504     ac_cv_prog_CXXCPP=$CXXCPP
8505
8506 fi
8507   CXXCPP=$ac_cv_prog_CXXCPP
8508 else
8509   ac_cv_prog_CXXCPP=$CXXCPP
8510 fi
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8512 $as_echo "$CXXCPP" >&6; }
8513 ac_preproc_ok=false
8514 for ac_cxx_preproc_warn_flag in '' yes
8515 do
8516   # Use a header file that comes with gcc, so configuring glibc
8517   # with a fresh cross-compiler works.
8518   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8519   # <limits.h> exists even on freestanding compilers.
8520   # On the NeXT, cc -E runs the code through the compiler's parser,
8521   # not just through cpp. "Syntax error" is here to catch this case.
8522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h.  */
8524 #ifdef __STDC__
8525 # include <limits.h>
8526 #else
8527 # include <assert.h>
8528 #endif
8529                      Syntax error
8530 _ACEOF
8531 if ac_fn_cxx_try_cpp "$LINENO"; then :
8532
8533 else
8534   # Broken: fails on valid input.
8535 continue
8536 fi
8537 rm -f conftest.err conftest.$ac_ext
8538
8539   # OK, works on sane cases.  Now check whether nonexistent headers
8540   # can be detected and how.
8541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h.  */
8543 #include <ac_nonexistent.h>
8544 _ACEOF
8545 if ac_fn_cxx_try_cpp "$LINENO"; then :
8546   # Broken: success on invalid input.
8547 continue
8548 else
8549   # Passes both tests.
8550 ac_preproc_ok=:
8551 break
8552 fi
8553 rm -f conftest.err conftest.$ac_ext
8554
8555 done
8556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8557 rm -f conftest.err conftest.$ac_ext
8558 if $ac_preproc_ok; then :
8559
8560 else
8561   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8564 See \`config.log' for more details." >&5
8565 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8566 See \`config.log' for more details." >&2;}; }
8567 fi
8568
8569 ac_ext=c
8570 ac_cpp='$CPP $CPPFLAGS'
8571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8574
8575
8576 ac_ext=cpp
8577 ac_cpp='$CXXCPP $CPPFLAGS'
8578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8581
8582
8583
8584
8585 for ac_header in unordered_map
8586 do :
8587   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8588 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8589   cat >>confdefs.h <<_ACEOF
8590 #define HAVE_UNORDERED_MAP 1
8591 _ACEOF
8592
8593 fi
8594 done
8595
8596 for ac_header in tr1/unordered_map
8597 do :
8598   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8599 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8600   cat >>confdefs.h <<_ACEOF
8601 #define HAVE_TR1_UNORDERED_MAP 1
8602 _ACEOF
8603
8604 fi
8605 done
8606
8607 for ac_header in ext/hash_map
8608 do :
8609   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8610 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8611   cat >>confdefs.h <<_ACEOF
8612 #define HAVE_EXT_HASH_MAP 1
8613 _ACEOF
8614
8615 fi
8616 done
8617
8618
8619 ac_ext=c
8620 ac_cpp='$CPP $CPPFLAGS'
8621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8624
8625
8626 # --------
8627 # UNSORTED
8628 # --------
8629
8630
8631 # These libraries may be used by collect2.
8632 # We may need a special search path to get them linked.
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8634 $as_echo_n "checking for collect2 libraries... " >&6; }
8635 if test "${gcc_cv_collect2_libs+set}" = set; then :
8636   $as_echo_n "(cached) " >&6
8637 else
8638   save_LIBS="$LIBS"
8639 for libs in '' -lld -lmld \
8640                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8641                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8642 do
8643         LIBS="$libs"
8644         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645 /* end confdefs.h.  */
8646
8647 /* Override any GCC internal prototype to avoid an error.
8648    Use char because int might match the return type of a GCC
8649    builtin and then its argument prototype would still apply.  */
8650 #ifdef __cplusplus
8651 extern "C"
8652 #endif
8653 char ldopen ();
8654 int
8655 main ()
8656 {
8657 return ldopen ();
8658   ;
8659   return 0;
8660 }
8661 _ACEOF
8662 if ac_fn_c_try_link "$LINENO"; then :
8663   gcc_cv_collect2_libs="$libs"; break
8664 fi
8665 rm -f core conftest.err conftest.$ac_objext \
8666     conftest$ac_exeext conftest.$ac_ext
8667 done
8668 LIBS="$save_LIBS"
8669 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8670 fi
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8672 $as_echo "$gcc_cv_collect2_libs" >&6; }
8673 case $gcc_cv_collect2_libs in
8674         "none required")        ;;
8675         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8676 esac
8677
8678
8679 # When building Ada code on Alpha, we need exc_resume which is usually in
8680 # -lexc.  So test for it.
8681 save_LIBS="$LIBS"
8682 LIBS=
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8684 $as_echo_n "checking for library containing exc_resume... " >&6; }
8685 if test "${ac_cv_search_exc_resume+set}" = set; then :
8686   $as_echo_n "(cached) " >&6
8687 else
8688   ac_func_search_save_LIBS=$LIBS
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h.  */
8691
8692 /* Override any GCC internal prototype to avoid an error.
8693    Use char because int might match the return type of a GCC
8694    builtin and then its argument prototype would still apply.  */
8695 #ifdef __cplusplus
8696 extern "C"
8697 #endif
8698 char exc_resume ();
8699 int
8700 main ()
8701 {
8702 return exc_resume ();
8703   ;
8704   return 0;
8705 }
8706 _ACEOF
8707 for ac_lib in '' exc; do
8708   if test -z "$ac_lib"; then
8709     ac_res="none required"
8710   else
8711     ac_res=-l$ac_lib
8712     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8713   fi
8714   if ac_fn_c_try_link "$LINENO"; then :
8715   ac_cv_search_exc_resume=$ac_res
8716 fi
8717 rm -f core conftest.err conftest.$ac_objext \
8718     conftest$ac_exeext
8719   if test "${ac_cv_search_exc_resume+set}" = set; then :
8720   break
8721 fi
8722 done
8723 if test "${ac_cv_search_exc_resume+set}" = set; then :
8724
8725 else
8726   ac_cv_search_exc_resume=no
8727 fi
8728 rm conftest.$ac_ext
8729 LIBS=$ac_func_search_save_LIBS
8730 fi
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8732 $as_echo "$ac_cv_search_exc_resume" >&6; }
8733 ac_res=$ac_cv_search_exc_resume
8734 if test "$ac_res" != no; then :
8735   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8736
8737 fi
8738
8739 GNAT_LIBEXC="$LIBS"
8740 LIBS="$save_LIBS"
8741
8742
8743 # Some systems put ldexp and frexp in libm instead of libc; assume
8744 # they're both in the same place.  jcf-dump needs them.
8745 save_LIBS="$LIBS"
8746 LIBS=
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8748 $as_echo_n "checking for library containing ldexp... " >&6; }
8749 if test "${ac_cv_search_ldexp+set}" = set; then :
8750   $as_echo_n "(cached) " >&6
8751 else
8752   ac_func_search_save_LIBS=$LIBS
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h.  */
8755
8756 /* Override any GCC internal prototype to avoid an error.
8757    Use char because int might match the return type of a GCC
8758    builtin and then its argument prototype would still apply.  */
8759 #ifdef __cplusplus
8760 extern "C"
8761 #endif
8762 char ldexp ();
8763 int
8764 main ()
8765 {
8766 return ldexp ();
8767   ;
8768   return 0;
8769 }
8770 _ACEOF
8771 for ac_lib in '' m; do
8772   if test -z "$ac_lib"; then
8773     ac_res="none required"
8774   else
8775     ac_res=-l$ac_lib
8776     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8777   fi
8778   if ac_fn_c_try_link "$LINENO"; then :
8779   ac_cv_search_ldexp=$ac_res
8780 fi
8781 rm -f core conftest.err conftest.$ac_objext \
8782     conftest$ac_exeext
8783   if test "${ac_cv_search_ldexp+set}" = set; then :
8784   break
8785 fi
8786 done
8787 if test "${ac_cv_search_ldexp+set}" = set; then :
8788
8789 else
8790   ac_cv_search_ldexp=no
8791 fi
8792 rm conftest.$ac_ext
8793 LIBS=$ac_func_search_save_LIBS
8794 fi
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8796 $as_echo "$ac_cv_search_ldexp" >&6; }
8797 ac_res=$ac_cv_search_ldexp
8798 if test "$ac_res" != no; then :
8799   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8800
8801 fi
8802
8803 LDEXP_LIB="$LIBS"
8804 LIBS="$save_LIBS"
8805
8806
8807 # Use <inttypes.h> only if it exists,
8808 # doesn't clash with <sys/types.h>, and declares intmax_t.
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8810 $as_echo_n "checking for inttypes.h... " >&6; }
8811 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8812   $as_echo_n "(cached) " >&6
8813 else
8814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h.  */
8816 #include <sys/types.h>
8817 #include <inttypes.h>
8818 int
8819 main ()
8820 {
8821 intmax_t i = -1;
8822   ;
8823   return 0;
8824 }
8825 _ACEOF
8826 if ac_fn_c_try_compile "$LINENO"; then :
8827   gcc_cv_header_inttypes_h=yes
8828 else
8829   gcc_cv_header_inttypes_h=no
8830 fi
8831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8832 fi
8833
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8835 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8836 if test $gcc_cv_header_inttypes_h = yes; then
8837
8838 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8839
8840 fi
8841
8842
8843
8844 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8845         sysconf strsignal getrusage nl_langinfo \
8846         gettimeofday mbstowcs wcswidth mmap setlocale \
8847         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
8848 do :
8849   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8850 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8851 eval as_val=\$$as_ac_var
8852    if test "x$as_val" = x""yes; then :
8853   cat >>confdefs.h <<_ACEOF
8854 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8855 _ACEOF
8856
8857 fi
8858 done
8859
8860
8861 if test x$ac_cv_func_mbstowcs = xyes; then
8862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8863 $as_echo_n "checking whether mbstowcs works... " >&6; }
8864 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8865   $as_echo_n "(cached) " >&6
8866 else
8867       if test "$cross_compiling" = yes; then :
8868   gcc_cv_func_mbstowcs_works=yes
8869 else
8870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h.  */
8872 #include <stdlib.h>
8873 int main()
8874 {
8875   mbstowcs(0, "", 0);
8876   return 0;
8877 }
8878 _ACEOF
8879 if ac_fn_c_try_run "$LINENO"; then :
8880   gcc_cv_func_mbstowcs_works=yes
8881 else
8882   gcc_cv_func_mbstowcs_works=no
8883 fi
8884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8885   conftest.$ac_objext conftest.beam conftest.$ac_ext
8886 fi
8887
8888 fi
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8890 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8891   if test x$gcc_cv_func_mbstowcs_works = xyes; then
8892
8893 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8894
8895   fi
8896 fi
8897
8898 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8899 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8900
8901 else
8902
8903 cat >>confdefs.h <<_ACEOF
8904 #define ssize_t int
8905 _ACEOF
8906
8907 fi
8908
8909 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8910 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8911
8912 else
8913
8914 cat >>confdefs.h <<_ACEOF
8915 #define caddr_t char *
8916 _ACEOF
8917
8918 fi
8919
8920
8921
8922 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8923 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8924   gcc_header_sys_mman_h=yes
8925 else
8926   gcc_header_sys_mman_h=no
8927 fi
8928
8929 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8930 if test "x$ac_cv_func_mmap" = x""yes; then :
8931   gcc_func_mmap=yes
8932 else
8933   gcc_func_mmap=no
8934 fi
8935
8936 if test "$gcc_header_sys_mman_h" != yes \
8937  || test "$gcc_func_mmap" != yes; then
8938    gcc_cv_func_mmap_file=no
8939    gcc_cv_func_mmap_dev_zero=no
8940    gcc_cv_func_mmap_anon=no
8941 else
8942    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8943 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8944 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8945   $as_echo_n "(cached) " >&6
8946 else
8947   # Add a system to this blacklist if
8948    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8949    # memory area containing the same data that you'd get if you applied
8950    # read() to the same fd.  The only system known to have a problem here
8951    # is VMS, where text files have record structure.
8952    case "$host_os" in
8953      vms* | ultrix*)
8954         gcc_cv_func_mmap_file=no ;;
8955      *)
8956         gcc_cv_func_mmap_file=yes;;
8957    esac
8958 fi
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8960 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8961    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8962 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8963 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8964   $as_echo_n "(cached) " >&6
8965 else
8966   # Add a system to this blacklist if it has mmap() but /dev/zero
8967    # does not exist, or if mmapping /dev/zero does not give anonymous
8968    # zeroed pages with both the following properties:
8969    # 1. If you map N consecutive pages in with one call, and then
8970    #    unmap any subset of those pages, the pages that were not
8971    #    explicitly unmapped remain accessible.
8972    # 2. If you map two adjacent blocks of memory and then unmap them
8973    #    both at once, they must both go away.
8974    # Systems known to be in this category are Windows (all variants),
8975    # VMS, and Darwin.
8976    case "$host_os" in
8977      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8978         gcc_cv_func_mmap_dev_zero=no ;;
8979      *)
8980         gcc_cv_func_mmap_dev_zero=yes;;
8981    esac
8982 fi
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8984 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8985
8986    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8987    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8988 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8989 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8990   $as_echo_n "(cached) " >&6
8991 else
8992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h.  */
8994 #include <sys/types.h>
8995 #include <sys/mman.h>
8996 #include <unistd.h>
8997
8998 #ifndef MAP_ANONYMOUS
8999 #define MAP_ANONYMOUS MAP_ANON
9000 #endif
9001
9002 int
9003 main ()
9004 {
9005 int n = MAP_ANONYMOUS;
9006   ;
9007   return 0;
9008 }
9009 _ACEOF
9010 if ac_fn_c_try_compile "$LINENO"; then :
9011   gcc_cv_decl_map_anon=yes
9012 else
9013   gcc_cv_decl_map_anon=no
9014 fi
9015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9016 fi
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9018 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9019
9020    if test $gcc_cv_decl_map_anon = no; then
9021      gcc_cv_func_mmap_anon=no
9022    else
9023      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9024 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9025 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9026   $as_echo_n "(cached) " >&6
9027 else
9028   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9029    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9030    # doesn't give anonymous zeroed pages with the same properties listed
9031    # above for use of /dev/zero.
9032    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9033    case "$host_os" in
9034      vms* | cygwin* | pe | mingw* | sco* | udk* )
9035         gcc_cv_func_mmap_anon=no ;;
9036      *)
9037         gcc_cv_func_mmap_anon=yes;;
9038    esac
9039 fi
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9041 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9042    fi
9043 fi
9044
9045 if test $gcc_cv_func_mmap_file = yes; then
9046
9047 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9048
9049 fi
9050 if test $gcc_cv_func_mmap_dev_zero = yes; then
9051
9052 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9053
9054 fi
9055 if test $gcc_cv_func_mmap_anon = yes; then
9056
9057 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9058
9059 fi
9060
9061
9062 case "${host}" in
9063 *-*-*vms*)
9064   # Under VMS, vfork works very differently than on Unix. The standard test
9065   # won't work, and it isn't easily adaptable. It makes more sense to
9066   # just force it.
9067   ac_cv_func_vfork_works=yes
9068   ;;
9069 esac
9070 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9071 if test "x$ac_cv_type_pid_t" = x""yes; then :
9072
9073 else
9074
9075 cat >>confdefs.h <<_ACEOF
9076 #define pid_t int
9077 _ACEOF
9078
9079 fi
9080
9081 for ac_header in vfork.h
9082 do :
9083   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9084 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9085   cat >>confdefs.h <<_ACEOF
9086 #define HAVE_VFORK_H 1
9087 _ACEOF
9088
9089 fi
9090 done
9091
9092 for ac_func in fork vfork
9093 do :
9094   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9095 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9096 eval as_val=\$$as_ac_var
9097    if test "x$as_val" = x""yes; then :
9098   cat >>confdefs.h <<_ACEOF
9099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9100 _ACEOF
9101
9102 fi
9103 done
9104
9105 if test "x$ac_cv_func_fork" = xyes; then
9106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9107 $as_echo_n "checking for working fork... " >&6; }
9108 if test "${ac_cv_func_fork_works+set}" = set; then :
9109   $as_echo_n "(cached) " >&6
9110 else
9111   if test "$cross_compiling" = yes; then :
9112   ac_cv_func_fork_works=cross
9113 else
9114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h.  */
9116 $ac_includes_default
9117 int
9118 main ()
9119 {
9120
9121           /* By Ruediger Kuhlmann. */
9122           return fork () < 0;
9123
9124   ;
9125   return 0;
9126 }
9127 _ACEOF
9128 if ac_fn_c_try_run "$LINENO"; then :
9129   ac_cv_func_fork_works=yes
9130 else
9131   ac_cv_func_fork_works=no
9132 fi
9133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9134   conftest.$ac_objext conftest.beam conftest.$ac_ext
9135 fi
9136
9137 fi
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9139 $as_echo "$ac_cv_func_fork_works" >&6; }
9140
9141 else
9142   ac_cv_func_fork_works=$ac_cv_func_fork
9143 fi
9144 if test "x$ac_cv_func_fork_works" = xcross; then
9145   case $host in
9146     *-*-amigaos* | *-*-msdosdjgpp*)
9147       # Override, as these systems have only a dummy fork() stub
9148       ac_cv_func_fork_works=no
9149       ;;
9150     *)
9151       ac_cv_func_fork_works=yes
9152       ;;
9153   esac
9154   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9155 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9156 fi
9157 ac_cv_func_vfork_works=$ac_cv_func_vfork
9158 if test "x$ac_cv_func_vfork" = xyes; then
9159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9160 $as_echo_n "checking for working vfork... " >&6; }
9161 if test "${ac_cv_func_vfork_works+set}" = set; then :
9162   $as_echo_n "(cached) " >&6
9163 else
9164   if test "$cross_compiling" = yes; then :
9165   ac_cv_func_vfork_works=cross
9166 else
9167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h.  */
9169 /* Thanks to Paul Eggert for this test.  */
9170 $ac_includes_default
9171 #include <sys/wait.h>
9172 #ifdef HAVE_VFORK_H
9173 # include <vfork.h>
9174 #endif
9175 /* On some sparc systems, changes by the child to local and incoming
9176    argument registers are propagated back to the parent.  The compiler
9177    is told about this with #include <vfork.h>, but some compilers
9178    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9179    static variable whose address is put into a register that is
9180    clobbered by the vfork.  */
9181 static void
9182 #ifdef __cplusplus
9183 sparc_address_test (int arg)
9184 # else
9185 sparc_address_test (arg) int arg;
9186 #endif
9187 {
9188   static pid_t child;
9189   if (!child) {
9190     child = vfork ();
9191     if (child < 0) {
9192       perror ("vfork");
9193       _exit(2);
9194     }
9195     if (!child) {
9196       arg = getpid();
9197       write(-1, "", 0);
9198       _exit (arg);
9199     }
9200   }
9201 }
9202
9203 int
9204 main ()
9205 {
9206   pid_t parent = getpid ();
9207   pid_t child;
9208
9209   sparc_address_test (0);
9210
9211   child = vfork ();
9212
9213   if (child == 0) {
9214     /* Here is another test for sparc vfork register problems.  This
9215        test uses lots of local variables, at least as many local
9216        variables as main has allocated so far including compiler
9217        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9218        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9219        reuse the register of parent for one of the local variables,
9220        since it will think that parent can't possibly be used any more
9221        in this routine.  Assigning to the local variable will thus
9222        munge parent in the parent process.  */
9223     pid_t
9224       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9225       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9226     /* Convince the compiler that p..p7 are live; otherwise, it might
9227        use the same hardware register for all 8 local variables.  */
9228     if (p != p1 || p != p2 || p != p3 || p != p4
9229         || p != p5 || p != p6 || p != p7)
9230       _exit(1);
9231
9232     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9233        from child file descriptors.  If the child closes a descriptor
9234        before it execs or exits, this munges the parent's descriptor
9235        as well.  Test for this by closing stdout in the child.  */
9236     _exit(close(fileno(stdout)) != 0);
9237   } else {
9238     int status;
9239     struct stat st;
9240
9241     while (wait(&status) != child)
9242       ;
9243     return (
9244          /* Was there some problem with vforking?  */
9245          child < 0
9246
9247          /* Did the child fail?  (This shouldn't happen.)  */
9248          || status
9249
9250          /* Did the vfork/compiler bug occur?  */
9251          || parent != getpid()
9252
9253          /* Did the file descriptor bug occur?  */
9254          || fstat(fileno(stdout), &st) != 0
9255          );
9256   }
9257 }
9258 _ACEOF
9259 if ac_fn_c_try_run "$LINENO"; then :
9260   ac_cv_func_vfork_works=yes
9261 else
9262   ac_cv_func_vfork_works=no
9263 fi
9264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9265   conftest.$ac_objext conftest.beam conftest.$ac_ext
9266 fi
9267
9268 fi
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9270 $as_echo "$ac_cv_func_vfork_works" >&6; }
9271
9272 fi;
9273 if test "x$ac_cv_func_fork_works" = xcross; then
9274   ac_cv_func_vfork_works=$ac_cv_func_vfork
9275   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9276 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9277 fi
9278
9279 if test "x$ac_cv_func_vfork_works" = xyes; then
9280
9281 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9282
9283 else
9284
9285 $as_echo "#define vfork fork" >>confdefs.h
9286
9287 fi
9288 if test "x$ac_cv_func_fork_works" = xyes; then
9289
9290 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9291
9292 fi
9293
9294
9295
9296       if test "X$prefix" = "XNONE"; then
9297     acl_final_prefix="$ac_default_prefix"
9298   else
9299     acl_final_prefix="$prefix"
9300   fi
9301   if test "X$exec_prefix" = "XNONE"; then
9302     acl_final_exec_prefix='${prefix}'
9303   else
9304     acl_final_exec_prefix="$exec_prefix"
9305   fi
9306   acl_save_prefix="$prefix"
9307   prefix="$acl_final_prefix"
9308   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9309   prefix="$acl_save_prefix"
9310
9311
9312 # Check whether --with-gnu-ld was given.
9313 if test "${with_gnu_ld+set}" = set; then :
9314   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9315 else
9316   with_gnu_ld=no
9317 fi
9318
9319 # Prepare PATH_SEPARATOR.
9320 # The user is always right.
9321 if test "${PATH_SEPARATOR+set}" != set; then
9322   echo "#! /bin/sh" >conf$$.sh
9323   echo  "exit 0"   >>conf$$.sh
9324   chmod +x conf$$.sh
9325   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9326     PATH_SEPARATOR=';'
9327   else
9328     PATH_SEPARATOR=:
9329   fi
9330   rm -f conf$$.sh
9331 fi
9332 ac_prog=ld
9333 if test "$GCC" = yes; then
9334   # Check if gcc -print-prog-name=ld gives a path.
9335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9336 $as_echo_n "checking for ld used by GCC... " >&6; }
9337   case $host in
9338   *-*-mingw*)
9339     # gcc leaves a trailing carriage return which upsets mingw
9340     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9341   *)
9342     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9343   esac
9344   case $ac_prog in
9345     # Accept absolute paths.
9346     [\\/]* | [A-Za-z]:[\\/]*)
9347       re_direlt='/[^/][^/]*/\.\./'
9348       # Canonicalize the path of ld
9349       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9350       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9351         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9352       done
9353       test -z "$LD" && LD="$ac_prog"
9354       ;;
9355   "")
9356     # If it fails, then pretend we aren't using GCC.
9357     ac_prog=ld
9358     ;;
9359   *)
9360     # If it is relative, then search for the first ld in PATH.
9361     with_gnu_ld=unknown
9362     ;;
9363   esac
9364 elif test "$with_gnu_ld" = yes; then
9365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9366 $as_echo_n "checking for GNU ld... " >&6; }
9367 else
9368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9369 $as_echo_n "checking for non-GNU ld... " >&6; }
9370 fi
9371 if test "${acl_cv_path_LD+set}" = set; then :
9372   $as_echo_n "(cached) " >&6
9373 else
9374   if test -z "$LD"; then
9375   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9376   for ac_dir in $PATH; do
9377     test -z "$ac_dir" && ac_dir=.
9378     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9379       acl_cv_path_LD="$ac_dir/$ac_prog"
9380       # Check to see if the program is GNU ld.  I'd rather use --version,
9381       # but apparently some GNU ld's only accept -v.
9382       # Break only if it was the GNU/non-GNU ld that we prefer.
9383       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9384         test "$with_gnu_ld" != no && break
9385       else
9386         test "$with_gnu_ld" != yes && break
9387       fi
9388     fi
9389   done
9390   IFS="$ac_save_ifs"
9391 else
9392   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9393 fi
9394 fi
9395
9396 LD="$acl_cv_path_LD"
9397 if test -n "$LD"; then
9398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9399 $as_echo "$LD" >&6; }
9400 else
9401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9402 $as_echo "no" >&6; }
9403 fi
9404 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9406 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9407 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9408   $as_echo_n "(cached) " >&6
9409 else
9410   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9411 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9412   acl_cv_prog_gnu_ld=yes
9413 else
9414   acl_cv_prog_gnu_ld=no
9415 fi
9416 fi
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9418 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9419 with_gnu_ld=$acl_cv_prog_gnu_ld
9420
9421
9422
9423                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9424 $as_echo_n "checking for shared library run path origin... " >&6; }
9425 if test "${acl_cv_rpath+set}" = set; then :
9426   $as_echo_n "(cached) " >&6
9427 else
9428
9429     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9430     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9431     . ./conftest.sh
9432     rm -f ./conftest.sh
9433     acl_cv_rpath=done
9434
9435 fi
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9437 $as_echo "$acl_cv_rpath" >&6; }
9438   wl="$acl_cv_wl"
9439   libext="$acl_cv_libext"
9440   shlibext="$acl_cv_shlibext"
9441   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9442   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9443   hardcode_direct="$acl_cv_hardcode_direct"
9444   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9445     # Check whether --enable-rpath was given.
9446 if test "${enable_rpath+set}" = set; then :
9447   enableval=$enable_rpath; :
9448 else
9449   enable_rpath=yes
9450 fi
9451
9452
9453
9454
9455
9456
9457
9458
9459     use_additional=yes
9460
9461   acl_save_prefix="$prefix"
9462   prefix="$acl_final_prefix"
9463   acl_save_exec_prefix="$exec_prefix"
9464   exec_prefix="$acl_final_exec_prefix"
9465
9466     eval additional_includedir=\"$includedir\"
9467     eval additional_libdir=\"$libdir\"
9468
9469   exec_prefix="$acl_save_exec_prefix"
9470   prefix="$acl_save_prefix"
9471
9472
9473 # Check whether --with-libiconv-prefix was given.
9474 if test "${with_libiconv_prefix+set}" = set; then :
9475   withval=$with_libiconv_prefix;
9476     if test "X$withval" = "Xno"; then
9477       use_additional=no
9478     else
9479       if test "X$withval" = "X"; then
9480
9481   acl_save_prefix="$prefix"
9482   prefix="$acl_final_prefix"
9483   acl_save_exec_prefix="$exec_prefix"
9484   exec_prefix="$acl_final_exec_prefix"
9485
9486           eval additional_includedir=\"$includedir\"
9487           eval additional_libdir=\"$libdir\"
9488
9489   exec_prefix="$acl_save_exec_prefix"
9490   prefix="$acl_save_prefix"
9491
9492       else
9493         additional_includedir="$withval/include"
9494         additional_libdir="$withval/lib"
9495       fi
9496     fi
9497
9498 fi
9499
9500       LIBICONV=
9501   LTLIBICONV=
9502   INCICONV=
9503   rpathdirs=
9504   ltrpathdirs=
9505   names_already_handled=
9506   names_next_round='iconv '
9507   while test -n "$names_next_round"; do
9508     names_this_round="$names_next_round"
9509     names_next_round=
9510     for name in $names_this_round; do
9511       already_handled=
9512       for n in $names_already_handled; do
9513         if test "$n" = "$name"; then
9514           already_handled=yes
9515           break
9516         fi
9517       done
9518       if test -z "$already_handled"; then
9519         names_already_handled="$names_already_handled $name"
9520                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9521         eval value=\"\$HAVE_LIB$uppername\"
9522         if test -n "$value"; then
9523           if test "$value" = yes; then
9524             eval value=\"\$LIB$uppername\"
9525             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9526             eval value=\"\$LTLIB$uppername\"
9527             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9528           else
9529                                     :
9530           fi
9531         else
9532                               found_dir=
9533           found_la=
9534           found_so=
9535           found_a=
9536           if test $use_additional = yes; then
9537             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9538               found_dir="$additional_libdir"
9539               found_so="$additional_libdir/lib$name.$shlibext"
9540               if test -f "$additional_libdir/lib$name.la"; then
9541                 found_la="$additional_libdir/lib$name.la"
9542               fi
9543             else
9544               if test -f "$additional_libdir/lib$name.$libext"; then
9545                 found_dir="$additional_libdir"
9546                 found_a="$additional_libdir/lib$name.$libext"
9547                 if test -f "$additional_libdir/lib$name.la"; then
9548                   found_la="$additional_libdir/lib$name.la"
9549                 fi
9550               fi
9551             fi
9552           fi
9553           if test "X$found_dir" = "X"; then
9554             for x in $LDFLAGS $LTLIBICONV; do
9555
9556   acl_save_prefix="$prefix"
9557   prefix="$acl_final_prefix"
9558   acl_save_exec_prefix="$exec_prefix"
9559   exec_prefix="$acl_final_exec_prefix"
9560   eval x=\"$x\"
9561   exec_prefix="$acl_save_exec_prefix"
9562   prefix="$acl_save_prefix"
9563
9564               case "$x" in
9565                 -L*)
9566                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9567                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9568                     found_dir="$dir"
9569                     found_so="$dir/lib$name.$shlibext"
9570                     if test -f "$dir/lib$name.la"; then
9571                       found_la="$dir/lib$name.la"
9572                     fi
9573                   else
9574                     if test -f "$dir/lib$name.$libext"; then
9575                       found_dir="$dir"
9576                       found_a="$dir/lib$name.$libext"
9577                       if test -f "$dir/lib$name.la"; then
9578                         found_la="$dir/lib$name.la"
9579                       fi
9580                     fi
9581                   fi
9582                   ;;
9583               esac
9584               if test "X$found_dir" != "X"; then
9585                 break
9586               fi
9587             done
9588           fi
9589           if test "X$found_dir" != "X"; then
9590                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9591             if test "X$found_so" != "X"; then
9592                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9593                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9594               else
9595                                                                                 haveit=
9596                 for x in $ltrpathdirs; do
9597                   if test "X$x" = "X$found_dir"; then
9598                     haveit=yes
9599                     break
9600                   fi
9601                 done
9602                 if test -z "$haveit"; then
9603                   ltrpathdirs="$ltrpathdirs $found_dir"
9604                 fi
9605                                 if test "$hardcode_direct" = yes; then
9606                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9607                 else
9608                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9609                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9610                                                             haveit=
9611                     for x in $rpathdirs; do
9612                       if test "X$x" = "X$found_dir"; then
9613                         haveit=yes
9614                         break
9615                       fi
9616                     done
9617                     if test -z "$haveit"; then
9618                       rpathdirs="$rpathdirs $found_dir"
9619                     fi
9620                   else
9621                                                                                 haveit=
9622                     for x in $LDFLAGS $LIBICONV; do
9623
9624   acl_save_prefix="$prefix"
9625   prefix="$acl_final_prefix"
9626   acl_save_exec_prefix="$exec_prefix"
9627   exec_prefix="$acl_final_exec_prefix"
9628   eval x=\"$x\"
9629   exec_prefix="$acl_save_exec_prefix"
9630   prefix="$acl_save_prefix"
9631
9632                       if test "X$x" = "X-L$found_dir"; then
9633                         haveit=yes
9634                         break
9635                       fi
9636                     done
9637                     if test -z "$haveit"; then
9638                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9639                     fi
9640                     if test "$hardcode_minus_L" != no; then
9641                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9642                     else
9643                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9644                     fi
9645                   fi
9646                 fi
9647               fi
9648             else
9649               if test "X$found_a" != "X"; then
9650                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9651               else
9652                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9653               fi
9654             fi
9655                         additional_includedir=
9656             case "$found_dir" in
9657               */lib | */lib/)
9658                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9659                 additional_includedir="$basedir/include"
9660                 ;;
9661             esac
9662             if test "X$additional_includedir" != "X"; then
9663                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9664                 haveit=
9665                 if test "X$additional_includedir" = "X/usr/local/include"; then
9666                   if test -n "$GCC"; then
9667                     case $host_os in
9668                       linux*) haveit=yes;;
9669                     esac
9670                   fi
9671                 fi
9672                 if test -z "$haveit"; then
9673                   for x in $CPPFLAGS $INCICONV; do
9674
9675   acl_save_prefix="$prefix"
9676   prefix="$acl_final_prefix"
9677   acl_save_exec_prefix="$exec_prefix"
9678   exec_prefix="$acl_final_exec_prefix"
9679   eval x=\"$x\"
9680   exec_prefix="$acl_save_exec_prefix"
9681   prefix="$acl_save_prefix"
9682
9683                     if test "X$x" = "X-I$additional_includedir"; then
9684                       haveit=yes
9685                       break
9686                     fi
9687                   done
9688                   if test -z "$haveit"; then
9689                     if test -d "$additional_includedir"; then
9690                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9691                     fi
9692                   fi
9693                 fi
9694               fi
9695             fi
9696                         if test -n "$found_la"; then
9697                                                         save_libdir="$libdir"
9698               case "$found_la" in
9699                 */* | *\\*) . "$found_la" ;;
9700                 *) . "./$found_la" ;;
9701               esac
9702               libdir="$save_libdir"
9703                             for dep in $dependency_libs; do
9704                 case "$dep" in
9705                   -L*)
9706                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9707                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9708                       haveit=
9709                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9710                         if test -n "$GCC"; then
9711                           case $host_os in
9712                             linux*) haveit=yes;;
9713                           esac
9714                         fi
9715                       fi
9716                       if test -z "$haveit"; then
9717                         haveit=
9718                         for x in $LDFLAGS $LIBICONV; do
9719
9720   acl_save_prefix="$prefix"
9721   prefix="$acl_final_prefix"
9722   acl_save_exec_prefix="$exec_prefix"
9723   exec_prefix="$acl_final_exec_prefix"
9724   eval x=\"$x\"
9725   exec_prefix="$acl_save_exec_prefix"
9726   prefix="$acl_save_prefix"
9727
9728                           if test "X$x" = "X-L$additional_libdir"; then
9729                             haveit=yes
9730                             break
9731                           fi
9732                         done
9733                         if test -z "$haveit"; then
9734                           if test -d "$additional_libdir"; then
9735                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9736                           fi
9737                         fi
9738                         haveit=
9739                         for x in $LDFLAGS $LTLIBICONV; do
9740
9741   acl_save_prefix="$prefix"
9742   prefix="$acl_final_prefix"
9743   acl_save_exec_prefix="$exec_prefix"
9744   exec_prefix="$acl_final_exec_prefix"
9745   eval x=\"$x\"
9746   exec_prefix="$acl_save_exec_prefix"
9747   prefix="$acl_save_prefix"
9748
9749                           if test "X$x" = "X-L$additional_libdir"; then
9750                             haveit=yes
9751                             break
9752                           fi
9753                         done
9754                         if test -z "$haveit"; then
9755                           if test -d "$additional_libdir"; then
9756                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9757                           fi
9758                         fi
9759                       fi
9760                     fi
9761                     ;;
9762                   -R*)
9763                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9764                     if test "$enable_rpath" != no; then
9765                                                                   haveit=
9766                       for x in $rpathdirs; do
9767                         if test "X$x" = "X$dir"; then
9768                           haveit=yes
9769                           break
9770                         fi
9771                       done
9772                       if test -z "$haveit"; then
9773                         rpathdirs="$rpathdirs $dir"
9774                       fi
9775                                                                   haveit=
9776                       for x in $ltrpathdirs; do
9777                         if test "X$x" = "X$dir"; then
9778                           haveit=yes
9779                           break
9780                         fi
9781                       done
9782                       if test -z "$haveit"; then
9783                         ltrpathdirs="$ltrpathdirs $dir"
9784                       fi
9785                     fi
9786                     ;;
9787                   -l*)
9788                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9789                     ;;
9790                   *.la)
9791                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9792                     ;;
9793                   *)
9794                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9795                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9796                     ;;
9797                 esac
9798               done
9799             fi
9800           else
9801                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9802             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9803           fi
9804         fi
9805       fi
9806     done
9807   done
9808   if test "X$rpathdirs" != "X"; then
9809     if test -n "$hardcode_libdir_separator"; then
9810                         alldirs=
9811       for found_dir in $rpathdirs; do
9812         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9813       done
9814             acl_save_libdir="$libdir"
9815       libdir="$alldirs"
9816       eval flag=\"$hardcode_libdir_flag_spec\"
9817       libdir="$acl_save_libdir"
9818       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9819     else
9820             for found_dir in $rpathdirs; do
9821         acl_save_libdir="$libdir"
9822         libdir="$found_dir"
9823         eval flag=\"$hardcode_libdir_flag_spec\"
9824         libdir="$acl_save_libdir"
9825         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9826       done
9827     fi
9828   fi
9829   if test "X$ltrpathdirs" != "X"; then
9830             for found_dir in $ltrpathdirs; do
9831       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9832     done
9833   fi
9834
9835
9836
9837
9838
9839
9840
9841           am_save_CPPFLAGS="$CPPFLAGS"
9842
9843   for element in $INCICONV; do
9844     haveit=
9845     for x in $CPPFLAGS; do
9846
9847   acl_save_prefix="$prefix"
9848   prefix="$acl_final_prefix"
9849   acl_save_exec_prefix="$exec_prefix"
9850   exec_prefix="$acl_final_exec_prefix"
9851   eval x=\"$x\"
9852   exec_prefix="$acl_save_exec_prefix"
9853   prefix="$acl_save_prefix"
9854
9855       if test "X$x" = "X$element"; then
9856         haveit=yes
9857         break
9858       fi
9859     done
9860     if test -z "$haveit"; then
9861       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9862     fi
9863   done
9864
9865
9866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9867 $as_echo_n "checking for iconv... " >&6; }
9868 if test "${am_cv_func_iconv+set}" = set; then :
9869   $as_echo_n "(cached) " >&6
9870 else
9871
9872     am_cv_func_iconv="no, consider installing GNU libiconv"
9873     am_cv_lib_iconv=no
9874     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h.  */
9876 #include <stdlib.h>
9877 #include <iconv.h>
9878 int
9879 main ()
9880 {
9881 iconv_t cd = iconv_open("","");
9882        iconv(cd,NULL,NULL,NULL,NULL);
9883        iconv_close(cd);
9884   ;
9885   return 0;
9886 }
9887 _ACEOF
9888 if ac_fn_c_try_link "$LINENO"; then :
9889   am_cv_func_iconv=yes
9890 fi
9891 rm -f core conftest.err conftest.$ac_objext \
9892     conftest$ac_exeext conftest.$ac_ext
9893     if test "$am_cv_func_iconv" != yes; then
9894       am_save_LIBS="$LIBS"
9895       LIBS="$LIBS $LIBICONV"
9896       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h.  */
9898 #include <stdlib.h>
9899 #include <iconv.h>
9900 int
9901 main ()
9902 {
9903 iconv_t cd = iconv_open("","");
9904          iconv(cd,NULL,NULL,NULL,NULL);
9905          iconv_close(cd);
9906   ;
9907   return 0;
9908 }
9909 _ACEOF
9910 if ac_fn_c_try_link "$LINENO"; then :
9911   am_cv_lib_iconv=yes
9912         am_cv_func_iconv=yes
9913 fi
9914 rm -f core conftest.err conftest.$ac_objext \
9915     conftest$ac_exeext conftest.$ac_ext
9916       LIBS="$am_save_LIBS"
9917     fi
9918
9919 fi
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9921 $as_echo "$am_cv_func_iconv" >&6; }
9922   if test "$am_cv_func_iconv" = yes; then
9923
9924 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9925
9926   fi
9927   if test "$am_cv_lib_iconv" = yes; then
9928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9929 $as_echo_n "checking how to link with libiconv... " >&6; }
9930     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9931 $as_echo "$LIBICONV" >&6; }
9932   else
9933             CPPFLAGS="$am_save_CPPFLAGS"
9934     LIBICONV=
9935     LTLIBICONV=
9936   fi
9937
9938
9939
9940   if test "$am_cv_func_iconv" = yes; then
9941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9942 $as_echo_n "checking for iconv declaration... " >&6; }
9943     if test "${am_cv_proto_iconv+set}" = set; then :
9944   $as_echo_n "(cached) " >&6
9945 else
9946
9947       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948 /* end confdefs.h.  */
9949
9950 #include <stdlib.h>
9951 #include <iconv.h>
9952 extern
9953 #ifdef __cplusplus
9954 "C"
9955 #endif
9956 #if defined(__STDC__) || defined(__cplusplus)
9957 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9958 #else
9959 size_t iconv();
9960 #endif
9961
9962 int
9963 main ()
9964 {
9965
9966   ;
9967   return 0;
9968 }
9969 _ACEOF
9970 if ac_fn_c_try_compile "$LINENO"; then :
9971   am_cv_proto_iconv_arg1=""
9972 else
9973   am_cv_proto_iconv_arg1="const"
9974 fi
9975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9976       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);"
9977 fi
9978
9979     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9981          }$am_cv_proto_iconv" >&5
9982 $as_echo "${ac_t:-
9983          }$am_cv_proto_iconv" >&6; }
9984
9985 cat >>confdefs.h <<_ACEOF
9986 #define ICONV_CONST $am_cv_proto_iconv_arg1
9987 _ACEOF
9988
9989   fi
9990
9991 # Until we have in-tree GNU iconv:
9992 LIBICONV_DEP=
9993
9994
9995
9996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9997 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9998 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9999   $as_echo_n "(cached) " >&6
10000 else
10001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002 /* end confdefs.h.  */
10003 #include <locale.h>
10004 int
10005 main ()
10006 {
10007 return LC_MESSAGES
10008   ;
10009   return 0;
10010 }
10011 _ACEOF
10012 if ac_fn_c_try_link "$LINENO"; then :
10013   am_cv_val_LC_MESSAGES=yes
10014 else
10015   am_cv_val_LC_MESSAGES=no
10016 fi
10017 rm -f core conftest.err conftest.$ac_objext \
10018     conftest$ac_exeext conftest.$ac_ext
10019 fi
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10021 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10022   if test $am_cv_val_LC_MESSAGES = yes; then
10023
10024 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10025
10026   fi
10027
10028
10029
10030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10031 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10032 if test "${am_cv_langinfo_codeset+set}" = set; then :
10033   $as_echo_n "(cached) " >&6
10034 else
10035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h.  */
10037 #include <langinfo.h>
10038 int
10039 main ()
10040 {
10041 char* cs = nl_langinfo(CODESET);
10042   ;
10043   return 0;
10044 }
10045 _ACEOF
10046 if ac_fn_c_try_link "$LINENO"; then :
10047   am_cv_langinfo_codeset=yes
10048 else
10049   am_cv_langinfo_codeset=no
10050 fi
10051 rm -f core conftest.err conftest.$ac_objext \
10052     conftest$ac_exeext conftest.$ac_ext
10053
10054 fi
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10056 $as_echo "$am_cv_langinfo_codeset" >&6; }
10057   if test $am_cv_langinfo_codeset = yes; then
10058
10059 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10060
10061   fi
10062
10063
10064 # We will need to find libiberty.h and ansidecl.h
10065 saved_CFLAGS="$CFLAGS"
10066 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10067 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10068         strsignal strstr strverscmp \
10069         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10070         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
10071 do
10072   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10074 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10075 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10076   $as_echo_n "(cached) " >&6
10077 else
10078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h.  */
10080 #undef $ac_tr_decl
10081 #define $ac_tr_decl 1
10082
10083 #include "ansidecl.h"
10084 #include "system.h"
10085
10086 int
10087 main ()
10088 {
10089 #ifndef $ac_func
10090 char *(*pfn) = (char *(*)) $ac_func ;
10091 #endif
10092   ;
10093   return 0;
10094 }
10095 _ACEOF
10096 if ac_fn_c_try_compile "$LINENO"; then :
10097   eval "gcc_cv_have_decl_$ac_func=yes"
10098 else
10099   eval "gcc_cv_have_decl_$ac_func=no"
10100 fi
10101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10102 fi
10103
10104 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10106 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10107 #define $ac_tr_decl 1
10108 _ACEOF
10109
10110 else
10111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10113 #define $ac_tr_decl 0
10114 _ACEOF
10115
10116 fi
10117
10118 done
10119
10120
10121 for ac_func in getrlimit setrlimit getrusage
10122 do
10123   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10125 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10126 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10127   $as_echo_n "(cached) " >&6
10128 else
10129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10130 /* end confdefs.h.  */
10131 #undef $ac_tr_decl
10132 #define $ac_tr_decl 1
10133
10134 #include "ansidecl.h"
10135 #include "system.h"
10136 #ifdef HAVE_SYS_RESOURCE_H
10137 #include <sys/resource.h>
10138 #endif
10139
10140
10141 int
10142 main ()
10143 {
10144 #ifndef $ac_func
10145 char *(*pfn) = (char *(*)) $ac_func ;
10146 #endif
10147   ;
10148   return 0;
10149 }
10150 _ACEOF
10151 if ac_fn_c_try_compile "$LINENO"; then :
10152   eval "gcc_cv_have_decl_$ac_func=yes"
10153 else
10154   eval "gcc_cv_have_decl_$ac_func=no"
10155 fi
10156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157 fi
10158
10159 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10161 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10162 #define $ac_tr_decl 1
10163 _ACEOF
10164
10165 else
10166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10168 #define $ac_tr_decl 0
10169 _ACEOF
10170
10171 fi
10172
10173 done
10174
10175
10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h.  */
10178
10179 #include "ansidecl.h"
10180 #include "system.h"
10181 #ifdef HAVE_SYS_RESOURCE_H
10182 #include <sys/resource.h>
10183 #endif
10184
10185 int
10186 main ()
10187 {
10188 rlim_t l = 0;
10189   ;
10190   return 0;
10191 }
10192 _ACEOF
10193 if ac_fn_c_try_compile "$LINENO"; then :
10194
10195 else
10196
10197 $as_echo "#define rlim_t long" >>confdefs.h
10198
10199 fi
10200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10201
10202 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10203 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10204 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10205 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10206 for ac_func in ldgetname
10207 do
10208   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10210 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10211 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10212   $as_echo_n "(cached) " >&6
10213 else
10214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10215 /* end confdefs.h.  */
10216 #undef $ac_tr_decl
10217 #define $ac_tr_decl 1
10218
10219 #include "ansidecl.h"
10220 #include "system.h"
10221 #ifdef HAVE_LDFCN_H
10222 #undef FREAD
10223 #undef FWRITE
10224 #include <ldfcn.h>
10225 #endif
10226
10227
10228 int
10229 main ()
10230 {
10231 #ifndef $ac_func
10232 char *(*pfn) = (char *(*)) $ac_func ;
10233 #endif
10234   ;
10235   return 0;
10236 }
10237 _ACEOF
10238 if ac_fn_c_try_compile "$LINENO"; then :
10239   eval "gcc_cv_have_decl_$ac_func=yes"
10240 else
10241   eval "gcc_cv_have_decl_$ac_func=no"
10242 fi
10243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10244 fi
10245
10246 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10248 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10249 #define $ac_tr_decl 1
10250 _ACEOF
10251
10252 else
10253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10254 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10255 #define $ac_tr_decl 0
10256 _ACEOF
10257
10258 fi
10259
10260 done
10261
10262
10263 for ac_func in times
10264 do
10265   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10267 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10268 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10269   $as_echo_n "(cached) " >&6
10270 else
10271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h.  */
10273 #undef $ac_tr_decl
10274 #define $ac_tr_decl 1
10275
10276 #include "ansidecl.h"
10277 #include "system.h"
10278 #ifdef HAVE_SYS_TIMES_H
10279 #include <sys/times.h>
10280 #endif
10281
10282
10283 int
10284 main ()
10285 {
10286 #ifndef $ac_func
10287 char *(*pfn) = (char *(*)) $ac_func ;
10288 #endif
10289   ;
10290   return 0;
10291 }
10292 _ACEOF
10293 if ac_fn_c_try_compile "$LINENO"; then :
10294   eval "gcc_cv_have_decl_$ac_func=yes"
10295 else
10296   eval "gcc_cv_have_decl_$ac_func=no"
10297 fi
10298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10299 fi
10300
10301 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10303 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10304 #define $ac_tr_decl 1
10305 _ACEOF
10306
10307 else
10308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10309 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10310 #define $ac_tr_decl 0
10311 _ACEOF
10312
10313 fi
10314
10315 done
10316
10317
10318 for ac_func in sigaltstack
10319 do
10320   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10322 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10323 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10324   $as_echo_n "(cached) " >&6
10325 else
10326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327 /* end confdefs.h.  */
10328 #undef $ac_tr_decl
10329 #define $ac_tr_decl 1
10330
10331 #include "ansidecl.h"
10332 #include "system.h"
10333 #include <signal.h>
10334
10335
10336 int
10337 main ()
10338 {
10339 #ifndef $ac_func
10340 char *(*pfn) = (char *(*)) $ac_func ;
10341 #endif
10342   ;
10343   return 0;
10344 }
10345 _ACEOF
10346 if ac_fn_c_try_compile "$LINENO"; then :
10347   eval "gcc_cv_have_decl_$ac_func=yes"
10348 else
10349   eval "gcc_cv_have_decl_$ac_func=no"
10350 fi
10351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10352 fi
10353
10354 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10356 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10357 #define $ac_tr_decl 1
10358 _ACEOF
10359
10360 else
10361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10363 #define $ac_tr_decl 0
10364 _ACEOF
10365
10366 fi
10367
10368 done
10369
10370
10371 # More time-related stuff.
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10373 $as_echo_n "checking for struct tms... " >&6; }
10374 if test "${ac_cv_struct_tms+set}" = set; then :
10375   $as_echo_n "(cached) " >&6
10376 else
10377
10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h.  */
10380
10381 #include "ansidecl.h"
10382 #include "system.h"
10383 #ifdef HAVE_SYS_TIMES_H
10384 #include <sys/times.h>
10385 #endif
10386
10387 int
10388 main ()
10389 {
10390 struct tms tms;
10391   ;
10392   return 0;
10393 }
10394 _ACEOF
10395 if ac_fn_c_try_compile "$LINENO"; then :
10396   ac_cv_struct_tms=yes
10397 else
10398   ac_cv_struct_tms=no
10399 fi
10400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10401 fi
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10403 $as_echo "$ac_cv_struct_tms" >&6; }
10404 if test $ac_cv_struct_tms = yes; then
10405
10406 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10407
10408 fi
10409
10410 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10411 # revisit after autoconf 2.50.
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10413 $as_echo_n "checking for clock_t... " >&6; }
10414 if test "${gcc_cv_type_clock_t+set}" = set; then :
10415   $as_echo_n "(cached) " >&6
10416 else
10417
10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419 /* end confdefs.h.  */
10420
10421 #include "ansidecl.h"
10422 #include "system.h"
10423
10424 int
10425 main ()
10426 {
10427 clock_t x;
10428   ;
10429   return 0;
10430 }
10431 _ACEOF
10432 if ac_fn_c_try_compile "$LINENO"; then :
10433   gcc_cv_type_clock_t=yes
10434 else
10435   gcc_cv_type_clock_t=no
10436 fi
10437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10438 fi
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10440 $as_echo "$gcc_cv_type_clock_t" >&6; }
10441 if test $gcc_cv_type_clock_t = yes; then
10442
10443 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10444
10445 fi
10446
10447 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10448 CFLAGS="$saved_CFLAGS"
10449
10450 # Check whether --enable-initfini-array was given.
10451 if test "${enable_initfini_array+set}" = set; then :
10452   enableval=$enable_initfini_array;
10453 else
10454
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10456 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10457 if test "${gcc_cv_initfini_array+set}" = set; then :
10458   $as_echo_n "(cached) " >&6
10459 else
10460     if test "$cross_compiling" = yes; then :
10461   gcc_cv_initfini_array=no
10462 else
10463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10464 /* end confdefs.h.  */
10465
10466 static int x = -1;
10467 int main (void) { return x; }
10468 int foo (void) { x = 0; }
10469 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10470 _ACEOF
10471 if ac_fn_c_try_run "$LINENO"; then :
10472   gcc_cv_initfini_array=yes
10473 else
10474   gcc_cv_initfini_array=no
10475 fi
10476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10477   conftest.$ac_objext conftest.beam conftest.$ac_ext
10478 fi
10479
10480 fi
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10482 $as_echo "$gcc_cv_initfini_array" >&6; }
10483   enable_initfini_array=$gcc_cv_initfini_array
10484
10485 fi
10486
10487 if test $enable_initfini_array = yes; then
10488
10489 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10490
10491 fi
10492
10493 # mkdir takes a single argument on some systems.
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10495 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10496 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10497   $as_echo_n "(cached) " >&6
10498 else
10499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h.  */
10501
10502 #include <sys/types.h>
10503 #ifdef HAVE_SYS_STAT_H
10504 # include <sys/stat.h>
10505 #endif
10506 #ifdef HAVE_UNISTD_H
10507 # include <unistd.h>
10508 #endif
10509 #ifdef HAVE_DIRECT_H
10510 # include <direct.h>
10511 #endif
10512 int
10513 main ()
10514 {
10515 mkdir ("foo", 0);
10516   ;
10517   return 0;
10518 }
10519 _ACEOF
10520 if ac_fn_c_try_compile "$LINENO"; then :
10521   gcc_cv_mkdir_takes_one_arg=no
10522 else
10523   gcc_cv_mkdir_takes_one_arg=yes
10524 fi
10525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10526 fi
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10528 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10529 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10530
10531 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10532
10533 fi
10534
10535
10536 # File extensions
10537 manext='.1'
10538 objext='.o'
10539
10540
10541
10542 # With Setjmp/Longjmp based exception handling.
10543 # Check whether --enable-sjlj-exceptions was given.
10544 if test "${enable_sjlj_exceptions+set}" = set; then :
10545   enableval=$enable_sjlj_exceptions; case $target in
10546   *-*-hpux10*)
10547     if test $enableval != yes; then
10548       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10549 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10550       enableval=yes
10551     fi
10552     ;;
10553 esac
10554 force_sjlj_exceptions=yes
10555 else
10556   case $target in
10557   *-*-hpux10*)
10558     force_sjlj_exceptions=yes
10559     enableval=yes
10560     ;;
10561   *)
10562     force_sjlj_exceptions=no
10563     ;;
10564 esac
10565 fi
10566
10567 if test $force_sjlj_exceptions = yes; then
10568   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10569
10570 cat >>confdefs.h <<_ACEOF
10571 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10572 _ACEOF
10573
10574 fi
10575
10576 # For platforms with the unwind ABI which includes an unwind library,
10577 # libunwind, we can choose to use the system libunwind.
10578 # config.gcc also contains tests of with_system_libunwind.
10579
10580
10581 # Check whether --with-system-libunwind was given.
10582 if test "${with_system_libunwind+set}" = set; then :
10583   withval=$with_system_libunwind;
10584 fi
10585
10586   # If system-libunwind was not specifically set, pick a default setting.
10587   if test x$with_system_libunwind = x; then
10588     case ${target} in
10589       ia64-*-hpux*) with_system_libunwind=yes ;;
10590       *) with_system_libunwind=no ;;
10591     esac
10592   fi
10593   # Based on system-libunwind and target, do we have ipinfo?
10594   if  test x$with_system_libunwind = xyes; then
10595     case ${target} in
10596       ia64-*-*) have_unwind_getipinfo=no ;;
10597       *) have_unwind_getipinfo=yes ;;
10598     esac
10599   else
10600     # Darwin before version 9 does not have _Unwind_GetIPInfo.
10601
10602     case ${target} in
10603       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10604       *) have_unwind_getipinfo=yes ;;
10605     esac
10606
10607   fi
10608
10609   if test x$have_unwind_getipinfo = xyes; then
10610
10611 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10612
10613   fi
10614
10615
10616 # --------------------------------------------------------
10617 # Build, host, and target specific configuration fragments
10618 # --------------------------------------------------------
10619
10620 # Collect build-machine-specific information.
10621 . ${srcdir}/config.build
10622
10623 # Collect host-machine-specific information.
10624 . ${srcdir}/config.host
10625
10626 target_gtfiles=
10627
10628 # Collect target-machine-specific information.
10629 . ${srcdir}/config.gcc
10630
10631 extra_objs="${host_extra_objs} ${extra_objs}"
10632 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10633
10634 # Default the target-machine variables that were not explicitly set.
10635 if test x"$tm_file" = x
10636 then tm_file=$cpu_type/$cpu_type.h; fi
10637
10638 if test x"$extra_headers" = x
10639 then extra_headers=; fi
10640
10641 if test x$md_file = x
10642 then md_file=$cpu_type/$cpu_type.md; fi
10643
10644 if test x$out_file = x
10645 then out_file=$cpu_type/$cpu_type.c; fi
10646
10647 if test x"$tmake_file" = x
10648 then tmake_file=$cpu_type/t-$cpu_type
10649 fi
10650
10651 if test x"$dwarf2" = xyes
10652 then tm_file="$tm_file tm-dwarf2.h"
10653 fi
10654
10655 # Say what files are being used for the output code and MD file.
10656 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10657 echo "Using \`$srcdir/config/$md_file' as machine description file."
10658
10659 # If any of the xm_file variables contain nonexistent files, warn
10660 # about them and drop them.
10661
10662 bx=
10663 for x in $build_xm_file; do
10664   if    test -f $srcdir/config/$x
10665   then      bx="$bx $x"
10666   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10667 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10668   fi
10669 done
10670 build_xm_file="$bx"
10671
10672 hx=
10673 for x in $host_xm_file; do
10674   if    test -f $srcdir/config/$x
10675   then      hx="$hx $x"
10676   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10677 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10678   fi
10679 done
10680 host_xm_file="$hx"
10681
10682 tx=
10683 for x in $xm_file; do
10684   if    test -f $srcdir/config/$x
10685   then      tx="$tx $x"
10686   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10687 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10688   fi
10689 done
10690 xm_file="$tx"
10691
10692 count=a
10693 for f in $tm_file; do
10694         count=${count}x
10695 done
10696 if test $count = ax; then
10697         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10698 else
10699         echo "Using the following target machine macro files:"
10700         for f in $tm_file; do
10701                 echo "  $srcdir/config/$f"
10702         done
10703 fi
10704
10705 if test x$need_64bit_hwint = xyes; then
10706
10707 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10708
10709 fi
10710
10711 if test x$use_long_long_for_widest_fast_int = xyes; then
10712
10713 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10714
10715 fi
10716
10717 count=a
10718 for f in $host_xm_file; do
10719         count=${count}x
10720 done
10721 if test $count = a; then
10722         :
10723 elif test $count = ax; then
10724         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10725 else
10726         echo "Using the following host machine macro files:"
10727         for f in $host_xm_file; do
10728                 echo "  $srcdir/config/$f"
10729         done
10730 fi
10731 echo "Using ${out_host_hook_obj} for host machine hooks."
10732
10733 if test "$host_xm_file" != "$build_xm_file"; then
10734         count=a
10735         for f in $build_xm_file; do
10736                 count=${count}x
10737         done
10738         if test $count = a; then
10739                 :
10740         elif test $count = ax; then
10741                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10742         else
10743                 echo "Using the following build machine macro files:"
10744                 for f in $build_xm_file; do
10745                         echo "  $srcdir/config/$f"
10746                 done
10747         fi
10748 fi
10749
10750 case ${host} in
10751   powerpc*-*-darwin*)
10752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10753 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10754 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10755   $as_echo_n "(cached) " >&6
10756 else
10757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h.  */
10759
10760 #include <sys/cdefs.h>
10761 #include <sys/signal.h>
10762 #include <ucontext.h>
10763 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10764
10765 _ACEOF
10766 if ac_fn_c_try_compile "$LINENO"; then :
10767   gcc_cv_mcontext_underscores=no
10768 else
10769   gcc_cv_mcontext_underscores=yes
10770 fi
10771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10772 fi
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10774 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10775       if test $gcc_cv_mcontext_underscores = yes; then
10776
10777 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10778
10779       fi
10780     ;;
10781 esac
10782
10783 # ---------
10784 # Threading
10785 # ---------
10786
10787 # Check if a valid thread package
10788 case ${enable_threads} in
10789   "" | no)
10790     # No threads
10791     target_thread_file='single'
10792     ;;
10793   yes)
10794     # default
10795     target_thread_file='single'
10796     ;;
10797   aix | dce | lynx | mipssde | nks | posix | posix95 | rtems | \
10798   single | tpf | vxworks | win32)
10799     target_thread_file=${enable_threads}
10800     ;;
10801   *)
10802     echo "${enable_threads} is an unknown thread package" 1>&2
10803     exit 1
10804     ;;
10805 esac
10806
10807 if test x${thread_file} = x; then
10808   # No thread file set by target-specific clauses in config.gcc,
10809   # so use file chosen by default logic above
10810   thread_file=${target_thread_file}
10811 fi
10812
10813 # Make gthr-default.h if we have a thread file.
10814 gthread_flags=
10815 if test $thread_file != single; then
10816   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10817   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10818     rm -f gthr-default.h-t
10819   else
10820     mv -f gthr-default.h-t gthr-default.h
10821   fi
10822   gthread_flags=-DHAVE_GTHR_DEFAULT
10823 fi
10824
10825
10826 # --------
10827 # UNSORTED
10828 # --------
10829
10830 use_cxa_atexit=no
10831 if test x$enable___cxa_atexit = xyes || \
10832    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10833   if test x$host = x$target; then
10834     case $host in
10835       # mingw32 doesn't have __cxa_atexit but uses atexit registration
10836       # keyed to flag_use_cxa_atexit
10837       *-*-mingw32*)
10838         use_cxa_atexit=yes
10839         ;;
10840       *)
10841         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10842 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10843   use_cxa_atexit=yes
10844 else
10845   echo "__cxa_atexit can't be enabled on this target"
10846 fi
10847
10848         ;;
10849     esac
10850   else
10851     # We can't check for __cxa_atexit when building a cross, so assume
10852     # it is available
10853     use_cxa_atexit=yes
10854   fi
10855   if test x$use_cxa_atexit = xyes; then
10856
10857 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10858
10859   fi
10860 fi
10861
10862 # Look for a file containing extra machine modes.
10863 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10864   extra_modes_file='$(srcdir)'/config/${extra_modes}
10865
10866
10867 cat >>confdefs.h <<_ACEOF
10868 #define EXTRA_MODES_FILE "config/$extra_modes"
10869 _ACEOF
10870
10871 fi
10872
10873 # Convert extra_options into a form suitable for Makefile use.
10874 extra_opt_files=
10875 all_opt_files=
10876 for f in $extra_options; do
10877   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10878   all_opt_files="$all_opt_files $srcdir/config/$f"
10879 done
10880
10881
10882 # auto-host.h is the file containing items generated by autoconf and is
10883 # the first file included by config.h.
10884 # If host=build, it is correct to have bconfig include auto-host.h
10885 # as well.  If host!=build, we are in error and need to do more
10886 # work to find out the build config parameters.
10887 if test x$host = x$build
10888 then
10889         build_auto=auto-host.h
10890 else
10891         # We create a subdir, then run autoconf in the subdir.
10892         # To prevent recursion we set host and build for the new
10893         # invocation of configure to the build for this invocation
10894         # of configure.
10895         tempdir=build.$$
10896         rm -rf $tempdir
10897         mkdir $tempdir
10898         cd $tempdir
10899         case ${srcdir} in
10900         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10901         *) realsrcdir=../${srcdir};;
10902         esac
10903         saved_CFLAGS="${CFLAGS}"
10904         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10905         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10906         ${realsrcdir}/configure \
10907                 --enable-languages=${enable_languages-all} \
10908                 --target=$target_alias --host=$build_alias --build=$build_alias
10909         CFLAGS="${saved_CFLAGS}"
10910
10911         # We just finished tests for the build machine, so rename
10912         # the file auto-build.h in the gcc directory.
10913         mv auto-host.h ../auto-build.h
10914         cd ..
10915         rm -rf $tempdir
10916         build_auto=auto-build.h
10917 fi
10918
10919
10920 tm_file="${tm_file} defaults.h"
10921 tm_p_file="${tm_p_file} tm-preds.h"
10922 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10923 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10924 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10925 # put this back in temporarily.
10926 xm_file="auto-host.h ansidecl.h ${xm_file}"
10927
10928 # --------
10929 # UNSORTED
10930 # --------
10931
10932 # Compile in configure arguments.
10933 if test -f configargs.h ; then
10934         # Being re-configured.
10935         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10936         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10937 else
10938         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10939 fi
10940
10941 # Double all backslashes and backslash all quotes to turn
10942 # gcc_config_arguments into a C string.
10943 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10944 $gcc_config_arguments
10945 EOF
10946 gcc_config_arguments_str=`cat conftest.out`
10947 rm -f conftest.out
10948
10949 cat > configargs.h <<EOF
10950 /* Generated automatically. */
10951 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10952 static const char thread_model[] = "$thread_file";
10953
10954 static const struct {
10955   const char *name, *value;
10956 } configure_default_options[] = $configure_default_options;
10957 EOF
10958
10959 gcc_BASEVER=`cat $srcdir/BASE-VER`
10960 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10961 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10962 if test -f $srcdir/REVISION ; then
10963         gcc_REVISION=`cat $srcdir/REVISION`
10964 else
10965         gcc_REVISION=""
10966 fi
10967 cat > plugin-version.h <<EOF
10968 #include "configargs.h"
10969
10970 static char basever[] = "$gcc_BASEVER";
10971 static char datestamp[] = "$gcc_DATESTAMP";
10972 static char devphase[] = "$gcc_DEVPHASE";
10973 static char revision[] = "$gcc_REVISION";
10974
10975 /* FIXME plugins: We should make the version information more precise.
10976    One way to do is to add a checksum. */
10977
10978 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10979                                                 devphase, revision,
10980                                                 configuration_arguments};
10981 EOF
10982
10983 # Internationalization
10984 # If we haven't got the data from the intl directory,
10985 # assume NLS is disabled.
10986 USE_NLS=no
10987 LIBINTL=
10988 LIBINTL_DEP=
10989 INCINTL=
10990 XGETTEXT=
10991 GMSGFMT=
10992 POSUB=
10993
10994 if test -f  ../intl/config.intl; then
10995   .  ../intl/config.intl
10996 fi
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10998 $as_echo_n "checking whether NLS is requested... " >&6; }
10999 if test x"$USE_NLS" != xyes; then
11000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001 $as_echo "no" >&6; }
11002 else
11003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11004 $as_echo "yes" >&6; }
11005
11006 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11007
11008
11009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11010 $as_echo_n "checking for catalogs to be installed... " >&6; }
11011   # Look for .po and .gmo files in the source directory.
11012   CATALOGS=
11013   XLINGUAS=
11014   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11015     # If there aren't any .gmo files the shell will give us the
11016     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11017     # weeded out.
11018     case "$cat" in *\**)
11019       continue;;
11020     esac
11021     # The quadruple backslash is collapsed to a double backslash
11022     # by the backticks, then collapsed again by the double quotes,
11023     # leaving us with one backslash in the sed expression (right
11024     # before the dot that mustn't act as a wildcard).
11025     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11026     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11027     # The user is allowed to set LINGUAS to a list of languages to
11028     # install catalogs for.  If it's empty that means "all of them."
11029     if test "x$LINGUAS" = x; then
11030       CATALOGS="$CATALOGS $cat"
11031       XLINGUAS="$XLINGUAS $lang"
11032     else
11033       case "$LINGUAS" in *$lang*)
11034         CATALOGS="$CATALOGS $cat"
11035         XLINGUAS="$XLINGUAS $lang"
11036         ;;
11037       esac
11038     fi
11039   done
11040   LINGUAS="$XLINGUAS"
11041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11042 $as_echo "$LINGUAS" >&6; }
11043
11044
11045     DATADIRNAME=share
11046
11047   INSTOBJEXT=.mo
11048
11049   GENCAT=gencat
11050
11051   CATOBJEXT=.gmo
11052
11053 fi
11054
11055 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11056 # -liconv on the link line twice.
11057 case "$LIBINTL" in *$LIBICONV*)
11058         LIBICONV= ;;
11059 esac
11060
11061 # Check whether --enable-secureplt was given.
11062 if test "${enable_secureplt+set}" = set; then :
11063   enableval=$enable_secureplt;
11064 fi
11065
11066
11067 # Check whether --enable-leading-mingw64-underscores was given.
11068 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11069   enableval=$enable_leading_mingw64_underscores;
11070 fi
11071
11072 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11073
11074 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11075
11076 fi
11077
11078 # Check whether --enable-cld was given.
11079 if test "${enable_cld+set}" = set; then :
11080   enableval=$enable_cld;
11081 else
11082   enable_cld=no
11083 fi
11084
11085
11086 # Check whether --enable-frame-pointer was given.
11087 if test "${enable_frame_pointer+set}" = set; then :
11088   enableval=$enable_frame_pointer;
11089 else
11090
11091 case $target_os in
11092 linux* | darwin[8912]*)
11093   # Enable -fomit-frame-pointer by default for Linux and Darwin with
11094   # DWARF2.
11095   enable_frame_pointer=no
11096   ;;
11097 *)
11098   enable_frame_pointer=yes
11099   ;;
11100 esac
11101
11102 fi
11103
11104
11105 # Windows32 Registry support for specifying GCC installation paths.
11106 # Check whether --enable-win32-registry was given.
11107 if test "${enable_win32_registry+set}" = set; then :
11108   enableval=$enable_win32_registry;
11109 fi
11110
11111
11112 case $host_os in
11113   win32 | pe | cygwin* | mingw32* | uwin*)
11114     if test "x$enable_win32_registry" != xno; then
11115       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11116 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11117 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11118   $as_echo_n "(cached) " >&6
11119 else
11120   ac_func_search_save_LIBS=$LIBS
11121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11122 /* end confdefs.h.  */
11123
11124 /* Override any GCC internal prototype to avoid an error.
11125    Use char because int might match the return type of a GCC
11126    builtin and then its argument prototype would still apply.  */
11127 #ifdef __cplusplus
11128 extern "C"
11129 #endif
11130 char RegOpenKeyExA ();
11131 int
11132 main ()
11133 {
11134 return RegOpenKeyExA ();
11135   ;
11136   return 0;
11137 }
11138 _ACEOF
11139 for ac_lib in '' advapi32; do
11140   if test -z "$ac_lib"; then
11141     ac_res="none required"
11142   else
11143     ac_res=-l$ac_lib
11144     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11145   fi
11146   if ac_fn_c_try_link "$LINENO"; then :
11147   ac_cv_search_RegOpenKeyExA=$ac_res
11148 fi
11149 rm -f core conftest.err conftest.$ac_objext \
11150     conftest$ac_exeext
11151   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11152   break
11153 fi
11154 done
11155 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11156
11157 else
11158   ac_cv_search_RegOpenKeyExA=no
11159 fi
11160 rm conftest.$ac_ext
11161 LIBS=$ac_func_search_save_LIBS
11162 fi
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11164 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11165 ac_res=$ac_cv_search_RegOpenKeyExA
11166 if test "$ac_res" != no; then :
11167   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11168
11169 else
11170   enable_win32_registry=no
11171 fi
11172
11173     fi
11174
11175     if test "x$enable_win32_registry" != xno; then
11176
11177 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11178
11179
11180       if test "x$enable_win32_registry" != xyes \
11181          && test "x$enable_win32_registry" != x; then
11182
11183 cat >>confdefs.h <<_ACEOF
11184 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11185 _ACEOF
11186
11187       fi
11188     fi
11189   ;;
11190 esac
11191
11192 # Get an absolute path to the GCC top-level source directory
11193 holddir=`${PWDCMD-pwd}`
11194 cd $srcdir
11195 topdir=`${PWDCMD-pwd}`
11196 cd $holddir
11197
11198 # Conditionalize the makefile for this host machine.
11199 xmake_file=
11200 for f in ${host_xmake_file}
11201 do
11202         if test -f ${srcdir}/config/$f
11203         then
11204                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11205         fi
11206 done
11207
11208 # Conditionalize the makefile for this target machine.
11209 tmake_file_=
11210 for f in ${tmake_file}
11211 do
11212         if test -f ${srcdir}/config/$f
11213         then
11214                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11215         fi
11216 done
11217 tmake_file="${tmake_file_}"
11218
11219 out_object_file=`basename $out_file .c`.o
11220
11221 tm_file_list="options.h"
11222 tm_include_list="options.h insn-constants.h"
11223 for f in $tm_file; do
11224   case $f in
11225     ./* )
11226        f=`echo $f | sed 's/^..//'`
11227        tm_file_list="${tm_file_list} $f"
11228        tm_include_list="${tm_include_list} $f"
11229        ;;
11230     defaults.h )
11231        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11232        tm_include_list="${tm_include_list} $f"
11233        ;;
11234     * )
11235        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11236        tm_include_list="${tm_include_list} config/$f"
11237        ;;
11238   esac
11239 done
11240
11241 libgcc_tm_file_list=
11242 libgcc_tm_include_list=
11243 for f in $libgcc_tm_file; do
11244   libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11245   libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11246 done
11247
11248 tm_p_file_list=
11249 tm_p_include_list=
11250 for f in $tm_p_file; do
11251   case $f in
11252     tm-preds.h )
11253        tm_p_file_list="${tm_p_file_list} $f"
11254        tm_p_include_list="${tm_p_include_list} $f"
11255        ;;
11256     * )
11257        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11258        tm_p_include_list="${tm_p_include_list} config/$f"
11259   esac
11260 done
11261
11262 xm_file_list=
11263 xm_include_list=
11264 for f in $xm_file; do
11265   case $f in
11266     ansidecl.h )
11267        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11268        xm_include_list="${xm_include_list} $f"
11269        ;;
11270     auto-host.h )
11271        xm_file_list="${xm_file_list} $f"
11272        xm_include_list="${xm_include_list} $f"
11273        ;;
11274     * )
11275        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11276        xm_include_list="${xm_include_list} config/$f"
11277        ;;
11278   esac
11279 done
11280
11281 host_xm_file_list=
11282 host_xm_include_list=
11283 for f in $host_xm_file; do
11284   case $f in
11285     ansidecl.h )
11286        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11287        host_xm_include_list="${host_xm_include_list} $f"
11288        ;;
11289     auto-host.h )
11290        host_xm_file_list="${host_xm_file_list} $f"
11291        host_xm_include_list="${host_xm_include_list} $f"
11292        ;;
11293     * )
11294        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11295        host_xm_include_list="${host_xm_include_list} config/$f"
11296        ;;
11297   esac
11298 done
11299
11300 build_xm_file_list=
11301 for f in $build_xm_file; do
11302   case $f in
11303     ansidecl.h )
11304        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11305        build_xm_include_list="${build_xm_include_list} $f"
11306        ;;
11307     auto-build.h | auto-host.h )
11308        build_xm_file_list="${build_xm_file_list} $f"
11309        build_xm_include_list="${build_xm_include_list} $f"
11310        ;;
11311     * )
11312        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11313        build_xm_include_list="${build_xm_include_list} config/$f"
11314        ;;
11315   esac
11316 done
11317
11318 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11319 # cross-compiler which does not use the native headers and libraries.
11320 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11321 CROSS=
11322 ALL=all.internal
11323 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11324
11325 if test "x$with_build_sysroot" != x; then
11326   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11327 else
11328   # This value is used, even on a native system, because
11329   # CROSS_SYSTEM_HEADER_DIR is just
11330   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11331   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11332 fi
11333
11334 if test x$host != x$target
11335 then
11336         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11337         ALL=all.cross
11338         SYSTEM_HEADER_DIR=$build_system_header_dir
11339         case "$host","$target" in
11340         # Darwin crosses can use the host system's libraries and headers,
11341         # because of the fat library support.  Of course, it must be the
11342         # same version of Darwin on both sides.  Allow the user to
11343         # just say --target=foo-darwin without a version number to mean
11344         # "the version on this system".
11345             *-*-darwin*,*-*-darwin*)
11346                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11347                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11348                 if test $hostos = $targetos -o $targetos = darwin ; then
11349                     CROSS=
11350                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11351                     with_headers=yes
11352                 fi
11353                 ;;
11354
11355             i?86-*-*,x86_64-*-* \
11356             | powerpc*-*-*,powerpc64*-*-*)
11357                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11358         esac
11359
11360         case $target in
11361                 *-*-mingw*)
11362                         if test "x$with_headers" = x; then
11363                                 with_headers=yes
11364                         fi
11365                         ;;
11366                 *)
11367                         ;;
11368         esac
11369 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11370         SYSTEM_HEADER_DIR=$build_system_header_dir
11371 fi
11372
11373 # If this is a cross-compiler that does not
11374 # have its own set of headers then define
11375 # inhibit_libc
11376
11377 # If this is using newlib, without having the headers available now,
11378 # then define inhibit_libc in LIBGCC2_CFLAGS.
11379 # This prevents libgcc2 from containing any code which requires libc
11380 # support.
11381 : ${inhibit_libc=false}
11382 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11383        test x$with_newlib = xyes ; } &&
11384      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11385        inhibit_libc=true
11386 fi
11387
11388
11389 # When building gcc with a cross-compiler, we need to adjust things so
11390 # that the generator programs are still built with the native compiler.
11391 # Also, we cannot run fixincludes.
11392
11393 # These are the normal (build=host) settings:
11394 CC_FOR_BUILD='$(CC)'
11395 BUILD_CFLAGS='$(ALL_CFLAGS)'
11396 BUILD_LDFLAGS='$(LDFLAGS)'
11397 STMP_FIXINC=stmp-fixinc
11398
11399 # And these apply if build != host, or we are generating coverage data
11400 if test x$build != x$host || test "x$coverage_flags" != x
11401 then
11402     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11403     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11404 fi
11405
11406 # Expand extra_headers to include complete path.
11407 # This substitutes for lots of t-* files.
11408 extra_headers_list=
11409 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11410 for file in ${extra_headers} ; do
11411   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11412 done
11413
11414 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11415 if test x"$use_gcc_tgmath" = xyes
11416 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11417 fi
11418
11419 # Define collect2 in Makefile.
11420 case $host_can_use_collect2 in
11421   no) collect2= ;;
11422   *) collect2='collect2$(exeext)' ;;
11423 esac
11424
11425
11426 # Add a definition of USE_COLLECT2 if system wants one.
11427 case $use_collect2 in
11428   no) use_collect2= ;;
11429   "") ;;
11430   *)
11431     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11432     xm_defines="${xm_defines} USE_COLLECT2"
11433     case $host_can_use_collect2 in
11434       no)
11435         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11436         ;;
11437     esac
11438     ;;
11439 esac
11440
11441
11442 cat >>confdefs.h <<_ACEOF
11443 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11444 _ACEOF
11445
11446
11447 # ---------------------------
11448 # Assembler & linker features
11449 # ---------------------------
11450
11451 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11452 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11453 # However when ld-new is first executed from the build tree, libtool will
11454 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11455 # to the build tree.  While doing this we need to use the previous-stage
11456 # linker, or we have an infinite loop.  The presence of a shell script as
11457 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11458 # the gcc/collect-ld script.  So we need to know how libtool works, or
11459 # exec-tool will fail.
11460
11461
11462 case `pwd` in
11463   *\ * | *\     *)
11464     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11465 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11466 esac
11467
11468
11469
11470 macro_version='2.2.7a'
11471 macro_revision='1.3134'
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485 ltmain="$ac_aux_dir/ltmain.sh"
11486
11487 # Backslashify metacharacters that are still active within
11488 # double-quoted strings.
11489 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11490
11491 # Same as above, but do not quote variable references.
11492 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11493
11494 # Sed substitution to delay expansion of an escaped shell variable in a
11495 # double_quote_subst'ed string.
11496 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11497
11498 # Sed substitution to delay expansion of an escaped single quote.
11499 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11500
11501 # Sed substitution to avoid accidental globbing in evaled expressions
11502 no_glob_subst='s/\*/\\\*/g'
11503
11504 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11505 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11506 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11507
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11509 $as_echo_n "checking how to print strings... " >&6; }
11510 # Test print first, because it will be a builtin if present.
11511 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11512    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11513   ECHO='print -r --'
11514 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11515   ECHO='printf %s\n'
11516 else
11517   # Use this function as a fallback that always works.
11518   func_fallback_echo ()
11519   {
11520     eval 'cat <<_LTECHO_EOF
11521 $1
11522 _LTECHO_EOF'
11523   }
11524   ECHO='func_fallback_echo'
11525 fi
11526
11527 # func_echo_all arg...
11528 # Invoke $ECHO with all args, space-separated.
11529 func_echo_all ()
11530 {
11531     $ECHO ""
11532 }
11533
11534 case "$ECHO" in
11535   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11536 $as_echo "printf" >&6; } ;;
11537   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11538 $as_echo "print -r" >&6; } ;;
11539   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11540 $as_echo "cat" >&6; } ;;
11541 esac
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11557 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11558 if test "${ac_cv_path_SED+set}" = set; then :
11559   $as_echo_n "(cached) " >&6
11560 else
11561             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11562      for ac_i in 1 2 3 4 5 6 7; do
11563        ac_script="$ac_script$as_nl$ac_script"
11564      done
11565      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11566      { ac_script=; unset ac_script;}
11567      if test -z "$SED"; then
11568   ac_path_SED_found=false
11569   # Loop through the user's path and test for each of PROGNAME-LIST
11570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11571 for as_dir in $PATH
11572 do
11573   IFS=$as_save_IFS
11574   test -z "$as_dir" && as_dir=.
11575     for ac_prog in sed gsed; do
11576     for ac_exec_ext in '' $ac_executable_extensions; do
11577       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11578       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11579 # Check for GNU ac_path_SED and select it if it is found.
11580   # Check for GNU $ac_path_SED
11581 case `"$ac_path_SED" --version 2>&1` in
11582 *GNU*)
11583   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11584 *)
11585   ac_count=0
11586   $as_echo_n 0123456789 >"conftest.in"
11587   while :
11588   do
11589     cat "conftest.in" "conftest.in" >"conftest.tmp"
11590     mv "conftest.tmp" "conftest.in"
11591     cp "conftest.in" "conftest.nl"
11592     $as_echo '' >> "conftest.nl"
11593     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11594     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11595     as_fn_arith $ac_count + 1 && ac_count=$as_val
11596     if test $ac_count -gt ${ac_path_SED_max-0}; then
11597       # Best one so far, save it but keep looking for a better one
11598       ac_cv_path_SED="$ac_path_SED"
11599       ac_path_SED_max=$ac_count
11600     fi
11601     # 10*(2^10) chars as input seems more than enough
11602     test $ac_count -gt 10 && break
11603   done
11604   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11605 esac
11606
11607       $ac_path_SED_found && break 3
11608     done
11609   done
11610   done
11611 IFS=$as_save_IFS
11612   if test -z "$ac_cv_path_SED"; then
11613     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11614   fi
11615 else
11616   ac_cv_path_SED=$SED
11617 fi
11618
11619 fi
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11621 $as_echo "$ac_cv_path_SED" >&6; }
11622  SED="$ac_cv_path_SED"
11623   rm -f conftest.sed
11624
11625 test -z "$SED" && SED=sed
11626 Xsed="$SED -e 1s/^X//"
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11639 $as_echo_n "checking for fgrep... " >&6; }
11640 if test "${ac_cv_path_FGREP+set}" = set; then :
11641   $as_echo_n "(cached) " >&6
11642 else
11643   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11644    then ac_cv_path_FGREP="$GREP -F"
11645    else
11646      if test -z "$FGREP"; then
11647   ac_path_FGREP_found=false
11648   # Loop through the user's path and test for each of PROGNAME-LIST
11649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11651 do
11652   IFS=$as_save_IFS
11653   test -z "$as_dir" && as_dir=.
11654     for ac_prog in fgrep; do
11655     for ac_exec_ext in '' $ac_executable_extensions; do
11656       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11657       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11658 # Check for GNU ac_path_FGREP and select it if it is found.
11659   # Check for GNU $ac_path_FGREP
11660 case `"$ac_path_FGREP" --version 2>&1` in
11661 *GNU*)
11662   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11663 *)
11664   ac_count=0
11665   $as_echo_n 0123456789 >"conftest.in"
11666   while :
11667   do
11668     cat "conftest.in" "conftest.in" >"conftest.tmp"
11669     mv "conftest.tmp" "conftest.in"
11670     cp "conftest.in" "conftest.nl"
11671     $as_echo 'FGREP' >> "conftest.nl"
11672     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11673     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11674     as_fn_arith $ac_count + 1 && ac_count=$as_val
11675     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11676       # Best one so far, save it but keep looking for a better one
11677       ac_cv_path_FGREP="$ac_path_FGREP"
11678       ac_path_FGREP_max=$ac_count
11679     fi
11680     # 10*(2^10) chars as input seems more than enough
11681     test $ac_count -gt 10 && break
11682   done
11683   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11684 esac
11685
11686       $ac_path_FGREP_found && break 3
11687     done
11688   done
11689   done
11690 IFS=$as_save_IFS
11691   if test -z "$ac_cv_path_FGREP"; then
11692     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11693   fi
11694 else
11695   ac_cv_path_FGREP=$FGREP
11696 fi
11697
11698    fi
11699 fi
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11701 $as_echo "$ac_cv_path_FGREP" >&6; }
11702  FGREP="$ac_cv_path_FGREP"
11703
11704
11705 test -z "$GREP" && GREP=grep
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725 # Check whether --with-gnu-ld was given.
11726 if test "${with_gnu_ld+set}" = set; then :
11727   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11728 else
11729   with_gnu_ld=no
11730 fi
11731
11732 ac_prog=ld
11733 if test "$GCC" = yes; then
11734   # Check if gcc -print-prog-name=ld gives a path.
11735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11736 $as_echo_n "checking for ld used by $CC... " >&6; }
11737   case $host in
11738   *-*-mingw*)
11739     # gcc leaves a trailing carriage return which upsets mingw
11740     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11741   *)
11742     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11743   esac
11744   case $ac_prog in
11745     # Accept absolute paths.
11746     [\\/]* | ?:[\\/]*)
11747       re_direlt='/[^/][^/]*/\.\./'
11748       # Canonicalize the pathname of ld
11749       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11750       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11751         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11752       done
11753       test -z "$LD" && LD="$ac_prog"
11754       ;;
11755   "")
11756     # If it fails, then pretend we aren't using GCC.
11757     ac_prog=ld
11758     ;;
11759   *)
11760     # If it is relative, then search for the first ld in PATH.
11761     with_gnu_ld=unknown
11762     ;;
11763   esac
11764 elif test "$with_gnu_ld" = yes; then
11765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11766 $as_echo_n "checking for GNU ld... " >&6; }
11767 else
11768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11769 $as_echo_n "checking for non-GNU ld... " >&6; }
11770 fi
11771 if test "${lt_cv_path_LD+set}" = set; then :
11772   $as_echo_n "(cached) " >&6
11773 else
11774   if test -z "$LD"; then
11775   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11776   for ac_dir in $PATH; do
11777     IFS="$lt_save_ifs"
11778     test -z "$ac_dir" && ac_dir=.
11779     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11780       lt_cv_path_LD="$ac_dir/$ac_prog"
11781       # Check to see if the program is GNU ld.  I'd rather use --version,
11782       # but apparently some variants of GNU ld only accept -v.
11783       # Break only if it was the GNU/non-GNU ld that we prefer.
11784       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11785       *GNU* | *'with BFD'*)
11786         test "$with_gnu_ld" != no && break
11787         ;;
11788       *)
11789         test "$with_gnu_ld" != yes && break
11790         ;;
11791       esac
11792     fi
11793   done
11794   IFS="$lt_save_ifs"
11795 else
11796   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11797 fi
11798 fi
11799
11800 LD="$lt_cv_path_LD"
11801 if test -n "$LD"; then
11802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11803 $as_echo "$LD" >&6; }
11804 else
11805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11807 fi
11808 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11810 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11811 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11812   $as_echo_n "(cached) " >&6
11813 else
11814   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11815 case `$LD -v 2>&1 </dev/null` in
11816 *GNU* | *'with BFD'*)
11817   lt_cv_prog_gnu_ld=yes
11818   ;;
11819 *)
11820   lt_cv_prog_gnu_ld=no
11821   ;;
11822 esac
11823 fi
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11825 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11826 with_gnu_ld=$lt_cv_prog_gnu_ld
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11837 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11838 if test "${lt_cv_path_NM+set}" = set; then :
11839   $as_echo_n "(cached) " >&6
11840 else
11841   if test -n "$NM"; then
11842   # Let the user override the test.
11843   lt_cv_path_NM="$NM"
11844 else
11845   lt_nm_to_check="${ac_tool_prefix}nm"
11846   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11847     lt_nm_to_check="$lt_nm_to_check nm"
11848   fi
11849   for lt_tmp_nm in $lt_nm_to_check; do
11850     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11851     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11852       IFS="$lt_save_ifs"
11853       test -z "$ac_dir" && ac_dir=.
11854       tmp_nm="$ac_dir/$lt_tmp_nm"
11855       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11856         # Check to see if the nm accepts a BSD-compat flag.
11857         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11858         #   nm: unknown option "B" ignored
11859         # Tru64's nm complains that /dev/null is an invalid object file
11860         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11861         */dev/null* | *'Invalid file or object type'*)
11862           lt_cv_path_NM="$tmp_nm -B"
11863           break
11864           ;;
11865         *)
11866           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11867           */dev/null*)
11868             lt_cv_path_NM="$tmp_nm -p"
11869             break
11870             ;;
11871           *)
11872             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11873             continue # so that we can try to find one that supports BSD flags
11874             ;;
11875           esac
11876           ;;
11877         esac
11878       fi
11879     done
11880     IFS="$lt_save_ifs"
11881   done
11882   : ${lt_cv_path_NM=no}
11883 fi
11884 fi
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11886 $as_echo "$lt_cv_path_NM" >&6; }
11887 if test "$lt_cv_path_NM" != "no"; then
11888   NM="$lt_cv_path_NM"
11889 else
11890   # Didn't find any BSD compatible name lister, look for dumpbin.
11891   if test -n "$DUMPBIN"; then :
11892     # Let the user override the test.
11893   else
11894     if test -n "$ac_tool_prefix"; then
11895   for ac_prog in dumpbin "link -dump"
11896   do
11897     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11900 $as_echo_n "checking for $ac_word... " >&6; }
11901 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11902   $as_echo_n "(cached) " >&6
11903 else
11904   if test -n "$DUMPBIN"; then
11905   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11906 else
11907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908 for as_dir in $PATH
11909 do
11910   IFS=$as_save_IFS
11911   test -z "$as_dir" && as_dir=.
11912     for ac_exec_ext in '' $ac_executable_extensions; do
11913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11914     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11916     break 2
11917   fi
11918 done
11919   done
11920 IFS=$as_save_IFS
11921
11922 fi
11923 fi
11924 DUMPBIN=$ac_cv_prog_DUMPBIN
11925 if test -n "$DUMPBIN"; then
11926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11927 $as_echo "$DUMPBIN" >&6; }
11928 else
11929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930 $as_echo "no" >&6; }
11931 fi
11932
11933
11934     test -n "$DUMPBIN" && break
11935   done
11936 fi
11937 if test -z "$DUMPBIN"; then
11938   ac_ct_DUMPBIN=$DUMPBIN
11939   for ac_prog in dumpbin "link -dump"
11940 do
11941   # Extract the first word of "$ac_prog", so it can be a program name with args.
11942 set dummy $ac_prog; ac_word=$2
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944 $as_echo_n "checking for $ac_word... " >&6; }
11945 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11946   $as_echo_n "(cached) " >&6
11947 else
11948   if test -n "$ac_ct_DUMPBIN"; then
11949   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11950 else
11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952 for as_dir in $PATH
11953 do
11954   IFS=$as_save_IFS
11955   test -z "$as_dir" && as_dir=.
11956     for ac_exec_ext in '' $ac_executable_extensions; do
11957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11958     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11960     break 2
11961   fi
11962 done
11963   done
11964 IFS=$as_save_IFS
11965
11966 fi
11967 fi
11968 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11969 if test -n "$ac_ct_DUMPBIN"; then
11970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11971 $as_echo "$ac_ct_DUMPBIN" >&6; }
11972 else
11973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974 $as_echo "no" >&6; }
11975 fi
11976
11977
11978   test -n "$ac_ct_DUMPBIN" && break
11979 done
11980
11981   if test "x$ac_ct_DUMPBIN" = x; then
11982     DUMPBIN=":"
11983   else
11984     case $cross_compiling:$ac_tool_warned in
11985 yes:)
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11988 ac_tool_warned=yes ;;
11989 esac
11990     DUMPBIN=$ac_ct_DUMPBIN
11991   fi
11992 fi
11993
11994     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11995     *COFF*)
11996       DUMPBIN="$DUMPBIN -symbols"
11997       ;;
11998     *)
11999       DUMPBIN=:
12000       ;;
12001     esac
12002   fi
12003
12004   if test "$DUMPBIN" != ":"; then
12005     NM="$DUMPBIN"
12006   fi
12007 fi
12008 test -z "$NM" && NM=nm
12009
12010
12011
12012
12013
12014
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12016 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12017 if test "${lt_cv_nm_interface+set}" = set; then :
12018   $as_echo_n "(cached) " >&6
12019 else
12020   lt_cv_nm_interface="BSD nm"
12021   echo "int some_variable = 0;" > conftest.$ac_ext
12022   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12023   (eval "$ac_compile" 2>conftest.err)
12024   cat conftest.err >&5
12025   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12026   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12027   cat conftest.err >&5
12028   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12029   cat conftest.out >&5
12030   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12031     lt_cv_nm_interface="MS dumpbin"
12032   fi
12033   rm -f conftest*
12034 fi
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12036 $as_echo "$lt_cv_nm_interface" >&6; }
12037
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12039 $as_echo_n "checking whether ln -s works... " >&6; }
12040 LN_S=$as_ln_s
12041 if test "$LN_S" = "ln -s"; then
12042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12043 $as_echo "yes" >&6; }
12044 else
12045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12046 $as_echo "no, using $LN_S" >&6; }
12047 fi
12048
12049 # find the maximum length of command line arguments
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12051 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12052 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12053   $as_echo_n "(cached) " >&6
12054 else
12055     i=0
12056   teststring="ABCD"
12057
12058   case $build_os in
12059   msdosdjgpp*)
12060     # On DJGPP, this test can blow up pretty badly due to problems in libc
12061     # (any single argument exceeding 2000 bytes causes a buffer overrun
12062     # during glob expansion).  Even if it were fixed, the result of this
12063     # check would be larger than it should be.
12064     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12065     ;;
12066
12067   gnu*)
12068     # Under GNU Hurd, this test is not required because there is
12069     # no limit to the length of command line arguments.
12070     # Libtool will interpret -1 as no limit whatsoever
12071     lt_cv_sys_max_cmd_len=-1;
12072     ;;
12073
12074   cygwin* | mingw* | cegcc*)
12075     # On Win9x/ME, this test blows up -- it succeeds, but takes
12076     # about 5 minutes as the teststring grows exponentially.
12077     # Worse, since 9x/ME are not pre-emptively multitasking,
12078     # you end up with a "frozen" computer, even though with patience
12079     # the test eventually succeeds (with a max line length of 256k).
12080     # Instead, let's just punt: use the minimum linelength reported by
12081     # all of the supported platforms: 8192 (on NT/2K/XP).
12082     lt_cv_sys_max_cmd_len=8192;
12083     ;;
12084
12085   mint*)
12086     # On MiNT this can take a long time and run out of memory.
12087     lt_cv_sys_max_cmd_len=8192;
12088     ;;
12089
12090   amigaos*)
12091     # On AmigaOS with pdksh, this test takes hours, literally.
12092     # So we just punt and use a minimum line length of 8192.
12093     lt_cv_sys_max_cmd_len=8192;
12094     ;;
12095
12096   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12097     # This has been around since 386BSD, at least.  Likely further.
12098     if test -x /sbin/sysctl; then
12099       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12100     elif test -x /usr/sbin/sysctl; then
12101       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12102     else
12103       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12104     fi
12105     # And add a safety zone
12106     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12107     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12108     ;;
12109
12110   interix*)
12111     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12112     lt_cv_sys_max_cmd_len=196608
12113     ;;
12114
12115   osf*)
12116     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12117     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12118     # nice to cause kernel panics so lets avoid the loop below.
12119     # First set a reasonable default.
12120     lt_cv_sys_max_cmd_len=16384
12121     #
12122     if test -x /sbin/sysconfig; then
12123       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12124         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12125       esac
12126     fi
12127     ;;
12128   sco3.2v5*)
12129     lt_cv_sys_max_cmd_len=102400
12130     ;;
12131   sysv5* | sco5v6* | sysv4.2uw2*)
12132     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12133     if test -n "$kargmax"; then
12134       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12135     else
12136       lt_cv_sys_max_cmd_len=32768
12137     fi
12138     ;;
12139   *)
12140     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12141     if test -n "$lt_cv_sys_max_cmd_len"; then
12142       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12143       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12144     else
12145       # Make teststring a little bigger before we do anything with it.
12146       # a 1K string should be a reasonable start.
12147       for i in 1 2 3 4 5 6 7 8 ; do
12148         teststring=$teststring$teststring
12149       done
12150       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12151       # If test is not a shell built-in, we'll probably end up computing a
12152       # maximum length that is only half of the actual maximum length, but
12153       # we can't tell.
12154       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12155                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12156               test $i != 17 # 1/2 MB should be enough
12157       do
12158         i=`expr $i + 1`
12159         teststring=$teststring$teststring
12160       done
12161       # Only check the string length outside the loop.
12162       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12163       teststring=
12164       # Add a significant safety factor because C++ compilers can tack on
12165       # massive amounts of additional arguments before passing them to the
12166       # linker.  It appears as though 1/2 is a usable value.
12167       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12168     fi
12169     ;;
12170   esac
12171
12172 fi
12173
12174 if test -n $lt_cv_sys_max_cmd_len ; then
12175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12176 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12177 else
12178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12179 $as_echo "none" >&6; }
12180 fi
12181 max_cmd_len=$lt_cv_sys_max_cmd_len
12182
12183
12184
12185
12186
12187
12188 : ${CP="cp -f"}
12189 : ${MV="mv -f"}
12190 : ${RM="rm -f"}
12191
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12193 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12194 # Try some XSI features
12195 xsi_shell=no
12196 ( _lt_dummy="a/b/c"
12197   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12198       = c,a/b,, \
12199     && eval 'test $(( 1 + 1 )) -eq 2 \
12200     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12201   && xsi_shell=yes
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12203 $as_echo "$xsi_shell" >&6; }
12204
12205
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12207 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12208 lt_shell_append=no
12209 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12210     >/dev/null 2>&1 \
12211   && lt_shell_append=yes
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12213 $as_echo "$lt_shell_append" >&6; }
12214
12215
12216 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12217   lt_unset=unset
12218 else
12219   lt_unset=false
12220 fi
12221
12222
12223
12224
12225
12226 # test EBCDIC or ASCII
12227 case `echo X|tr X '\101'` in
12228  A) # ASCII based system
12229     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12230   lt_SP2NL='tr \040 \012'
12231   lt_NL2SP='tr \015\012 \040\040'
12232   ;;
12233  *) # EBCDIC based system
12234   lt_SP2NL='tr \100 \n'
12235   lt_NL2SP='tr \r\n \100\100'
12236   ;;
12237 esac
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12248 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12249 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12250   $as_echo_n "(cached) " >&6
12251 else
12252   lt_cv_ld_reload_flag='-r'
12253 fi
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12255 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12256 reload_flag=$lt_cv_ld_reload_flag
12257 case $reload_flag in
12258 "" | " "*) ;;
12259 *) reload_flag=" $reload_flag" ;;
12260 esac
12261 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12262 case $host_os in
12263   darwin*)
12264     if test "$GCC" = yes; then
12265       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12266     else
12267       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12268     fi
12269     ;;
12270 esac
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280 if test -n "$ac_tool_prefix"; then
12281   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12282 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12284 $as_echo_n "checking for $ac_word... " >&6; }
12285 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12286   $as_echo_n "(cached) " >&6
12287 else
12288   if test -n "$OBJDUMP"; then
12289   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12290 else
12291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12292 for as_dir in $PATH
12293 do
12294   IFS=$as_save_IFS
12295   test -z "$as_dir" && as_dir=.
12296     for ac_exec_ext in '' $ac_executable_extensions; do
12297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12298     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12300     break 2
12301   fi
12302 done
12303   done
12304 IFS=$as_save_IFS
12305
12306 fi
12307 fi
12308 OBJDUMP=$ac_cv_prog_OBJDUMP
12309 if test -n "$OBJDUMP"; then
12310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12311 $as_echo "$OBJDUMP" >&6; }
12312 else
12313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314 $as_echo "no" >&6; }
12315 fi
12316
12317
12318 fi
12319 if test -z "$ac_cv_prog_OBJDUMP"; then
12320   ac_ct_OBJDUMP=$OBJDUMP
12321   # Extract the first word of "objdump", so it can be a program name with args.
12322 set dummy objdump; ac_word=$2
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12324 $as_echo_n "checking for $ac_word... " >&6; }
12325 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12326   $as_echo_n "(cached) " >&6
12327 else
12328   if test -n "$ac_ct_OBJDUMP"; then
12329   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12330 else
12331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12332 for as_dir in $PATH
12333 do
12334   IFS=$as_save_IFS
12335   test -z "$as_dir" && as_dir=.
12336     for ac_exec_ext in '' $ac_executable_extensions; do
12337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12338     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12340     break 2
12341   fi
12342 done
12343   done
12344 IFS=$as_save_IFS
12345
12346 fi
12347 fi
12348 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12349 if test -n "$ac_ct_OBJDUMP"; then
12350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12351 $as_echo "$ac_ct_OBJDUMP" >&6; }
12352 else
12353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354 $as_echo "no" >&6; }
12355 fi
12356
12357   if test "x$ac_ct_OBJDUMP" = x; then
12358     OBJDUMP="false"
12359   else
12360     case $cross_compiling:$ac_tool_warned in
12361 yes:)
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12364 ac_tool_warned=yes ;;
12365 esac
12366     OBJDUMP=$ac_ct_OBJDUMP
12367   fi
12368 else
12369   OBJDUMP="$ac_cv_prog_OBJDUMP"
12370 fi
12371
12372 test -z "$OBJDUMP" && OBJDUMP=objdump
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12383 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12384 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12385   $as_echo_n "(cached) " >&6
12386 else
12387   lt_cv_file_magic_cmd='$MAGIC_CMD'
12388 lt_cv_file_magic_test_file=
12389 lt_cv_deplibs_check_method='unknown'
12390 # Need to set the preceding variable on all platforms that support
12391 # interlibrary dependencies.
12392 # 'none' -- dependencies not supported.
12393 # `unknown' -- same as none, but documents that we really don't know.
12394 # 'pass_all' -- all dependencies passed with no checks.
12395 # 'test_compile' -- check by making test program.
12396 # 'file_magic [[regex]]' -- check by looking for files in library path
12397 # which responds to the $file_magic_cmd with a given extended regex.
12398 # If you have `file' or equivalent on your system and you're not sure
12399 # whether `pass_all' will *always* work, you probably want this one.
12400
12401 case $host_os in
12402 aix[4-9]*)
12403   lt_cv_deplibs_check_method=pass_all
12404   ;;
12405
12406 beos*)
12407   lt_cv_deplibs_check_method=pass_all
12408   ;;
12409
12410 bsdi[45]*)
12411   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12412   lt_cv_file_magic_cmd='/usr/bin/file -L'
12413   lt_cv_file_magic_test_file=/shlib/libc.so
12414   ;;
12415
12416 cygwin*)
12417   # func_win32_libid is a shell function defined in ltmain.sh
12418   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12419   lt_cv_file_magic_cmd='func_win32_libid'
12420   ;;
12421
12422 mingw* | pw32*)
12423   # Base MSYS/MinGW do not provide the 'file' command needed by
12424   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12425   # unless we find 'file', for example because we are cross-compiling.
12426   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12427   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12428     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12429     lt_cv_file_magic_cmd='func_win32_libid'
12430   else
12431     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12432     lt_cv_file_magic_cmd='$OBJDUMP -f'
12433   fi
12434   ;;
12435
12436 cegcc*)
12437   # use the weaker test based on 'objdump'. See mingw*.
12438   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12439   lt_cv_file_magic_cmd='$OBJDUMP -f'
12440   ;;
12441
12442 darwin* | rhapsody*)
12443   lt_cv_deplibs_check_method=pass_all
12444   ;;
12445
12446 freebsd* | dragonfly*)
12447   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12448     case $host_cpu in
12449     i*86 )
12450       # Not sure whether the presence of OpenBSD here was a mistake.
12451       # Let's accept both of them until this is cleared up.
12452       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12453       lt_cv_file_magic_cmd=/usr/bin/file
12454       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12455       ;;
12456     esac
12457   else
12458     lt_cv_deplibs_check_method=pass_all
12459   fi
12460   ;;
12461
12462 gnu*)
12463   lt_cv_deplibs_check_method=pass_all
12464   ;;
12465
12466 haiku*)
12467   lt_cv_deplibs_check_method=pass_all
12468   ;;
12469
12470 hpux10.20* | hpux11*)
12471   lt_cv_file_magic_cmd=/usr/bin/file
12472   case $host_cpu in
12473   ia64*)
12474     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12475     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12476     ;;
12477   hppa*64*)
12478     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]'
12479     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12480     ;;
12481   *)
12482     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12483     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12484     ;;
12485   esac
12486   ;;
12487
12488 interix[3-9]*)
12489   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12490   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12491   ;;
12492
12493 irix5* | irix6* | nonstopux*)
12494   case $LD in
12495   *-32|*"-32 ") libmagic=32-bit;;
12496   *-n32|*"-n32 ") libmagic=N32;;
12497   *-64|*"-64 ") libmagic=64-bit;;
12498   *) libmagic=never-match;;
12499   esac
12500   lt_cv_deplibs_check_method=pass_all
12501   ;;
12502
12503 # This must be Linux ELF.
12504 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12505   lt_cv_deplibs_check_method=pass_all
12506   ;;
12507
12508 netbsd*)
12509   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12510     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12511   else
12512     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12513   fi
12514   ;;
12515
12516 newos6*)
12517   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12518   lt_cv_file_magic_cmd=/usr/bin/file
12519   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12520   ;;
12521
12522 *nto* | *qnx*)
12523   lt_cv_deplibs_check_method=pass_all
12524   ;;
12525
12526 openbsd*)
12527   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12528     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12529   else
12530     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12531   fi
12532   ;;
12533
12534 osf3* | osf4* | osf5*)
12535   lt_cv_deplibs_check_method=pass_all
12536   ;;
12537
12538 rdos*)
12539   lt_cv_deplibs_check_method=pass_all
12540   ;;
12541
12542 solaris*)
12543   lt_cv_deplibs_check_method=pass_all
12544   ;;
12545
12546 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12547   lt_cv_deplibs_check_method=pass_all
12548   ;;
12549
12550 sysv4 | sysv4.3*)
12551   case $host_vendor in
12552   motorola)
12553     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]'
12554     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12555     ;;
12556   ncr)
12557     lt_cv_deplibs_check_method=pass_all
12558     ;;
12559   sequent)
12560     lt_cv_file_magic_cmd='/bin/file'
12561     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12562     ;;
12563   sni)
12564     lt_cv_file_magic_cmd='/bin/file'
12565     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12566     lt_cv_file_magic_test_file=/lib/libc.so
12567     ;;
12568   siemens)
12569     lt_cv_deplibs_check_method=pass_all
12570     ;;
12571   pc)
12572     lt_cv_deplibs_check_method=pass_all
12573     ;;
12574   esac
12575   ;;
12576
12577 tpf*)
12578   lt_cv_deplibs_check_method=pass_all
12579   ;;
12580 esac
12581
12582 fi
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12584 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12585 file_magic_cmd=$lt_cv_file_magic_cmd
12586 deplibs_check_method=$lt_cv_deplibs_check_method
12587 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600 if test -n "$ac_tool_prefix"; then
12601   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12602 set dummy ${ac_tool_prefix}ar; ac_word=$2
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12604 $as_echo_n "checking for $ac_word... " >&6; }
12605 if test "${ac_cv_prog_AR+set}" = set; then :
12606   $as_echo_n "(cached) " >&6
12607 else
12608   if test -n "$AR"; then
12609   ac_cv_prog_AR="$AR" # Let the user override the test.
12610 else
12611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612 for as_dir in $PATH
12613 do
12614   IFS=$as_save_IFS
12615   test -z "$as_dir" && as_dir=.
12616     for ac_exec_ext in '' $ac_executable_extensions; do
12617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12618     ac_cv_prog_AR="${ac_tool_prefix}ar"
12619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12620     break 2
12621   fi
12622 done
12623   done
12624 IFS=$as_save_IFS
12625
12626 fi
12627 fi
12628 AR=$ac_cv_prog_AR
12629 if test -n "$AR"; then
12630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12631 $as_echo "$AR" >&6; }
12632 else
12633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12635 fi
12636
12637
12638 fi
12639 if test -z "$ac_cv_prog_AR"; then
12640   ac_ct_AR=$AR
12641   # Extract the first word of "ar", so it can be a program name with args.
12642 set dummy ar; ac_word=$2
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12644 $as_echo_n "checking for $ac_word... " >&6; }
12645 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12646   $as_echo_n "(cached) " >&6
12647 else
12648   if test -n "$ac_ct_AR"; then
12649   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12650 else
12651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12652 for as_dir in $PATH
12653 do
12654   IFS=$as_save_IFS
12655   test -z "$as_dir" && as_dir=.
12656     for ac_exec_ext in '' $ac_executable_extensions; do
12657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12658     ac_cv_prog_ac_ct_AR="ar"
12659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12660     break 2
12661   fi
12662 done
12663   done
12664 IFS=$as_save_IFS
12665
12666 fi
12667 fi
12668 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12669 if test -n "$ac_ct_AR"; then
12670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12671 $as_echo "$ac_ct_AR" >&6; }
12672 else
12673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12674 $as_echo "no" >&6; }
12675 fi
12676
12677   if test "x$ac_ct_AR" = x; then
12678     AR="false"
12679   else
12680     case $cross_compiling:$ac_tool_warned in
12681 yes:)
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12684 ac_tool_warned=yes ;;
12685 esac
12686     AR=$ac_ct_AR
12687   fi
12688 else
12689   AR="$ac_cv_prog_AR"
12690 fi
12691
12692 test -z "$AR" && AR=ar
12693 test -z "$AR_FLAGS" && AR_FLAGS=cru
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705 if test -n "$ac_tool_prefix"; then
12706   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12707 set dummy ${ac_tool_prefix}strip; ac_word=$2
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12709 $as_echo_n "checking for $ac_word... " >&6; }
12710 if test "${ac_cv_prog_STRIP+set}" = set; then :
12711   $as_echo_n "(cached) " >&6
12712 else
12713   if test -n "$STRIP"; then
12714   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12715 else
12716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717 for as_dir in $PATH
12718 do
12719   IFS=$as_save_IFS
12720   test -z "$as_dir" && as_dir=.
12721     for ac_exec_ext in '' $ac_executable_extensions; do
12722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12723     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12725     break 2
12726   fi
12727 done
12728   done
12729 IFS=$as_save_IFS
12730
12731 fi
12732 fi
12733 STRIP=$ac_cv_prog_STRIP
12734 if test -n "$STRIP"; then
12735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12736 $as_echo "$STRIP" >&6; }
12737 else
12738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739 $as_echo "no" >&6; }
12740 fi
12741
12742
12743 fi
12744 if test -z "$ac_cv_prog_STRIP"; then
12745   ac_ct_STRIP=$STRIP
12746   # Extract the first word of "strip", so it can be a program name with args.
12747 set dummy strip; ac_word=$2
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12749 $as_echo_n "checking for $ac_word... " >&6; }
12750 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12751   $as_echo_n "(cached) " >&6
12752 else
12753   if test -n "$ac_ct_STRIP"; then
12754   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12755 else
12756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12757 for as_dir in $PATH
12758 do
12759   IFS=$as_save_IFS
12760   test -z "$as_dir" && as_dir=.
12761     for ac_exec_ext in '' $ac_executable_extensions; do
12762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12763     ac_cv_prog_ac_ct_STRIP="strip"
12764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12765     break 2
12766   fi
12767 done
12768   done
12769 IFS=$as_save_IFS
12770
12771 fi
12772 fi
12773 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12774 if test -n "$ac_ct_STRIP"; then
12775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12776 $as_echo "$ac_ct_STRIP" >&6; }
12777 else
12778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12779 $as_echo "no" >&6; }
12780 fi
12781
12782   if test "x$ac_ct_STRIP" = x; then
12783     STRIP=":"
12784   else
12785     case $cross_compiling:$ac_tool_warned in
12786 yes:)
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12789 ac_tool_warned=yes ;;
12790 esac
12791     STRIP=$ac_ct_STRIP
12792   fi
12793 else
12794   STRIP="$ac_cv_prog_STRIP"
12795 fi
12796
12797 test -z "$STRIP" && STRIP=:
12798
12799
12800
12801
12802
12803
12804 if test -n "$ac_tool_prefix"; then
12805   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12806 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12808 $as_echo_n "checking for $ac_word... " >&6; }
12809 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12810   $as_echo_n "(cached) " >&6
12811 else
12812   if test -n "$RANLIB"; then
12813   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12814 else
12815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12816 for as_dir in $PATH
12817 do
12818   IFS=$as_save_IFS
12819   test -z "$as_dir" && as_dir=.
12820     for ac_exec_ext in '' $ac_executable_extensions; do
12821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12822     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12824     break 2
12825   fi
12826 done
12827   done
12828 IFS=$as_save_IFS
12829
12830 fi
12831 fi
12832 RANLIB=$ac_cv_prog_RANLIB
12833 if test -n "$RANLIB"; then
12834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12835 $as_echo "$RANLIB" >&6; }
12836 else
12837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12839 fi
12840
12841
12842 fi
12843 if test -z "$ac_cv_prog_RANLIB"; then
12844   ac_ct_RANLIB=$RANLIB
12845   # Extract the first word of "ranlib", so it can be a program name with args.
12846 set dummy ranlib; ac_word=$2
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12848 $as_echo_n "checking for $ac_word... " >&6; }
12849 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12850   $as_echo_n "(cached) " >&6
12851 else
12852   if test -n "$ac_ct_RANLIB"; then
12853   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12854 else
12855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856 for as_dir in $PATH
12857 do
12858   IFS=$as_save_IFS
12859   test -z "$as_dir" && as_dir=.
12860     for ac_exec_ext in '' $ac_executable_extensions; do
12861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12862     ac_cv_prog_ac_ct_RANLIB="ranlib"
12863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12864     break 2
12865   fi
12866 done
12867   done
12868 IFS=$as_save_IFS
12869
12870 fi
12871 fi
12872 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12873 if test -n "$ac_ct_RANLIB"; then
12874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12875 $as_echo "$ac_ct_RANLIB" >&6; }
12876 else
12877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878 $as_echo "no" >&6; }
12879 fi
12880
12881   if test "x$ac_ct_RANLIB" = x; then
12882     RANLIB=":"
12883   else
12884     case $cross_compiling:$ac_tool_warned in
12885 yes:)
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12888 ac_tool_warned=yes ;;
12889 esac
12890     RANLIB=$ac_ct_RANLIB
12891   fi
12892 else
12893   RANLIB="$ac_cv_prog_RANLIB"
12894 fi
12895
12896 test -z "$RANLIB" && RANLIB=:
12897
12898
12899
12900
12901
12902
12903 # Determine commands to create old-style static archives.
12904 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12905 old_postinstall_cmds='chmod 644 $oldlib'
12906 old_postuninstall_cmds=
12907
12908 if test -n "$RANLIB"; then
12909   case $host_os in
12910   openbsd*)
12911     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12912     ;;
12913   *)
12914     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12915     ;;
12916   esac
12917   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12918 fi
12919
12920 case $host_os in
12921   darwin*)
12922     lock_old_archive_extraction=yes ;;
12923   *)
12924     lock_old_archive_extraction=no ;;
12925 esac
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965 # If no C compiler was specified, use CC.
12966 LTCC=${LTCC-"$CC"}
12967
12968 # If no C compiler flags were specified, use CFLAGS.
12969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12970
12971 # Allow CC to be a program name with arguments.
12972 compiler=$CC
12973
12974
12975 # Check for command to grab the raw symbol name followed by C symbol from nm.
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12977 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12978 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12979   $as_echo_n "(cached) " >&6
12980 else
12981
12982 # These are sane defaults that work on at least a few old systems.
12983 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12984
12985 # Character class describing NM global symbol codes.
12986 symcode='[BCDEGRST]'
12987
12988 # Regexp to match symbols that can be accessed directly from C.
12989 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12990
12991 # Define system-specific variables.
12992 case $host_os in
12993 aix*)
12994   symcode='[BCDT]'
12995   ;;
12996 cygwin* | mingw* | pw32* | cegcc*)
12997   symcode='[ABCDGISTW]'
12998   ;;
12999 hpux*)
13000   if test "$host_cpu" = ia64; then
13001     symcode='[ABCDEGRST]'
13002   fi
13003   ;;
13004 irix* | nonstopux*)
13005   symcode='[BCDEGRST]'
13006   ;;
13007 osf*)
13008   symcode='[BCDEGQRST]'
13009   ;;
13010 solaris*)
13011   symcode='[BDRT]'
13012   ;;
13013 sco3.2v5*)
13014   symcode='[DT]'
13015   ;;
13016 sysv4.2uw2*)
13017   symcode='[DT]'
13018   ;;
13019 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13020   symcode='[ABDT]'
13021   ;;
13022 sysv4)
13023   symcode='[DFNSTU]'
13024   ;;
13025 esac
13026
13027 # If we're using GNU nm, then use its standard symbol codes.
13028 case `$NM -V 2>&1` in
13029 *GNU* | *'with BFD'*)
13030   symcode='[ABCDGIRSTW]' ;;
13031 esac
13032
13033 # Transform an extracted symbol line into a proper C declaration.
13034 # Some systems (esp. on ia64) link data and code symbols differently,
13035 # so use this general approach.
13036 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13037
13038 # Transform an extracted symbol line into symbol name and symbol address
13039 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13040 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'"
13041
13042 # Handle CRLF in mingw tool chain
13043 opt_cr=
13044 case $build_os in
13045 mingw*)
13046   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13047   ;;
13048 esac
13049
13050 # Try without a prefix underscore, then with it.
13051 for ac_symprfx in "" "_"; do
13052
13053   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13054   symxfrm="\\1 $ac_symprfx\\2 \\2"
13055
13056   # Write the raw and C identifiers.
13057   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13058     # Fake it for dumpbin and say T for any non-static function
13059     # and D for any global variable.
13060     # Also find C++ and __fastcall symbols from MSVC++,
13061     # which start with @ or ?.
13062     lt_cv_sys_global_symbol_pipe="$AWK '"\
13063 "     {last_section=section; section=\$ 3};"\
13064 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13065 "     \$ 0!~/External *\|/{next};"\
13066 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13067 "     {if(hide[section]) next};"\
13068 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13069 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13070 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13071 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13072 "     ' prfx=^$ac_symprfx"
13073   else
13074     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13075   fi
13076
13077   # Check to see that the pipe works correctly.
13078   pipe_works=no
13079
13080   rm -f conftest*
13081   cat > conftest.$ac_ext <<_LT_EOF
13082 #ifdef __cplusplus
13083 extern "C" {
13084 #endif
13085 char nm_test_var;
13086 void nm_test_func(void);
13087 void nm_test_func(void){}
13088 #ifdef __cplusplus
13089 }
13090 #endif
13091 int main(){nm_test_var='a';nm_test_func();return(0);}
13092 _LT_EOF
13093
13094   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13095   (eval $ac_compile) 2>&5
13096   ac_status=$?
13097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13098   test $ac_status = 0; }; then
13099     # Now try to grab the symbols.
13100     nlist=conftest.nm
13101     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13102   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13103   ac_status=$?
13104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13105   test $ac_status = 0; } && test -s "$nlist"; then
13106       # Try sorting and uniquifying the output.
13107       if sort "$nlist" | uniq > "$nlist"T; then
13108         mv -f "$nlist"T "$nlist"
13109       else
13110         rm -f "$nlist"T
13111       fi
13112
13113       # Make sure that we snagged all the symbols we need.
13114       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13115         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13116           cat <<_LT_EOF > conftest.$ac_ext
13117 #ifdef __cplusplus
13118 extern "C" {
13119 #endif
13120
13121 _LT_EOF
13122           # Now generate the symbol file.
13123           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13124
13125           cat <<_LT_EOF >> conftest.$ac_ext
13126
13127 /* The mapping between symbol names and symbols.  */
13128 const struct {
13129   const char *name;
13130   void       *address;
13131 }
13132 lt__PROGRAM__LTX_preloaded_symbols[] =
13133 {
13134   { "@PROGRAM@", (void *) 0 },
13135 _LT_EOF
13136           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13137           cat <<\_LT_EOF >> conftest.$ac_ext
13138   {0, (void *) 0}
13139 };
13140
13141 /* This works around a problem in FreeBSD linker */
13142 #ifdef FREEBSD_WORKAROUND
13143 static const void *lt_preloaded_setup() {
13144   return lt__PROGRAM__LTX_preloaded_symbols;
13145 }
13146 #endif
13147
13148 #ifdef __cplusplus
13149 }
13150 #endif
13151 _LT_EOF
13152           # Now try linking the two files.
13153           mv conftest.$ac_objext conftstm.$ac_objext
13154           lt_save_LIBS="$LIBS"
13155           lt_save_CFLAGS="$CFLAGS"
13156           LIBS="conftstm.$ac_objext"
13157           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13158           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13159   (eval $ac_link) 2>&5
13160   ac_status=$?
13161   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13162   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13163             pipe_works=yes
13164           fi
13165           LIBS="$lt_save_LIBS"
13166           CFLAGS="$lt_save_CFLAGS"
13167         else
13168           echo "cannot find nm_test_func in $nlist" >&5
13169         fi
13170       else
13171         echo "cannot find nm_test_var in $nlist" >&5
13172       fi
13173     else
13174       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13175     fi
13176   else
13177     echo "$progname: failed program was:" >&5
13178     cat conftest.$ac_ext >&5
13179   fi
13180   rm -rf conftest* conftst*
13181
13182   # Do not use the global_symbol_pipe unless it works.
13183   if test "$pipe_works" = yes; then
13184     break
13185   else
13186     lt_cv_sys_global_symbol_pipe=
13187   fi
13188 done
13189
13190 fi
13191
13192 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13193   lt_cv_sys_global_symbol_to_cdecl=
13194 fi
13195 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13197 $as_echo "failed" >&6; }
13198 else
13199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13200 $as_echo "ok" >&6; }
13201 fi
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224 # Check whether --enable-libtool-lock was given.
13225 if test "${enable_libtool_lock+set}" = set; then :
13226   enableval=$enable_libtool_lock;
13227 fi
13228
13229 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13230
13231 # Some flags need to be propagated to the compiler or linker for good
13232 # libtool support.
13233 case $host in
13234 ia64-*-hpux*)
13235   # Find out which ABI we are using.
13236   echo 'int i;' > conftest.$ac_ext
13237   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13238   (eval $ac_compile) 2>&5
13239   ac_status=$?
13240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13241   test $ac_status = 0; }; then
13242     case `/usr/bin/file conftest.$ac_objext` in
13243       *ELF-32*)
13244         HPUX_IA64_MODE="32"
13245         ;;
13246       *ELF-64*)
13247         HPUX_IA64_MODE="64"
13248         ;;
13249     esac
13250   fi
13251   rm -rf conftest*
13252   ;;
13253 *-*-irix6*)
13254   # Find out which ABI we are using.
13255   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13256   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13257   (eval $ac_compile) 2>&5
13258   ac_status=$?
13259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13260   test $ac_status = 0; }; then
13261     if test "$lt_cv_prog_gnu_ld" = yes; then
13262       case `/usr/bin/file conftest.$ac_objext` in
13263         *32-bit*)
13264           LD="${LD-ld} -melf32bsmip"
13265           ;;
13266         *N32*)
13267           LD="${LD-ld} -melf32bmipn32"
13268           ;;
13269         *64-bit*)
13270           LD="${LD-ld} -melf64bmip"
13271         ;;
13272       esac
13273     else
13274       case `/usr/bin/file conftest.$ac_objext` in
13275         *32-bit*)
13276           LD="${LD-ld} -32"
13277           ;;
13278         *N32*)
13279           LD="${LD-ld} -n32"
13280           ;;
13281         *64-bit*)
13282           LD="${LD-ld} -64"
13283           ;;
13284       esac
13285     fi
13286   fi
13287   rm -rf conftest*
13288   ;;
13289
13290 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13291 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13292   # Find out which ABI we are using.
13293   echo 'int i;' > conftest.$ac_ext
13294   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13295   (eval $ac_compile) 2>&5
13296   ac_status=$?
13297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13298   test $ac_status = 0; }; then
13299     case `/usr/bin/file conftest.o` in
13300       *32-bit*)
13301         case $host in
13302           x86_64-*kfreebsd*-gnu)
13303             LD="${LD-ld} -m elf_i386_fbsd"
13304             ;;
13305           x86_64-*linux*)
13306             LD="${LD-ld} -m elf_i386"
13307             ;;
13308           ppc64-*linux*|powerpc64-*linux*)
13309             LD="${LD-ld} -m elf32ppclinux"
13310             ;;
13311           s390x-*linux*)
13312             LD="${LD-ld} -m elf_s390"
13313             ;;
13314           sparc64-*linux*)
13315             LD="${LD-ld} -m elf32_sparc"
13316             ;;
13317         esac
13318         ;;
13319       *64-bit*)
13320         case $host in
13321           x86_64-*kfreebsd*-gnu)
13322             LD="${LD-ld} -m elf_x86_64_fbsd"
13323             ;;
13324           x86_64-*linux*)
13325             LD="${LD-ld} -m elf_x86_64"
13326             ;;
13327           ppc*-*linux*|powerpc*-*linux*)
13328             LD="${LD-ld} -m elf64ppc"
13329             ;;
13330           s390*-*linux*|s390*-*tpf*)
13331             LD="${LD-ld} -m elf64_s390"
13332             ;;
13333           sparc*-*linux*)
13334             LD="${LD-ld} -m elf64_sparc"
13335             ;;
13336         esac
13337         ;;
13338     esac
13339   fi
13340   rm -rf conftest*
13341   ;;
13342
13343 *-*-sco3.2v5*)
13344   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13345   SAVE_CFLAGS="$CFLAGS"
13346   CFLAGS="$CFLAGS -belf"
13347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13348 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13349 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13350   $as_echo_n "(cached) " >&6
13351 else
13352   ac_ext=c
13353 ac_cpp='$CPP $CPPFLAGS'
13354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13357
13358      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h.  */
13360
13361 int
13362 main ()
13363 {
13364
13365   ;
13366   return 0;
13367 }
13368 _ACEOF
13369 if ac_fn_c_try_link "$LINENO"; then :
13370   lt_cv_cc_needs_belf=yes
13371 else
13372   lt_cv_cc_needs_belf=no
13373 fi
13374 rm -f core conftest.err conftest.$ac_objext \
13375     conftest$ac_exeext conftest.$ac_ext
13376      ac_ext=c
13377 ac_cpp='$CPP $CPPFLAGS'
13378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13381
13382 fi
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13384 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13385   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13386     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13387     CFLAGS="$SAVE_CFLAGS"
13388   fi
13389   ;;
13390 sparc*-*solaris*)
13391   # Find out which ABI we are using.
13392   echo 'int i;' > conftest.$ac_ext
13393   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13394   (eval $ac_compile) 2>&5
13395   ac_status=$?
13396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13397   test $ac_status = 0; }; then
13398     case `/usr/bin/file conftest.o` in
13399     *64-bit*)
13400       case $lt_cv_prog_gnu_ld in
13401       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13402       *)
13403         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13404           LD="${LD-ld} -64"
13405         fi
13406         ;;
13407       esac
13408       ;;
13409     esac
13410   fi
13411   rm -rf conftest*
13412   ;;
13413 esac
13414
13415 need_locks="$enable_libtool_lock"
13416
13417
13418   case $host_os in
13419     rhapsody* | darwin*)
13420     if test -n "$ac_tool_prefix"; then
13421   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13422 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13424 $as_echo_n "checking for $ac_word... " >&6; }
13425 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13426   $as_echo_n "(cached) " >&6
13427 else
13428   if test -n "$DSYMUTIL"; then
13429   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13430 else
13431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13432 for as_dir in $PATH
13433 do
13434   IFS=$as_save_IFS
13435   test -z "$as_dir" && as_dir=.
13436     for ac_exec_ext in '' $ac_executable_extensions; do
13437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13438     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13440     break 2
13441   fi
13442 done
13443   done
13444 IFS=$as_save_IFS
13445
13446 fi
13447 fi
13448 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13449 if test -n "$DSYMUTIL"; then
13450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13451 $as_echo "$DSYMUTIL" >&6; }
13452 else
13453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454 $as_echo "no" >&6; }
13455 fi
13456
13457
13458 fi
13459 if test -z "$ac_cv_prog_DSYMUTIL"; then
13460   ac_ct_DSYMUTIL=$DSYMUTIL
13461   # Extract the first word of "dsymutil", so it can be a program name with args.
13462 set dummy dsymutil; ac_word=$2
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13464 $as_echo_n "checking for $ac_word... " >&6; }
13465 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13466   $as_echo_n "(cached) " >&6
13467 else
13468   if test -n "$ac_ct_DSYMUTIL"; then
13469   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13470 else
13471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13472 for as_dir in $PATH
13473 do
13474   IFS=$as_save_IFS
13475   test -z "$as_dir" && as_dir=.
13476     for ac_exec_ext in '' $ac_executable_extensions; do
13477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13478     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13480     break 2
13481   fi
13482 done
13483   done
13484 IFS=$as_save_IFS
13485
13486 fi
13487 fi
13488 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13489 if test -n "$ac_ct_DSYMUTIL"; then
13490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13491 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13492 else
13493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13494 $as_echo "no" >&6; }
13495 fi
13496
13497   if test "x$ac_ct_DSYMUTIL" = x; then
13498     DSYMUTIL=":"
13499   else
13500     case $cross_compiling:$ac_tool_warned in
13501 yes:)
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13504 ac_tool_warned=yes ;;
13505 esac
13506     DSYMUTIL=$ac_ct_DSYMUTIL
13507   fi
13508 else
13509   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13510 fi
13511
13512     if test -n "$ac_tool_prefix"; then
13513   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13514 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13516 $as_echo_n "checking for $ac_word... " >&6; }
13517 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13518   $as_echo_n "(cached) " >&6
13519 else
13520   if test -n "$NMEDIT"; then
13521   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13522 else
13523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13524 for as_dir in $PATH
13525 do
13526   IFS=$as_save_IFS
13527   test -z "$as_dir" && as_dir=.
13528     for ac_exec_ext in '' $ac_executable_extensions; do
13529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13530     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13532     break 2
13533   fi
13534 done
13535   done
13536 IFS=$as_save_IFS
13537
13538 fi
13539 fi
13540 NMEDIT=$ac_cv_prog_NMEDIT
13541 if test -n "$NMEDIT"; then
13542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13543 $as_echo "$NMEDIT" >&6; }
13544 else
13545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13546 $as_echo "no" >&6; }
13547 fi
13548
13549
13550 fi
13551 if test -z "$ac_cv_prog_NMEDIT"; then
13552   ac_ct_NMEDIT=$NMEDIT
13553   # Extract the first word of "nmedit", so it can be a program name with args.
13554 set dummy nmedit; ac_word=$2
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13556 $as_echo_n "checking for $ac_word... " >&6; }
13557 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13558   $as_echo_n "(cached) " >&6
13559 else
13560   if test -n "$ac_ct_NMEDIT"; then
13561   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13562 else
13563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13564 for as_dir in $PATH
13565 do
13566   IFS=$as_save_IFS
13567   test -z "$as_dir" && as_dir=.
13568     for ac_exec_ext in '' $ac_executable_extensions; do
13569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13570     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13572     break 2
13573   fi
13574 done
13575   done
13576 IFS=$as_save_IFS
13577
13578 fi
13579 fi
13580 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13581 if test -n "$ac_ct_NMEDIT"; then
13582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13583 $as_echo "$ac_ct_NMEDIT" >&6; }
13584 else
13585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13586 $as_echo "no" >&6; }
13587 fi
13588
13589   if test "x$ac_ct_NMEDIT" = x; then
13590     NMEDIT=":"
13591   else
13592     case $cross_compiling:$ac_tool_warned in
13593 yes:)
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13596 ac_tool_warned=yes ;;
13597 esac
13598     NMEDIT=$ac_ct_NMEDIT
13599   fi
13600 else
13601   NMEDIT="$ac_cv_prog_NMEDIT"
13602 fi
13603
13604     if test -n "$ac_tool_prefix"; then
13605   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13606 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608 $as_echo_n "checking for $ac_word... " >&6; }
13609 if test "${ac_cv_prog_LIPO+set}" = set; then :
13610   $as_echo_n "(cached) " >&6
13611 else
13612   if test -n "$LIPO"; then
13613   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13614 else
13615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616 for as_dir in $PATH
13617 do
13618   IFS=$as_save_IFS
13619   test -z "$as_dir" && as_dir=.
13620     for ac_exec_ext in '' $ac_executable_extensions; do
13621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13622     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13624     break 2
13625   fi
13626 done
13627   done
13628 IFS=$as_save_IFS
13629
13630 fi
13631 fi
13632 LIPO=$ac_cv_prog_LIPO
13633 if test -n "$LIPO"; then
13634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13635 $as_echo "$LIPO" >&6; }
13636 else
13637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13638 $as_echo "no" >&6; }
13639 fi
13640
13641
13642 fi
13643 if test -z "$ac_cv_prog_LIPO"; then
13644   ac_ct_LIPO=$LIPO
13645   # Extract the first word of "lipo", so it can be a program name with args.
13646 set dummy lipo; ac_word=$2
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13648 $as_echo_n "checking for $ac_word... " >&6; }
13649 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13650   $as_echo_n "(cached) " >&6
13651 else
13652   if test -n "$ac_ct_LIPO"; then
13653   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13654 else
13655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13656 for as_dir in $PATH
13657 do
13658   IFS=$as_save_IFS
13659   test -z "$as_dir" && as_dir=.
13660     for ac_exec_ext in '' $ac_executable_extensions; do
13661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13662     ac_cv_prog_ac_ct_LIPO="lipo"
13663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13664     break 2
13665   fi
13666 done
13667   done
13668 IFS=$as_save_IFS
13669
13670 fi
13671 fi
13672 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13673 if test -n "$ac_ct_LIPO"; then
13674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13675 $as_echo "$ac_ct_LIPO" >&6; }
13676 else
13677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13678 $as_echo "no" >&6; }
13679 fi
13680
13681   if test "x$ac_ct_LIPO" = x; then
13682     LIPO=":"
13683   else
13684     case $cross_compiling:$ac_tool_warned in
13685 yes:)
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13688 ac_tool_warned=yes ;;
13689 esac
13690     LIPO=$ac_ct_LIPO
13691   fi
13692 else
13693   LIPO="$ac_cv_prog_LIPO"
13694 fi
13695
13696     if test -n "$ac_tool_prefix"; then
13697   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13698 set dummy ${ac_tool_prefix}otool; ac_word=$2
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13700 $as_echo_n "checking for $ac_word... " >&6; }
13701 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13702   $as_echo_n "(cached) " >&6
13703 else
13704   if test -n "$OTOOL"; then
13705   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13706 else
13707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13708 for as_dir in $PATH
13709 do
13710   IFS=$as_save_IFS
13711   test -z "$as_dir" && as_dir=.
13712     for ac_exec_ext in '' $ac_executable_extensions; do
13713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13714     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13716     break 2
13717   fi
13718 done
13719   done
13720 IFS=$as_save_IFS
13721
13722 fi
13723 fi
13724 OTOOL=$ac_cv_prog_OTOOL
13725 if test -n "$OTOOL"; then
13726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13727 $as_echo "$OTOOL" >&6; }
13728 else
13729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13730 $as_echo "no" >&6; }
13731 fi
13732
13733
13734 fi
13735 if test -z "$ac_cv_prog_OTOOL"; then
13736   ac_ct_OTOOL=$OTOOL
13737   # Extract the first word of "otool", so it can be a program name with args.
13738 set dummy otool; ac_word=$2
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13740 $as_echo_n "checking for $ac_word... " >&6; }
13741 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13742   $as_echo_n "(cached) " >&6
13743 else
13744   if test -n "$ac_ct_OTOOL"; then
13745   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13746 else
13747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13748 for as_dir in $PATH
13749 do
13750   IFS=$as_save_IFS
13751   test -z "$as_dir" && as_dir=.
13752     for ac_exec_ext in '' $ac_executable_extensions; do
13753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13754     ac_cv_prog_ac_ct_OTOOL="otool"
13755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13756     break 2
13757   fi
13758 done
13759   done
13760 IFS=$as_save_IFS
13761
13762 fi
13763 fi
13764 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13765 if test -n "$ac_ct_OTOOL"; then
13766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13767 $as_echo "$ac_ct_OTOOL" >&6; }
13768 else
13769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13770 $as_echo "no" >&6; }
13771 fi
13772
13773   if test "x$ac_ct_OTOOL" = x; then
13774     OTOOL=":"
13775   else
13776     case $cross_compiling:$ac_tool_warned in
13777 yes:)
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13780 ac_tool_warned=yes ;;
13781 esac
13782     OTOOL=$ac_ct_OTOOL
13783   fi
13784 else
13785   OTOOL="$ac_cv_prog_OTOOL"
13786 fi
13787
13788     if test -n "$ac_tool_prefix"; then
13789   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13790 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13792 $as_echo_n "checking for $ac_word... " >&6; }
13793 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13794   $as_echo_n "(cached) " >&6
13795 else
13796   if test -n "$OTOOL64"; then
13797   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13798 else
13799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13800 for as_dir in $PATH
13801 do
13802   IFS=$as_save_IFS
13803   test -z "$as_dir" && as_dir=.
13804     for ac_exec_ext in '' $ac_executable_extensions; do
13805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13806     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13808     break 2
13809   fi
13810 done
13811   done
13812 IFS=$as_save_IFS
13813
13814 fi
13815 fi
13816 OTOOL64=$ac_cv_prog_OTOOL64
13817 if test -n "$OTOOL64"; then
13818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13819 $as_echo "$OTOOL64" >&6; }
13820 else
13821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13822 $as_echo "no" >&6; }
13823 fi
13824
13825
13826 fi
13827 if test -z "$ac_cv_prog_OTOOL64"; then
13828   ac_ct_OTOOL64=$OTOOL64
13829   # Extract the first word of "otool64", so it can be a program name with args.
13830 set dummy otool64; ac_word=$2
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13832 $as_echo_n "checking for $ac_word... " >&6; }
13833 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13834   $as_echo_n "(cached) " >&6
13835 else
13836   if test -n "$ac_ct_OTOOL64"; then
13837   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13838 else
13839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13840 for as_dir in $PATH
13841 do
13842   IFS=$as_save_IFS
13843   test -z "$as_dir" && as_dir=.
13844     for ac_exec_ext in '' $ac_executable_extensions; do
13845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13846     ac_cv_prog_ac_ct_OTOOL64="otool64"
13847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13848     break 2
13849   fi
13850 done
13851   done
13852 IFS=$as_save_IFS
13853
13854 fi
13855 fi
13856 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13857 if test -n "$ac_ct_OTOOL64"; then
13858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13859 $as_echo "$ac_ct_OTOOL64" >&6; }
13860 else
13861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13862 $as_echo "no" >&6; }
13863 fi
13864
13865   if test "x$ac_ct_OTOOL64" = x; then
13866     OTOOL64=":"
13867   else
13868     case $cross_compiling:$ac_tool_warned in
13869 yes:)
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13872 ac_tool_warned=yes ;;
13873 esac
13874     OTOOL64=$ac_ct_OTOOL64
13875   fi
13876 else
13877   OTOOL64="$ac_cv_prog_OTOOL64"
13878 fi
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13907 $as_echo_n "checking for -single_module linker flag... " >&6; }
13908 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13909   $as_echo_n "(cached) " >&6
13910 else
13911   lt_cv_apple_cc_single_mod=no
13912       if test -z "${LT_MULTI_MODULE}"; then
13913         # By default we will add the -single_module flag. You can override
13914         # by either setting the environment variable LT_MULTI_MODULE
13915         # non-empty at configure time, or by adding -multi_module to the
13916         # link flags.
13917         rm -rf libconftest.dylib*
13918         echo "int foo(void){return 1;}" > conftest.c
13919         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13920 -dynamiclib -Wl,-single_module conftest.c" >&5
13921         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13922           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13923         _lt_result=$?
13924         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13925           lt_cv_apple_cc_single_mod=yes
13926         else
13927           cat conftest.err >&5
13928         fi
13929         rm -rf libconftest.dylib*
13930         rm -f conftest.*
13931       fi
13932 fi
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13934 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13936 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13937 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13938   $as_echo_n "(cached) " >&6
13939 else
13940   lt_cv_ld_exported_symbols_list=no
13941       save_LDFLAGS=$LDFLAGS
13942       echo "_main" > conftest.sym
13943       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13944       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13945 /* end confdefs.h.  */
13946
13947 int
13948 main ()
13949 {
13950
13951   ;
13952   return 0;
13953 }
13954 _ACEOF
13955 if ac_fn_c_try_link "$LINENO"; then :
13956   lt_cv_ld_exported_symbols_list=yes
13957 else
13958   lt_cv_ld_exported_symbols_list=no
13959 fi
13960 rm -f core conftest.err conftest.$ac_objext \
13961     conftest$ac_exeext conftest.$ac_ext
13962         LDFLAGS="$save_LDFLAGS"
13963
13964 fi
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13966 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13967     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13968 $as_echo_n "checking for -force_load linker flag... " >&6; }
13969 if test "${lt_cv_ld_force_load+set}" = set; then :
13970   $as_echo_n "(cached) " >&6
13971 else
13972   lt_cv_ld_force_load=no
13973       cat > conftest.c << _LT_EOF
13974 int forced_loaded() { return 2;}
13975 _LT_EOF
13976       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13977       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13978       echo "$AR cru libconftest.a conftest.o" >&5
13979       $AR cru libconftest.a conftest.o 2>&5
13980       cat > conftest.c << _LT_EOF
13981 int main() { return 0;}
13982 _LT_EOF
13983       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13984       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13985       _lt_result=$?
13986       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13987         lt_cv_ld_force_load=yes
13988       else
13989         cat conftest.err >&5
13990       fi
13991         rm -f conftest.err libconftest.a conftest conftest.c
13992         rm -rf conftest.dSYM
13993
13994 fi
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13996 $as_echo "$lt_cv_ld_force_load" >&6; }
13997     case $host_os in
13998     rhapsody* | darwin1.[012])
13999       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14000     darwin1.*)
14001       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14002     darwin*) # darwin 5.x on
14003       # if running on 10.5 or later, the deployment target defaults
14004       # to the OS version, if on x86, and 10.4, the deployment
14005       # target defaults to 10.4. Don't you love it?
14006       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14007         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14008           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14009         10.[012]*)
14010           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14011         10.*)
14012           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14013       esac
14014     ;;
14015   esac
14016     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14017       _lt_dar_single_mod='$single_module'
14018     fi
14019     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14020       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14021     else
14022       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14023     fi
14024     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14025       _lt_dsymutil='~$DSYMUTIL $lib || :'
14026     else
14027       _lt_dsymutil=
14028     fi
14029     ;;
14030   esac
14031
14032 for ac_header in dlfcn.h
14033 do :
14034   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14035 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14036   cat >>confdefs.h <<_ACEOF
14037 #define HAVE_DLFCN_H 1
14038 _ACEOF
14039
14040 fi
14041 done
14042
14043
14044
14045
14046
14047 # Set options
14048
14049
14050
14051         enable_dlopen=no
14052
14053
14054   enable_win32_dll=no
14055
14056
14057             # Check whether --enable-shared was given.
14058 if test "${enable_shared+set}" = set; then :
14059   enableval=$enable_shared; p=${PACKAGE-default}
14060     case $enableval in
14061     yes) enable_shared=yes ;;
14062     no) enable_shared=no ;;
14063     *)
14064       enable_shared=no
14065       # Look at the argument we got.  We use all the common list separators.
14066       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14067       for pkg in $enableval; do
14068         IFS="$lt_save_ifs"
14069         if test "X$pkg" = "X$p"; then
14070           enable_shared=yes
14071         fi
14072       done
14073       IFS="$lt_save_ifs"
14074       ;;
14075     esac
14076 else
14077   enable_shared=yes
14078 fi
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088   # Check whether --enable-static was given.
14089 if test "${enable_static+set}" = set; then :
14090   enableval=$enable_static; p=${PACKAGE-default}
14091     case $enableval in
14092     yes) enable_static=yes ;;
14093     no) enable_static=no ;;
14094     *)
14095      enable_static=no
14096       # Look at the argument we got.  We use all the common list separators.
14097       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14098       for pkg in $enableval; do
14099         IFS="$lt_save_ifs"
14100         if test "X$pkg" = "X$p"; then
14101           enable_static=yes
14102         fi
14103       done
14104       IFS="$lt_save_ifs"
14105       ;;
14106     esac
14107 else
14108   enable_static=yes
14109 fi
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120 # Check whether --with-pic was given.
14121 if test "${with_pic+set}" = set; then :
14122   withval=$with_pic; pic_mode="$withval"
14123 else
14124   pic_mode=default
14125 fi
14126
14127
14128 test -z "$pic_mode" && pic_mode=default
14129
14130
14131
14132
14133
14134
14135
14136   # Check whether --enable-fast-install was given.
14137 if test "${enable_fast_install+set}" = set; then :
14138   enableval=$enable_fast_install; p=${PACKAGE-default}
14139     case $enableval in
14140     yes) enable_fast_install=yes ;;
14141     no) enable_fast_install=no ;;
14142     *)
14143       enable_fast_install=no
14144       # Look at the argument we got.  We use all the common list separators.
14145       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14146       for pkg in $enableval; do
14147         IFS="$lt_save_ifs"
14148         if test "X$pkg" = "X$p"; then
14149           enable_fast_install=yes
14150         fi
14151       done
14152       IFS="$lt_save_ifs"
14153       ;;
14154     esac
14155 else
14156   enable_fast_install=yes
14157 fi
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169 # This can be used to rebuild libtool when needed
14170 LIBTOOL_DEPS="$ltmain"
14171
14172 # Always use our own libtool.
14173 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200 test -z "$LN_S" && LN_S="ln -s"
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215 if test -n "${ZSH_VERSION+set}" ; then
14216    setopt NO_GLOB_SUBST
14217 fi
14218
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14220 $as_echo_n "checking for objdir... " >&6; }
14221 if test "${lt_cv_objdir+set}" = set; then :
14222   $as_echo_n "(cached) " >&6
14223 else
14224   rm -f .libs 2>/dev/null
14225 mkdir .libs 2>/dev/null
14226 if test -d .libs; then
14227   lt_cv_objdir=.libs
14228 else
14229   # MS-DOS does not allow filenames that begin with a dot.
14230   lt_cv_objdir=_libs
14231 fi
14232 rmdir .libs 2>/dev/null
14233 fi
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14235 $as_echo "$lt_cv_objdir" >&6; }
14236 objdir=$lt_cv_objdir
14237
14238
14239
14240
14241
14242 cat >>confdefs.h <<_ACEOF
14243 #define LT_OBJDIR "$lt_cv_objdir/"
14244 _ACEOF
14245
14246
14247
14248
14249 case $host_os in
14250 aix3*)
14251   # AIX sometimes has problems with the GCC collect2 program.  For some
14252   # reason, if we set the COLLECT_NAMES environment variable, the problems
14253   # vanish in a puff of smoke.
14254   if test "X${COLLECT_NAMES+set}" != Xset; then
14255     COLLECT_NAMES=
14256     export COLLECT_NAMES
14257   fi
14258   ;;
14259 esac
14260
14261 # Global variables:
14262 ofile=libtool
14263 can_build_shared=yes
14264
14265 # All known linkers require a `.a' archive for static linking (except MSVC,
14266 # which needs '.lib').
14267 libext=a
14268
14269 with_gnu_ld="$lt_cv_prog_gnu_ld"
14270
14271 old_CC="$CC"
14272 old_CFLAGS="$CFLAGS"
14273
14274 # Set sane defaults for various variables
14275 test -z "$CC" && CC=cc
14276 test -z "$LTCC" && LTCC=$CC
14277 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14278 test -z "$LD" && LD=ld
14279 test -z "$ac_objext" && ac_objext=o
14280
14281 for cc_temp in $compiler""; do
14282   case $cc_temp in
14283     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14284     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14285     \-*) ;;
14286     *) break;;
14287   esac
14288 done
14289 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14290
14291
14292 # Only perform the check for file, if the check method requires it
14293 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14294 case $deplibs_check_method in
14295 file_magic*)
14296   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14298 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14299 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14300   $as_echo_n "(cached) " >&6
14301 else
14302   case $MAGIC_CMD in
14303 [\\/*] |  ?:[\\/]*)
14304   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14305   ;;
14306 *)
14307   lt_save_MAGIC_CMD="$MAGIC_CMD"
14308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14309   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14310   for ac_dir in $ac_dummy; do
14311     IFS="$lt_save_ifs"
14312     test -z "$ac_dir" && ac_dir=.
14313     if test -f $ac_dir/${ac_tool_prefix}file; then
14314       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14315       if test -n "$file_magic_test_file"; then
14316         case $deplibs_check_method in
14317         "file_magic "*)
14318           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14319           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14320           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14321             $EGREP "$file_magic_regex" > /dev/null; then
14322             :
14323           else
14324             cat <<_LT_EOF 1>&2
14325
14326 *** Warning: the command libtool uses to detect shared libraries,
14327 *** $file_magic_cmd, produces output that libtool cannot recognize.
14328 *** The result is that libtool may fail to recognize shared libraries
14329 *** as such.  This will affect the creation of libtool libraries that
14330 *** depend on shared libraries, but programs linked with such libtool
14331 *** libraries will work regardless of this problem.  Nevertheless, you
14332 *** may want to report the problem to your system manager and/or to
14333 *** bug-libtool@gnu.org
14334
14335 _LT_EOF
14336           fi ;;
14337         esac
14338       fi
14339       break
14340     fi
14341   done
14342   IFS="$lt_save_ifs"
14343   MAGIC_CMD="$lt_save_MAGIC_CMD"
14344   ;;
14345 esac
14346 fi
14347
14348 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14349 if test -n "$MAGIC_CMD"; then
14350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14351 $as_echo "$MAGIC_CMD" >&6; }
14352 else
14353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14354 $as_echo "no" >&6; }
14355 fi
14356
14357
14358
14359
14360
14361 if test -z "$lt_cv_path_MAGIC_CMD"; then
14362   if test -n "$ac_tool_prefix"; then
14363     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14364 $as_echo_n "checking for file... " >&6; }
14365 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14366   $as_echo_n "(cached) " >&6
14367 else
14368   case $MAGIC_CMD in
14369 [\\/*] |  ?:[\\/]*)
14370   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14371   ;;
14372 *)
14373   lt_save_MAGIC_CMD="$MAGIC_CMD"
14374   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14375   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14376   for ac_dir in $ac_dummy; do
14377     IFS="$lt_save_ifs"
14378     test -z "$ac_dir" && ac_dir=.
14379     if test -f $ac_dir/file; then
14380       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14381       if test -n "$file_magic_test_file"; then
14382         case $deplibs_check_method in
14383         "file_magic "*)
14384           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14385           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14386           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14387             $EGREP "$file_magic_regex" > /dev/null; then
14388             :
14389           else
14390             cat <<_LT_EOF 1>&2
14391
14392 *** Warning: the command libtool uses to detect shared libraries,
14393 *** $file_magic_cmd, produces output that libtool cannot recognize.
14394 *** The result is that libtool may fail to recognize shared libraries
14395 *** as such.  This will affect the creation of libtool libraries that
14396 *** depend on shared libraries, but programs linked with such libtool
14397 *** libraries will work regardless of this problem.  Nevertheless, you
14398 *** may want to report the problem to your system manager and/or to
14399 *** bug-libtool@gnu.org
14400
14401 _LT_EOF
14402           fi ;;
14403         esac
14404       fi
14405       break
14406     fi
14407   done
14408   IFS="$lt_save_ifs"
14409   MAGIC_CMD="$lt_save_MAGIC_CMD"
14410   ;;
14411 esac
14412 fi
14413
14414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14415 if test -n "$MAGIC_CMD"; then
14416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14417 $as_echo "$MAGIC_CMD" >&6; }
14418 else
14419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14420 $as_echo "no" >&6; }
14421 fi
14422
14423
14424   else
14425     MAGIC_CMD=:
14426   fi
14427 fi
14428
14429   fi
14430   ;;
14431 esac
14432
14433 # Use C for the default configuration in the libtool script
14434
14435 lt_save_CC="$CC"
14436 ac_ext=c
14437 ac_cpp='$CPP $CPPFLAGS'
14438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14441
14442
14443 # Source file extension for C test sources.
14444 ac_ext=c
14445
14446 # Object file extension for compiled C test sources.
14447 objext=o
14448 objext=$objext
14449
14450 # Code to be used in simple compile tests
14451 lt_simple_compile_test_code="int some_variable = 0;"
14452
14453 # Code to be used in simple link tests
14454 lt_simple_link_test_code='int main(){return(0);}'
14455
14456
14457
14458
14459
14460
14461
14462 # If no C compiler was specified, use CC.
14463 LTCC=${LTCC-"$CC"}
14464
14465 # If no C compiler flags were specified, use CFLAGS.
14466 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14467
14468 # Allow CC to be a program name with arguments.
14469 compiler=$CC
14470
14471 # Save the default compiler, since it gets overwritten when the other
14472 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14473 compiler_DEFAULT=$CC
14474
14475 # save warnings/boilerplate of simple test code
14476 ac_outfile=conftest.$ac_objext
14477 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14478 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14479 _lt_compiler_boilerplate=`cat conftest.err`
14480 $RM conftest*
14481
14482 ac_outfile=conftest.$ac_objext
14483 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14484 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14485 _lt_linker_boilerplate=`cat conftest.err`
14486 $RM -r conftest*
14487
14488
14489 ## CAVEAT EMPTOR:
14490 ## There is no encapsulation within the following macros, do not change
14491 ## the running order or otherwise move them around unless you know exactly
14492 ## what you are doing...
14493 if test -n "$compiler"; then
14494
14495 lt_prog_compiler_no_builtin_flag=
14496
14497 if test "$GCC" = yes; then
14498   case $cc_basename in
14499   nvcc*)
14500     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14501   *)
14502     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14503   esac
14504
14505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14506 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14507 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14508   $as_echo_n "(cached) " >&6
14509 else
14510   lt_cv_prog_compiler_rtti_exceptions=no
14511    ac_outfile=conftest.$ac_objext
14512    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14513    lt_compiler_flag="-fno-rtti -fno-exceptions"
14514    # Insert the option either (1) after the last *FLAGS variable, or
14515    # (2) before a word containing "conftest.", or (3) at the end.
14516    # Note that $ac_compile itself does not contain backslashes and begins
14517    # with a dollar sign (not a hyphen), so the echo should work correctly.
14518    # The option is referenced via a variable to avoid confusing sed.
14519    lt_compile=`echo "$ac_compile" | $SED \
14520    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14521    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14522    -e 's:$: $lt_compiler_flag:'`
14523    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14524    (eval "$lt_compile" 2>conftest.err)
14525    ac_status=$?
14526    cat conftest.err >&5
14527    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528    if (exit $ac_status) && test -s "$ac_outfile"; then
14529      # The compiler can only warn and ignore the option if not recognized
14530      # So say no if there are warnings other than the usual output.
14531      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14532      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14533      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14534        lt_cv_prog_compiler_rtti_exceptions=yes
14535      fi
14536    fi
14537    $RM conftest*
14538
14539 fi
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14541 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14542
14543 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14544     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14545 else
14546     :
14547 fi
14548
14549 fi
14550
14551
14552
14553
14554
14555
14556   lt_prog_compiler_wl=
14557 lt_prog_compiler_pic=
14558 lt_prog_compiler_static=
14559
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14561 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14562
14563   if test "$GCC" = yes; then
14564     lt_prog_compiler_wl='-Wl,'
14565     lt_prog_compiler_static='-static'
14566
14567     case $host_os in
14568       aix*)
14569       # All AIX code is PIC.
14570       if test "$host_cpu" = ia64; then
14571         # AIX 5 now supports IA64 processor
14572         lt_prog_compiler_static='-Bstatic'
14573       fi
14574       ;;
14575
14576     amigaos*)
14577       case $host_cpu in
14578       powerpc)
14579             # see comment about AmigaOS4 .so support
14580             lt_prog_compiler_pic='-fPIC'
14581         ;;
14582       m68k)
14583             # FIXME: we need at least 68020 code to build shared libraries, but
14584             # adding the `-m68020' flag to GCC prevents building anything better,
14585             # like `-m68040'.
14586             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14587         ;;
14588       esac
14589       ;;
14590
14591     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14592       # PIC is the default for these OSes.
14593       ;;
14594
14595     mingw* | cygwin* | pw32* | os2* | cegcc*)
14596       # This hack is so that the source file can tell whether it is being
14597       # built for inclusion in a dll (and should export symbols for example).
14598       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14599       # (--disable-auto-import) libraries
14600       lt_prog_compiler_pic='-DDLL_EXPORT'
14601       ;;
14602
14603     darwin* | rhapsody*)
14604       # PIC is the default on this platform
14605       # Common symbols not allowed in MH_DYLIB files
14606       lt_prog_compiler_pic='-fno-common'
14607       ;;
14608
14609     haiku*)
14610       # PIC is the default for Haiku.
14611       # The "-static" flag exists, but is broken.
14612       lt_prog_compiler_static=
14613       ;;
14614
14615     hpux*)
14616       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14617       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14618       # sets the default TLS model and affects inlining.
14619       case $host_cpu in
14620       hppa*64*)
14621         # +Z the default
14622         ;;
14623       *)
14624         lt_prog_compiler_pic='-fPIC'
14625         ;;
14626       esac
14627       ;;
14628
14629     interix[3-9]*)
14630       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14631       # Instead, we relocate shared libraries at runtime.
14632       ;;
14633
14634     msdosdjgpp*)
14635       # Just because we use GCC doesn't mean we suddenly get shared libraries
14636       # on systems that don't support them.
14637       lt_prog_compiler_can_build_shared=no
14638       enable_shared=no
14639       ;;
14640
14641     *nto* | *qnx*)
14642       # QNX uses GNU C++, but need to define -shared option too, otherwise
14643       # it will coredump.
14644       lt_prog_compiler_pic='-fPIC -shared'
14645       ;;
14646
14647     sysv4*MP*)
14648       if test -d /usr/nec; then
14649         lt_prog_compiler_pic=-Kconform_pic
14650       fi
14651       ;;
14652
14653     *)
14654       lt_prog_compiler_pic='-fPIC'
14655       ;;
14656     esac
14657
14658     case $cc_basename in
14659     nvcc*) # Cuda Compiler Driver 2.2
14660       lt_prog_compiler_wl='-Xlinker '
14661       lt_prog_compiler_pic='-Xcompiler -fPIC'
14662       ;;
14663     esac
14664   else
14665     # PORTME Check for flag to pass linker flags through the system compiler.
14666     case $host_os in
14667     aix*)
14668       lt_prog_compiler_wl='-Wl,'
14669       if test "$host_cpu" = ia64; then
14670         # AIX 5 now supports IA64 processor
14671         lt_prog_compiler_static='-Bstatic'
14672       else
14673         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14674       fi
14675       ;;
14676
14677     mingw* | cygwin* | pw32* | os2* | cegcc*)
14678       # This hack is so that the source file can tell whether it is being
14679       # built for inclusion in a dll (and should export symbols for example).
14680       lt_prog_compiler_pic='-DDLL_EXPORT'
14681       ;;
14682
14683     hpux9* | hpux10* | hpux11*)
14684       lt_prog_compiler_wl='-Wl,'
14685       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14686       # not for PA HP-UX.
14687       case $host_cpu in
14688       hppa*64*|ia64*)
14689         # +Z the default
14690         ;;
14691       *)
14692         lt_prog_compiler_pic='+Z'
14693         ;;
14694       esac
14695       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14696       lt_prog_compiler_static='${wl}-a ${wl}archive'
14697       ;;
14698
14699     irix5* | irix6* | nonstopux*)
14700       lt_prog_compiler_wl='-Wl,'
14701       # PIC (with -KPIC) is the default.
14702       lt_prog_compiler_static='-non_shared'
14703       ;;
14704
14705     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14706       case $cc_basename in
14707       # old Intel for x86_64 which still supported -KPIC.
14708       ecc*)
14709         lt_prog_compiler_wl='-Wl,'
14710         lt_prog_compiler_pic='-KPIC'
14711         lt_prog_compiler_static='-static'
14712         ;;
14713       # icc used to be incompatible with GCC.
14714       # ICC 10 doesn't accept -KPIC any more.
14715       icc* | ifort*)
14716         lt_prog_compiler_wl='-Wl,'
14717         lt_prog_compiler_pic='-fPIC'
14718         lt_prog_compiler_static='-static'
14719         ;;
14720       # Lahey Fortran 8.1.
14721       lf95*)
14722         lt_prog_compiler_wl='-Wl,'
14723         lt_prog_compiler_pic='--shared'
14724         lt_prog_compiler_static='--static'
14725         ;;
14726       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14727         # Portland Group compilers (*not* the Pentium gcc compiler,
14728         # which looks to be a dead project)
14729         lt_prog_compiler_wl='-Wl,'
14730         lt_prog_compiler_pic='-fpic'
14731         lt_prog_compiler_static='-Bstatic'
14732         ;;
14733       ccc*)
14734         lt_prog_compiler_wl='-Wl,'
14735         # All Alpha code is PIC.
14736         lt_prog_compiler_static='-non_shared'
14737         ;;
14738       xl* | bgxl* | bgf* | mpixl*)
14739         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14740         lt_prog_compiler_wl='-Wl,'
14741         lt_prog_compiler_pic='-qpic'
14742         lt_prog_compiler_static='-qstaticlink'
14743         ;;
14744       *)
14745         case `$CC -V 2>&1 | sed 5q` in
14746         *Sun\ F* | *Sun*Fortran*)
14747           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14748           lt_prog_compiler_pic='-KPIC'
14749           lt_prog_compiler_static='-Bstatic'
14750           lt_prog_compiler_wl=''
14751           ;;
14752         *Sun\ C*)
14753           # Sun C 5.9
14754           lt_prog_compiler_pic='-KPIC'
14755           lt_prog_compiler_static='-Bstatic'
14756           lt_prog_compiler_wl='-Wl,'
14757           ;;
14758         esac
14759         ;;
14760       esac
14761       ;;
14762
14763     newsos6)
14764       lt_prog_compiler_pic='-KPIC'
14765       lt_prog_compiler_static='-Bstatic'
14766       ;;
14767
14768     *nto* | *qnx*)
14769       # QNX uses GNU C++, but need to define -shared option too, otherwise
14770       # it will coredump.
14771       lt_prog_compiler_pic='-fPIC -shared'
14772       ;;
14773
14774     osf3* | osf4* | osf5*)
14775       lt_prog_compiler_wl='-Wl,'
14776       # All OSF/1 code is PIC.
14777       lt_prog_compiler_static='-non_shared'
14778       ;;
14779
14780     rdos*)
14781       lt_prog_compiler_static='-non_shared'
14782       ;;
14783
14784     solaris*)
14785       lt_prog_compiler_pic='-KPIC'
14786       lt_prog_compiler_static='-Bstatic'
14787       case $cc_basename in
14788       f77* | f90* | f95*)
14789         lt_prog_compiler_wl='-Qoption ld ';;
14790       *)
14791         lt_prog_compiler_wl='-Wl,';;
14792       esac
14793       ;;
14794
14795     sunos4*)
14796       lt_prog_compiler_wl='-Qoption ld '
14797       lt_prog_compiler_pic='-PIC'
14798       lt_prog_compiler_static='-Bstatic'
14799       ;;
14800
14801     sysv4 | sysv4.2uw2* | sysv4.3*)
14802       lt_prog_compiler_wl='-Wl,'
14803       lt_prog_compiler_pic='-KPIC'
14804       lt_prog_compiler_static='-Bstatic'
14805       ;;
14806
14807     sysv4*MP*)
14808       if test -d /usr/nec ;then
14809         lt_prog_compiler_pic='-Kconform_pic'
14810         lt_prog_compiler_static='-Bstatic'
14811       fi
14812       ;;
14813
14814     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14815       lt_prog_compiler_wl='-Wl,'
14816       lt_prog_compiler_pic='-KPIC'
14817       lt_prog_compiler_static='-Bstatic'
14818       ;;
14819
14820     unicos*)
14821       lt_prog_compiler_wl='-Wl,'
14822       lt_prog_compiler_can_build_shared=no
14823       ;;
14824
14825     uts4*)
14826       lt_prog_compiler_pic='-pic'
14827       lt_prog_compiler_static='-Bstatic'
14828       ;;
14829
14830     *)
14831       lt_prog_compiler_can_build_shared=no
14832       ;;
14833     esac
14834   fi
14835
14836 case $host_os in
14837   # For platforms which do not support PIC, -DPIC is meaningless:
14838   *djgpp*)
14839     lt_prog_compiler_pic=
14840     ;;
14841   *)
14842     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14843     ;;
14844 esac
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14846 $as_echo "$lt_prog_compiler_pic" >&6; }
14847
14848
14849
14850
14851
14852
14853 #
14854 # Check to make sure the PIC flag actually works.
14855 #
14856 if test -n "$lt_prog_compiler_pic"; then
14857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14858 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14859 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14860   $as_echo_n "(cached) " >&6
14861 else
14862   lt_cv_prog_compiler_pic_works=no
14863    ac_outfile=conftest.$ac_objext
14864    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14865    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14866    # Insert the option either (1) after the last *FLAGS variable, or
14867    # (2) before a word containing "conftest.", or (3) at the end.
14868    # Note that $ac_compile itself does not contain backslashes and begins
14869    # with a dollar sign (not a hyphen), so the echo should work correctly.
14870    # The option is referenced via a variable to avoid confusing sed.
14871    lt_compile=`echo "$ac_compile" | $SED \
14872    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14873    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14874    -e 's:$: $lt_compiler_flag:'`
14875    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14876    (eval "$lt_compile" 2>conftest.err)
14877    ac_status=$?
14878    cat conftest.err >&5
14879    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880    if (exit $ac_status) && test -s "$ac_outfile"; then
14881      # The compiler can only warn and ignore the option if not recognized
14882      # So say no if there are warnings other than the usual output.
14883      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14884      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14885      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14886        lt_cv_prog_compiler_pic_works=yes
14887      fi
14888    fi
14889    $RM conftest*
14890
14891 fi
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14893 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14894
14895 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14896     case $lt_prog_compiler_pic in
14897      "" | " "*) ;;
14898      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14899      esac
14900 else
14901     lt_prog_compiler_pic=
14902      lt_prog_compiler_can_build_shared=no
14903 fi
14904
14905 fi
14906
14907
14908
14909
14910
14911
14912 #
14913 # Check to make sure the static flag actually works.
14914 #
14915 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14917 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14918 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14919   $as_echo_n "(cached) " >&6
14920 else
14921   lt_cv_prog_compiler_static_works=no
14922    save_LDFLAGS="$LDFLAGS"
14923    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14924    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14925    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14926      # The linker can only warn and ignore the option if not recognized
14927      # So say no if there are warnings
14928      if test -s conftest.err; then
14929        # Append any errors to the config.log.
14930        cat conftest.err 1>&5
14931        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14932        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14933        if diff conftest.exp conftest.er2 >/dev/null; then
14934          lt_cv_prog_compiler_static_works=yes
14935        fi
14936      else
14937        lt_cv_prog_compiler_static_works=yes
14938      fi
14939    fi
14940    $RM -r conftest*
14941    LDFLAGS="$save_LDFLAGS"
14942
14943 fi
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14945 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14946
14947 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14948     :
14949 else
14950     lt_prog_compiler_static=
14951 fi
14952
14953
14954
14955
14956
14957
14958
14959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14960 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14961 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14962   $as_echo_n "(cached) " >&6
14963 else
14964   lt_cv_prog_compiler_c_o=no
14965    $RM -r conftest 2>/dev/null
14966    mkdir conftest
14967    cd conftest
14968    mkdir out
14969    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14970
14971    lt_compiler_flag="-o out/conftest2.$ac_objext"
14972    # Insert the option either (1) after the last *FLAGS variable, or
14973    # (2) before a word containing "conftest.", or (3) at the end.
14974    # Note that $ac_compile itself does not contain backslashes and begins
14975    # with a dollar sign (not a hyphen), so the echo should work correctly.
14976    lt_compile=`echo "$ac_compile" | $SED \
14977    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14978    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14979    -e 's:$: $lt_compiler_flag:'`
14980    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14981    (eval "$lt_compile" 2>out/conftest.err)
14982    ac_status=$?
14983    cat out/conftest.err >&5
14984    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14986    then
14987      # The compiler can only warn and ignore the option if not recognized
14988      # So say no if there are warnings
14989      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14990      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14991      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14992        lt_cv_prog_compiler_c_o=yes
14993      fi
14994    fi
14995    chmod u+w . 2>&5
14996    $RM conftest*
14997    # SGI C++ compiler will create directory out/ii_files/ for
14998    # template instantiation
14999    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15000    $RM out/* && rmdir out
15001    cd ..
15002    $RM -r conftest
15003    $RM conftest*
15004
15005 fi
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15007 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15008
15009
15010
15011
15012
15013
15014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15015 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15016 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15017   $as_echo_n "(cached) " >&6
15018 else
15019   lt_cv_prog_compiler_c_o=no
15020    $RM -r conftest 2>/dev/null
15021    mkdir conftest
15022    cd conftest
15023    mkdir out
15024    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15025
15026    lt_compiler_flag="-o out/conftest2.$ac_objext"
15027    # Insert the option either (1) after the last *FLAGS variable, or
15028    # (2) before a word containing "conftest.", or (3) at the end.
15029    # Note that $ac_compile itself does not contain backslashes and begins
15030    # with a dollar sign (not a hyphen), so the echo should work correctly.
15031    lt_compile=`echo "$ac_compile" | $SED \
15032    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15033    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15034    -e 's:$: $lt_compiler_flag:'`
15035    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15036    (eval "$lt_compile" 2>out/conftest.err)
15037    ac_status=$?
15038    cat out/conftest.err >&5
15039    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15041    then
15042      # The compiler can only warn and ignore the option if not recognized
15043      # So say no if there are warnings
15044      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15045      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15046      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15047        lt_cv_prog_compiler_c_o=yes
15048      fi
15049    fi
15050    chmod u+w . 2>&5
15051    $RM conftest*
15052    # SGI C++ compiler will create directory out/ii_files/ for
15053    # template instantiation
15054    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15055    $RM out/* && rmdir out
15056    cd ..
15057    $RM -r conftest
15058    $RM conftest*
15059
15060 fi
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15062 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15063
15064
15065
15066
15067 hard_links="nottested"
15068 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15069   # do not overwrite the value of need_locks provided by the user
15070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15071 $as_echo_n "checking if we can lock with hard links... " >&6; }
15072   hard_links=yes
15073   $RM conftest*
15074   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15075   touch conftest.a
15076   ln conftest.a conftest.b 2>&5 || hard_links=no
15077   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15079 $as_echo "$hard_links" >&6; }
15080   if test "$hard_links" = no; then
15081     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15082 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15083     need_locks=warn
15084   fi
15085 else
15086   need_locks=no
15087 fi
15088
15089
15090
15091
15092
15093
15094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15095 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15096
15097   runpath_var=
15098   allow_undefined_flag=
15099   always_export_symbols=no
15100   archive_cmds=
15101   archive_expsym_cmds=
15102   compiler_needs_object=no
15103   enable_shared_with_static_runtimes=no
15104   export_dynamic_flag_spec=
15105   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15106   hardcode_automatic=no
15107   hardcode_direct=no
15108   hardcode_direct_absolute=no
15109   hardcode_libdir_flag_spec=
15110   hardcode_libdir_flag_spec_ld=
15111   hardcode_libdir_separator=
15112   hardcode_minus_L=no
15113   hardcode_shlibpath_var=unsupported
15114   inherit_rpath=no
15115   link_all_deplibs=unknown
15116   module_cmds=
15117   module_expsym_cmds=
15118   old_archive_from_new_cmds=
15119   old_archive_from_expsyms_cmds=
15120   thread_safe_flag_spec=
15121   whole_archive_flag_spec=
15122   # include_expsyms should be a list of space-separated symbols to be *always*
15123   # included in the symbol list
15124   include_expsyms=
15125   # exclude_expsyms can be an extended regexp of symbols to exclude
15126   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15127   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15128   # as well as any symbol that contains `d'.
15129   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15130   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15131   # platforms (ab)use it in PIC code, but their linkers get confused if
15132   # the symbol is explicitly referenced.  Since portable code cannot
15133   # rely on this symbol name, it's probably fine to never include it in
15134   # preloaded symbol tables.
15135   # Exclude shared library initialization/finalization symbols.
15136   extract_expsyms_cmds=
15137
15138   case $host_os in
15139   cygwin* | mingw* | pw32* | cegcc*)
15140     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15141     # When not using gcc, we currently assume that we are using
15142     # Microsoft Visual C++.
15143     if test "$GCC" != yes; then
15144       with_gnu_ld=no
15145     fi
15146     ;;
15147   interix*)
15148     # we just hope/assume this is gcc and not c89 (= MSVC++)
15149     with_gnu_ld=yes
15150     ;;
15151   openbsd*)
15152     with_gnu_ld=no
15153     ;;
15154   esac
15155
15156   ld_shlibs=yes
15157
15158   # On some targets, GNU ld is compatible enough with the native linker
15159   # that we're better off using the native interface for both.
15160   lt_use_gnu_ld_interface=no
15161   if test "$with_gnu_ld" = yes; then
15162     case $host_os in
15163       aix*)
15164         # The AIX port of GNU ld has always aspired to compatibility
15165         # with the native linker.  However, as the warning in the GNU ld
15166         # block says, versions before 2.19.5* couldn't really create working
15167         # shared libraries, regardless of the interface used.
15168         case `$LD -v 2>&1` in
15169           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15170           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15171           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15172           *)
15173             lt_use_gnu_ld_interface=yes
15174             ;;
15175         esac
15176         ;;
15177       *)
15178         lt_use_gnu_ld_interface=yes
15179         ;;
15180     esac
15181   fi
15182
15183   if test "$lt_use_gnu_ld_interface" = yes; then
15184     # If archive_cmds runs LD, not CC, wlarc should be empty
15185     wlarc='${wl}'
15186
15187     # Set some defaults for GNU ld with shared library support. These
15188     # are reset later if shared libraries are not supported. Putting them
15189     # here allows them to be overridden if necessary.
15190     runpath_var=LD_RUN_PATH
15191     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15192     export_dynamic_flag_spec='${wl}--export-dynamic'
15193     # ancient GNU ld didn't support --whole-archive et. al.
15194     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15195       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15196     else
15197       whole_archive_flag_spec=
15198     fi
15199     supports_anon_versioning=no
15200     case `$LD -v 2>&1` in
15201       *GNU\ gold*) supports_anon_versioning=yes ;;
15202       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15203       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15204       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15205       *\ 2.11.*) ;; # other 2.11 versions
15206       *) supports_anon_versioning=yes ;;
15207     esac
15208
15209     # See if GNU ld supports shared libraries.
15210     case $host_os in
15211     aix[3-9]*)
15212       # On AIX/PPC, the GNU linker is very broken
15213       if test "$host_cpu" != ia64; then
15214         ld_shlibs=no
15215         cat <<_LT_EOF 1>&2
15216
15217 *** Warning: the GNU linker, at least up to release 2.19, is reported
15218 *** to be unable to reliably create shared libraries on AIX.
15219 *** Therefore, libtool is disabling shared libraries support.  If you
15220 *** really care for shared libraries, you may want to install binutils
15221 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15222 *** You will then need to restart the configuration process.
15223
15224 _LT_EOF
15225       fi
15226       ;;
15227
15228     amigaos*)
15229       case $host_cpu in
15230       powerpc)
15231             # see comment about AmigaOS4 .so support
15232             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15233             archive_expsym_cmds=''
15234         ;;
15235       m68k)
15236             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)'
15237             hardcode_libdir_flag_spec='-L$libdir'
15238             hardcode_minus_L=yes
15239         ;;
15240       esac
15241       ;;
15242
15243     beos*)
15244       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15245         allow_undefined_flag=unsupported
15246         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15247         # support --undefined.  This deserves some investigation.  FIXME
15248         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15249       else
15250         ld_shlibs=no
15251       fi
15252       ;;
15253
15254     cygwin* | mingw* | pw32* | cegcc*)
15255       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15256       # as there is no search path for DLLs.
15257       hardcode_libdir_flag_spec='-L$libdir'
15258       export_dynamic_flag_spec='${wl}--export-all-symbols'
15259       allow_undefined_flag=unsupported
15260       always_export_symbols=no
15261       enable_shared_with_static_runtimes=yes
15262       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15263
15264       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15265         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15266         # If the export-symbols file already is a .def file (1st line
15267         # is EXPORTS), use it as is; otherwise, prepend...
15268         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15269           cp $export_symbols $output_objdir/$soname.def;
15270         else
15271           echo EXPORTS > $output_objdir/$soname.def;
15272           cat $export_symbols >> $output_objdir/$soname.def;
15273         fi~
15274         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15275       else
15276         ld_shlibs=no
15277       fi
15278       ;;
15279
15280     haiku*)
15281       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15282       link_all_deplibs=yes
15283       ;;
15284
15285     interix[3-9]*)
15286       hardcode_direct=no
15287       hardcode_shlibpath_var=no
15288       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15289       export_dynamic_flag_spec='${wl}-E'
15290       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15291       # Instead, shared libraries are loaded at an image base (0x10000000 by
15292       # default) and relocated if they conflict, which is a slow very memory
15293       # consuming and fragmenting process.  To avoid this, we pick a random,
15294       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15295       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15296       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15297       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'
15298       ;;
15299
15300     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15301       tmp_diet=no
15302       if test "$host_os" = linux-dietlibc; then
15303         case $cc_basename in
15304           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15305         esac
15306       fi
15307       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15308          && test "$tmp_diet" = no
15309       then
15310         tmp_addflag=
15311         tmp_sharedflag='-shared'
15312         case $cc_basename,$host_cpu in
15313         pgcc*)                          # Portland Group C compiler
15314           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'
15315           tmp_addflag=' $pic_flag'
15316           ;;
15317         pgf77* | pgf90* | pgf95* | pgfortran*)
15318                                         # Portland Group f77 and f90 compilers
15319           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'
15320           tmp_addflag=' $pic_flag -Mnomain' ;;
15321         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15322           tmp_addflag=' -i_dynamic' ;;
15323         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15324           tmp_addflag=' -i_dynamic -nofor_main' ;;
15325         ifc* | ifort*)                  # Intel Fortran compiler
15326           tmp_addflag=' -nofor_main' ;;
15327         lf95*)                          # Lahey Fortran 8.1
15328           whole_archive_flag_spec=
15329           tmp_sharedflag='--shared' ;;
15330         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15331           tmp_sharedflag='-qmkshrobj'
15332           tmp_addflag= ;;
15333         nvcc*)  # Cuda Compiler Driver 2.2
15334           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'
15335           compiler_needs_object=yes
15336           ;;
15337         esac
15338         case `$CC -V 2>&1 | sed 5q` in
15339         *Sun\ C*)                       # Sun C 5.9
15340           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'
15341           compiler_needs_object=yes
15342           tmp_sharedflag='-G' ;;
15343         *Sun\ F*)                       # Sun Fortran 8.3
15344           tmp_sharedflag='-G' ;;
15345         esac
15346         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15347
15348         if test "x$supports_anon_versioning" = xyes; then
15349           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15350             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15351             echo "local: *; };" >> $output_objdir/$libname.ver~
15352             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15353         fi
15354
15355         case $cc_basename in
15356         xlf* | bgf* | bgxlf* | mpixlf*)
15357           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15358           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15359           hardcode_libdir_flag_spec=
15360           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15361           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15362           if test "x$supports_anon_versioning" = xyes; then
15363             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15364               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15365               echo "local: *; };" >> $output_objdir/$libname.ver~
15366               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15367           fi
15368           ;;
15369         esac
15370       else
15371         ld_shlibs=no
15372       fi
15373       ;;
15374
15375     netbsd*)
15376       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15377         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15378         wlarc=
15379       else
15380         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15381         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15382       fi
15383       ;;
15384
15385     solaris*)
15386       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15387         ld_shlibs=no
15388         cat <<_LT_EOF 1>&2
15389
15390 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15391 *** create shared libraries on Solaris systems.  Therefore, libtool
15392 *** is disabling shared libraries support.  We urge you to upgrade GNU
15393 *** binutils to release 2.9.1 or newer.  Another option is to modify
15394 *** your PATH or compiler configuration so that the native linker is
15395 *** used, and then restart.
15396
15397 _LT_EOF
15398       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15399         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15400         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15401       else
15402         ld_shlibs=no
15403       fi
15404       ;;
15405
15406     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15407       case `$LD -v 2>&1` in
15408         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15409         ld_shlibs=no
15410         cat <<_LT_EOF 1>&2
15411
15412 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15413 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15414 *** is disabling shared libraries support.  We urge you to upgrade GNU
15415 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15416 *** your PATH or compiler configuration so that the native linker is
15417 *** used, and then restart.
15418
15419 _LT_EOF
15420         ;;
15421         *)
15422           # For security reasons, it is highly recommended that you always
15423           # use absolute paths for naming shared libraries, and exclude the
15424           # DT_RUNPATH tag from executables and libraries.  But doing so
15425           # requires that you compile everything twice, which is a pain.
15426           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15427             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15428             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15429             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15430           else
15431             ld_shlibs=no
15432           fi
15433         ;;
15434       esac
15435       ;;
15436
15437     sunos4*)
15438       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15439       wlarc=
15440       hardcode_direct=yes
15441       hardcode_shlibpath_var=no
15442       ;;
15443
15444     *)
15445       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15446         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15447         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15448       else
15449         ld_shlibs=no
15450       fi
15451       ;;
15452     esac
15453
15454     if test "$ld_shlibs" = no; then
15455       runpath_var=
15456       hardcode_libdir_flag_spec=
15457       export_dynamic_flag_spec=
15458       whole_archive_flag_spec=
15459     fi
15460   else
15461     # PORTME fill in a description of your system's linker (not GNU ld)
15462     case $host_os in
15463     aix3*)
15464       allow_undefined_flag=unsupported
15465       always_export_symbols=yes
15466       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'
15467       # Note: this linker hardcodes the directories in LIBPATH if there
15468       # are no directories specified by -L.
15469       hardcode_minus_L=yes
15470       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15471         # Neither direct hardcoding nor static linking is supported with a
15472         # broken collect2.
15473         hardcode_direct=unsupported
15474       fi
15475       ;;
15476
15477     aix[4-9]*)
15478       if test "$host_cpu" = ia64; then
15479         # On IA64, the linker does run time linking by default, so we don't
15480         # have to do anything special.
15481         aix_use_runtimelinking=no
15482         exp_sym_flag='-Bexport'
15483         no_entry_flag=""
15484       else
15485         # If we're using GNU nm, then we don't want the "-C" option.
15486         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15487         # Also, AIX nm treats weak defined symbols like other global
15488         # defined symbols, whereas GNU nm marks them as "W".
15489         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15490           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'
15491         else
15492           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'
15493         fi
15494         aix_use_runtimelinking=no
15495
15496         # Test if we are trying to use run time linking or normal
15497         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15498         # need to do runtime linking.
15499         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15500           for ld_flag in $LDFLAGS; do
15501           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15502             aix_use_runtimelinking=yes
15503             break
15504           fi
15505           done
15506           ;;
15507         esac
15508
15509         exp_sym_flag='-bexport'
15510         no_entry_flag='-bnoentry'
15511       fi
15512
15513       # When large executables or shared objects are built, AIX ld can
15514       # have problems creating the table of contents.  If linking a library
15515       # or program results in "error TOC overflow" add -mminimal-toc to
15516       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15517       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15518
15519       archive_cmds=''
15520       hardcode_direct=yes
15521       hardcode_direct_absolute=yes
15522       hardcode_libdir_separator=':'
15523       link_all_deplibs=yes
15524       file_list_spec='${wl}-f,'
15525
15526       if test "$GCC" = yes; then
15527         case $host_os in aix4.[012]|aix4.[012].*)
15528         # We only want to do this on AIX 4.2 and lower, the check
15529         # below for broken collect2 doesn't work under 4.3+
15530           collect2name=`${CC} -print-prog-name=collect2`
15531           if test -f "$collect2name" &&
15532            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15533           then
15534           # We have reworked collect2
15535           :
15536           else
15537           # We have old collect2
15538           hardcode_direct=unsupported
15539           # It fails to find uninstalled libraries when the uninstalled
15540           # path is not listed in the libpath.  Setting hardcode_minus_L
15541           # to unsupported forces relinking
15542           hardcode_minus_L=yes
15543           hardcode_libdir_flag_spec='-L$libdir'
15544           hardcode_libdir_separator=
15545           fi
15546           ;;
15547         esac
15548         shared_flag='-shared'
15549         if test "$aix_use_runtimelinking" = yes; then
15550           shared_flag="$shared_flag "'${wl}-G'
15551         fi
15552       else
15553         # not using gcc
15554         if test "$host_cpu" = ia64; then
15555         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15556         # chokes on -Wl,-G. The following line is correct:
15557           shared_flag='-G'
15558         else
15559           if test "$aix_use_runtimelinking" = yes; then
15560             shared_flag='${wl}-G'
15561           else
15562             shared_flag='${wl}-bM:SRE'
15563           fi
15564         fi
15565       fi
15566
15567       export_dynamic_flag_spec='${wl}-bexpall'
15568       # It seems that -bexpall does not export symbols beginning with
15569       # underscore (_), so it is better to generate a list of symbols to export.
15570       always_export_symbols=yes
15571       if test "$aix_use_runtimelinking" = yes; then
15572         # Warning - without using the other runtime loading flags (-brtl),
15573         # -berok will link without error, but may produce a broken library.
15574         allow_undefined_flag='-berok'
15575         # Determine the default libpath from the value encoded in an
15576         # empty executable.
15577         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15578 /* end confdefs.h.  */
15579
15580 int
15581 main ()
15582 {
15583
15584   ;
15585   return 0;
15586 }
15587 _ACEOF
15588 if ac_fn_c_try_link "$LINENO"; then :
15589
15590 lt_aix_libpath_sed='
15591     /Import File Strings/,/^$/ {
15592         /^0/ {
15593             s/^0  *\(.*\)$/\1/
15594             p
15595         }
15596     }'
15597 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15598 # Check for a 64-bit object if we didn't find anything.
15599 if test -z "$aix_libpath"; then
15600   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15601 fi
15602 fi
15603 rm -f core conftest.err conftest.$ac_objext \
15604     conftest$ac_exeext conftest.$ac_ext
15605 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15606
15607         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15608         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"
15609       else
15610         if test "$host_cpu" = ia64; then
15611           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15612           allow_undefined_flag="-z nodefs"
15613           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"
15614         else
15615          # Determine the default libpath from the value encoded in an
15616          # empty executable.
15617          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15618 /* end confdefs.h.  */
15619
15620 int
15621 main ()
15622 {
15623
15624   ;
15625   return 0;
15626 }
15627 _ACEOF
15628 if ac_fn_c_try_link "$LINENO"; then :
15629
15630 lt_aix_libpath_sed='
15631     /Import File Strings/,/^$/ {
15632         /^0/ {
15633             s/^0  *\(.*\)$/\1/
15634             p
15635         }
15636     }'
15637 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15638 # Check for a 64-bit object if we didn't find anything.
15639 if test -z "$aix_libpath"; then
15640   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15641 fi
15642 fi
15643 rm -f core conftest.err conftest.$ac_objext \
15644     conftest$ac_exeext conftest.$ac_ext
15645 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15646
15647          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15648           # Warning - without using the other run time loading flags,
15649           # -berok will link without error, but may produce a broken library.
15650           no_undefined_flag=' ${wl}-bernotok'
15651           allow_undefined_flag=' ${wl}-berok'
15652           if test "$with_gnu_ld" = yes; then
15653             # We only use this code for GNU lds that support --whole-archive.
15654             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15655           else
15656             # Exported symbols can be pulled into shared objects from archives
15657             whole_archive_flag_spec='$convenience'
15658           fi
15659           archive_cmds_need_lc=yes
15660           # This is similar to how AIX traditionally builds its shared libraries.
15661           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'
15662         fi
15663       fi
15664       ;;
15665
15666     amigaos*)
15667       case $host_cpu in
15668       powerpc)
15669             # see comment about AmigaOS4 .so support
15670             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15671             archive_expsym_cmds=''
15672         ;;
15673       m68k)
15674             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)'
15675             hardcode_libdir_flag_spec='-L$libdir'
15676             hardcode_minus_L=yes
15677         ;;
15678       esac
15679       ;;
15680
15681     bsdi[45]*)
15682       export_dynamic_flag_spec=-rdynamic
15683       ;;
15684
15685     cygwin* | mingw* | pw32* | cegcc*)
15686       # When not using gcc, we currently assume that we are using
15687       # Microsoft Visual C++.
15688       # hardcode_libdir_flag_spec is actually meaningless, as there is
15689       # no search path for DLLs.
15690       hardcode_libdir_flag_spec=' '
15691       allow_undefined_flag=unsupported
15692       # Tell ltmain to make .lib files, not .a files.
15693       libext=lib
15694       # Tell ltmain to make .dll files, not .so files.
15695       shrext_cmds=".dll"
15696       # FIXME: Setting linknames here is a bad hack.
15697       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15698       # The linker will automatically build a .lib file if we build a DLL.
15699       old_archive_from_new_cmds='true'
15700       # FIXME: Should let the user specify the lib program.
15701       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15702       fix_srcfile_path='`cygpath -w "$srcfile"`'
15703       enable_shared_with_static_runtimes=yes
15704       ;;
15705
15706     darwin* | rhapsody*)
15707
15708
15709   archive_cmds_need_lc=no
15710   hardcode_direct=no
15711   hardcode_automatic=yes
15712   hardcode_shlibpath_var=unsupported
15713   if test "$lt_cv_ld_force_load" = "yes"; then
15714     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\"`'
15715   else
15716     whole_archive_flag_spec=''
15717   fi
15718   link_all_deplibs=yes
15719   allow_undefined_flag="$_lt_dar_allow_undefined"
15720   case $cc_basename in
15721      ifort*) _lt_dar_can_shared=yes ;;
15722      *) _lt_dar_can_shared=$GCC ;;
15723   esac
15724   if test "$_lt_dar_can_shared" = "yes"; then
15725     output_verbose_link_cmd=func_echo_all
15726     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15727     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15728     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}"
15729     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}"
15730
15731   else
15732   ld_shlibs=no
15733   fi
15734
15735       ;;
15736
15737     dgux*)
15738       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15739       hardcode_libdir_flag_spec='-L$libdir'
15740       hardcode_shlibpath_var=no
15741       ;;
15742
15743     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15744     # support.  Future versions do this automatically, but an explicit c++rt0.o
15745     # does not break anything, and helps significantly (at the cost of a little
15746     # extra space).
15747     freebsd2.2*)
15748       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15749       hardcode_libdir_flag_spec='-R$libdir'
15750       hardcode_direct=yes
15751       hardcode_shlibpath_var=no
15752       ;;
15753
15754     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15755     freebsd2*)
15756       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15757       hardcode_direct=yes
15758       hardcode_minus_L=yes
15759       hardcode_shlibpath_var=no
15760       ;;
15761
15762     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15763     freebsd* | dragonfly*)
15764       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15765       hardcode_libdir_flag_spec='-R$libdir'
15766       hardcode_direct=yes
15767       hardcode_shlibpath_var=no
15768       ;;
15769
15770     hpux9*)
15771       if test "$GCC" = yes; then
15772         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'
15773       else
15774         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'
15775       fi
15776       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15777       hardcode_libdir_separator=:
15778       hardcode_direct=yes
15779
15780       # hardcode_minus_L: Not really in the search PATH,
15781       # but as the default location of the library.
15782       hardcode_minus_L=yes
15783       export_dynamic_flag_spec='${wl}-E'
15784       ;;
15785
15786     hpux10*)
15787       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15788         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15789       else
15790         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15791       fi
15792       if test "$with_gnu_ld" = no; then
15793         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15794         hardcode_libdir_flag_spec_ld='+b $libdir'
15795         hardcode_libdir_separator=:
15796         hardcode_direct=yes
15797         hardcode_direct_absolute=yes
15798         export_dynamic_flag_spec='${wl}-E'
15799         # hardcode_minus_L: Not really in the search PATH,
15800         # but as the default location of the library.
15801         hardcode_minus_L=yes
15802       fi
15803       ;;
15804
15805     hpux11*)
15806       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15807         case $host_cpu in
15808         hppa*64*)
15809           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15810           ;;
15811         ia64*)
15812           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15813           ;;
15814         *)
15815           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15816           ;;
15817         esac
15818       else
15819         case $host_cpu in
15820         hppa*64*)
15821           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15822           ;;
15823         ia64*)
15824           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15825           ;;
15826         *)
15827
15828           # Older versions of the 11.00 compiler do not understand -b yet
15829           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15830           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15831 $as_echo_n "checking if $CC understands -b... " >&6; }
15832 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15833   $as_echo_n "(cached) " >&6
15834 else
15835   lt_cv_prog_compiler__b=no
15836    save_LDFLAGS="$LDFLAGS"
15837    LDFLAGS="$LDFLAGS -b"
15838    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15839    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15840      # The linker can only warn and ignore the option if not recognized
15841      # So say no if there are warnings
15842      if test -s conftest.err; then
15843        # Append any errors to the config.log.
15844        cat conftest.err 1>&5
15845        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15846        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15847        if diff conftest.exp conftest.er2 >/dev/null; then
15848          lt_cv_prog_compiler__b=yes
15849        fi
15850      else
15851        lt_cv_prog_compiler__b=yes
15852      fi
15853    fi
15854    $RM -r conftest*
15855    LDFLAGS="$save_LDFLAGS"
15856
15857 fi
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15859 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15860
15861 if test x"$lt_cv_prog_compiler__b" = xyes; then
15862     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15863 else
15864     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15865 fi
15866
15867           ;;
15868         esac
15869       fi
15870       if test "$with_gnu_ld" = no; then
15871         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15872         hardcode_libdir_separator=:
15873
15874         case $host_cpu in
15875         hppa*64*|ia64*)
15876           hardcode_direct=no
15877           hardcode_shlibpath_var=no
15878           ;;
15879         *)
15880           hardcode_direct=yes
15881           hardcode_direct_absolute=yes
15882           export_dynamic_flag_spec='${wl}-E'
15883
15884           # hardcode_minus_L: Not really in the search PATH,
15885           # but as the default location of the library.
15886           hardcode_minus_L=yes
15887           ;;
15888         esac
15889       fi
15890       ;;
15891
15892     irix5* | irix6* | nonstopux*)
15893       if test "$GCC" = yes; then
15894         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'
15895         # Try to use the -exported_symbol ld option, if it does not
15896         # work, assume that -exports_file does not work either and
15897         # implicitly export all symbols.
15898         save_LDFLAGS="$LDFLAGS"
15899         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15900         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901 /* end confdefs.h.  */
15902 int foo(void) {}
15903 _ACEOF
15904 if ac_fn_c_try_link "$LINENO"; then :
15905   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'
15906
15907 fi
15908 rm -f core conftest.err conftest.$ac_objext \
15909     conftest$ac_exeext conftest.$ac_ext
15910         LDFLAGS="$save_LDFLAGS"
15911       else
15912         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'
15913         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'
15914       fi
15915       archive_cmds_need_lc='no'
15916       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15917       hardcode_libdir_separator=:
15918       inherit_rpath=yes
15919       link_all_deplibs=yes
15920       ;;
15921
15922     netbsd*)
15923       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15924         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15925       else
15926         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15927       fi
15928       hardcode_libdir_flag_spec='-R$libdir'
15929       hardcode_direct=yes
15930       hardcode_shlibpath_var=no
15931       ;;
15932
15933     newsos6)
15934       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15935       hardcode_direct=yes
15936       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15937       hardcode_libdir_separator=:
15938       hardcode_shlibpath_var=no
15939       ;;
15940
15941     *nto* | *qnx*)
15942       ;;
15943
15944     openbsd*)
15945       if test -f /usr/libexec/ld.so; then
15946         hardcode_direct=yes
15947         hardcode_shlibpath_var=no
15948         hardcode_direct_absolute=yes
15949         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15950           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15951           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15952           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15953           export_dynamic_flag_spec='${wl}-E'
15954         else
15955           case $host_os in
15956            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15957              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15958              hardcode_libdir_flag_spec='-R$libdir'
15959              ;;
15960            *)
15961              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15962              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15963              ;;
15964           esac
15965         fi
15966       else
15967         ld_shlibs=no
15968       fi
15969       ;;
15970
15971     os2*)
15972       hardcode_libdir_flag_spec='-L$libdir'
15973       hardcode_minus_L=yes
15974       allow_undefined_flag=unsupported
15975       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'
15976       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15977       ;;
15978
15979     osf3*)
15980       if test "$GCC" = yes; then
15981         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15982         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'
15983       else
15984         allow_undefined_flag=' -expect_unresolved \*'
15985         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'
15986       fi
15987       archive_cmds_need_lc='no'
15988       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15989       hardcode_libdir_separator=:
15990       ;;
15991
15992     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15993       if test "$GCC" = yes; then
15994         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15995         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'
15996         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15997       else
15998         allow_undefined_flag=' -expect_unresolved \*'
15999         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'
16000         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~
16001         $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'
16002
16003         # Both c and cxx compiler support -rpath directly
16004         hardcode_libdir_flag_spec='-rpath $libdir'
16005       fi
16006       archive_cmds_need_lc='no'
16007       hardcode_libdir_separator=:
16008       ;;
16009
16010     solaris*)
16011       no_undefined_flag=' -z defs'
16012       if test "$GCC" = yes; then
16013         wlarc='${wl}'
16014         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16015         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16016           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16017       else
16018         case `$CC -V 2>&1` in
16019         *"Compilers 5.0"*)
16020           wlarc=''
16021           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16022           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16023           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16024           ;;
16025         *)
16026           wlarc='${wl}'
16027           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16028           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16029           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16030           ;;
16031         esac
16032       fi
16033       hardcode_libdir_flag_spec='-R$libdir'
16034       hardcode_shlibpath_var=no
16035       case $host_os in
16036       solaris2.[0-5] | solaris2.[0-5].*) ;;
16037       *)
16038         # The compiler driver will combine and reorder linker options,
16039         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16040         # but is careful enough not to reorder.
16041         # Supported since Solaris 2.6 (maybe 2.5.1?)
16042         if test "$GCC" = yes; then
16043           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16044         else
16045           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16046         fi
16047         ;;
16048       esac
16049       link_all_deplibs=yes
16050       ;;
16051
16052     sunos4*)
16053       if test "x$host_vendor" = xsequent; then
16054         # Use $CC to link under sequent, because it throws in some extra .o
16055         # files that make .init and .fini sections work.
16056         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16057       else
16058         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16059       fi
16060       hardcode_libdir_flag_spec='-L$libdir'
16061       hardcode_direct=yes
16062       hardcode_minus_L=yes
16063       hardcode_shlibpath_var=no
16064       ;;
16065
16066     sysv4)
16067       case $host_vendor in
16068         sni)
16069           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16070           hardcode_direct=yes # is this really true???
16071         ;;
16072         siemens)
16073           ## LD is ld it makes a PLAMLIB
16074           ## CC just makes a GrossModule.
16075           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16076           reload_cmds='$CC -r -o $output$reload_objs'
16077           hardcode_direct=no
16078         ;;
16079         motorola)
16080           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16081           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16082         ;;
16083       esac
16084       runpath_var='LD_RUN_PATH'
16085       hardcode_shlibpath_var=no
16086       ;;
16087
16088     sysv4.3*)
16089       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16090       hardcode_shlibpath_var=no
16091       export_dynamic_flag_spec='-Bexport'
16092       ;;
16093
16094     sysv4*MP*)
16095       if test -d /usr/nec; then
16096         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16097         hardcode_shlibpath_var=no
16098         runpath_var=LD_RUN_PATH
16099         hardcode_runpath_var=yes
16100         ld_shlibs=yes
16101       fi
16102       ;;
16103
16104     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16105       no_undefined_flag='${wl}-z,text'
16106       archive_cmds_need_lc=no
16107       hardcode_shlibpath_var=no
16108       runpath_var='LD_RUN_PATH'
16109
16110       if test "$GCC" = yes; then
16111         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16112         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16113       else
16114         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16115         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16116       fi
16117       ;;
16118
16119     sysv5* | sco3.2v5* | sco5v6*)
16120       # Note: We can NOT use -z defs as we might desire, because we do not
16121       # link with -lc, and that would cause any symbols used from libc to
16122       # always be unresolved, which means just about no library would
16123       # ever link correctly.  If we're not using GNU ld we use -z text
16124       # though, which does catch some bad symbols but isn't as heavy-handed
16125       # as -z defs.
16126       no_undefined_flag='${wl}-z,text'
16127       allow_undefined_flag='${wl}-z,nodefs'
16128       archive_cmds_need_lc=no
16129       hardcode_shlibpath_var=no
16130       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16131       hardcode_libdir_separator=':'
16132       link_all_deplibs=yes
16133       export_dynamic_flag_spec='${wl}-Bexport'
16134       runpath_var='LD_RUN_PATH'
16135
16136       if test "$GCC" = yes; then
16137         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16138         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16139       else
16140         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16141         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16142       fi
16143       ;;
16144
16145     uts4*)
16146       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16147       hardcode_libdir_flag_spec='-L$libdir'
16148       hardcode_shlibpath_var=no
16149       ;;
16150
16151     *)
16152       ld_shlibs=no
16153       ;;
16154     esac
16155
16156     if test x$host_vendor = xsni; then
16157       case $host in
16158       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16159         export_dynamic_flag_spec='${wl}-Blargedynsym'
16160         ;;
16161       esac
16162     fi
16163   fi
16164
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16166 $as_echo "$ld_shlibs" >&6; }
16167 test "$ld_shlibs" = no && can_build_shared=no
16168
16169 with_gnu_ld=$with_gnu_ld
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185 #
16186 # Do we need to explicitly link libc?
16187 #
16188 case "x$archive_cmds_need_lc" in
16189 x|xyes)
16190   # Assume -lc should be added
16191   archive_cmds_need_lc=yes
16192
16193   if test "$enable_shared" = yes && test "$GCC" = yes; then
16194     case $archive_cmds in
16195     *'~'*)
16196       # FIXME: we may have to deal with multi-command sequences.
16197       ;;
16198     '$CC '*)
16199       # Test whether the compiler implicitly links with -lc since on some
16200       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16201       # to ld, don't add -lc before -lgcc.
16202       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16203 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16204 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16205   $as_echo_n "(cached) " >&6
16206 else
16207   $RM conftest*
16208         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16209
16210         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16211   (eval $ac_compile) 2>&5
16212   ac_status=$?
16213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16214   test $ac_status = 0; } 2>conftest.err; then
16215           soname=conftest
16216           lib=conftest
16217           libobjs=conftest.$ac_objext
16218           deplibs=
16219           wl=$lt_prog_compiler_wl
16220           pic_flag=$lt_prog_compiler_pic
16221           compiler_flags=-v
16222           linker_flags=-v
16223           verstring=
16224           output_objdir=.
16225           libname=conftest
16226           lt_save_allow_undefined_flag=$allow_undefined_flag
16227           allow_undefined_flag=
16228           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16229   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16230   ac_status=$?
16231   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16232   test $ac_status = 0; }
16233           then
16234             lt_cv_archive_cmds_need_lc=no
16235           else
16236             lt_cv_archive_cmds_need_lc=yes
16237           fi
16238           allow_undefined_flag=$lt_save_allow_undefined_flag
16239         else
16240           cat conftest.err 1>&5
16241         fi
16242         $RM conftest*
16243
16244 fi
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16246 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16247       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16248       ;;
16249     esac
16250   fi
16251   ;;
16252 esac
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16411 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16412
16413 if test "$GCC" = yes; then
16414   case $host_os in
16415     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16416     *) lt_awk_arg="/^libraries:/" ;;
16417   esac
16418   case $host_os in
16419     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16420     *) lt_sed_strip_eq="s,=/,/,g" ;;
16421   esac
16422   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16423   case $lt_search_path_spec in
16424   *\;*)
16425     # if the path contains ";" then we assume it to be the separator
16426     # otherwise default to the standard path separator (i.e. ":") - it is
16427     # assumed that no part of a normal pathname contains ";" but that should
16428     # okay in the real world where ";" in dirpaths is itself problematic.
16429     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16430     ;;
16431   *)
16432     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16433     ;;
16434   esac
16435   # Ok, now we have the path, separated by spaces, we can step through it
16436   # and add multilib dir if necessary.
16437   lt_tmp_lt_search_path_spec=
16438   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16439   for lt_sys_path in $lt_search_path_spec; do
16440     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16441       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16442     else
16443       test -d "$lt_sys_path" && \
16444         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16445     fi
16446   done
16447   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16448 BEGIN {RS=" "; FS="/|\n";} {
16449   lt_foo="";
16450   lt_count=0;
16451   for (lt_i = NF; lt_i > 0; lt_i--) {
16452     if ($lt_i != "" && $lt_i != ".") {
16453       if ($lt_i == "..") {
16454         lt_count++;
16455       } else {
16456         if (lt_count == 0) {
16457           lt_foo="/" $lt_i lt_foo;
16458         } else {
16459           lt_count--;
16460         }
16461       }
16462     }
16463   }
16464   if (lt_foo != "") { lt_freq[lt_foo]++; }
16465   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16466 }'`
16467   # AWK program above erroneously prepends '/' to C:/dos/paths
16468   # for these hosts.
16469   case $host_os in
16470     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16471       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16472   esac
16473   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16474 else
16475   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16476 fi
16477 library_names_spec=
16478 libname_spec='lib$name'
16479 soname_spec=
16480 shrext_cmds=".so"
16481 postinstall_cmds=
16482 postuninstall_cmds=
16483 finish_cmds=
16484 finish_eval=
16485 shlibpath_var=
16486 shlibpath_overrides_runpath=unknown
16487 version_type=none
16488 dynamic_linker="$host_os ld.so"
16489 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16490 need_lib_prefix=unknown
16491 hardcode_into_libs=no
16492
16493 # when you set need_version to no, make sure it does not cause -set_version
16494 # flags to be left without arguments
16495 need_version=unknown
16496
16497 case $host_os in
16498 aix3*)
16499   version_type=linux
16500   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16501   shlibpath_var=LIBPATH
16502
16503   # AIX 3 has no versioning support, so we append a major version to the name.
16504   soname_spec='${libname}${release}${shared_ext}$major'
16505   ;;
16506
16507 aix[4-9]*)
16508   version_type=linux
16509   need_lib_prefix=no
16510   need_version=no
16511   hardcode_into_libs=yes
16512   if test "$host_cpu" = ia64; then
16513     # AIX 5 supports IA64
16514     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16515     shlibpath_var=LD_LIBRARY_PATH
16516   else
16517     # With GCC up to 2.95.x, collect2 would create an import file
16518     # for dependence libraries.  The import file would start with
16519     # the line `#! .'.  This would cause the generated library to
16520     # depend on `.', always an invalid library.  This was fixed in
16521     # development snapshots of GCC prior to 3.0.
16522     case $host_os in
16523       aix4 | aix4.[01] | aix4.[01].*)
16524       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16525            echo ' yes '
16526            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16527         :
16528       else
16529         can_build_shared=no
16530       fi
16531       ;;
16532     esac
16533     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16534     # soname into executable. Probably we can add versioning support to
16535     # collect2, so additional links can be useful in future.
16536     if test "$aix_use_runtimelinking" = yes; then
16537       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16538       # instead of lib<name>.a to let people know that these are not
16539       # typical AIX shared libraries.
16540       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16541     else
16542       # We preserve .a as extension for shared libraries through AIX4.2
16543       # and later when we are not doing run time linking.
16544       library_names_spec='${libname}${release}.a $libname.a'
16545       soname_spec='${libname}${release}${shared_ext}$major'
16546     fi
16547     shlibpath_var=LIBPATH
16548   fi
16549   ;;
16550
16551 amigaos*)
16552   case $host_cpu in
16553   powerpc)
16554     # Since July 2007 AmigaOS4 officially supports .so libraries.
16555     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16556     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16557     ;;
16558   m68k)
16559     library_names_spec='$libname.ixlibrary $libname.a'
16560     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16561     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'
16562     ;;
16563   esac
16564   ;;
16565
16566 beos*)
16567   library_names_spec='${libname}${shared_ext}'
16568   dynamic_linker="$host_os ld.so"
16569   shlibpath_var=LIBRARY_PATH
16570   ;;
16571
16572 bsdi[45]*)
16573   version_type=linux
16574   need_version=no
16575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16576   soname_spec='${libname}${release}${shared_ext}$major'
16577   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16578   shlibpath_var=LD_LIBRARY_PATH
16579   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16580   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16581   # the default ld.so.conf also contains /usr/contrib/lib and
16582   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16583   # libtool to hard-code these into programs
16584   ;;
16585
16586 cygwin* | mingw* | pw32* | cegcc*)
16587   version_type=windows
16588   shrext_cmds=".dll"
16589   need_version=no
16590   need_lib_prefix=no
16591
16592   case $GCC,$host_os in
16593   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16594     library_names_spec='$libname.dll.a'
16595     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16596     postinstall_cmds='base_file=`basename \${file}`~
16597       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16598       dldir=$destdir/`dirname \$dlpath`~
16599       test -d \$dldir || mkdir -p \$dldir~
16600       $install_prog $dir/$dlname \$dldir/$dlname~
16601       chmod a+x \$dldir/$dlname~
16602       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16603         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16604       fi'
16605     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16606       dlpath=$dir/\$dldll~
16607        $RM \$dlpath'
16608     shlibpath_overrides_runpath=yes
16609
16610     case $host_os in
16611     cygwin*)
16612       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16613       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16614
16615       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16616       ;;
16617     mingw* | cegcc*)
16618       # MinGW DLLs use traditional 'lib' prefix
16619       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16620       ;;
16621     pw32*)
16622       # pw32 DLLs use 'pw' prefix rather than 'lib'
16623       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16624       ;;
16625     esac
16626     ;;
16627
16628   *)
16629     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16630     ;;
16631   esac
16632   dynamic_linker='Win32 ld.exe'
16633   # FIXME: first we should search . and the directory the executable is in
16634   shlibpath_var=PATH
16635   ;;
16636
16637 darwin* | rhapsody*)
16638   dynamic_linker="$host_os dyld"
16639   version_type=darwin
16640   need_lib_prefix=no
16641   need_version=no
16642   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16643   soname_spec='${libname}${release}${major}$shared_ext'
16644   shlibpath_overrides_runpath=yes
16645   shlibpath_var=DYLD_LIBRARY_PATH
16646   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16647
16648   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16649   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16650   ;;
16651
16652 dgux*)
16653   version_type=linux
16654   need_lib_prefix=no
16655   need_version=no
16656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16657   soname_spec='${libname}${release}${shared_ext}$major'
16658   shlibpath_var=LD_LIBRARY_PATH
16659   ;;
16660
16661 freebsd* | dragonfly*)
16662   # DragonFly does not have aout.  When/if they implement a new
16663   # versioning mechanism, adjust this.
16664   if test -x /usr/bin/objformat; then
16665     objformat=`/usr/bin/objformat`
16666   else
16667     case $host_os in
16668     freebsd[123]*) objformat=aout ;;
16669     *) objformat=elf ;;
16670     esac
16671   fi
16672   version_type=freebsd-$objformat
16673   case $version_type in
16674     freebsd-elf*)
16675       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16676       need_version=no
16677       need_lib_prefix=no
16678       ;;
16679     freebsd-*)
16680       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16681       need_version=yes
16682       ;;
16683   esac
16684   shlibpath_var=LD_LIBRARY_PATH
16685   case $host_os in
16686   freebsd2*)
16687     shlibpath_overrides_runpath=yes
16688     ;;
16689   freebsd3.[01]* | freebsdelf3.[01]*)
16690     shlibpath_overrides_runpath=yes
16691     hardcode_into_libs=yes
16692     ;;
16693   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16694   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16695     shlibpath_overrides_runpath=no
16696     hardcode_into_libs=yes
16697     ;;
16698   *) # from 4.6 on, and DragonFly
16699     shlibpath_overrides_runpath=yes
16700     hardcode_into_libs=yes
16701     ;;
16702   esac
16703   ;;
16704
16705 gnu*)
16706   version_type=linux
16707   need_lib_prefix=no
16708   need_version=no
16709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16710   soname_spec='${libname}${release}${shared_ext}$major'
16711   shlibpath_var=LD_LIBRARY_PATH
16712   hardcode_into_libs=yes
16713   ;;
16714
16715 haiku*)
16716   version_type=linux
16717   need_lib_prefix=no
16718   need_version=no
16719   dynamic_linker="$host_os runtime_loader"
16720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16721   soname_spec='${libname}${release}${shared_ext}$major'
16722   shlibpath_var=LIBRARY_PATH
16723   shlibpath_overrides_runpath=yes
16724   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16725   hardcode_into_libs=yes
16726   ;;
16727
16728 hpux9* | hpux10* | hpux11*)
16729   # Give a soname corresponding to the major version so that dld.sl refuses to
16730   # link against other versions.
16731   version_type=sunos
16732   need_lib_prefix=no
16733   need_version=no
16734   case $host_cpu in
16735   ia64*)
16736     shrext_cmds='.so'
16737     hardcode_into_libs=yes
16738     dynamic_linker="$host_os dld.so"
16739     shlibpath_var=LD_LIBRARY_PATH
16740     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16741     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742     soname_spec='${libname}${release}${shared_ext}$major'
16743     if test "X$HPUX_IA64_MODE" = X32; then
16744       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16745     else
16746       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16747     fi
16748     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16749     ;;
16750   hppa*64*)
16751     shrext_cmds='.sl'
16752     hardcode_into_libs=yes
16753     dynamic_linker="$host_os dld.sl"
16754     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16755     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757     soname_spec='${libname}${release}${shared_ext}$major'
16758     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16759     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16760     ;;
16761   *)
16762     shrext_cmds='.sl'
16763     dynamic_linker="$host_os dld.sl"
16764     shlibpath_var=SHLIB_PATH
16765     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16767     soname_spec='${libname}${release}${shared_ext}$major'
16768     ;;
16769   esac
16770   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16771   postinstall_cmds='chmod 555 $lib'
16772   # or fails outright, so override atomically:
16773   install_override_mode=555
16774   ;;
16775
16776 interix[3-9]*)
16777   version_type=linux
16778   need_lib_prefix=no
16779   need_version=no
16780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16781   soname_spec='${libname}${release}${shared_ext}$major'
16782   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16783   shlibpath_var=LD_LIBRARY_PATH
16784   shlibpath_overrides_runpath=no
16785   hardcode_into_libs=yes
16786   ;;
16787
16788 irix5* | irix6* | nonstopux*)
16789   case $host_os in
16790     nonstopux*) version_type=nonstopux ;;
16791     *)
16792         if test "$lt_cv_prog_gnu_ld" = yes; then
16793                 version_type=linux
16794         else
16795                 version_type=irix
16796         fi ;;
16797   esac
16798   need_lib_prefix=no
16799   need_version=no
16800   soname_spec='${libname}${release}${shared_ext}$major'
16801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16802   case $host_os in
16803   irix5* | nonstopux*)
16804     libsuff= shlibsuff=
16805     ;;
16806   *)
16807     case $LD in # libtool.m4 will add one of these switches to LD
16808     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16809       libsuff= shlibsuff= libmagic=32-bit;;
16810     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16811       libsuff=32 shlibsuff=N32 libmagic=N32;;
16812     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16813       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16814     *) libsuff= shlibsuff= libmagic=never-match;;
16815     esac
16816     ;;
16817   esac
16818   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16819   shlibpath_overrides_runpath=no
16820   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16821   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16822   hardcode_into_libs=yes
16823   ;;
16824
16825 # No shared lib support for Linux oldld, aout, or coff.
16826 linux*oldld* | linux*aout* | linux*coff*)
16827   dynamic_linker=no
16828   ;;
16829
16830 # This must be Linux ELF.
16831 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16832   version_type=linux
16833   need_lib_prefix=no
16834   need_version=no
16835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16836   soname_spec='${libname}${release}${shared_ext}$major'
16837   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16838   shlibpath_var=LD_LIBRARY_PATH
16839   shlibpath_overrides_runpath=no
16840
16841   # Some binutils ld are patched to set DT_RUNPATH
16842   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16843   $as_echo_n "(cached) " >&6
16844 else
16845   lt_cv_shlibpath_overrides_runpath=no
16846     save_LDFLAGS=$LDFLAGS
16847     save_libdir=$libdir
16848     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16849          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16850     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16851 /* end confdefs.h.  */
16852
16853 int
16854 main ()
16855 {
16856
16857   ;
16858   return 0;
16859 }
16860 _ACEOF
16861 if ac_fn_c_try_link "$LINENO"; then :
16862   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16863   lt_cv_shlibpath_overrides_runpath=yes
16864 fi
16865 fi
16866 rm -f core conftest.err conftest.$ac_objext \
16867     conftest$ac_exeext conftest.$ac_ext
16868     LDFLAGS=$save_LDFLAGS
16869     libdir=$save_libdir
16870
16871 fi
16872
16873   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16874
16875   # This implies no fast_install, which is unacceptable.
16876   # Some rework will be needed to allow for fast_install
16877   # before this can be enabled.
16878   hardcode_into_libs=yes
16879
16880   # Append ld.so.conf contents to the search path
16881   if test -f /etc/ld.so.conf; then
16882     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' ' '`
16883     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16884   fi
16885
16886   # We used to test for /lib/ld.so.1 and disable shared libraries on
16887   # powerpc, because MkLinux only supported shared libraries with the
16888   # GNU dynamic linker.  Since this was broken with cross compilers,
16889   # most powerpc-linux boxes support dynamic linking these days and
16890   # people can always --disable-shared, the test was removed, and we
16891   # assume the GNU/Linux dynamic linker is in use.
16892   dynamic_linker='GNU/Linux ld.so'
16893   ;;
16894
16895 netbsd*)
16896   version_type=sunos
16897   need_lib_prefix=no
16898   need_version=no
16899   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16900     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16901     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16902     dynamic_linker='NetBSD (a.out) ld.so'
16903   else
16904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16905     soname_spec='${libname}${release}${shared_ext}$major'
16906     dynamic_linker='NetBSD ld.elf_so'
16907   fi
16908   shlibpath_var=LD_LIBRARY_PATH
16909   shlibpath_overrides_runpath=yes
16910   hardcode_into_libs=yes
16911   ;;
16912
16913 newsos6)
16914   version_type=linux
16915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916   shlibpath_var=LD_LIBRARY_PATH
16917   shlibpath_overrides_runpath=yes
16918   ;;
16919
16920 *nto* | *qnx*)
16921   version_type=qnx
16922   need_lib_prefix=no
16923   need_version=no
16924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16925   soname_spec='${libname}${release}${shared_ext}$major'
16926   shlibpath_var=LD_LIBRARY_PATH
16927   shlibpath_overrides_runpath=no
16928   hardcode_into_libs=yes
16929   dynamic_linker='ldqnx.so'
16930   ;;
16931
16932 openbsd*)
16933   version_type=sunos
16934   sys_lib_dlsearch_path_spec="/usr/lib"
16935   need_lib_prefix=no
16936   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16937   case $host_os in
16938     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16939     *)                          need_version=no  ;;
16940   esac
16941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16942   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16943   shlibpath_var=LD_LIBRARY_PATH
16944   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16945     case $host_os in
16946       openbsd2.[89] | openbsd2.[89].*)
16947         shlibpath_overrides_runpath=no
16948         ;;
16949       *)
16950         shlibpath_overrides_runpath=yes
16951         ;;
16952       esac
16953   else
16954     shlibpath_overrides_runpath=yes
16955   fi
16956   ;;
16957
16958 os2*)
16959   libname_spec='$name'
16960   shrext_cmds=".dll"
16961   need_lib_prefix=no
16962   library_names_spec='$libname${shared_ext} $libname.a'
16963   dynamic_linker='OS/2 ld.exe'
16964   shlibpath_var=LIBPATH
16965   ;;
16966
16967 osf3* | osf4* | osf5*)
16968   version_type=osf
16969   need_lib_prefix=no
16970   need_version=no
16971   soname_spec='${libname}${release}${shared_ext}$major'
16972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16973   shlibpath_var=LD_LIBRARY_PATH
16974   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16975   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16976   ;;
16977
16978 rdos*)
16979   dynamic_linker=no
16980   ;;
16981
16982 solaris*)
16983   version_type=linux
16984   need_lib_prefix=no
16985   need_version=no
16986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16987   soname_spec='${libname}${release}${shared_ext}$major'
16988   shlibpath_var=LD_LIBRARY_PATH
16989   shlibpath_overrides_runpath=yes
16990   hardcode_into_libs=yes
16991   # ldd complains unless libraries are executable
16992   postinstall_cmds='chmod +x $lib'
16993   ;;
16994
16995 sunos4*)
16996   version_type=sunos
16997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16998   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16999   shlibpath_var=LD_LIBRARY_PATH
17000   shlibpath_overrides_runpath=yes
17001   if test "$with_gnu_ld" = yes; then
17002     need_lib_prefix=no
17003   fi
17004   need_version=yes
17005   ;;
17006
17007 sysv4 | sysv4.3*)
17008   version_type=linux
17009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17010   soname_spec='${libname}${release}${shared_ext}$major'
17011   shlibpath_var=LD_LIBRARY_PATH
17012   case $host_vendor in
17013     sni)
17014       shlibpath_overrides_runpath=no
17015       need_lib_prefix=no
17016       runpath_var=LD_RUN_PATH
17017       ;;
17018     siemens)
17019       need_lib_prefix=no
17020       ;;
17021     motorola)
17022       need_lib_prefix=no
17023       need_version=no
17024       shlibpath_overrides_runpath=no
17025       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17026       ;;
17027   esac
17028   ;;
17029
17030 sysv4*MP*)
17031   if test -d /usr/nec ;then
17032     version_type=linux
17033     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17034     soname_spec='$libname${shared_ext}.$major'
17035     shlibpath_var=LD_LIBRARY_PATH
17036   fi
17037   ;;
17038
17039 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17040   version_type=freebsd-elf
17041   need_lib_prefix=no
17042   need_version=no
17043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17044   soname_spec='${libname}${release}${shared_ext}$major'
17045   shlibpath_var=LD_LIBRARY_PATH
17046   shlibpath_overrides_runpath=yes
17047   hardcode_into_libs=yes
17048   if test "$with_gnu_ld" = yes; then
17049     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17050   else
17051     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17052     case $host_os in
17053       sco3.2v5*)
17054         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17055         ;;
17056     esac
17057   fi
17058   sys_lib_dlsearch_path_spec='/usr/lib'
17059   ;;
17060
17061 tpf*)
17062   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17063   version_type=linux
17064   need_lib_prefix=no
17065   need_version=no
17066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17067   shlibpath_var=LD_LIBRARY_PATH
17068   shlibpath_overrides_runpath=no
17069   hardcode_into_libs=yes
17070   ;;
17071
17072 uts4*)
17073   version_type=linux
17074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17075   soname_spec='${libname}${release}${shared_ext}$major'
17076   shlibpath_var=LD_LIBRARY_PATH
17077   ;;
17078
17079 *)
17080   dynamic_linker=no
17081   ;;
17082 esac
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17084 $as_echo "$dynamic_linker" >&6; }
17085 test "$dynamic_linker" = no && can_build_shared=no
17086
17087 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17088 if test "$GCC" = yes; then
17089   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17090 fi
17091
17092 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17093   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17094 fi
17095 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17096   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17097 fi
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17191 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17192 hardcode_action=
17193 if test -n "$hardcode_libdir_flag_spec" ||
17194    test -n "$runpath_var" ||
17195    test "X$hardcode_automatic" = "Xyes" ; then
17196
17197   # We can hardcode non-existent directories.
17198   if test "$hardcode_direct" != no &&
17199      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17200      # have to relink, otherwise we might link with an installed library
17201      # when we should be linking with a yet-to-be-installed one
17202      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17203      test "$hardcode_minus_L" != no; then
17204     # Linking always hardcodes the temporary library directory.
17205     hardcode_action=relink
17206   else
17207     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17208     hardcode_action=immediate
17209   fi
17210 else
17211   # We cannot hardcode anything, or else we can only hardcode existing
17212   # directories.
17213   hardcode_action=unsupported
17214 fi
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17216 $as_echo "$hardcode_action" >&6; }
17217
17218 if test "$hardcode_action" = relink ||
17219    test "$inherit_rpath" = yes; then
17220   # Fast installation is not supported
17221   enable_fast_install=no
17222 elif test "$shlibpath_overrides_runpath" = yes ||
17223      test "$enable_shared" = no; then
17224   # Fast installation is not necessary
17225   enable_fast_install=needless
17226 fi
17227
17228
17229
17230
17231
17232
17233   if test "x$enable_dlopen" != xyes; then
17234   enable_dlopen=unknown
17235   enable_dlopen_self=unknown
17236   enable_dlopen_self_static=unknown
17237 else
17238   lt_cv_dlopen=no
17239   lt_cv_dlopen_libs=
17240
17241   case $host_os in
17242   beos*)
17243     lt_cv_dlopen="load_add_on"
17244     lt_cv_dlopen_libs=
17245     lt_cv_dlopen_self=yes
17246     ;;
17247
17248   mingw* | pw32* | cegcc*)
17249     lt_cv_dlopen="LoadLibrary"
17250     lt_cv_dlopen_libs=
17251     ;;
17252
17253   cygwin*)
17254     lt_cv_dlopen="dlopen"
17255     lt_cv_dlopen_libs=
17256     ;;
17257
17258   darwin*)
17259   # if libdl is installed we need to link against it
17260     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17261 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17262 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17263   $as_echo_n "(cached) " >&6
17264 else
17265   ac_check_lib_save_LIBS=$LIBS
17266 LIBS="-ldl  $LIBS"
17267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17268 /* end confdefs.h.  */
17269
17270 /* Override any GCC internal prototype to avoid an error.
17271    Use char because int might match the return type of a GCC
17272    builtin and then its argument prototype would still apply.  */
17273 #ifdef __cplusplus
17274 extern "C"
17275 #endif
17276 char dlopen ();
17277 int
17278 main ()
17279 {
17280 return dlopen ();
17281   ;
17282   return 0;
17283 }
17284 _ACEOF
17285 if ac_fn_c_try_link "$LINENO"; then :
17286   ac_cv_lib_dl_dlopen=yes
17287 else
17288   ac_cv_lib_dl_dlopen=no
17289 fi
17290 rm -f core conftest.err conftest.$ac_objext \
17291     conftest$ac_exeext conftest.$ac_ext
17292 LIBS=$ac_check_lib_save_LIBS
17293 fi
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17295 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17296 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17297   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17298 else
17299
17300     lt_cv_dlopen="dyld"
17301     lt_cv_dlopen_libs=
17302     lt_cv_dlopen_self=yes
17303
17304 fi
17305
17306     ;;
17307
17308   *)
17309     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17310 if test "x$ac_cv_func_shl_load" = x""yes; then :
17311   lt_cv_dlopen="shl_load"
17312 else
17313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17314 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17315 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17316   $as_echo_n "(cached) " >&6
17317 else
17318   ac_check_lib_save_LIBS=$LIBS
17319 LIBS="-ldld  $LIBS"
17320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17321 /* end confdefs.h.  */
17322
17323 /* Override any GCC internal prototype to avoid an error.
17324    Use char because int might match the return type of a GCC
17325    builtin and then its argument prototype would still apply.  */
17326 #ifdef __cplusplus
17327 extern "C"
17328 #endif
17329 char shl_load ();
17330 int
17331 main ()
17332 {
17333 return shl_load ();
17334   ;
17335   return 0;
17336 }
17337 _ACEOF
17338 if ac_fn_c_try_link "$LINENO"; then :
17339   ac_cv_lib_dld_shl_load=yes
17340 else
17341   ac_cv_lib_dld_shl_load=no
17342 fi
17343 rm -f core conftest.err conftest.$ac_objext \
17344     conftest$ac_exeext conftest.$ac_ext
17345 LIBS=$ac_check_lib_save_LIBS
17346 fi
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17348 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17349 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17350   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17351 else
17352   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17353 if test "x$ac_cv_func_dlopen" = x""yes; then :
17354   lt_cv_dlopen="dlopen"
17355 else
17356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17357 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17358 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17359   $as_echo_n "(cached) " >&6
17360 else
17361   ac_check_lib_save_LIBS=$LIBS
17362 LIBS="-ldl  $LIBS"
17363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17364 /* end confdefs.h.  */
17365
17366 /* Override any GCC internal prototype to avoid an error.
17367    Use char because int might match the return type of a GCC
17368    builtin and then its argument prototype would still apply.  */
17369 #ifdef __cplusplus
17370 extern "C"
17371 #endif
17372 char dlopen ();
17373 int
17374 main ()
17375 {
17376 return dlopen ();
17377   ;
17378   return 0;
17379 }
17380 _ACEOF
17381 if ac_fn_c_try_link "$LINENO"; then :
17382   ac_cv_lib_dl_dlopen=yes
17383 else
17384   ac_cv_lib_dl_dlopen=no
17385 fi
17386 rm -f core conftest.err conftest.$ac_objext \
17387     conftest$ac_exeext conftest.$ac_ext
17388 LIBS=$ac_check_lib_save_LIBS
17389 fi
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17391 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17392 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17393   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17394 else
17395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17396 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17397 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17398   $as_echo_n "(cached) " >&6
17399 else
17400   ac_check_lib_save_LIBS=$LIBS
17401 LIBS="-lsvld  $LIBS"
17402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17403 /* end confdefs.h.  */
17404
17405 /* Override any GCC internal prototype to avoid an error.
17406    Use char because int might match the return type of a GCC
17407    builtin and then its argument prototype would still apply.  */
17408 #ifdef __cplusplus
17409 extern "C"
17410 #endif
17411 char dlopen ();
17412 int
17413 main ()
17414 {
17415 return dlopen ();
17416   ;
17417   return 0;
17418 }
17419 _ACEOF
17420 if ac_fn_c_try_link "$LINENO"; then :
17421   ac_cv_lib_svld_dlopen=yes
17422 else
17423   ac_cv_lib_svld_dlopen=no
17424 fi
17425 rm -f core conftest.err conftest.$ac_objext \
17426     conftest$ac_exeext conftest.$ac_ext
17427 LIBS=$ac_check_lib_save_LIBS
17428 fi
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17430 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17431 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17432   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17433 else
17434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17435 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17436 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17437   $as_echo_n "(cached) " >&6
17438 else
17439   ac_check_lib_save_LIBS=$LIBS
17440 LIBS="-ldld  $LIBS"
17441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17442 /* end confdefs.h.  */
17443
17444 /* Override any GCC internal prototype to avoid an error.
17445    Use char because int might match the return type of a GCC
17446    builtin and then its argument prototype would still apply.  */
17447 #ifdef __cplusplus
17448 extern "C"
17449 #endif
17450 char dld_link ();
17451 int
17452 main ()
17453 {
17454 return dld_link ();
17455   ;
17456   return 0;
17457 }
17458 _ACEOF
17459 if ac_fn_c_try_link "$LINENO"; then :
17460   ac_cv_lib_dld_dld_link=yes
17461 else
17462   ac_cv_lib_dld_dld_link=no
17463 fi
17464 rm -f core conftest.err conftest.$ac_objext \
17465     conftest$ac_exeext conftest.$ac_ext
17466 LIBS=$ac_check_lib_save_LIBS
17467 fi
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17469 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17470 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17471   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17472 fi
17473
17474
17475 fi
17476
17477
17478 fi
17479
17480
17481 fi
17482
17483
17484 fi
17485
17486
17487 fi
17488
17489     ;;
17490   esac
17491
17492   if test "x$lt_cv_dlopen" != xno; then
17493     enable_dlopen=yes
17494   else
17495     enable_dlopen=no
17496   fi
17497
17498   case $lt_cv_dlopen in
17499   dlopen)
17500     save_CPPFLAGS="$CPPFLAGS"
17501     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17502
17503     save_LDFLAGS="$LDFLAGS"
17504     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17505
17506     save_LIBS="$LIBS"
17507     LIBS="$lt_cv_dlopen_libs $LIBS"
17508
17509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17510 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17511 if test "${lt_cv_dlopen_self+set}" = set; then :
17512   $as_echo_n "(cached) " >&6
17513 else
17514           if test "$cross_compiling" = yes; then :
17515   lt_cv_dlopen_self=cross
17516 else
17517   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17518   lt_status=$lt_dlunknown
17519   cat > conftest.$ac_ext <<_LT_EOF
17520 #line 17520 "configure"
17521 #include "confdefs.h"
17522
17523 #if HAVE_DLFCN_H
17524 #include <dlfcn.h>
17525 #endif
17526
17527 #include <stdio.h>
17528
17529 #ifdef RTLD_GLOBAL
17530 #  define LT_DLGLOBAL           RTLD_GLOBAL
17531 #else
17532 #  ifdef DL_GLOBAL
17533 #    define LT_DLGLOBAL         DL_GLOBAL
17534 #  else
17535 #    define LT_DLGLOBAL         0
17536 #  endif
17537 #endif
17538
17539 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17540    find out it does not work in some platform. */
17541 #ifndef LT_DLLAZY_OR_NOW
17542 #  ifdef RTLD_LAZY
17543 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17544 #  else
17545 #    ifdef DL_LAZY
17546 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17547 #    else
17548 #      ifdef RTLD_NOW
17549 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17550 #      else
17551 #        ifdef DL_NOW
17552 #          define LT_DLLAZY_OR_NOW      DL_NOW
17553 #        else
17554 #          define LT_DLLAZY_OR_NOW      0
17555 #        endif
17556 #      endif
17557 #    endif
17558 #  endif
17559 #endif
17560
17561 /* When -fvisbility=hidden is used, assume the code has been annotated
17562    correspondingly for the symbols needed.  */
17563 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17564 void fnord () __attribute__((visibility("default")));
17565 #endif
17566
17567 void fnord () { int i=42; }
17568 int main ()
17569 {
17570   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17571   int status = $lt_dlunknown;
17572
17573   if (self)
17574     {
17575       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17576       else
17577         {
17578           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17579           else puts (dlerror ());
17580         }
17581       /* dlclose (self); */
17582     }
17583   else
17584     puts (dlerror ());
17585
17586   return status;
17587 }
17588 _LT_EOF
17589   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17590   (eval $ac_link) 2>&5
17591   ac_status=$?
17592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17593   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17594     (./conftest; exit; ) >&5 2>/dev/null
17595     lt_status=$?
17596     case x$lt_status in
17597       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17598       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17599       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17600     esac
17601   else :
17602     # compilation failed
17603     lt_cv_dlopen_self=no
17604   fi
17605 fi
17606 rm -fr conftest*
17607
17608
17609 fi
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17611 $as_echo "$lt_cv_dlopen_self" >&6; }
17612
17613     if test "x$lt_cv_dlopen_self" = xyes; then
17614       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17615       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17616 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17617 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17618   $as_echo_n "(cached) " >&6
17619 else
17620           if test "$cross_compiling" = yes; then :
17621   lt_cv_dlopen_self_static=cross
17622 else
17623   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17624   lt_status=$lt_dlunknown
17625   cat > conftest.$ac_ext <<_LT_EOF
17626 #line 17626 "configure"
17627 #include "confdefs.h"
17628
17629 #if HAVE_DLFCN_H
17630 #include <dlfcn.h>
17631 #endif
17632
17633 #include <stdio.h>
17634
17635 #ifdef RTLD_GLOBAL
17636 #  define LT_DLGLOBAL           RTLD_GLOBAL
17637 #else
17638 #  ifdef DL_GLOBAL
17639 #    define LT_DLGLOBAL         DL_GLOBAL
17640 #  else
17641 #    define LT_DLGLOBAL         0
17642 #  endif
17643 #endif
17644
17645 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17646    find out it does not work in some platform. */
17647 #ifndef LT_DLLAZY_OR_NOW
17648 #  ifdef RTLD_LAZY
17649 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17650 #  else
17651 #    ifdef DL_LAZY
17652 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17653 #    else
17654 #      ifdef RTLD_NOW
17655 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17656 #      else
17657 #        ifdef DL_NOW
17658 #          define LT_DLLAZY_OR_NOW      DL_NOW
17659 #        else
17660 #          define LT_DLLAZY_OR_NOW      0
17661 #        endif
17662 #      endif
17663 #    endif
17664 #  endif
17665 #endif
17666
17667 /* When -fvisbility=hidden is used, assume the code has been annotated
17668    correspondingly for the symbols needed.  */
17669 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17670 void fnord () __attribute__((visibility("default")));
17671 #endif
17672
17673 void fnord () { int i=42; }
17674 int main ()
17675 {
17676   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17677   int status = $lt_dlunknown;
17678
17679   if (self)
17680     {
17681       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17682       else
17683         {
17684           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17685           else puts (dlerror ());
17686         }
17687       /* dlclose (self); */
17688     }
17689   else
17690     puts (dlerror ());
17691
17692   return status;
17693 }
17694 _LT_EOF
17695   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17696   (eval $ac_link) 2>&5
17697   ac_status=$?
17698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17699   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17700     (./conftest; exit; ) >&5 2>/dev/null
17701     lt_status=$?
17702     case x$lt_status in
17703       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17704       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17705       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17706     esac
17707   else :
17708     # compilation failed
17709     lt_cv_dlopen_self_static=no
17710   fi
17711 fi
17712 rm -fr conftest*
17713
17714
17715 fi
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17717 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17718     fi
17719
17720     CPPFLAGS="$save_CPPFLAGS"
17721     LDFLAGS="$save_LDFLAGS"
17722     LIBS="$save_LIBS"
17723     ;;
17724   esac
17725
17726   case $lt_cv_dlopen_self in
17727   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17728   *) enable_dlopen_self=unknown ;;
17729   esac
17730
17731   case $lt_cv_dlopen_self_static in
17732   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17733   *) enable_dlopen_self_static=unknown ;;
17734   esac
17735 fi
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753 striplib=
17754 old_striplib=
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17756 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17757 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17758   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17759   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17761 $as_echo "yes" >&6; }
17762 else
17763 # FIXME - insert some real tests, host_os isn't really good enough
17764   case $host_os in
17765   darwin*)
17766     if test -n "$STRIP" ; then
17767       striplib="$STRIP -x"
17768       old_striplib="$STRIP -S"
17769       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17770 $as_echo "yes" >&6; }
17771     else
17772       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17773 $as_echo "no" >&6; }
17774     fi
17775     ;;
17776   *)
17777     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17778 $as_echo "no" >&6; }
17779     ;;
17780   esac
17781 fi
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794   # Report which library types will actually be built
17795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17796 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17798 $as_echo "$can_build_shared" >&6; }
17799
17800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17801 $as_echo_n "checking whether to build shared libraries... " >&6; }
17802   test "$can_build_shared" = "no" && enable_shared=no
17803
17804   # On AIX, shared libraries and static libraries use the same namespace, and
17805   # are all built from PIC.
17806   case $host_os in
17807   aix3*)
17808     test "$enable_shared" = yes && enable_static=no
17809     if test -n "$RANLIB"; then
17810       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17811       postinstall_cmds='$RANLIB $lib'
17812     fi
17813     ;;
17814
17815   aix[4-9]*)
17816     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17817       test "$enable_shared" = yes && enable_static=no
17818     fi
17819     ;;
17820   esac
17821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17822 $as_echo "$enable_shared" >&6; }
17823
17824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17825 $as_echo_n "checking whether to build static libraries... " >&6; }
17826   # Make sure either enable_shared or enable_static is yes.
17827   test "$enable_shared" = yes || enable_static=yes
17828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17829 $as_echo "$enable_static" >&6; }
17830
17831
17832
17833
17834 fi
17835 ac_ext=c
17836 ac_cpp='$CPP $CPPFLAGS'
17837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17840
17841 CC="$lt_save_CC"
17842
17843       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17844     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17845     (test "X$CXX" != "Xg++"))) ; then
17846   ac_ext=cpp
17847 ac_cpp='$CXXCPP $CPPFLAGS'
17848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17852 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17853 if test -z "$CXXCPP"; then
17854   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17855   $as_echo_n "(cached) " >&6
17856 else
17857       # Double quotes because CXXCPP needs to be expanded
17858     for CXXCPP in "$CXX -E" "/lib/cpp"
17859     do
17860       ac_preproc_ok=false
17861 for ac_cxx_preproc_warn_flag in '' yes
17862 do
17863   # Use a header file that comes with gcc, so configuring glibc
17864   # with a fresh cross-compiler works.
17865   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17866   # <limits.h> exists even on freestanding compilers.
17867   # On the NeXT, cc -E runs the code through the compiler's parser,
17868   # not just through cpp. "Syntax error" is here to catch this case.
17869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17870 /* end confdefs.h.  */
17871 #ifdef __STDC__
17872 # include <limits.h>
17873 #else
17874 # include <assert.h>
17875 #endif
17876                      Syntax error
17877 _ACEOF
17878 if ac_fn_cxx_try_cpp "$LINENO"; then :
17879
17880 else
17881   # Broken: fails on valid input.
17882 continue
17883 fi
17884 rm -f conftest.err conftest.$ac_ext
17885
17886   # OK, works on sane cases.  Now check whether nonexistent headers
17887   # can be detected and how.
17888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17889 /* end confdefs.h.  */
17890 #include <ac_nonexistent.h>
17891 _ACEOF
17892 if ac_fn_cxx_try_cpp "$LINENO"; then :
17893   # Broken: success on invalid input.
17894 continue
17895 else
17896   # Passes both tests.
17897 ac_preproc_ok=:
17898 break
17899 fi
17900 rm -f conftest.err conftest.$ac_ext
17901
17902 done
17903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17904 rm -f conftest.err conftest.$ac_ext
17905 if $ac_preproc_ok; then :
17906   break
17907 fi
17908
17909     done
17910     ac_cv_prog_CXXCPP=$CXXCPP
17911
17912 fi
17913   CXXCPP=$ac_cv_prog_CXXCPP
17914 else
17915   ac_cv_prog_CXXCPP=$CXXCPP
17916 fi
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17918 $as_echo "$CXXCPP" >&6; }
17919 ac_preproc_ok=false
17920 for ac_cxx_preproc_warn_flag in '' yes
17921 do
17922   # Use a header file that comes with gcc, so configuring glibc
17923   # with a fresh cross-compiler works.
17924   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17925   # <limits.h> exists even on freestanding compilers.
17926   # On the NeXT, cc -E runs the code through the compiler's parser,
17927   # not just through cpp. "Syntax error" is here to catch this case.
17928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17929 /* end confdefs.h.  */
17930 #ifdef __STDC__
17931 # include <limits.h>
17932 #else
17933 # include <assert.h>
17934 #endif
17935                      Syntax error
17936 _ACEOF
17937 if ac_fn_cxx_try_cpp "$LINENO"; then :
17938
17939 else
17940   # Broken: fails on valid input.
17941 continue
17942 fi
17943 rm -f conftest.err conftest.$ac_ext
17944
17945   # OK, works on sane cases.  Now check whether nonexistent headers
17946   # can be detected and how.
17947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17948 /* end confdefs.h.  */
17949 #include <ac_nonexistent.h>
17950 _ACEOF
17951 if ac_fn_cxx_try_cpp "$LINENO"; then :
17952   # Broken: success on invalid input.
17953 continue
17954 else
17955   # Passes both tests.
17956 ac_preproc_ok=:
17957 break
17958 fi
17959 rm -f conftest.err conftest.$ac_ext
17960
17961 done
17962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17963 rm -f conftest.err conftest.$ac_ext
17964 if $ac_preproc_ok; then :
17965
17966 else
17967   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17969 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17970 See \`config.log' for more details." "$LINENO" 5; }
17971 fi
17972
17973 ac_ext=c
17974 ac_cpp='$CPP $CPPFLAGS'
17975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17978
17979 else
17980   _lt_caught_CXX_error=yes
17981 fi
17982
17983 ac_ext=cpp
17984 ac_cpp='$CXXCPP $CPPFLAGS'
17985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17988
17989 archive_cmds_need_lc_CXX=no
17990 allow_undefined_flag_CXX=
17991 always_export_symbols_CXX=no
17992 archive_expsym_cmds_CXX=
17993 compiler_needs_object_CXX=no
17994 export_dynamic_flag_spec_CXX=
17995 hardcode_direct_CXX=no
17996 hardcode_direct_absolute_CXX=no
17997 hardcode_libdir_flag_spec_CXX=
17998 hardcode_libdir_flag_spec_ld_CXX=
17999 hardcode_libdir_separator_CXX=
18000 hardcode_minus_L_CXX=no
18001 hardcode_shlibpath_var_CXX=unsupported
18002 hardcode_automatic_CXX=no
18003 inherit_rpath_CXX=no
18004 module_cmds_CXX=
18005 module_expsym_cmds_CXX=
18006 link_all_deplibs_CXX=unknown
18007 old_archive_cmds_CXX=$old_archive_cmds
18008 reload_flag_CXX=$reload_flag
18009 reload_cmds_CXX=$reload_cmds
18010 no_undefined_flag_CXX=
18011 whole_archive_flag_spec_CXX=
18012 enable_shared_with_static_runtimes_CXX=no
18013
18014 # Source file extension for C++ test sources.
18015 ac_ext=cpp
18016
18017 # Object file extension for compiled C++ test sources.
18018 objext=o
18019 objext_CXX=$objext
18020
18021 # No sense in running all these tests if we already determined that
18022 # the CXX compiler isn't working.  Some variables (like enable_shared)
18023 # are currently assumed to apply to all compilers on this platform,
18024 # and will be corrupted by setting them based on a non-working compiler.
18025 if test "$_lt_caught_CXX_error" != yes; then
18026   # Code to be used in simple compile tests
18027   lt_simple_compile_test_code="int some_variable = 0;"
18028
18029   # Code to be used in simple link tests
18030   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18031
18032   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18033
18034
18035
18036
18037
18038
18039 # If no C compiler was specified, use CC.
18040 LTCC=${LTCC-"$CC"}
18041
18042 # If no C compiler flags were specified, use CFLAGS.
18043 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18044
18045 # Allow CC to be a program name with arguments.
18046 compiler=$CC
18047
18048
18049   # save warnings/boilerplate of simple test code
18050   ac_outfile=conftest.$ac_objext
18051 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18052 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18053 _lt_compiler_boilerplate=`cat conftest.err`
18054 $RM conftest*
18055
18056   ac_outfile=conftest.$ac_objext
18057 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18058 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18059 _lt_linker_boilerplate=`cat conftest.err`
18060 $RM -r conftest*
18061
18062
18063   # Allow CC to be a program name with arguments.
18064   lt_save_CC=$CC
18065   lt_save_LD=$LD
18066   lt_save_GCC=$GCC
18067   GCC=$GXX
18068   lt_save_with_gnu_ld=$with_gnu_ld
18069   lt_save_path_LD=$lt_cv_path_LD
18070   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18071     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18072   else
18073     $as_unset lt_cv_prog_gnu_ld
18074   fi
18075   if test -n "${lt_cv_path_LDCXX+set}"; then
18076     lt_cv_path_LD=$lt_cv_path_LDCXX
18077   else
18078     $as_unset lt_cv_path_LD
18079   fi
18080   test -z "${LDCXX+set}" || LD=$LDCXX
18081   CC=${CXX-"c++"}
18082   compiler=$CC
18083   compiler_CXX=$CC
18084   for cc_temp in $compiler""; do
18085   case $cc_temp in
18086     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18087     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18088     \-*) ;;
18089     *) break;;
18090   esac
18091 done
18092 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18093
18094
18095   if test -n "$compiler"; then
18096     # We don't want -fno-exception when compiling C++ code, so set the
18097     # no_builtin_flag separately
18098     if test "$GXX" = yes; then
18099       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18100     else
18101       lt_prog_compiler_no_builtin_flag_CXX=
18102     fi
18103
18104     if test "$GXX" = yes; then
18105       # Set up default GNU C++ configuration
18106
18107
18108
18109 # Check whether --with-gnu-ld was given.
18110 if test "${with_gnu_ld+set}" = set; then :
18111   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18112 else
18113   with_gnu_ld=no
18114 fi
18115
18116 ac_prog=ld
18117 if test "$GCC" = yes; then
18118   # Check if gcc -print-prog-name=ld gives a path.
18119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18120 $as_echo_n "checking for ld used by $CC... " >&6; }
18121   case $host in
18122   *-*-mingw*)
18123     # gcc leaves a trailing carriage return which upsets mingw
18124     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18125   *)
18126     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18127   esac
18128   case $ac_prog in
18129     # Accept absolute paths.
18130     [\\/]* | ?:[\\/]*)
18131       re_direlt='/[^/][^/]*/\.\./'
18132       # Canonicalize the pathname of ld
18133       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18134       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18135         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18136       done
18137       test -z "$LD" && LD="$ac_prog"
18138       ;;
18139   "")
18140     # If it fails, then pretend we aren't using GCC.
18141     ac_prog=ld
18142     ;;
18143   *)
18144     # If it is relative, then search for the first ld in PATH.
18145     with_gnu_ld=unknown
18146     ;;
18147   esac
18148 elif test "$with_gnu_ld" = yes; then
18149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18150 $as_echo_n "checking for GNU ld... " >&6; }
18151 else
18152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18153 $as_echo_n "checking for non-GNU ld... " >&6; }
18154 fi
18155 if test "${lt_cv_path_LD+set}" = set; then :
18156   $as_echo_n "(cached) " >&6
18157 else
18158   if test -z "$LD"; then
18159   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18160   for ac_dir in $PATH; do
18161     IFS="$lt_save_ifs"
18162     test -z "$ac_dir" && ac_dir=.
18163     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18164       lt_cv_path_LD="$ac_dir/$ac_prog"
18165       # Check to see if the program is GNU ld.  I'd rather use --version,
18166       # but apparently some variants of GNU ld only accept -v.
18167       # Break only if it was the GNU/non-GNU ld that we prefer.
18168       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18169       *GNU* | *'with BFD'*)
18170         test "$with_gnu_ld" != no && break
18171         ;;
18172       *)
18173         test "$with_gnu_ld" != yes && break
18174         ;;
18175       esac
18176     fi
18177   done
18178   IFS="$lt_save_ifs"
18179 else
18180   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18181 fi
18182 fi
18183
18184 LD="$lt_cv_path_LD"
18185 if test -n "$LD"; then
18186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18187 $as_echo "$LD" >&6; }
18188 else
18189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18190 $as_echo "no" >&6; }
18191 fi
18192 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18194 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18195 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18196   $as_echo_n "(cached) " >&6
18197 else
18198   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18199 case `$LD -v 2>&1 </dev/null` in
18200 *GNU* | *'with BFD'*)
18201   lt_cv_prog_gnu_ld=yes
18202   ;;
18203 *)
18204   lt_cv_prog_gnu_ld=no
18205   ;;
18206 esac
18207 fi
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18209 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18210 with_gnu_ld=$lt_cv_prog_gnu_ld
18211
18212
18213
18214
18215
18216
18217
18218       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18219       # archiving commands below assume that GNU ld is being used.
18220       if test "$with_gnu_ld" = yes; then
18221         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18222         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'
18223
18224         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18225         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18226
18227         # If archive_cmds runs LD, not CC, wlarc should be empty
18228         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18229         #     investigate it a little bit more. (MM)
18230         wlarc='${wl}'
18231
18232         # ancient GNU ld didn't support --whole-archive et. al.
18233         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18234           $GREP 'no-whole-archive' > /dev/null; then
18235           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18236         else
18237           whole_archive_flag_spec_CXX=
18238         fi
18239       else
18240         with_gnu_ld=no
18241         wlarc=
18242
18243         # A generic and very simple default shared library creation
18244         # command for GNU C++ for the case where it uses the native
18245         # linker, instead of GNU ld.  If possible, this setting should
18246         # overridden to take advantage of the native linker features on
18247         # the platform it is being used on.
18248         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18249       fi
18250
18251       # Commands to make compiler produce verbose output that lists
18252       # what "hidden" libraries, object files and flags are used when
18253       # linking a shared library.
18254       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18255
18256     else
18257       GXX=no
18258       with_gnu_ld=no
18259       wlarc=
18260     fi
18261
18262     # PORTME: fill in a description of your system's C++ link characteristics
18263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18264 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18265     ld_shlibs_CXX=yes
18266     case $host_os in
18267       aix3*)
18268         # FIXME: insert proper C++ library support
18269         ld_shlibs_CXX=no
18270         ;;
18271       aix[4-9]*)
18272         if test "$host_cpu" = ia64; then
18273           # On IA64, the linker does run time linking by default, so we don't
18274           # have to do anything special.
18275           aix_use_runtimelinking=no
18276           exp_sym_flag='-Bexport'
18277           no_entry_flag=""
18278         else
18279           aix_use_runtimelinking=no
18280
18281           # Test if we are trying to use run time linking or normal
18282           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18283           # need to do runtime linking.
18284           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18285             for ld_flag in $LDFLAGS; do
18286               case $ld_flag in
18287               *-brtl*)
18288                 aix_use_runtimelinking=yes
18289                 break
18290                 ;;
18291               esac
18292             done
18293             ;;
18294           esac
18295
18296           exp_sym_flag='-bexport'
18297           no_entry_flag='-bnoentry'
18298         fi
18299
18300         # When large executables or shared objects are built, AIX ld can
18301         # have problems creating the table of contents.  If linking a library
18302         # or program results in "error TOC overflow" add -mminimal-toc to
18303         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18304         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18305
18306         archive_cmds_CXX=''
18307         hardcode_direct_CXX=yes
18308         hardcode_direct_absolute_CXX=yes
18309         hardcode_libdir_separator_CXX=':'
18310         link_all_deplibs_CXX=yes
18311         file_list_spec_CXX='${wl}-f,'
18312
18313         if test "$GXX" = yes; then
18314           case $host_os in aix4.[012]|aix4.[012].*)
18315           # We only want to do this on AIX 4.2 and lower, the check
18316           # below for broken collect2 doesn't work under 4.3+
18317           collect2name=`${CC} -print-prog-name=collect2`
18318           if test -f "$collect2name" &&
18319              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18320           then
18321             # We have reworked collect2
18322             :
18323           else
18324             # We have old collect2
18325             hardcode_direct_CXX=unsupported
18326             # It fails to find uninstalled libraries when the uninstalled
18327             # path is not listed in the libpath.  Setting hardcode_minus_L
18328             # to unsupported forces relinking
18329             hardcode_minus_L_CXX=yes
18330             hardcode_libdir_flag_spec_CXX='-L$libdir'
18331             hardcode_libdir_separator_CXX=
18332           fi
18333           esac
18334           shared_flag='-shared'
18335           if test "$aix_use_runtimelinking" = yes; then
18336             shared_flag="$shared_flag "'${wl}-G'
18337           fi
18338         else
18339           # not using gcc
18340           if test "$host_cpu" = ia64; then
18341           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18342           # chokes on -Wl,-G. The following line is correct:
18343           shared_flag='-G'
18344           else
18345             if test "$aix_use_runtimelinking" = yes; then
18346               shared_flag='${wl}-G'
18347             else
18348               shared_flag='${wl}-bM:SRE'
18349             fi
18350           fi
18351         fi
18352
18353         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18354         # It seems that -bexpall does not export symbols beginning with
18355         # underscore (_), so it is better to generate a list of symbols to
18356         # export.
18357         always_export_symbols_CXX=yes
18358         if test "$aix_use_runtimelinking" = yes; then
18359           # Warning - without using the other runtime loading flags (-brtl),
18360           # -berok will link without error, but may produce a broken library.
18361           allow_undefined_flag_CXX='-berok'
18362           # Determine the default libpath from the value encoded in an empty
18363           # executable.
18364           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18365 /* end confdefs.h.  */
18366
18367 int
18368 main ()
18369 {
18370
18371   ;
18372   return 0;
18373 }
18374 _ACEOF
18375 if ac_fn_cxx_try_link "$LINENO"; then :
18376
18377 lt_aix_libpath_sed='
18378     /Import File Strings/,/^$/ {
18379         /^0/ {
18380             s/^0  *\(.*\)$/\1/
18381             p
18382         }
18383     }'
18384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18385 # Check for a 64-bit object if we didn't find anything.
18386 if test -z "$aix_libpath"; then
18387   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18388 fi
18389 fi
18390 rm -f core conftest.err conftest.$ac_objext \
18391     conftest$ac_exeext conftest.$ac_ext
18392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18393
18394           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18395
18396           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"
18397         else
18398           if test "$host_cpu" = ia64; then
18399             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18400             allow_undefined_flag_CXX="-z nodefs"
18401             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"
18402           else
18403             # Determine the default libpath from the value encoded in an
18404             # empty executable.
18405             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18406 /* end confdefs.h.  */
18407
18408 int
18409 main ()
18410 {
18411
18412   ;
18413   return 0;
18414 }
18415 _ACEOF
18416 if ac_fn_cxx_try_link "$LINENO"; then :
18417
18418 lt_aix_libpath_sed='
18419     /Import File Strings/,/^$/ {
18420         /^0/ {
18421             s/^0  *\(.*\)$/\1/
18422             p
18423         }
18424     }'
18425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18426 # Check for a 64-bit object if we didn't find anything.
18427 if test -z "$aix_libpath"; then
18428   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18429 fi
18430 fi
18431 rm -f core conftest.err conftest.$ac_objext \
18432     conftest$ac_exeext conftest.$ac_ext
18433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18434
18435             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18436             # Warning - without using the other run time loading flags,
18437             # -berok will link without error, but may produce a broken library.
18438             no_undefined_flag_CXX=' ${wl}-bernotok'
18439             allow_undefined_flag_CXX=' ${wl}-berok'
18440             if test "$with_gnu_ld" = yes; then
18441               # We only use this code for GNU lds that support --whole-archive.
18442               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18443             else
18444               # Exported symbols can be pulled into shared objects from archives
18445               whole_archive_flag_spec_CXX='$convenience'
18446             fi
18447             archive_cmds_need_lc_CXX=yes
18448             # This is similar to how AIX traditionally builds its shared
18449             # libraries.
18450             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'
18451           fi
18452         fi
18453         ;;
18454
18455       beos*)
18456         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18457           allow_undefined_flag_CXX=unsupported
18458           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18459           # support --undefined.  This deserves some investigation.  FIXME
18460           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18461         else
18462           ld_shlibs_CXX=no
18463         fi
18464         ;;
18465
18466       chorus*)
18467         case $cc_basename in
18468           *)
18469           # FIXME: insert proper C++ library support
18470           ld_shlibs_CXX=no
18471           ;;
18472         esac
18473         ;;
18474
18475       cygwin* | mingw* | pw32* | cegcc*)
18476         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18477         # as there is no search path for DLLs.
18478         hardcode_libdir_flag_spec_CXX='-L$libdir'
18479         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18480         allow_undefined_flag_CXX=unsupported
18481         always_export_symbols_CXX=no
18482         enable_shared_with_static_runtimes_CXX=yes
18483
18484         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18485           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'
18486           # If the export-symbols file already is a .def file (1st line
18487           # is EXPORTS), use it as is; otherwise, prepend...
18488           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18489             cp $export_symbols $output_objdir/$soname.def;
18490           else
18491             echo EXPORTS > $output_objdir/$soname.def;
18492             cat $export_symbols >> $output_objdir/$soname.def;
18493           fi~
18494           $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'
18495         else
18496           ld_shlibs_CXX=no
18497         fi
18498         ;;
18499       darwin* | rhapsody*)
18500
18501
18502   archive_cmds_need_lc_CXX=no
18503   hardcode_direct_CXX=no
18504   hardcode_automatic_CXX=yes
18505   hardcode_shlibpath_var_CXX=unsupported
18506   if test "$lt_cv_ld_force_load" = "yes"; then
18507     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\"`'
18508   else
18509     whole_archive_flag_spec_CXX=''
18510   fi
18511   link_all_deplibs_CXX=yes
18512   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18513   case $cc_basename in
18514      ifort*) _lt_dar_can_shared=yes ;;
18515      *) _lt_dar_can_shared=$GCC ;;
18516   esac
18517   if test "$_lt_dar_can_shared" = "yes"; then
18518     output_verbose_link_cmd=func_echo_all
18519     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}"
18520     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18521     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}"
18522     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}"
18523        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18524       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}"
18525       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}"
18526     fi
18527
18528   else
18529   ld_shlibs_CXX=no
18530   fi
18531
18532         ;;
18533
18534       dgux*)
18535         case $cc_basename in
18536           ec++*)
18537             # FIXME: insert proper C++ library support
18538             ld_shlibs_CXX=no
18539             ;;
18540           ghcx*)
18541             # Green Hills C++ Compiler
18542             # FIXME: insert proper C++ library support
18543             ld_shlibs_CXX=no
18544             ;;
18545           *)
18546             # FIXME: insert proper C++ library support
18547             ld_shlibs_CXX=no
18548             ;;
18549         esac
18550         ;;
18551
18552       freebsd[12]*)
18553         # C++ shared libraries reported to be fairly broken before
18554         # switch to ELF
18555         ld_shlibs_CXX=no
18556         ;;
18557
18558       freebsd-elf*)
18559         archive_cmds_need_lc_CXX=no
18560         ;;
18561
18562       freebsd* | dragonfly*)
18563         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18564         # conventions
18565         ld_shlibs_CXX=yes
18566         ;;
18567
18568       gnu*)
18569         ;;
18570
18571       haiku*)
18572         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18573         link_all_deplibs_CXX=yes
18574         ;;
18575
18576       hpux9*)
18577         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18578         hardcode_libdir_separator_CXX=:
18579         export_dynamic_flag_spec_CXX='${wl}-E'
18580         hardcode_direct_CXX=yes
18581         hardcode_minus_L_CXX=yes # Not in the search PATH,
18582                                              # but as the default
18583                                              # location of the library.
18584
18585         case $cc_basename in
18586           CC*)
18587             # FIXME: insert proper C++ library support
18588             ld_shlibs_CXX=no
18589             ;;
18590           aCC*)
18591             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'
18592             # Commands to make compiler produce verbose output that lists
18593             # what "hidden" libraries, object files and flags are used when
18594             # linking a shared library.
18595             #
18596             # There doesn't appear to be a way to prevent this compiler from
18597             # explicitly linking system object files so we need to strip them
18598             # from the output so that they don't get included in the library
18599             # dependencies.
18600             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"'
18601             ;;
18602           *)
18603             if test "$GXX" = yes; then
18604               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'
18605             else
18606               # FIXME: insert proper C++ library support
18607               ld_shlibs_CXX=no
18608             fi
18609             ;;
18610         esac
18611         ;;
18612
18613       hpux10*|hpux11*)
18614         if test $with_gnu_ld = no; then
18615           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18616           hardcode_libdir_separator_CXX=:
18617
18618           case $host_cpu in
18619             hppa*64*|ia64*)
18620               ;;
18621             *)
18622               export_dynamic_flag_spec_CXX='${wl}-E'
18623               ;;
18624           esac
18625         fi
18626         case $host_cpu in
18627           hppa*64*|ia64*)
18628             hardcode_direct_CXX=no
18629             hardcode_shlibpath_var_CXX=no
18630             ;;
18631           *)
18632             hardcode_direct_CXX=yes
18633             hardcode_direct_absolute_CXX=yes
18634             hardcode_minus_L_CXX=yes # Not in the search PATH,
18635                                                  # but as the default
18636                                                  # location of the library.
18637             ;;
18638         esac
18639
18640         case $cc_basename in
18641           CC*)
18642             # FIXME: insert proper C++ library support
18643             ld_shlibs_CXX=no
18644             ;;
18645           aCC*)
18646             case $host_cpu in
18647               hppa*64*)
18648                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18649                 ;;
18650               ia64*)
18651                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18652                 ;;
18653               *)
18654                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18655                 ;;
18656             esac
18657             # Commands to make compiler produce verbose output that lists
18658             # what "hidden" libraries, object files and flags are used when
18659             # linking a shared library.
18660             #
18661             # There doesn't appear to be a way to prevent this compiler from
18662             # explicitly linking system object files so we need to strip them
18663             # from the output so that they don't get included in the library
18664             # dependencies.
18665             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"'
18666             ;;
18667           *)
18668             if test "$GXX" = yes; then
18669               if test $with_gnu_ld = no; then
18670                 case $host_cpu in
18671                   hppa*64*)
18672                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18673                     ;;
18674                   ia64*)
18675                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18676                     ;;
18677                   *)
18678                     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'
18679                     ;;
18680                 esac
18681               fi
18682             else
18683               # FIXME: insert proper C++ library support
18684               ld_shlibs_CXX=no
18685             fi
18686             ;;
18687         esac
18688         ;;
18689
18690       interix[3-9]*)
18691         hardcode_direct_CXX=no
18692         hardcode_shlibpath_var_CXX=no
18693         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18694         export_dynamic_flag_spec_CXX='${wl}-E'
18695         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18696         # Instead, shared libraries are loaded at an image base (0x10000000 by
18697         # default) and relocated if they conflict, which is a slow very memory
18698         # consuming and fragmenting process.  To avoid this, we pick a random,
18699         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18700         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18701         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'
18702         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'
18703         ;;
18704       irix5* | irix6*)
18705         case $cc_basename in
18706           CC*)
18707             # SGI C++
18708             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'
18709
18710             # Archives containing C++ object files must be created using
18711             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18712             # necessary to make sure instantiated templates are included
18713             # in the archive.
18714             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18715             ;;
18716           *)
18717             if test "$GXX" = yes; then
18718               if test "$with_gnu_ld" = no; then
18719                 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'
18720               else
18721                 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'
18722               fi
18723             fi
18724             link_all_deplibs_CXX=yes
18725             ;;
18726         esac
18727         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18728         hardcode_libdir_separator_CXX=:
18729         inherit_rpath_CXX=yes
18730         ;;
18731
18732       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18733         case $cc_basename in
18734           KCC*)
18735             # Kuck and Associates, Inc. (KAI) C++ Compiler
18736
18737             # KCC will only create a shared library if the output file
18738             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18739             # to its proper name (with version) after linking.
18740             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'
18741             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'
18742             # Commands to make compiler produce verbose output that lists
18743             # what "hidden" libraries, object files and flags are used when
18744             # linking a shared library.
18745             #
18746             # There doesn't appear to be a way to prevent this compiler from
18747             # explicitly linking system object files so we need to strip them
18748             # from the output so that they don't get included in the library
18749             # dependencies.
18750             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"'
18751
18752             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18753             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18754
18755             # Archives containing C++ object files must be created using
18756             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18757             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18758             ;;
18759           icpc* | ecpc* )
18760             # Intel C++
18761             with_gnu_ld=yes
18762             # version 8.0 and above of icpc choke on multiply defined symbols
18763             # if we add $predep_objects and $postdep_objects, however 7.1 and
18764             # earlier do not add the objects themselves.
18765             case `$CC -V 2>&1` in
18766               *"Version 7."*)
18767                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18768                 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'
18769                 ;;
18770               *)  # Version 8.0 or newer
18771                 tmp_idyn=
18772                 case $host_cpu in
18773                   ia64*) tmp_idyn=' -i_dynamic';;
18774                 esac
18775                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18776                 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'
18777                 ;;
18778             esac
18779             archive_cmds_need_lc_CXX=no
18780             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18781             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18782             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18783             ;;
18784           pgCC* | pgcpp*)
18785             # Portland Group C++ compiler
18786             case `$CC -V` in
18787             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18788               prelink_cmds_CXX='tpldir=Template.dir~
18789                 rm -rf $tpldir~
18790                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18791                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18792               old_archive_cmds_CXX='tpldir=Template.dir~
18793                 rm -rf $tpldir~
18794                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18795                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18796                 $RANLIB $oldlib'
18797               archive_cmds_CXX='tpldir=Template.dir~
18798                 rm -rf $tpldir~
18799                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18800                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18801               archive_expsym_cmds_CXX='tpldir=Template.dir~
18802                 rm -rf $tpldir~
18803                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18804                 $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'
18805               ;;
18806             *) # Version 6 and above use weak symbols
18807               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18808               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'
18809               ;;
18810             esac
18811
18812             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18813             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18814             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'
18815             ;;
18816           cxx*)
18817             # Compaq C++
18818             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18819             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'
18820
18821             runpath_var=LD_RUN_PATH
18822             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18823             hardcode_libdir_separator_CXX=:
18824
18825             # Commands to make compiler produce verbose output that lists
18826             # what "hidden" libraries, object files and flags are used when
18827             # linking a shared library.
18828             #
18829             # There doesn't appear to be a way to prevent this compiler from
18830             # explicitly linking system object files so we need to strip them
18831             # from the output so that they don't get included in the library
18832             # dependencies.
18833             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'
18834             ;;
18835           xl* | mpixl* | bgxl*)
18836             # IBM XL 8.0 on PPC, with GNU ld
18837             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18838             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18839             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18840             if test "x$supports_anon_versioning" = xyes; then
18841               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18842                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18843                 echo "local: *; };" >> $output_objdir/$libname.ver~
18844                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18845             fi
18846             ;;
18847           *)
18848             case `$CC -V 2>&1 | sed 5q` in
18849             *Sun\ C*)
18850               # Sun C++ 5.9
18851               no_undefined_flag_CXX=' -zdefs'
18852               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18853               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'
18854               hardcode_libdir_flag_spec_CXX='-R$libdir'
18855               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'
18856               compiler_needs_object_CXX=yes
18857
18858               # Not sure whether something based on
18859               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18860               # would be better.
18861               output_verbose_link_cmd='func_echo_all'
18862
18863               # Archives containing C++ object files must be created using
18864               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18865               # necessary to make sure instantiated templates are included
18866               # in the archive.
18867               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18868               ;;
18869             esac
18870             ;;
18871         esac
18872         ;;
18873
18874       lynxos*)
18875         # FIXME: insert proper C++ library support
18876         ld_shlibs_CXX=no
18877         ;;
18878
18879       m88k*)
18880         # FIXME: insert proper C++ library support
18881         ld_shlibs_CXX=no
18882         ;;
18883
18884       mvs*)
18885         case $cc_basename in
18886           cxx*)
18887             # FIXME: insert proper C++ library support
18888             ld_shlibs_CXX=no
18889             ;;
18890           *)
18891             # FIXME: insert proper C++ library support
18892             ld_shlibs_CXX=no
18893             ;;
18894         esac
18895         ;;
18896
18897       netbsd*)
18898         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18899           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18900           wlarc=
18901           hardcode_libdir_flag_spec_CXX='-R$libdir'
18902           hardcode_direct_CXX=yes
18903           hardcode_shlibpath_var_CXX=no
18904         fi
18905         # Workaround some broken pre-1.5 toolchains
18906         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18907         ;;
18908
18909       *nto* | *qnx*)
18910         ld_shlibs_CXX=yes
18911         ;;
18912
18913       openbsd2*)
18914         # C++ shared libraries are fairly broken
18915         ld_shlibs_CXX=no
18916         ;;
18917
18918       openbsd*)
18919         if test -f /usr/libexec/ld.so; then
18920           hardcode_direct_CXX=yes
18921           hardcode_shlibpath_var_CXX=no
18922           hardcode_direct_absolute_CXX=yes
18923           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18924           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18925           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18926             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18927             export_dynamic_flag_spec_CXX='${wl}-E'
18928             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18929           fi
18930           output_verbose_link_cmd=func_echo_all
18931         else
18932           ld_shlibs_CXX=no
18933         fi
18934         ;;
18935
18936       osf3* | osf4* | osf5*)
18937         case $cc_basename in
18938           KCC*)
18939             # Kuck and Associates, Inc. (KAI) C++ Compiler
18940
18941             # KCC will only create a shared library if the output file
18942             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18943             # to its proper name (with version) after linking.
18944             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'
18945
18946             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18947             hardcode_libdir_separator_CXX=:
18948
18949             # Archives containing C++ object files must be created using
18950             # the KAI C++ compiler.
18951             case $host in
18952               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18953               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18954             esac
18955             ;;
18956           RCC*)
18957             # Rational C++ 2.4.1
18958             # FIXME: insert proper C++ library support
18959             ld_shlibs_CXX=no
18960             ;;
18961           cxx*)
18962             case $host in
18963               osf3*)
18964                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18965                 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'
18966                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18967                 ;;
18968               *)
18969                 allow_undefined_flag_CXX=' -expect_unresolved \*'
18970                 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'
18971                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18972                   echo "-hidden">> $lib.exp~
18973                   $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~
18974                   $RM $lib.exp'
18975                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18976                 ;;
18977             esac
18978
18979             hardcode_libdir_separator_CXX=:
18980
18981             # Commands to make compiler produce verbose output that lists
18982             # what "hidden" libraries, object files and flags are used when
18983             # linking a shared library.
18984             #
18985             # There doesn't appear to be a way to prevent this compiler from
18986             # explicitly linking system object files so we need to strip them
18987             # from the output so that they don't get included in the library
18988             # dependencies.
18989             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"'
18990             ;;
18991           *)
18992             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18993               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18994               case $host in
18995                 osf3*)
18996                   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'
18997                   ;;
18998                 *)
18999                   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'
19000                   ;;
19001               esac
19002
19003               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19004               hardcode_libdir_separator_CXX=:
19005
19006               # Commands to make compiler produce verbose output that lists
19007               # what "hidden" libraries, object files and flags are used when
19008               # linking a shared library.
19009               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19010
19011             else
19012               # FIXME: insert proper C++ library support
19013               ld_shlibs_CXX=no
19014             fi
19015             ;;
19016         esac
19017         ;;
19018
19019       psos*)
19020         # FIXME: insert proper C++ library support
19021         ld_shlibs_CXX=no
19022         ;;
19023
19024       sunos4*)
19025         case $cc_basename in
19026           CC*)
19027             # Sun C++ 4.x
19028             # FIXME: insert proper C++ library support
19029             ld_shlibs_CXX=no
19030             ;;
19031           lcc*)
19032             # Lucid
19033             # FIXME: insert proper C++ library support
19034             ld_shlibs_CXX=no
19035             ;;
19036           *)
19037             # FIXME: insert proper C++ library support
19038             ld_shlibs_CXX=no
19039             ;;
19040         esac
19041         ;;
19042
19043       solaris*)
19044         case $cc_basename in
19045           CC*)
19046             # Sun C++ 4.2, 5.x and Centerline C++
19047             archive_cmds_need_lc_CXX=yes
19048             no_undefined_flag_CXX=' -zdefs'
19049             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19050             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19051               $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'
19052
19053             hardcode_libdir_flag_spec_CXX='-R$libdir'
19054             hardcode_shlibpath_var_CXX=no
19055             case $host_os in
19056               solaris2.[0-5] | solaris2.[0-5].*) ;;
19057               *)
19058                 # The compiler driver will combine and reorder linker options,
19059                 # but understands `-z linker_flag'.
19060                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19061                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19062                 ;;
19063             esac
19064             link_all_deplibs_CXX=yes
19065
19066             output_verbose_link_cmd='func_echo_all'
19067
19068             # Archives containing C++ object files must be created using
19069             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19070             # necessary to make sure instantiated templates are included
19071             # in the archive.
19072             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19073             ;;
19074           gcx*)
19075             # Green Hills C++ Compiler
19076             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19077
19078             # The C++ compiler must be used to create the archive.
19079             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19080             ;;
19081           *)
19082             # GNU C++ compiler with Solaris linker
19083             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19084               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19085               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19086                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19087                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19088                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19089
19090                 # Commands to make compiler produce verbose output that lists
19091                 # what "hidden" libraries, object files and flags are used when
19092                 # linking a shared library.
19093                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19094               else
19095                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19096                 # platform.
19097                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19098                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19099                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19100
19101                 # Commands to make compiler produce verbose output that lists
19102                 # what "hidden" libraries, object files and flags are used when
19103                 # linking a shared library.
19104                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19105               fi
19106
19107               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19108               case $host_os in
19109                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19110                 *)
19111                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19112                   ;;
19113               esac
19114             fi
19115             ;;
19116         esac
19117         ;;
19118
19119     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19120       no_undefined_flag_CXX='${wl}-z,text'
19121       archive_cmds_need_lc_CXX=no
19122       hardcode_shlibpath_var_CXX=no
19123       runpath_var='LD_RUN_PATH'
19124
19125       case $cc_basename in
19126         CC*)
19127           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19128           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19129           ;;
19130         *)
19131           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19132           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19133           ;;
19134       esac
19135       ;;
19136
19137       sysv5* | sco3.2v5* | sco5v6*)
19138         # Note: We can NOT use -z defs as we might desire, because we do not
19139         # link with -lc, and that would cause any symbols used from libc to
19140         # always be unresolved, which means just about no library would
19141         # ever link correctly.  If we're not using GNU ld we use -z text
19142         # though, which does catch some bad symbols but isn't as heavy-handed
19143         # as -z defs.
19144         no_undefined_flag_CXX='${wl}-z,text'
19145         allow_undefined_flag_CXX='${wl}-z,nodefs'
19146         archive_cmds_need_lc_CXX=no
19147         hardcode_shlibpath_var_CXX=no
19148         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19149         hardcode_libdir_separator_CXX=':'
19150         link_all_deplibs_CXX=yes
19151         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19152         runpath_var='LD_RUN_PATH'
19153
19154         case $cc_basename in
19155           CC*)
19156             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19157             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19158             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19159               '"$old_archive_cmds_CXX"
19160             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19161               '"$reload_cmds_CXX"
19162             ;;
19163           *)
19164             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19165             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19166             ;;
19167         esac
19168       ;;
19169
19170       tandem*)
19171         case $cc_basename in
19172           NCC*)
19173             # NonStop-UX NCC 3.20
19174             # FIXME: insert proper C++ library support
19175             ld_shlibs_CXX=no
19176             ;;
19177           *)
19178             # FIXME: insert proper C++ library support
19179             ld_shlibs_CXX=no
19180             ;;
19181         esac
19182         ;;
19183
19184       vxworks*)
19185         # FIXME: insert proper C++ library support
19186         ld_shlibs_CXX=no
19187         ;;
19188
19189       *)
19190         # FIXME: insert proper C++ library support
19191         ld_shlibs_CXX=no
19192         ;;
19193     esac
19194
19195     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19196 $as_echo "$ld_shlibs_CXX" >&6; }
19197     test "$ld_shlibs_CXX" = no && can_build_shared=no
19198
19199     GCC_CXX="$GXX"
19200     LD_CXX="$LD"
19201
19202     ## CAVEAT EMPTOR:
19203     ## There is no encapsulation within the following macros, do not change
19204     ## the running order or otherwise move them around unless you know exactly
19205     ## what you are doing...
19206     # Dependencies to place before and after the object being linked:
19207 predep_objects_CXX=
19208 postdep_objects_CXX=
19209 predeps_CXX=
19210 postdeps_CXX=
19211 compiler_lib_search_path_CXX=
19212
19213 cat > conftest.$ac_ext <<_LT_EOF
19214 class Foo
19215 {
19216 public:
19217   Foo (void) { a = 0; }
19218 private:
19219   int a;
19220 };
19221 _LT_EOF
19222
19223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19224   (eval $ac_compile) 2>&5
19225   ac_status=$?
19226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19227   test $ac_status = 0; }; then
19228   # Parse the compiler output and extract the necessary
19229   # objects, libraries and library flags.
19230
19231   # Sentinel used to keep track of whether or not we are before
19232   # the conftest object file.
19233   pre_test_object_deps_done=no
19234
19235   for p in `eval "$output_verbose_link_cmd"`; do
19236     case $p in
19237
19238     -L* | -R* | -l*)
19239        # Some compilers place space between "-{L,R}" and the path.
19240        # Remove the space.
19241        if test $p = "-L" ||
19242           test $p = "-R"; then
19243          prev=$p
19244          continue
19245        else
19246          prev=
19247        fi
19248
19249        if test "$pre_test_object_deps_done" = no; then
19250          case $p in
19251          -L* | -R*)
19252            # Internal compiler library paths should come after those
19253            # provided the user.  The postdeps already come after the
19254            # user supplied libs so there is no need to process them.
19255            if test -z "$compiler_lib_search_path_CXX"; then
19256              compiler_lib_search_path_CXX="${prev}${p}"
19257            else
19258              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19259            fi
19260            ;;
19261          # The "-l" case would never come before the object being
19262          # linked, so don't bother handling this case.
19263          esac
19264        else
19265          if test -z "$postdeps_CXX"; then
19266            postdeps_CXX="${prev}${p}"
19267          else
19268            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19269          fi
19270        fi
19271        ;;
19272
19273     *.$objext)
19274        # This assumes that the test object file only shows up
19275        # once in the compiler output.
19276        if test "$p" = "conftest.$objext"; then
19277          pre_test_object_deps_done=yes
19278          continue
19279        fi
19280
19281        if test "$pre_test_object_deps_done" = no; then
19282          if test -z "$predep_objects_CXX"; then
19283            predep_objects_CXX="$p"
19284          else
19285            predep_objects_CXX="$predep_objects_CXX $p"
19286          fi
19287        else
19288          if test -z "$postdep_objects_CXX"; then
19289            postdep_objects_CXX="$p"
19290          else
19291            postdep_objects_CXX="$postdep_objects_CXX $p"
19292          fi
19293        fi
19294        ;;
19295
19296     *) ;; # Ignore the rest.
19297
19298     esac
19299   done
19300
19301   # Clean up.
19302   rm -f a.out a.exe
19303 else
19304   echo "libtool.m4: error: problem compiling CXX test program"
19305 fi
19306
19307 $RM -f confest.$objext
19308
19309 # PORTME: override above test on systems where it is broken
19310 case $host_os in
19311 interix[3-9]*)
19312   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19313   # hack all around it, let's just trust "g++" to DTRT.
19314   predep_objects_CXX=
19315   postdep_objects_CXX=
19316   postdeps_CXX=
19317   ;;
19318
19319 linux*)
19320   case `$CC -V 2>&1 | sed 5q` in
19321   *Sun\ C*)
19322     # Sun C++ 5.9
19323
19324     # The more standards-conforming stlport4 library is
19325     # incompatible with the Cstd library. Avoid specifying
19326     # it if it's in CXXFLAGS. Ignore libCrun as
19327     # -library=stlport4 depends on it.
19328     case " $CXX $CXXFLAGS " in
19329     *" -library=stlport4 "*)
19330       solaris_use_stlport4=yes
19331       ;;
19332     esac
19333
19334     if test "$solaris_use_stlport4" != yes; then
19335       postdeps_CXX='-library=Cstd -library=Crun'
19336     fi
19337     ;;
19338   esac
19339   ;;
19340
19341 solaris*)
19342   case $cc_basename in
19343   CC*)
19344     # The more standards-conforming stlport4 library is
19345     # incompatible with the Cstd library. Avoid specifying
19346     # it if it's in CXXFLAGS. Ignore libCrun as
19347     # -library=stlport4 depends on it.
19348     case " $CXX $CXXFLAGS " in
19349     *" -library=stlport4 "*)
19350       solaris_use_stlport4=yes
19351       ;;
19352     esac
19353
19354     # Adding this requires a known-good setup of shared libraries for
19355     # Sun compiler versions before 5.6, else PIC objects from an old
19356     # archive will be linked into the output, leading to subtle bugs.
19357     if test "$solaris_use_stlport4" != yes; then
19358       postdeps_CXX='-library=Cstd -library=Crun'
19359     fi
19360     ;;
19361   esac
19362   ;;
19363 esac
19364
19365
19366 case " $postdeps_CXX " in
19367 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19368 esac
19369  compiler_lib_search_dirs_CXX=
19370 if test -n "${compiler_lib_search_path_CXX}"; then
19371  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19372 fi
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404     lt_prog_compiler_wl_CXX=
19405 lt_prog_compiler_pic_CXX=
19406 lt_prog_compiler_static_CXX=
19407
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19409 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19410
19411   # C++ specific cases for pic, static, wl, etc.
19412   if test "$GXX" = yes; then
19413     lt_prog_compiler_wl_CXX='-Wl,'
19414     lt_prog_compiler_static_CXX='-static'
19415
19416     case $host_os in
19417     aix*)
19418       # All AIX code is PIC.
19419       if test "$host_cpu" = ia64; then
19420         # AIX 5 now supports IA64 processor
19421         lt_prog_compiler_static_CXX='-Bstatic'
19422       fi
19423       ;;
19424
19425     amigaos*)
19426       case $host_cpu in
19427       powerpc)
19428             # see comment about AmigaOS4 .so support
19429             lt_prog_compiler_pic_CXX='-fPIC'
19430         ;;
19431       m68k)
19432             # FIXME: we need at least 68020 code to build shared libraries, but
19433             # adding the `-m68020' flag to GCC prevents building anything better,
19434             # like `-m68040'.
19435             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19436         ;;
19437       esac
19438       ;;
19439
19440     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19441       # PIC is the default for these OSes.
19442       ;;
19443     mingw* | cygwin* | os2* | pw32* | cegcc*)
19444       # This hack is so that the source file can tell whether it is being
19445       # built for inclusion in a dll (and should export symbols for example).
19446       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19447       # (--disable-auto-import) libraries
19448       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19449       ;;
19450     darwin* | rhapsody*)
19451       # PIC is the default on this platform
19452       # Common symbols not allowed in MH_DYLIB files
19453       lt_prog_compiler_pic_CXX='-fno-common'
19454       ;;
19455     *djgpp*)
19456       # DJGPP does not support shared libraries at all
19457       lt_prog_compiler_pic_CXX=
19458       ;;
19459     haiku*)
19460       # PIC is the default for Haiku.
19461       # The "-static" flag exists, but is broken.
19462       lt_prog_compiler_static_CXX=
19463       ;;
19464     interix[3-9]*)
19465       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19466       # Instead, we relocate shared libraries at runtime.
19467       ;;
19468     sysv4*MP*)
19469       if test -d /usr/nec; then
19470         lt_prog_compiler_pic_CXX=-Kconform_pic
19471       fi
19472       ;;
19473     hpux*)
19474       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19475       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19476       # sets the default TLS model and affects inlining.
19477       case $host_cpu in
19478       hppa*64*)
19479         ;;
19480       *)
19481         lt_prog_compiler_pic_CXX='-fPIC'
19482         ;;
19483       esac
19484       ;;
19485     *qnx* | *nto*)
19486       # QNX uses GNU C++, but need to define -shared option too, otherwise
19487       # it will coredump.
19488       lt_prog_compiler_pic_CXX='-fPIC -shared'
19489       ;;
19490     *)
19491       lt_prog_compiler_pic_CXX='-fPIC'
19492       ;;
19493     esac
19494   else
19495     case $host_os in
19496       aix[4-9]*)
19497         # All AIX code is PIC.
19498         if test "$host_cpu" = ia64; then
19499           # AIX 5 now supports IA64 processor
19500           lt_prog_compiler_static_CXX='-Bstatic'
19501         else
19502           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19503         fi
19504         ;;
19505       chorus*)
19506         case $cc_basename in
19507         cxch68*)
19508           # Green Hills C++ Compiler
19509           # _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"
19510           ;;
19511         esac
19512         ;;
19513       dgux*)
19514         case $cc_basename in
19515           ec++*)
19516             lt_prog_compiler_pic_CXX='-KPIC'
19517             ;;
19518           ghcx*)
19519             # Green Hills C++ Compiler
19520             lt_prog_compiler_pic_CXX='-pic'
19521             ;;
19522           *)
19523             ;;
19524         esac
19525         ;;
19526       freebsd* | dragonfly*)
19527         # FreeBSD uses GNU C++
19528         ;;
19529       hpux9* | hpux10* | hpux11*)
19530         case $cc_basename in
19531           CC*)
19532             lt_prog_compiler_wl_CXX='-Wl,'
19533             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19534             if test "$host_cpu" != ia64; then
19535               lt_prog_compiler_pic_CXX='+Z'
19536             fi
19537             ;;
19538           aCC*)
19539             lt_prog_compiler_wl_CXX='-Wl,'
19540             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19541             case $host_cpu in
19542             hppa*64*|ia64*)
19543               # +Z the default
19544               ;;
19545             *)
19546               lt_prog_compiler_pic_CXX='+Z'
19547               ;;
19548             esac
19549             ;;
19550           *)
19551             ;;
19552         esac
19553         ;;
19554       interix*)
19555         # This is c89, which is MS Visual C++ (no shared libs)
19556         # Anyone wants to do a port?
19557         ;;
19558       irix5* | irix6* | nonstopux*)
19559         case $cc_basename in
19560           CC*)
19561             lt_prog_compiler_wl_CXX='-Wl,'
19562             lt_prog_compiler_static_CXX='-non_shared'
19563             # CC pic flag -KPIC is the default.
19564             ;;
19565           *)
19566             ;;
19567         esac
19568         ;;
19569       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19570         case $cc_basename in
19571           KCC*)
19572             # KAI C++ Compiler
19573             lt_prog_compiler_wl_CXX='--backend -Wl,'
19574             lt_prog_compiler_pic_CXX='-fPIC'
19575             ;;
19576           ecpc* )
19577             # old Intel C++ for x86_64 which still supported -KPIC.
19578             lt_prog_compiler_wl_CXX='-Wl,'
19579             lt_prog_compiler_pic_CXX='-KPIC'
19580             lt_prog_compiler_static_CXX='-static'
19581             ;;
19582           icpc* )
19583             # Intel C++, used to be incompatible with GCC.
19584             # ICC 10 doesn't accept -KPIC any more.
19585             lt_prog_compiler_wl_CXX='-Wl,'
19586             lt_prog_compiler_pic_CXX='-fPIC'
19587             lt_prog_compiler_static_CXX='-static'
19588             ;;
19589           pgCC* | pgcpp*)
19590             # Portland Group C++ compiler
19591             lt_prog_compiler_wl_CXX='-Wl,'
19592             lt_prog_compiler_pic_CXX='-fpic'
19593             lt_prog_compiler_static_CXX='-Bstatic'
19594             ;;
19595           cxx*)
19596             # Compaq C++
19597             # Make sure the PIC flag is empty.  It appears that all Alpha
19598             # Linux and Compaq Tru64 Unix objects are PIC.
19599             lt_prog_compiler_pic_CXX=
19600             lt_prog_compiler_static_CXX='-non_shared'
19601             ;;
19602           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19603             # IBM XL 8.0, 9.0 on PPC and BlueGene
19604             lt_prog_compiler_wl_CXX='-Wl,'
19605             lt_prog_compiler_pic_CXX='-qpic'
19606             lt_prog_compiler_static_CXX='-qstaticlink'
19607             ;;
19608           *)
19609             case `$CC -V 2>&1 | sed 5q` in
19610             *Sun\ C*)
19611               # Sun C++ 5.9
19612               lt_prog_compiler_pic_CXX='-KPIC'
19613               lt_prog_compiler_static_CXX='-Bstatic'
19614               lt_prog_compiler_wl_CXX='-Qoption ld '
19615               ;;
19616             esac
19617             ;;
19618         esac
19619         ;;
19620       lynxos*)
19621         ;;
19622       m88k*)
19623         ;;
19624       mvs*)
19625         case $cc_basename in
19626           cxx*)
19627             lt_prog_compiler_pic_CXX='-W c,exportall'
19628             ;;
19629           *)
19630             ;;
19631         esac
19632         ;;
19633       netbsd*)
19634         ;;
19635       *qnx* | *nto*)
19636         # QNX uses GNU C++, but need to define -shared option too, otherwise
19637         # it will coredump.
19638         lt_prog_compiler_pic_CXX='-fPIC -shared'
19639         ;;
19640       osf3* | osf4* | osf5*)
19641         case $cc_basename in
19642           KCC*)
19643             lt_prog_compiler_wl_CXX='--backend -Wl,'
19644             ;;
19645           RCC*)
19646             # Rational C++ 2.4.1
19647             lt_prog_compiler_pic_CXX='-pic'
19648             ;;
19649           cxx*)
19650             # Digital/Compaq C++
19651             lt_prog_compiler_wl_CXX='-Wl,'
19652             # Make sure the PIC flag is empty.  It appears that all Alpha
19653             # Linux and Compaq Tru64 Unix objects are PIC.
19654             lt_prog_compiler_pic_CXX=
19655             lt_prog_compiler_static_CXX='-non_shared'
19656             ;;
19657           *)
19658             ;;
19659         esac
19660         ;;
19661       psos*)
19662         ;;
19663       solaris*)
19664         case $cc_basename in
19665           CC*)
19666             # Sun C++ 4.2, 5.x and Centerline C++
19667             lt_prog_compiler_pic_CXX='-KPIC'
19668             lt_prog_compiler_static_CXX='-Bstatic'
19669             lt_prog_compiler_wl_CXX='-Qoption ld '
19670             ;;
19671           gcx*)
19672             # Green Hills C++ Compiler
19673             lt_prog_compiler_pic_CXX='-PIC'
19674             ;;
19675           *)
19676             ;;
19677         esac
19678         ;;
19679       sunos4*)
19680         case $cc_basename in
19681           CC*)
19682             # Sun C++ 4.x
19683             lt_prog_compiler_pic_CXX='-pic'
19684             lt_prog_compiler_static_CXX='-Bstatic'
19685             ;;
19686           lcc*)
19687             # Lucid
19688             lt_prog_compiler_pic_CXX='-pic'
19689             ;;
19690           *)
19691             ;;
19692         esac
19693         ;;
19694       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19695         case $cc_basename in
19696           CC*)
19697             lt_prog_compiler_wl_CXX='-Wl,'
19698             lt_prog_compiler_pic_CXX='-KPIC'
19699             lt_prog_compiler_static_CXX='-Bstatic'
19700             ;;
19701         esac
19702         ;;
19703       tandem*)
19704         case $cc_basename in
19705           NCC*)
19706             # NonStop-UX NCC 3.20
19707             lt_prog_compiler_pic_CXX='-KPIC'
19708             ;;
19709           *)
19710             ;;
19711         esac
19712         ;;
19713       vxworks*)
19714         ;;
19715       *)
19716         lt_prog_compiler_can_build_shared_CXX=no
19717         ;;
19718     esac
19719   fi
19720
19721 case $host_os in
19722   # For platforms which do not support PIC, -DPIC is meaningless:
19723   *djgpp*)
19724     lt_prog_compiler_pic_CXX=
19725     ;;
19726   *)
19727     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19728     ;;
19729 esac
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19731 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19732
19733
19734
19735 #
19736 # Check to make sure the PIC flag actually works.
19737 #
19738 if test -n "$lt_prog_compiler_pic_CXX"; then
19739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19740 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19741 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19742   $as_echo_n "(cached) " >&6
19743 else
19744   lt_cv_prog_compiler_pic_works_CXX=no
19745    ac_outfile=conftest.$ac_objext
19746    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19747    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19748    # Insert the option either (1) after the last *FLAGS variable, or
19749    # (2) before a word containing "conftest.", or (3) at the end.
19750    # Note that $ac_compile itself does not contain backslashes and begins
19751    # with a dollar sign (not a hyphen), so the echo should work correctly.
19752    # The option is referenced via a variable to avoid confusing sed.
19753    lt_compile=`echo "$ac_compile" | $SED \
19754    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19755    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19756    -e 's:$: $lt_compiler_flag:'`
19757    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19758    (eval "$lt_compile" 2>conftest.err)
19759    ac_status=$?
19760    cat conftest.err >&5
19761    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762    if (exit $ac_status) && test -s "$ac_outfile"; then
19763      # The compiler can only warn and ignore the option if not recognized
19764      # So say no if there are warnings other than the usual output.
19765      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19766      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19767      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19768        lt_cv_prog_compiler_pic_works_CXX=yes
19769      fi
19770    fi
19771    $RM conftest*
19772
19773 fi
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19775 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19776
19777 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19778     case $lt_prog_compiler_pic_CXX in
19779      "" | " "*) ;;
19780      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19781      esac
19782 else
19783     lt_prog_compiler_pic_CXX=
19784      lt_prog_compiler_can_build_shared_CXX=no
19785 fi
19786
19787 fi
19788
19789
19790
19791 #
19792 # Check to make sure the static flag actually works.
19793 #
19794 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19796 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19797 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19798   $as_echo_n "(cached) " >&6
19799 else
19800   lt_cv_prog_compiler_static_works_CXX=no
19801    save_LDFLAGS="$LDFLAGS"
19802    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19803    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19804    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19805      # The linker can only warn and ignore the option if not recognized
19806      # So say no if there are warnings
19807      if test -s conftest.err; then
19808        # Append any errors to the config.log.
19809        cat conftest.err 1>&5
19810        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19811        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19812        if diff conftest.exp conftest.er2 >/dev/null; then
19813          lt_cv_prog_compiler_static_works_CXX=yes
19814        fi
19815      else
19816        lt_cv_prog_compiler_static_works_CXX=yes
19817      fi
19818    fi
19819    $RM -r conftest*
19820    LDFLAGS="$save_LDFLAGS"
19821
19822 fi
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19824 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19825
19826 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19827     :
19828 else
19829     lt_prog_compiler_static_CXX=
19830 fi
19831
19832
19833
19834
19835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19836 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19837 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19838   $as_echo_n "(cached) " >&6
19839 else
19840   lt_cv_prog_compiler_c_o_CXX=no
19841    $RM -r conftest 2>/dev/null
19842    mkdir conftest
19843    cd conftest
19844    mkdir out
19845    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19846
19847    lt_compiler_flag="-o out/conftest2.$ac_objext"
19848    # Insert the option either (1) after the last *FLAGS variable, or
19849    # (2) before a word containing "conftest.", or (3) at the end.
19850    # Note that $ac_compile itself does not contain backslashes and begins
19851    # with a dollar sign (not a hyphen), so the echo should work correctly.
19852    lt_compile=`echo "$ac_compile" | $SED \
19853    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19854    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19855    -e 's:$: $lt_compiler_flag:'`
19856    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19857    (eval "$lt_compile" 2>out/conftest.err)
19858    ac_status=$?
19859    cat out/conftest.err >&5
19860    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19862    then
19863      # The compiler can only warn and ignore the option if not recognized
19864      # So say no if there are warnings
19865      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19866      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19867      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19868        lt_cv_prog_compiler_c_o_CXX=yes
19869      fi
19870    fi
19871    chmod u+w . 2>&5
19872    $RM conftest*
19873    # SGI C++ compiler will create directory out/ii_files/ for
19874    # template instantiation
19875    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19876    $RM out/* && rmdir out
19877    cd ..
19878    $RM -r conftest
19879    $RM conftest*
19880
19881 fi
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19883 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19884
19885
19886
19887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19888 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19889 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19890   $as_echo_n "(cached) " >&6
19891 else
19892   lt_cv_prog_compiler_c_o_CXX=no
19893    $RM -r conftest 2>/dev/null
19894    mkdir conftest
19895    cd conftest
19896    mkdir out
19897    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19898
19899    lt_compiler_flag="-o out/conftest2.$ac_objext"
19900    # Insert the option either (1) after the last *FLAGS variable, or
19901    # (2) before a word containing "conftest.", or (3) at the end.
19902    # Note that $ac_compile itself does not contain backslashes and begins
19903    # with a dollar sign (not a hyphen), so the echo should work correctly.
19904    lt_compile=`echo "$ac_compile" | $SED \
19905    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19906    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19907    -e 's:$: $lt_compiler_flag:'`
19908    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19909    (eval "$lt_compile" 2>out/conftest.err)
19910    ac_status=$?
19911    cat out/conftest.err >&5
19912    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19914    then
19915      # The compiler can only warn and ignore the option if not recognized
19916      # So say no if there are warnings
19917      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19918      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19919      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19920        lt_cv_prog_compiler_c_o_CXX=yes
19921      fi
19922    fi
19923    chmod u+w . 2>&5
19924    $RM conftest*
19925    # SGI C++ compiler will create directory out/ii_files/ for
19926    # template instantiation
19927    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19928    $RM out/* && rmdir out
19929    cd ..
19930    $RM -r conftest
19931    $RM conftest*
19932
19933 fi
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19935 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19936
19937
19938
19939
19940 hard_links="nottested"
19941 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19942   # do not overwrite the value of need_locks provided by the user
19943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19944 $as_echo_n "checking if we can lock with hard links... " >&6; }
19945   hard_links=yes
19946   $RM conftest*
19947   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19948   touch conftest.a
19949   ln conftest.a conftest.b 2>&5 || hard_links=no
19950   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19952 $as_echo "$hard_links" >&6; }
19953   if test "$hard_links" = no; then
19954     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19955 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19956     need_locks=warn
19957   fi
19958 else
19959   need_locks=no
19960 fi
19961
19962
19963
19964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19965 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19966
19967   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19968   case $host_os in
19969   aix[4-9]*)
19970     # If we're using GNU nm, then we don't want the "-C" option.
19971     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19972     # Also, AIX nm treats weak defined symbols like other global defined
19973     # symbols, whereas GNU nm marks them as "W".
19974     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19975       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'
19976     else
19977       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'
19978     fi
19979     ;;
19980   pw32*)
19981     export_symbols_cmds_CXX="$ltdll_cmds"
19982   ;;
19983   cygwin* | mingw* | cegcc*)
19984     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'
19985   ;;
19986   *)
19987     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19988   ;;
19989   esac
19990   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19991
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19993 $as_echo "$ld_shlibs_CXX" >&6; }
19994 test "$ld_shlibs_CXX" = no && can_build_shared=no
19995
19996 with_gnu_ld_CXX=$with_gnu_ld
19997
19998
19999
20000
20001
20002
20003 #
20004 # Do we need to explicitly link libc?
20005 #
20006 case "x$archive_cmds_need_lc_CXX" in
20007 x|xyes)
20008   # Assume -lc should be added
20009   archive_cmds_need_lc_CXX=yes
20010
20011   if test "$enable_shared" = yes && test "$GCC" = yes; then
20012     case $archive_cmds_CXX in
20013     *'~'*)
20014       # FIXME: we may have to deal with multi-command sequences.
20015       ;;
20016     '$CC '*)
20017       # Test whether the compiler implicitly links with -lc since on some
20018       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20019       # to ld, don't add -lc before -lgcc.
20020       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20021 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20022 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20023   $as_echo_n "(cached) " >&6
20024 else
20025   $RM conftest*
20026         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20027
20028         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20029   (eval $ac_compile) 2>&5
20030   ac_status=$?
20031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20032   test $ac_status = 0; } 2>conftest.err; then
20033           soname=conftest
20034           lib=conftest
20035           libobjs=conftest.$ac_objext
20036           deplibs=
20037           wl=$lt_prog_compiler_wl_CXX
20038           pic_flag=$lt_prog_compiler_pic_CXX
20039           compiler_flags=-v
20040           linker_flags=-v
20041           verstring=
20042           output_objdir=.
20043           libname=conftest
20044           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20045           allow_undefined_flag_CXX=
20046           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20047   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20048   ac_status=$?
20049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20050   test $ac_status = 0; }
20051           then
20052             lt_cv_archive_cmds_need_lc_CXX=no
20053           else
20054             lt_cv_archive_cmds_need_lc_CXX=yes
20055           fi
20056           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20057         else
20058           cat conftest.err 1>&5
20059         fi
20060         $RM conftest*
20061
20062 fi
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20064 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20065       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20066       ;;
20067     esac
20068   fi
20069   ;;
20070 esac
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20136 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20137
20138 library_names_spec=
20139 libname_spec='lib$name'
20140 soname_spec=
20141 shrext_cmds=".so"
20142 postinstall_cmds=
20143 postuninstall_cmds=
20144 finish_cmds=
20145 finish_eval=
20146 shlibpath_var=
20147 shlibpath_overrides_runpath=unknown
20148 version_type=none
20149 dynamic_linker="$host_os ld.so"
20150 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20151 need_lib_prefix=unknown
20152 hardcode_into_libs=no
20153
20154 # when you set need_version to no, make sure it does not cause -set_version
20155 # flags to be left without arguments
20156 need_version=unknown
20157
20158 case $host_os in
20159 aix3*)
20160   version_type=linux
20161   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20162   shlibpath_var=LIBPATH
20163
20164   # AIX 3 has no versioning support, so we append a major version to the name.
20165   soname_spec='${libname}${release}${shared_ext}$major'
20166   ;;
20167
20168 aix[4-9]*)
20169   version_type=linux
20170   need_lib_prefix=no
20171   need_version=no
20172   hardcode_into_libs=yes
20173   if test "$host_cpu" = ia64; then
20174     # AIX 5 supports IA64
20175     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20176     shlibpath_var=LD_LIBRARY_PATH
20177   else
20178     # With GCC up to 2.95.x, collect2 would create an import file
20179     # for dependence libraries.  The import file would start with
20180     # the line `#! .'.  This would cause the generated library to
20181     # depend on `.', always an invalid library.  This was fixed in
20182     # development snapshots of GCC prior to 3.0.
20183     case $host_os in
20184       aix4 | aix4.[01] | aix4.[01].*)
20185       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20186            echo ' yes '
20187            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20188         :
20189       else
20190         can_build_shared=no
20191       fi
20192       ;;
20193     esac
20194     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20195     # soname into executable. Probably we can add versioning support to
20196     # collect2, so additional links can be useful in future.
20197     if test "$aix_use_runtimelinking" = yes; then
20198       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20199       # instead of lib<name>.a to let people know that these are not
20200       # typical AIX shared libraries.
20201       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20202     else
20203       # We preserve .a as extension for shared libraries through AIX4.2
20204       # and later when we are not doing run time linking.
20205       library_names_spec='${libname}${release}.a $libname.a'
20206       soname_spec='${libname}${release}${shared_ext}$major'
20207     fi
20208     shlibpath_var=LIBPATH
20209   fi
20210   ;;
20211
20212 amigaos*)
20213   case $host_cpu in
20214   powerpc)
20215     # Since July 2007 AmigaOS4 officially supports .so libraries.
20216     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20217     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20218     ;;
20219   m68k)
20220     library_names_spec='$libname.ixlibrary $libname.a'
20221     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20222     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'
20223     ;;
20224   esac
20225   ;;
20226
20227 beos*)
20228   library_names_spec='${libname}${shared_ext}'
20229   dynamic_linker="$host_os ld.so"
20230   shlibpath_var=LIBRARY_PATH
20231   ;;
20232
20233 bsdi[45]*)
20234   version_type=linux
20235   need_version=no
20236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20237   soname_spec='${libname}${release}${shared_ext}$major'
20238   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20239   shlibpath_var=LD_LIBRARY_PATH
20240   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20241   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20242   # the default ld.so.conf also contains /usr/contrib/lib and
20243   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20244   # libtool to hard-code these into programs
20245   ;;
20246
20247 cygwin* | mingw* | pw32* | cegcc*)
20248   version_type=windows
20249   shrext_cmds=".dll"
20250   need_version=no
20251   need_lib_prefix=no
20252
20253   case $GCC,$host_os in
20254   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20255     library_names_spec='$libname.dll.a'
20256     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20257     postinstall_cmds='base_file=`basename \${file}`~
20258       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20259       dldir=$destdir/`dirname \$dlpath`~
20260       test -d \$dldir || mkdir -p \$dldir~
20261       $install_prog $dir/$dlname \$dldir/$dlname~
20262       chmod a+x \$dldir/$dlname~
20263       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20264         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20265       fi'
20266     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20267       dlpath=$dir/\$dldll~
20268        $RM \$dlpath'
20269     shlibpath_overrides_runpath=yes
20270
20271     case $host_os in
20272     cygwin*)
20273       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20274       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20275
20276       ;;
20277     mingw* | cegcc*)
20278       # MinGW DLLs use traditional 'lib' prefix
20279       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20280       ;;
20281     pw32*)
20282       # pw32 DLLs use 'pw' prefix rather than 'lib'
20283       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20284       ;;
20285     esac
20286     ;;
20287
20288   *)
20289     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20290     ;;
20291   esac
20292   dynamic_linker='Win32 ld.exe'
20293   # FIXME: first we should search . and the directory the executable is in
20294   shlibpath_var=PATH
20295   ;;
20296
20297 darwin* | rhapsody*)
20298   dynamic_linker="$host_os dyld"
20299   version_type=darwin
20300   need_lib_prefix=no
20301   need_version=no
20302   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20303   soname_spec='${libname}${release}${major}$shared_ext'
20304   shlibpath_overrides_runpath=yes
20305   shlibpath_var=DYLD_LIBRARY_PATH
20306   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20307
20308   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20309   ;;
20310
20311 dgux*)
20312   version_type=linux
20313   need_lib_prefix=no
20314   need_version=no
20315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20316   soname_spec='${libname}${release}${shared_ext}$major'
20317   shlibpath_var=LD_LIBRARY_PATH
20318   ;;
20319
20320 freebsd* | dragonfly*)
20321   # DragonFly does not have aout.  When/if they implement a new
20322   # versioning mechanism, adjust this.
20323   if test -x /usr/bin/objformat; then
20324     objformat=`/usr/bin/objformat`
20325   else
20326     case $host_os in
20327     freebsd[123]*) objformat=aout ;;
20328     *) objformat=elf ;;
20329     esac
20330   fi
20331   version_type=freebsd-$objformat
20332   case $version_type in
20333     freebsd-elf*)
20334       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20335       need_version=no
20336       need_lib_prefix=no
20337       ;;
20338     freebsd-*)
20339       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20340       need_version=yes
20341       ;;
20342   esac
20343   shlibpath_var=LD_LIBRARY_PATH
20344   case $host_os in
20345   freebsd2*)
20346     shlibpath_overrides_runpath=yes
20347     ;;
20348   freebsd3.[01]* | freebsdelf3.[01]*)
20349     shlibpath_overrides_runpath=yes
20350     hardcode_into_libs=yes
20351     ;;
20352   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20353   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20354     shlibpath_overrides_runpath=no
20355     hardcode_into_libs=yes
20356     ;;
20357   *) # from 4.6 on, and DragonFly
20358     shlibpath_overrides_runpath=yes
20359     hardcode_into_libs=yes
20360     ;;
20361   esac
20362   ;;
20363
20364 gnu*)
20365   version_type=linux
20366   need_lib_prefix=no
20367   need_version=no
20368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20369   soname_spec='${libname}${release}${shared_ext}$major'
20370   shlibpath_var=LD_LIBRARY_PATH
20371   hardcode_into_libs=yes
20372   ;;
20373
20374 haiku*)
20375   version_type=linux
20376   need_lib_prefix=no
20377   need_version=no
20378   dynamic_linker="$host_os runtime_loader"
20379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20380   soname_spec='${libname}${release}${shared_ext}$major'
20381   shlibpath_var=LIBRARY_PATH
20382   shlibpath_overrides_runpath=yes
20383   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20384   hardcode_into_libs=yes
20385   ;;
20386
20387 hpux9* | hpux10* | hpux11*)
20388   # Give a soname corresponding to the major version so that dld.sl refuses to
20389   # link against other versions.
20390   version_type=sunos
20391   need_lib_prefix=no
20392   need_version=no
20393   case $host_cpu in
20394   ia64*)
20395     shrext_cmds='.so'
20396     hardcode_into_libs=yes
20397     dynamic_linker="$host_os dld.so"
20398     shlibpath_var=LD_LIBRARY_PATH
20399     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20400     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20401     soname_spec='${libname}${release}${shared_ext}$major'
20402     if test "X$HPUX_IA64_MODE" = X32; then
20403       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20404     else
20405       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20406     fi
20407     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20408     ;;
20409   hppa*64*)
20410     shrext_cmds='.sl'
20411     hardcode_into_libs=yes
20412     dynamic_linker="$host_os dld.sl"
20413     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20414     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20416     soname_spec='${libname}${release}${shared_ext}$major'
20417     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20418     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20419     ;;
20420   *)
20421     shrext_cmds='.sl'
20422     dynamic_linker="$host_os dld.sl"
20423     shlibpath_var=SHLIB_PATH
20424     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20426     soname_spec='${libname}${release}${shared_ext}$major'
20427     ;;
20428   esac
20429   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20430   postinstall_cmds='chmod 555 $lib'
20431   # or fails outright, so override atomically:
20432   install_override_mode=555
20433   ;;
20434
20435 interix[3-9]*)
20436   version_type=linux
20437   need_lib_prefix=no
20438   need_version=no
20439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20440   soname_spec='${libname}${release}${shared_ext}$major'
20441   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20442   shlibpath_var=LD_LIBRARY_PATH
20443   shlibpath_overrides_runpath=no
20444   hardcode_into_libs=yes
20445   ;;
20446
20447 irix5* | irix6* | nonstopux*)
20448   case $host_os in
20449     nonstopux*) version_type=nonstopux ;;
20450     *)
20451         if test "$lt_cv_prog_gnu_ld" = yes; then
20452                 version_type=linux
20453         else
20454                 version_type=irix
20455         fi ;;
20456   esac
20457   need_lib_prefix=no
20458   need_version=no
20459   soname_spec='${libname}${release}${shared_ext}$major'
20460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20461   case $host_os in
20462   irix5* | nonstopux*)
20463     libsuff= shlibsuff=
20464     ;;
20465   *)
20466     case $LD in # libtool.m4 will add one of these switches to LD
20467     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20468       libsuff= shlibsuff= libmagic=32-bit;;
20469     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20470       libsuff=32 shlibsuff=N32 libmagic=N32;;
20471     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20472       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20473     *) libsuff= shlibsuff= libmagic=never-match;;
20474     esac
20475     ;;
20476   esac
20477   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20478   shlibpath_overrides_runpath=no
20479   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20480   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20481   hardcode_into_libs=yes
20482   ;;
20483
20484 # No shared lib support for Linux oldld, aout, or coff.
20485 linux*oldld* | linux*aout* | linux*coff*)
20486   dynamic_linker=no
20487   ;;
20488
20489 # This must be Linux ELF.
20490 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20491   version_type=linux
20492   need_lib_prefix=no
20493   need_version=no
20494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20495   soname_spec='${libname}${release}${shared_ext}$major'
20496   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20497   shlibpath_var=LD_LIBRARY_PATH
20498   shlibpath_overrides_runpath=no
20499
20500   # Some binutils ld are patched to set DT_RUNPATH
20501   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20502   $as_echo_n "(cached) " >&6
20503 else
20504   lt_cv_shlibpath_overrides_runpath=no
20505     save_LDFLAGS=$LDFLAGS
20506     save_libdir=$libdir
20507     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20508          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20509     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20510 /* end confdefs.h.  */
20511
20512 int
20513 main ()
20514 {
20515
20516   ;
20517   return 0;
20518 }
20519 _ACEOF
20520 if ac_fn_cxx_try_link "$LINENO"; then :
20521   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20522   lt_cv_shlibpath_overrides_runpath=yes
20523 fi
20524 fi
20525 rm -f core conftest.err conftest.$ac_objext \
20526     conftest$ac_exeext conftest.$ac_ext
20527     LDFLAGS=$save_LDFLAGS
20528     libdir=$save_libdir
20529
20530 fi
20531
20532   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20533
20534   # This implies no fast_install, which is unacceptable.
20535   # Some rework will be needed to allow for fast_install
20536   # before this can be enabled.
20537   hardcode_into_libs=yes
20538
20539   # Append ld.so.conf contents to the search path
20540   if test -f /etc/ld.so.conf; then
20541     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' ' '`
20542     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20543   fi
20544
20545   # We used to test for /lib/ld.so.1 and disable shared libraries on
20546   # powerpc, because MkLinux only supported shared libraries with the
20547   # GNU dynamic linker.  Since this was broken with cross compilers,
20548   # most powerpc-linux boxes support dynamic linking these days and
20549   # people can always --disable-shared, the test was removed, and we
20550   # assume the GNU/Linux dynamic linker is in use.
20551   dynamic_linker='GNU/Linux ld.so'
20552   ;;
20553
20554 netbsd*)
20555   version_type=sunos
20556   need_lib_prefix=no
20557   need_version=no
20558   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20560     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20561     dynamic_linker='NetBSD (a.out) ld.so'
20562   else
20563     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20564     soname_spec='${libname}${release}${shared_ext}$major'
20565     dynamic_linker='NetBSD ld.elf_so'
20566   fi
20567   shlibpath_var=LD_LIBRARY_PATH
20568   shlibpath_overrides_runpath=yes
20569   hardcode_into_libs=yes
20570   ;;
20571
20572 newsos6)
20573   version_type=linux
20574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20575   shlibpath_var=LD_LIBRARY_PATH
20576   shlibpath_overrides_runpath=yes
20577   ;;
20578
20579 *nto* | *qnx*)
20580   version_type=qnx
20581   need_lib_prefix=no
20582   need_version=no
20583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20584   soname_spec='${libname}${release}${shared_ext}$major'
20585   shlibpath_var=LD_LIBRARY_PATH
20586   shlibpath_overrides_runpath=no
20587   hardcode_into_libs=yes
20588   dynamic_linker='ldqnx.so'
20589   ;;
20590
20591 openbsd*)
20592   version_type=sunos
20593   sys_lib_dlsearch_path_spec="/usr/lib"
20594   need_lib_prefix=no
20595   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20596   case $host_os in
20597     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20598     *)                          need_version=no  ;;
20599   esac
20600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20601   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20602   shlibpath_var=LD_LIBRARY_PATH
20603   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20604     case $host_os in
20605       openbsd2.[89] | openbsd2.[89].*)
20606         shlibpath_overrides_runpath=no
20607         ;;
20608       *)
20609         shlibpath_overrides_runpath=yes
20610         ;;
20611       esac
20612   else
20613     shlibpath_overrides_runpath=yes
20614   fi
20615   ;;
20616
20617 os2*)
20618   libname_spec='$name'
20619   shrext_cmds=".dll"
20620   need_lib_prefix=no
20621   library_names_spec='$libname${shared_ext} $libname.a'
20622   dynamic_linker='OS/2 ld.exe'
20623   shlibpath_var=LIBPATH
20624   ;;
20625
20626 osf3* | osf4* | osf5*)
20627   version_type=osf
20628   need_lib_prefix=no
20629   need_version=no
20630   soname_spec='${libname}${release}${shared_ext}$major'
20631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20632   shlibpath_var=LD_LIBRARY_PATH
20633   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20634   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20635   ;;
20636
20637 rdos*)
20638   dynamic_linker=no
20639   ;;
20640
20641 solaris*)
20642   version_type=linux
20643   need_lib_prefix=no
20644   need_version=no
20645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20646   soname_spec='${libname}${release}${shared_ext}$major'
20647   shlibpath_var=LD_LIBRARY_PATH
20648   shlibpath_overrides_runpath=yes
20649   hardcode_into_libs=yes
20650   # ldd complains unless libraries are executable
20651   postinstall_cmds='chmod +x $lib'
20652   ;;
20653
20654 sunos4*)
20655   version_type=sunos
20656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20657   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20658   shlibpath_var=LD_LIBRARY_PATH
20659   shlibpath_overrides_runpath=yes
20660   if test "$with_gnu_ld" = yes; then
20661     need_lib_prefix=no
20662   fi
20663   need_version=yes
20664   ;;
20665
20666 sysv4 | sysv4.3*)
20667   version_type=linux
20668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20669   soname_spec='${libname}${release}${shared_ext}$major'
20670   shlibpath_var=LD_LIBRARY_PATH
20671   case $host_vendor in
20672     sni)
20673       shlibpath_overrides_runpath=no
20674       need_lib_prefix=no
20675       runpath_var=LD_RUN_PATH
20676       ;;
20677     siemens)
20678       need_lib_prefix=no
20679       ;;
20680     motorola)
20681       need_lib_prefix=no
20682       need_version=no
20683       shlibpath_overrides_runpath=no
20684       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20685       ;;
20686   esac
20687   ;;
20688
20689 sysv4*MP*)
20690   if test -d /usr/nec ;then
20691     version_type=linux
20692     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20693     soname_spec='$libname${shared_ext}.$major'
20694     shlibpath_var=LD_LIBRARY_PATH
20695   fi
20696   ;;
20697
20698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20699   version_type=freebsd-elf
20700   need_lib_prefix=no
20701   need_version=no
20702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20703   soname_spec='${libname}${release}${shared_ext}$major'
20704   shlibpath_var=LD_LIBRARY_PATH
20705   shlibpath_overrides_runpath=yes
20706   hardcode_into_libs=yes
20707   if test "$with_gnu_ld" = yes; then
20708     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20709   else
20710     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20711     case $host_os in
20712       sco3.2v5*)
20713         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20714         ;;
20715     esac
20716   fi
20717   sys_lib_dlsearch_path_spec='/usr/lib'
20718   ;;
20719
20720 tpf*)
20721   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20722   version_type=linux
20723   need_lib_prefix=no
20724   need_version=no
20725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20726   shlibpath_var=LD_LIBRARY_PATH
20727   shlibpath_overrides_runpath=no
20728   hardcode_into_libs=yes
20729   ;;
20730
20731 uts4*)
20732   version_type=linux
20733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20734   soname_spec='${libname}${release}${shared_ext}$major'
20735   shlibpath_var=LD_LIBRARY_PATH
20736   ;;
20737
20738 *)
20739   dynamic_linker=no
20740   ;;
20741 esac
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20743 $as_echo "$dynamic_linker" >&6; }
20744 test "$dynamic_linker" = no && can_build_shared=no
20745
20746 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20747 if test "$GCC" = yes; then
20748   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20749 fi
20750
20751 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20752   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20753 fi
20754 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20755   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20756 fi
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20796 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20797 hardcode_action_CXX=
20798 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20799    test -n "$runpath_var_CXX" ||
20800    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20801
20802   # We can hardcode non-existent directories.
20803   if test "$hardcode_direct_CXX" != no &&
20804      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20805      # have to relink, otherwise we might link with an installed library
20806      # when we should be linking with a yet-to-be-installed one
20807      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20808      test "$hardcode_minus_L_CXX" != no; then
20809     # Linking always hardcodes the temporary library directory.
20810     hardcode_action_CXX=relink
20811   else
20812     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20813     hardcode_action_CXX=immediate
20814   fi
20815 else
20816   # We cannot hardcode anything, or else we can only hardcode existing
20817   # directories.
20818   hardcode_action_CXX=unsupported
20819 fi
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20821 $as_echo "$hardcode_action_CXX" >&6; }
20822
20823 if test "$hardcode_action_CXX" = relink ||
20824    test "$inherit_rpath_CXX" = yes; then
20825   # Fast installation is not supported
20826   enable_fast_install=no
20827 elif test "$shlibpath_overrides_runpath" = yes ||
20828      test "$enable_shared" = no; then
20829   # Fast installation is not necessary
20830   enable_fast_install=needless
20831 fi
20832
20833
20834
20835
20836
20837
20838
20839   fi # test -n "$compiler"
20840
20841   CC=$lt_save_CC
20842   LDCXX=$LD
20843   LD=$lt_save_LD
20844   GCC=$lt_save_GCC
20845   with_gnu_ld=$lt_save_with_gnu_ld
20846   lt_cv_path_LDCXX=$lt_cv_path_LD
20847   lt_cv_path_LD=$lt_save_path_LD
20848   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20849   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20850 fi # test "$_lt_caught_CXX_error" != yes
20851
20852 ac_ext=c
20853 ac_cpp='$CPP $CPPFLAGS'
20854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873 # Only expand once:
20874
20875
20876
20877
20878
20879 # Identify the assembler which will work hand-in-glove with the newly
20880 # built GCC, so that we can examine its features.  This is the assembler
20881 # which will be driven by the driver program.
20882 #
20883 # If build != host, and we aren't building gas in-tree, we identify a
20884 # build->target assembler and hope that it will have the same features
20885 # as the host->target assembler we'll be using.
20886 gcc_cv_gas_major_version=
20887 gcc_cv_gas_minor_version=
20888 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20889
20890 if test "${gcc_cv_as+set}" = set; then :
20891
20892 else
20893
20894 if test -x "$DEFAULT_ASSEMBLER"; then
20895         gcc_cv_as="$DEFAULT_ASSEMBLER"
20896 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20897      && test -f ../gas/Makefile \
20898      && test x$build = x$host; then
20899         gcc_cv_as=../gas/as-new$build_exeext
20900 elif test -x as$build_exeext; then
20901         # Build using assembler in the current directory.
20902         gcc_cv_as=./as$build_exeext
20903 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
20904         gcc_cv_as="$AS_FOR_TARGET"
20905 else
20906         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20907 set dummy $AS_FOR_TARGET; ac_word=$2
20908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20909 $as_echo_n "checking for $ac_word... " >&6; }
20910 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20911   $as_echo_n "(cached) " >&6
20912 else
20913   case $gcc_cv_as in
20914   [\\/]* | ?:[\\/]*)
20915   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20916   ;;
20917   *)
20918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20919 for as_dir in $PATH
20920 do
20921   IFS=$as_save_IFS
20922   test -z "$as_dir" && as_dir=.
20923     for ac_exec_ext in '' $ac_executable_extensions; do
20924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20925     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20927     break 2
20928   fi
20929 done
20930   done
20931 IFS=$as_save_IFS
20932
20933   ;;
20934 esac
20935 fi
20936 gcc_cv_as=$ac_cv_path_gcc_cv_as
20937 if test -n "$gcc_cv_as"; then
20938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20939 $as_echo "$gcc_cv_as" >&6; }
20940 else
20941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20942 $as_echo "no" >&6; }
20943 fi
20944
20945
20946 fi
20947 fi
20948
20949 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20950
20951 case "$ORIGINAL_AS_FOR_TARGET" in
20952   ./as | ./as$build_exeext) ;;
20953   *) ac_config_files="$ac_config_files as:exec-tool.in"
20954  ;;
20955 esac
20956
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20958 $as_echo_n "checking what assembler to use... " >&6; }
20959 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20960   # Single tree build which includes gas.  We want to prefer it
20961   # over whatever linker top-level may have detected, since
20962   # we'll use what we're building after installation anyway.
20963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20964 $as_echo "newly built gas" >&6; }
20965   in_tree_gas=yes
20966   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20967 for f in $gcc_cv_as_bfd_srcdir/configure \
20968          $gcc_cv_as_gas_srcdir/configure \
20969          $gcc_cv_as_gas_srcdir/configure.in \
20970          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20971   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20972   if test x$gcc_cv_gas_version != x; then
20973     break
20974   fi
20975 done
20976 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20977 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20978 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20979 case $gcc_cv_gas_patch_version in
20980   "") gcc_cv_gas_patch_version="0" ;;
20981 esac
20982 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20983                             + $gcc_cv_gas_minor_version \) \* 1000 \
20984                             + $gcc_cv_gas_patch_version`
20985
20986   in_tree_gas_is_elf=no
20987   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20988      || (grep 'obj_format = multi' ../gas/Makefile \
20989          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20990   then
20991     in_tree_gas_is_elf=yes
20992   fi
20993 else
20994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20995 $as_echo "$gcc_cv_as" >&6; }
20996   in_tree_gas=no
20997 fi
20998
20999 # Identify the linker which will work hand-in-glove with the newly
21000 # built GCC, so that we can examine its features.  This is the linker
21001 # which will be driven by the driver program.
21002 #
21003 # If build != host, and we aren't building gas in-tree, we identify a
21004 # build->target linker and hope that it will have the same features
21005 # as the host->target linker we'll be using.
21006 gcc_cv_gld_major_version=
21007 gcc_cv_gld_minor_version=
21008 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21009 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21010
21011 if test "${gcc_cv_ld+set}" = set; then :
21012
21013 else
21014
21015 if test -x "$DEFAULT_LINKER"; then
21016         gcc_cv_ld="$DEFAULT_LINKER"
21017 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21018      && test -f ../ld/Makefile \
21019      && test x$build = x$host; then
21020         gcc_cv_ld=../ld/ld-new$build_exeext
21021 elif test -x collect-ld$build_exeext; then
21022         # Build using linker in the current directory.
21023         gcc_cv_ld=./collect-ld$build_exeext
21024 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21025         gcc_cv_ld="$LD_FOR_TARGET"
21026 else
21027         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21028 set dummy $LD_FOR_TARGET; ac_word=$2
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21030 $as_echo_n "checking for $ac_word... " >&6; }
21031 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21032   $as_echo_n "(cached) " >&6
21033 else
21034   case $gcc_cv_ld in
21035   [\\/]* | ?:[\\/]*)
21036   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21037   ;;
21038   *)
21039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21040 for as_dir in $PATH
21041 do
21042   IFS=$as_save_IFS
21043   test -z "$as_dir" && as_dir=.
21044     for ac_exec_ext in '' $ac_executable_extensions; do
21045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21046     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21048     break 2
21049   fi
21050 done
21051   done
21052 IFS=$as_save_IFS
21053
21054   ;;
21055 esac
21056 fi
21057 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21058 if test -n "$gcc_cv_ld"; then
21059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21060 $as_echo "$gcc_cv_ld" >&6; }
21061 else
21062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21063 $as_echo "no" >&6; }
21064 fi
21065
21066
21067 fi
21068 fi
21069
21070 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21071 PLUGIN_LD=`basename $gcc_cv_ld`
21072
21073 # Check whether --with-plugin-ld was given.
21074 if test "${with_plugin_ld+set}" = set; then :
21075   withval=$with_plugin_ld; if test x"$withval" != x; then
21076    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21077    PLUGIN_LD="$withval"
21078  fi
21079 fi
21080
21081
21082
21083 cat >>confdefs.h <<_ACEOF
21084 #define PLUGIN_LD "$PLUGIN_LD"
21085 _ACEOF
21086
21087
21088 # Check to see if we are using gold instead of ld
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21090 $as_echo_n "checking whether we are using gold... " >&6; }
21091 ld_is_gold=no
21092 if test x$gcc_cv_ld != x; then
21093   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21094      | grep "GNU gold" > /dev/null; then
21095     ld_is_gold=yes
21096   fi
21097 fi
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21099 $as_echo "$ld_is_gold" >&6; }
21100
21101 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21102
21103 case "$ORIGINAL_LD_FOR_TARGET" in
21104   ./collect-ld | ./collect-ld$build_exeext) ;;
21105   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21106  ;;
21107 esac
21108
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21110 $as_echo_n "checking what linker to use... " >&6; }
21111 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21112    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21113         # Single tree build which includes ld.  We want to prefer it
21114         # over whatever linker top-level may have detected, since
21115         # we'll use what we're building after installation anyway.
21116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21117 $as_echo "newly built ld" >&6; }
21118         in_tree_ld=yes
21119         in_tree_ld_is_elf=no
21120         if (grep 'EMUL = .*elf' ../ld/Makefile \
21121             || grep 'EMUL = .*linux' ../ld/Makefile \
21122             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21123           in_tree_ld_is_elf=yes
21124         elif test "$ld_is_gold" = yes; then
21125           in_tree_ld_is_elf=yes
21126         fi
21127         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
21128         do
21129                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21130                 if test x$gcc_cv_gld_version != x; then
21131                         break
21132                 fi
21133         done
21134         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21135         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21136 else
21137         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21138 $as_echo "$gcc_cv_ld" >&6; }
21139         in_tree_ld=no
21140 fi
21141
21142 # Figure out what nm we will be using.
21143 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21144 if test "${gcc_cv_nm+set}" = set; then :
21145
21146 else
21147
21148 if test -f $gcc_cv_binutils_srcdir/configure.in \
21149      && test -f ../binutils/Makefile \
21150      && test x$build = x$host; then
21151         gcc_cv_nm=../binutils/nm-new$build_exeext
21152 elif test -x nm$build_exeext; then
21153         gcc_cv_nm=./nm$build_exeext
21154 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21155         gcc_cv_nm="$NM_FOR_TARGET"
21156 else
21157         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21158 set dummy $NM_FOR_TARGET; ac_word=$2
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21160 $as_echo_n "checking for $ac_word... " >&6; }
21161 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21162   $as_echo_n "(cached) " >&6
21163 else
21164   case $gcc_cv_nm in
21165   [\\/]* | ?:[\\/]*)
21166   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21167   ;;
21168   *)
21169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21170 for as_dir in $PATH
21171 do
21172   IFS=$as_save_IFS
21173   test -z "$as_dir" && as_dir=.
21174     for ac_exec_ext in '' $ac_executable_extensions; do
21175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21176     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21178     break 2
21179   fi
21180 done
21181   done
21182 IFS=$as_save_IFS
21183
21184   ;;
21185 esac
21186 fi
21187 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21188 if test -n "$gcc_cv_nm"; then
21189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21190 $as_echo "$gcc_cv_nm" >&6; }
21191 else
21192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21193 $as_echo "no" >&6; }
21194 fi
21195
21196
21197 fi
21198 fi
21199
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21201 $as_echo_n "checking what nm to use... " >&6; }
21202 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21203         # Single tree build which includes binutils.
21204         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21205 $as_echo "newly built nm" >&6; }
21206         in_tree_nm=yes
21207 else
21208         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21209 $as_echo "$gcc_cv_nm" >&6; }
21210         in_tree_nm=no
21211 fi
21212
21213 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21214
21215 case "$ORIGINAL_NM_FOR_TARGET" in
21216   ./nm | ./nm$build_exeext) ;;
21217   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21218  ;;
21219 esac
21220
21221
21222 # Figure out what objdump we will be using.
21223 if test "${gcc_cv_objdump+set}" = set; then :
21224
21225 else
21226
21227 if test -f $gcc_cv_binutils_srcdir/configure.in \
21228      && test -f ../binutils/Makefile \
21229      && test x$build = x$host; then
21230         # Single tree build which includes binutils.
21231         gcc_cv_objdump=../binutils/objdump$build_exeext
21232 elif test -x objdump$build_exeext; then
21233         gcc_cv_objdump=./objdump$build_exeext
21234 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21235         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21236 else
21237         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21238 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21240 $as_echo_n "checking for $ac_word... " >&6; }
21241 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21242   $as_echo_n "(cached) " >&6
21243 else
21244   case $gcc_cv_objdump in
21245   [\\/]* | ?:[\\/]*)
21246   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21247   ;;
21248   *)
21249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21250 for as_dir in $PATH
21251 do
21252   IFS=$as_save_IFS
21253   test -z "$as_dir" && as_dir=.
21254     for ac_exec_ext in '' $ac_executable_extensions; do
21255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21256     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21258     break 2
21259   fi
21260 done
21261   done
21262 IFS=$as_save_IFS
21263
21264   ;;
21265 esac
21266 fi
21267 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21268 if test -n "$gcc_cv_objdump"; then
21269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21270 $as_echo "$gcc_cv_objdump" >&6; }
21271 else
21272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21273 $as_echo "no" >&6; }
21274 fi
21275
21276
21277 fi
21278 fi
21279
21280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21281 $as_echo_n "checking what objdump to use... " >&6; }
21282 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21283         # Single tree build which includes binutils.
21284         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21285 $as_echo "newly built objdump" >&6; }
21286 elif test x$gcc_cv_objdump = x; then
21287         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21288 $as_echo "not found" >&6; }
21289 else
21290         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21291 $as_echo "$gcc_cv_objdump" >&6; }
21292 fi
21293
21294 # Figure out what readelf we will be using.
21295 if test "${gcc_cv_readelf+set}" = set; then :
21296
21297 else
21298
21299 if test -f $gcc_cv_binutils_srcdir/configure.in \
21300      && test -f ../binutils/Makefile \
21301      && test x$build = x$host; then
21302         # Single tree build which includes binutils.
21303         gcc_cv_readelf=../binutils/readelf$build_exeext
21304 elif test -x readelf$build_exeext; then
21305         gcc_cv_readelf=./readelf$build_exeext
21306 else
21307         # Extract the first word of "readelf", so it can be a program name with args.
21308 set dummy readelf; ac_word=$2
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21310 $as_echo_n "checking for $ac_word... " >&6; }
21311 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21312   $as_echo_n "(cached) " >&6
21313 else
21314   case $gcc_cv_readelf in
21315   [\\/]* | ?:[\\/]*)
21316   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21317   ;;
21318   *)
21319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21320 for as_dir in $PATH
21321 do
21322   IFS=$as_save_IFS
21323   test -z "$as_dir" && as_dir=.
21324     for ac_exec_ext in '' $ac_executable_extensions; do
21325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21326     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21328     break 2
21329   fi
21330 done
21331   done
21332 IFS=$as_save_IFS
21333
21334   ;;
21335 esac
21336 fi
21337 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21338 if test -n "$gcc_cv_readelf"; then
21339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21340 $as_echo "$gcc_cv_readelf" >&6; }
21341 else
21342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21343 $as_echo "no" >&6; }
21344 fi
21345
21346
21347 fi
21348 fi
21349
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21351 $as_echo_n "checking what readelf to use... " >&6; }
21352 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21353         # Single tree build which includes binutils.
21354         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21355 $as_echo "newly built readelf" >&6; }
21356 elif test x$gcc_cv_readelf = x; then
21357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21358 $as_echo "not found" >&6; }
21359 else
21360         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21361 $as_echo "$gcc_cv_readelf" >&6; }
21362 fi
21363
21364 # Figure out what assembler alignment features are present.
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21366 $as_echo_n "checking assembler flags... " >&6; }
21367 if test "${gcc_cv_as_flags+set}" = set; then :
21368   $as_echo_n "(cached) " >&6
21369 else
21370    case "$target" in
21371   i[34567]86-*-linux*)
21372         gcc_cv_as_flags="--32"
21373     ;;
21374   powerpc*-*-darwin*)
21375         gcc_cv_as_flags="-arch ppc"
21376     ;;
21377   *)
21378     gcc_cv_as_flags=" "
21379     ;;
21380   esac
21381 fi
21382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21383 $as_echo "$gcc_cv_as_flags" >&6; }
21384
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21386 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21387 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21388   $as_echo_n "(cached) " >&6
21389 else
21390   gcc_cv_as_balign_and_p2align=no
21391     if test $in_tree_gas = yes; then
21392     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21393   then gcc_cv_as_balign_and_p2align=yes
21394 fi
21395   elif test x$gcc_cv_as != x; then
21396     echo '.balign 4
21397 .p2align 2' > conftest.s
21398     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21399   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21400   (eval $ac_try) 2>&5
21401   ac_status=$?
21402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21403   test $ac_status = 0; }; }
21404     then
21405         gcc_cv_as_balign_and_p2align=yes
21406     else
21407       echo "configure: failed program was" >&5
21408       cat conftest.s >&5
21409     fi
21410     rm -f conftest.o conftest.s
21411   fi
21412 fi
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21414 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21415 if test $gcc_cv_as_balign_and_p2align = yes; then
21416
21417 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21418
21419 fi
21420
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21422 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21423 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21424   $as_echo_n "(cached) " >&6
21425 else
21426   gcc_cv_as_max_skip_p2align=no
21427     if test $in_tree_gas = yes; then
21428     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21429   then gcc_cv_as_max_skip_p2align=yes
21430 fi
21431   elif test x$gcc_cv_as != x; then
21432     echo '.p2align 4,,7' > conftest.s
21433     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21434   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21435   (eval $ac_try) 2>&5
21436   ac_status=$?
21437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21438   test $ac_status = 0; }; }
21439     then
21440         gcc_cv_as_max_skip_p2align=yes
21441     else
21442       echo "configure: failed program was" >&5
21443       cat conftest.s >&5
21444     fi
21445     rm -f conftest.o conftest.s
21446   fi
21447 fi
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21449 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21450 if test $gcc_cv_as_max_skip_p2align = yes; then
21451
21452 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21453
21454 fi
21455
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21457 $as_echo_n "checking assembler for .literal16... " >&6; }
21458 if test "${gcc_cv_as_literal16+set}" = set; then :
21459   $as_echo_n "(cached) " >&6
21460 else
21461   gcc_cv_as_literal16=no
21462     if test $in_tree_gas = yes; then
21463     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21464   then gcc_cv_as_literal16=yes
21465 fi
21466   elif test x$gcc_cv_as != x; then
21467     echo '.literal16' > conftest.s
21468     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21469   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21470   (eval $ac_try) 2>&5
21471   ac_status=$?
21472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21473   test $ac_status = 0; }; }
21474     then
21475         gcc_cv_as_literal16=yes
21476     else
21477       echo "configure: failed program was" >&5
21478       cat conftest.s >&5
21479     fi
21480     rm -f conftest.o conftest.s
21481   fi
21482 fi
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21484 $as_echo "$gcc_cv_as_literal16" >&6; }
21485 if test $gcc_cv_as_literal16 = yes; then
21486
21487 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21488
21489 fi
21490
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21492 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21493 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21494   $as_echo_n "(cached) " >&6
21495 else
21496   gcc_cv_as_subsection_m1=no
21497     if test $in_tree_gas = yes; then
21498     if test $in_tree_gas_is_elf = yes \
21499   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21500   then gcc_cv_as_subsection_m1=yes
21501 fi
21502   elif test x$gcc_cv_as != x; then
21503     echo 'conftest_label1: .word 0
21504 .subsection -1
21505 conftest_label2: .word 0
21506 .previous' > conftest.s
21507     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21508   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21509   (eval $ac_try) 2>&5
21510   ac_status=$?
21511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21512   test $ac_status = 0; }; }
21513     then
21514         if test x$gcc_cv_nm != x; then
21515     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21516     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21517     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21518     then :
21519     else gcc_cv_as_subsection_m1=yes
21520     fi
21521     rm -f conftest.nm1 conftest.nm2
21522   fi
21523     else
21524       echo "configure: failed program was" >&5
21525       cat conftest.s >&5
21526     fi
21527     rm -f conftest.o conftest.s
21528   fi
21529 fi
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21531 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21532 if test $gcc_cv_as_subsection_m1 = yes; then
21533
21534 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21535
21536 fi
21537
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21539 $as_echo_n "checking assembler for .weak... " >&6; }
21540 if test "${gcc_cv_as_weak+set}" = set; then :
21541   $as_echo_n "(cached) " >&6
21542 else
21543   gcc_cv_as_weak=no
21544     if test $in_tree_gas = yes; then
21545     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21546   then gcc_cv_as_weak=yes
21547 fi
21548   elif test x$gcc_cv_as != x; then
21549     echo '      .weak foobar' > conftest.s
21550     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21551   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21552   (eval $ac_try) 2>&5
21553   ac_status=$?
21554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21555   test $ac_status = 0; }; }
21556     then
21557         gcc_cv_as_weak=yes
21558     else
21559       echo "configure: failed program was" >&5
21560       cat conftest.s >&5
21561     fi
21562     rm -f conftest.o conftest.s
21563   fi
21564 fi
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21566 $as_echo "$gcc_cv_as_weak" >&6; }
21567 if test $gcc_cv_as_weak = yes; then
21568
21569 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21570
21571 fi
21572
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21574 $as_echo_n "checking assembler for .weakref... " >&6; }
21575 if test "${gcc_cv_as_weakref+set}" = set; then :
21576   $as_echo_n "(cached) " >&6
21577 else
21578   gcc_cv_as_weakref=no
21579     if test $in_tree_gas = yes; then
21580     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21581   then gcc_cv_as_weakref=yes
21582 fi
21583   elif test x$gcc_cv_as != x; then
21584     echo '      .weakref foobar, barfnot' > conftest.s
21585     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21586   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21587   (eval $ac_try) 2>&5
21588   ac_status=$?
21589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21590   test $ac_status = 0; }; }
21591     then
21592         gcc_cv_as_weakref=yes
21593     else
21594       echo "configure: failed program was" >&5
21595       cat conftest.s >&5
21596     fi
21597     rm -f conftest.o conftest.s
21598   fi
21599 fi
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21601 $as_echo "$gcc_cv_as_weakref" >&6; }
21602 if test $gcc_cv_as_weakref = yes; then
21603
21604 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21605
21606 fi
21607
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21609 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21610 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21611   $as_echo_n "(cached) " >&6
21612 else
21613   gcc_cv_as_nsubspa_comdat=no
21614     if test $in_tree_gas = yes; then
21615     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21616   then gcc_cv_as_nsubspa_comdat=yes
21617 fi
21618   elif test x$gcc_cv_as != x; then
21619     echo '      .SPACE $TEXT$
21620         .NSUBSPA $CODE$,COMDAT' > conftest.s
21621     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21622   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21623   (eval $ac_try) 2>&5
21624   ac_status=$?
21625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21626   test $ac_status = 0; }; }
21627     then
21628         gcc_cv_as_nsubspa_comdat=yes
21629     else
21630       echo "configure: failed program was" >&5
21631       cat conftest.s >&5
21632     fi
21633     rm -f conftest.o conftest.s
21634   fi
21635 fi
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21637 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21638 if test $gcc_cv_as_nsubspa_comdat = yes; then
21639
21640 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21641
21642 fi
21643
21644 # .hidden needs to be supported in both the assembler and the linker,
21645 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21646 # This is irritatingly difficult to feature test for; we have to check the
21647 # date string after the version number.  If we've got an in-tree
21648 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21649 # to be safe.
21650 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21652 $as_echo_n "checking assembler for .hidden... " >&6; }
21653 if test "${gcc_cv_as_hidden+set}" = set; then :
21654   $as_echo_n "(cached) " >&6
21655 else
21656   gcc_cv_as_hidden=no
21657     if test $in_tree_gas = yes; then
21658     if test $in_tree_gas_is_elf = yes \
21659   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21660   then gcc_cv_as_hidden=yes
21661 fi
21662   elif test x$gcc_cv_as != x; then
21663     echo '      .hidden foobar
21664 foobar:' > conftest.s
21665     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21666   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21667   (eval $ac_try) 2>&5
21668   ac_status=$?
21669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21670   test $ac_status = 0; }; }
21671     then
21672
21673 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21674 # STV_HIDDEN, so disable .hidden support if so.
21675 case "${target}" in
21676   i?86-*-solaris2*)
21677     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21678       cat > conftest.s <<EOF
21679 .globl hidden
21680         .hidden hidden
21681 hidden:
21682 .globl default
21683         .set    default,hidden
21684 EOF
21685       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21686         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21687         grep '\.hidden default' > /dev/null; then
21688         gcc_cv_as_hidden=no
21689       else
21690         gcc_cv_as_hidden=yes
21691       fi
21692     else
21693       # Assume bug is present if objdump is missing.
21694       gcc_cv_as_hidden=no
21695     fi
21696     ;;
21697   *)
21698     gcc_cv_as_hidden=yes
21699     ;;
21700 esac
21701     else
21702       echo "configure: failed program was" >&5
21703       cat conftest.s >&5
21704     fi
21705     rm -f conftest.o conftest.s
21706   fi
21707 fi
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21709 $as_echo "$gcc_cv_as_hidden" >&6; }
21710
21711
21712 # gnu_indirect_function type is an extension proposed at
21713 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21714 # selection of function implementation
21715 # Check whether --enable-gnu-indirect-function was given.
21716 if test "${enable_gnu_indirect_function+set}" = set; then :
21717   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21718     yes | no) ;;
21719     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21720 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21721   esac
21722 else
21723   enable_gnu_indirect_function="$default_gnu_indirect_function"
21724 fi
21725
21726 if test x$enable_gnu_indirect_function = xyes; then
21727
21728 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21729
21730 fi
21731
21732 if test $in_tree_ld != yes ; then
21733   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21734   if echo "$ld_ver" | grep GNU > /dev/null; then
21735     if test x"$ld_is_gold" = xyes; then
21736       # GNU gold --version looks like this:
21737       #
21738       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
21739       #
21740       # We extract the binutils version which is more familiar and specific
21741       # than the gold version.
21742       ld_vers=`echo $ld_ver | sed -n \
21743           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
21744     else
21745       # GNU ld --version looks like this:
21746       #
21747       # GNU ld (GNU Binutils) 2.21.51.20110225
21748       ld_vers=`echo $ld_ver | sed -n \
21749           -e 's,^.*[     ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21750     fi
21751     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'`
21752     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21753     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21754     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21755   else
21756     case "${target}" in
21757       *-*-solaris2*)
21758         #
21759         # Solaris 2 ld -V output looks like this for a regular version:
21760         #
21761         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21762         #
21763         # but test versions add stuff at the end:
21764         #
21765         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21766         #
21767         ld_ver=`$gcc_cv_ld -V 2>&1`
21768         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21769           ld_vers=`echo $ld_ver | sed -n \
21770             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21771           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21772           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21773         fi
21774         ;;
21775     esac
21776   fi
21777 fi
21778
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21780 $as_echo_n "checking linker for .hidden support... " >&6; }
21781 if test "${gcc_cv_ld_hidden+set}" = set; then :
21782   $as_echo_n "(cached) " >&6
21783 else
21784   if test $in_tree_ld = yes ; then
21785   gcc_cv_ld_hidden=no
21786   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 \
21787      && test $in_tree_ld_is_elf = yes; then
21788      gcc_cv_ld_hidden=yes
21789   fi
21790 else
21791   gcc_cv_ld_hidden=yes
21792   if test x"$ld_is_gold" = xyes; then
21793     :
21794   elif echo "$ld_ver" | grep GNU > /dev/null; then
21795     if test 0"$ld_date" -lt 20020404; then
21796       if test -n "$ld_date"; then
21797         # If there was date string, but was earlier than 2002-04-04, fail
21798         gcc_cv_ld_hidden=no
21799       elif test -z "$ld_vers"; then
21800         # If there was no date string nor ld version number, something is wrong
21801         gcc_cv_ld_hidden=no
21802       else
21803         test -z "$ld_vers_patch" && ld_vers_patch=0
21804         if test "$ld_vers_major" -lt 2; then
21805           gcc_cv_ld_hidden=no
21806         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21807           gcc_cv_ld_hidden="no"
21808         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21809           gcc_cv_ld_hidden=no
21810         fi
21811       fi
21812     fi
21813   else
21814     case "${target}" in
21815       hppa64*-*-hpux* | ia64*-*-hpux*)
21816         gcc_cv_ld_hidden=yes
21817         ;;
21818       *-*-solaris2.8*)
21819         # .hidden support was backported to Solaris 8, starting with ld
21820         # version 1.276.
21821         if test "$ld_vers_minor" -ge 276; then
21822           gcc_cv_ld_hidden=yes
21823         else
21824           gcc_cv_ld_hidden=no
21825         fi
21826         ;;
21827       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21828         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21829         # .symbolic was only added in Solaris 9 12/02.
21830         gcc_cv_ld_hidden=yes
21831         ;;
21832       *)
21833         gcc_cv_ld_hidden=no
21834         ;;
21835     esac
21836   fi
21837 fi
21838 fi
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21840 $as_echo "$gcc_cv_ld_hidden" >&6; }
21841 libgcc_visibility=no
21842
21843
21844 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21845   libgcc_visibility=yes
21846
21847 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21848
21849 fi
21850
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21852 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21853 gcc_cv_ld_ro_rw_mix=unknown
21854 if test $in_tree_ld = yes ; then
21855   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 \
21856      && test $in_tree_ld_is_elf = yes; then
21857     gcc_cv_ld_ro_rw_mix=read-write
21858   fi
21859 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21860   echo '.section myfoosect, "a"' > conftest1.s
21861   echo '.section myfoosect, "aw"' > conftest2.s
21862   echo '.byte 1' >> conftest2.s
21863   echo '.section myfoosect, "a"' > conftest3.s
21864   echo '.byte 0' >> conftest3.s
21865   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21866      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21867      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21868      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21869         conftest2.o conftest3.o > /dev/null 2>&1; then
21870     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21871                          | sed -e '/myfoosect/!d' -e N`
21872     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21873       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21874         gcc_cv_ld_ro_rw_mix=read-only
21875       else
21876         gcc_cv_ld_ro_rw_mix=read-write
21877       fi
21878     fi
21879   fi
21880   rm -f conftest.* conftest[123].*
21881 fi
21882 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21883
21884 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21885
21886 fi
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21888 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21889
21890 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21892 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21893 if test "${gcc_cv_as_leb128+set}" = set; then :
21894   $as_echo_n "(cached) " >&6
21895 else
21896   gcc_cv_as_leb128=no
21897     if test $in_tree_gas = yes; then
21898     if test $in_tree_gas_is_elf = yes \
21899   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21900   then gcc_cv_as_leb128=yes
21901 fi
21902   elif test x$gcc_cv_as != x; then
21903     echo '      .data
21904         .uleb128 L2 - L1
21905 L1:
21906         .uleb128 1280
21907         .sleb128 -1010
21908 L2:' > conftest.s
21909     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21910   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21911   (eval $ac_try) 2>&5
21912   ac_status=$?
21913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21914   test $ac_status = 0; }; }
21915     then
21916         # GAS versions before 2.11 do not support uleb128,
21917   # despite appearing to.
21918   # ??? There exists an elf-specific test that will crash
21919   # the assembler.  Perhaps it's better to figure out whether
21920   # arbitrary sections are supported and try the test.
21921   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21922   if echo "$as_ver" | grep GNU > /dev/null; then
21923     as_vers=`echo $as_ver | sed -n \
21924         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21925     as_major=`expr "$as_vers" : '\([0-9]*\)'`
21926     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21927     if test $as_major -eq 2 && test $as_minor -lt 11
21928     then :
21929     else gcc_cv_as_leb128=yes
21930     fi
21931   fi
21932     else
21933       echo "configure: failed program was" >&5
21934       cat conftest.s >&5
21935     fi
21936     rm -f conftest.o conftest.s
21937   fi
21938 fi
21939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21940 $as_echo "$gcc_cv_as_leb128" >&6; }
21941 if test $gcc_cv_as_leb128 = yes; then
21942
21943 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21944
21945 fi
21946
21947 # Check if we have assembler support for unwind directives.
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21949 $as_echo_n "checking assembler for cfi directives... " >&6; }
21950 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21951   $as_echo_n "(cached) " >&6
21952 else
21953   gcc_cv_as_cfi_directive=no
21954   if test x$gcc_cv_as != x; then
21955     echo '      .text
21956         .cfi_startproc
21957         .cfi_offset 0, 0
21958         .cfi_same_value 1
21959         .cfi_def_cfa 1, 2
21960         .cfi_escape 1, 2, 3, 4, 5
21961         .cfi_endproc' > conftest.s
21962     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21963   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21964   (eval $ac_try) 2>&5
21965   ac_status=$?
21966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21967   test $ac_status = 0; }; }
21968     then
21969         case "$target" in
21970   *-*-solaris*)
21971     # If the linker used on Solaris (like Sun ld) isn't capable of merging
21972     # read-only and read-write sections, we need to make sure that the
21973     # assembler used emits read-write .eh_frame sections.
21974     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21975       if test "x$gcc_cv_objdump" != x; then
21976         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21977                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21978           gcc_cv_as_cfi_directive=no
21979         else
21980           case "$target" in
21981             i?86-*-solaris2.1[0-9]*)
21982               # On Solaris/x86, make sure that GCC and gas agree on using
21983               # read-only .eh_frame sections for 64-bit.
21984               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21985                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21986                         sed -e /.eh_frame/!d -e N | \
21987                         grep READONLY > /dev/null; then
21988                 gcc_cv_as_cfi_directive=yes
21989               else
21990                 gcc_cv_as_cfi_directive=no
21991               fi
21992               ;;
21993             *)
21994               gcc_cv_as_cfi_directive=yes
21995               ;;
21996           esac
21997         fi
21998       else
21999         # no objdump, err on the side of caution
22000         gcc_cv_as_cfi_directive=no
22001       fi
22002     else
22003       gcc_cv_as_cfi_directive=yes
22004     fi
22005     ;;
22006   *-*-*)
22007     gcc_cv_as_cfi_directive=yes
22008     ;;
22009 esac
22010     else
22011       echo "configure: failed program was" >&5
22012       cat conftest.s >&5
22013     fi
22014     rm -f conftest.o conftest.s
22015   fi
22016 fi
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22018 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22019
22020 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22022 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22023 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22024   $as_echo_n "(cached) " >&6
22025 else
22026   gcc_cv_as_cfi_advance_working=no
22027   if test x$gcc_cv_as != x; then
22028     echo '      .text
22029         .cfi_startproc
22030         .cfi_adjust_cfa_offset 64
22031         .skip 75040, 0
22032         .cfi_adjust_cfa_offset 128
22033         .cfi_endproc' > conftest.s
22034     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22035   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22036   (eval $ac_try) 2>&5
22037   ac_status=$?
22038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22039   test $ac_status = 0; }; }
22040     then
22041
22042 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22043     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
22044    gcc_cv_as_cfi_advance_working=yes
22045 fi
22046
22047     else
22048       echo "configure: failed program was" >&5
22049       cat conftest.s >&5
22050     fi
22051     rm -f conftest.o conftest.s
22052   fi
22053 fi
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22055 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22056
22057 else
22058   # no objdump, err on the side of caution
22059   gcc_cv_as_cfi_advance_working=no
22060 fi
22061
22062
22063 cat >>confdefs.h <<_ACEOF
22064 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22065        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22066 _ACEOF
22067
22068
22069
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22071 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22072 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22073   $as_echo_n "(cached) " >&6
22074 else
22075   gcc_cv_as_cfi_personality_directive=no
22076   if test x$gcc_cv_as != x; then
22077     echo '      .text
22078         .cfi_startproc
22079         .cfi_personality 0, symbol
22080         .cfi_endproc' > conftest.s
22081     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22082   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22083   (eval $ac_try) 2>&5
22084   ac_status=$?
22085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22086   test $ac_status = 0; }; }
22087     then
22088         gcc_cv_as_cfi_personality_directive=yes
22089     else
22090       echo "configure: failed program was" >&5
22091       cat conftest.s >&5
22092     fi
22093     rm -f conftest.o conftest.s
22094   fi
22095 fi
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22097 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22098
22099
22100 cat >>confdefs.h <<_ACEOF
22101 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22102     then echo 1; else echo 0; fi`
22103 _ACEOF
22104
22105
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22107 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22108 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22109   $as_echo_n "(cached) " >&6
22110 else
22111   gcc_cv_as_cfi_sections_directive=no
22112   if test x$gcc_cv_as != x; then
22113     echo '      .text
22114         .cfi_sections .debug_frame, .eh_frame
22115         .cfi_startproc
22116         .cfi_endproc' > conftest.s
22117     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22118   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22119   (eval $ac_try) 2>&5
22120   ac_status=$?
22121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22122   test $ac_status = 0; }; }
22123     then
22124         case $target_os in
22125   win32 | pe | cygwin* | mingw32* | uwin*)
22126     # Need to check that we generated the correct relocation for the
22127     # .debug_frame section.  This was fixed for binutils 2.21.
22128     gcc_cv_as_cfi_sections_directive=no
22129     if test "x$gcc_cv_objdump" != x; then
22130      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22131         grep secrel > /dev/null; then
22132       gcc_cv_as_cfi_sections_directive=yes
22133      fi
22134     fi
22135     ;;
22136   *)
22137     gcc_cv_as_cfi_sections_directive=yes
22138     ;;
22139 esac
22140     else
22141       echo "configure: failed program was" >&5
22142       cat conftest.s >&5
22143     fi
22144     rm -f conftest.o conftest.s
22145   fi
22146 fi
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22148 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22149
22150
22151
22152 cat >>confdefs.h <<_ACEOF
22153 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22154     then echo 1; else echo 0; fi`
22155 _ACEOF
22156
22157
22158 # GAS versions up to and including 2.11.0 may mis-optimize
22159 # .eh_frame data.
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22161 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22162 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22163   $as_echo_n "(cached) " >&6
22164 else
22165   gcc_cv_as_eh_frame=no
22166     if test $in_tree_gas = yes; then
22167     if test $in_tree_gas_is_elf = yes \
22168   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22169   then gcc_cv_as_eh_frame=yes
22170 fi
22171   elif test x$gcc_cv_as != x; then
22172     echo '      .text
22173 .LFB1:
22174         .4byte  0
22175 .L1:
22176         .4byte  0
22177 .LFE1:
22178         .section        .eh_frame,"aw",@progbits
22179 __FRAME_BEGIN__:
22180         .4byte  .LECIE1-.LSCIE1
22181 .LSCIE1:
22182         .4byte  0x0
22183         .byte   0x1
22184         .ascii "z\0"
22185         .byte   0x1
22186         .byte   0x78
22187         .byte   0x1a
22188         .byte   0x0
22189         .byte   0x4
22190         .4byte  1
22191         .p2align 1
22192 .LECIE1:
22193 .LSFDE1:
22194         .4byte  .LEFDE1-.LASFDE1
22195 .LASFDE1:
22196         .4byte  .LASFDE1-__FRAME_BEGIN__
22197         .4byte  .LFB1
22198         .4byte  .LFE1-.LFB1
22199         .byte   0x4
22200         .4byte  .LFE1-.LFB1
22201         .byte   0x4
22202         .4byte  .L1-.LFB1
22203 .LEFDE1:' > conftest.s
22204     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22205   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22206   (eval $ac_try) 2>&5
22207   ac_status=$?
22208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22209   test $ac_status = 0; }; }
22210     then
22211           cat > conftest.lit <<EOF
22212  0000 10000000 00000000 017a0001 781a0004  .........z..x...
22213  0010 01000000 12000000 18000000 00000000  ................
22214  0020 08000000 04080000 0044               .........D      
22215 EOF
22216 cat > conftest.big <<EOF
22217  0000 00000010 00000000 017a0001 781a0004  .........z..x...
22218  0010 00000001 00000012 00000018 00000000  ................
22219  0020 00000008 04000000 0844               .........D      
22220 EOF
22221   # If the assembler didn't choke, and we can objdump,
22222   # and we got the correct data, then succeed.
22223   # The text in the here-document typically retains its unix-style line
22224   # endings, while the output of objdump will use host line endings.
22225   # Therefore, use diff -b for the comparisons.
22226   if test x$gcc_cv_objdump != x \
22227   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22228      | tail -3 > conftest.got \
22229   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22230     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22231   then
22232     gcc_cv_as_eh_frame=yes
22233   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22234   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22235   (eval $ac_try) 2>&5
22236   ac_status=$?
22237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22238   test $ac_status = 0; }; }; then
22239     gcc_cv_as_eh_frame=buggy
22240   else
22241     # Uh oh, what do we do now?
22242     gcc_cv_as_eh_frame=no
22243   fi
22244     else
22245       echo "configure: failed program was" >&5
22246       cat conftest.s >&5
22247     fi
22248     rm -f conftest.o conftest.s
22249   fi
22250 fi
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22252 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22253
22254
22255 if test $gcc_cv_as_eh_frame = buggy; then
22256
22257 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22258
22259 fi
22260
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22262 $as_echo_n "checking assembler for section merging support... " >&6; }
22263 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22264   $as_echo_n "(cached) " >&6
22265 else
22266   gcc_cv_as_shf_merge=no
22267     if test $in_tree_gas = yes; then
22268     if test $in_tree_gas_is_elf = yes \
22269   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22270   then gcc_cv_as_shf_merge=yes
22271 fi
22272   elif test x$gcc_cv_as != x; then
22273     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22274     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22275   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22276   (eval $ac_try) 2>&5
22277   ac_status=$?
22278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22279   test $ac_status = 0; }; }
22280     then
22281         gcc_cv_as_shf_merge=yes
22282     else
22283       echo "configure: failed program was" >&5
22284       cat conftest.s >&5
22285     fi
22286     rm -f conftest.o conftest.s
22287   fi
22288 fi
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22290 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22291
22292 if test $gcc_cv_as_shf_merge = no; then
22293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22294 $as_echo_n "checking assembler for section merging support... " >&6; }
22295 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22296   $as_echo_n "(cached) " >&6
22297 else
22298   gcc_cv_as_shf_merge=no
22299     if test $in_tree_gas = yes; then
22300     if test $in_tree_gas_is_elf = yes \
22301   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22302   then gcc_cv_as_shf_merge=yes
22303 fi
22304   elif test x$gcc_cv_as != x; then
22305     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22306     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22307   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22308   (eval $ac_try) 2>&5
22309   ac_status=$?
22310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22311   test $ac_status = 0; }; }
22312     then
22313         gcc_cv_as_shf_merge=yes
22314     else
22315       echo "configure: failed program was" >&5
22316       cat conftest.s >&5
22317     fi
22318     rm -f conftest.o conftest.s
22319   fi
22320 fi
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22322 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22323
22324 fi
22325
22326 cat >>confdefs.h <<_ACEOF
22327 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22328 _ACEOF
22329
22330
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22332 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22333 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22334   $as_echo_n "(cached) " >&6
22335 else
22336   gcc_cv_as_comdat_group=no
22337     if test $in_tree_gas = yes; then
22338     if test $in_tree_gas_is_elf = yes \
22339   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22340   then gcc_cv_as_comdat_group=yes
22341 fi
22342   elif test x$gcc_cv_as != x; then
22343     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22344     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22345   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22346   (eval $ac_try) 2>&5
22347   ac_status=$?
22348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22349   test $ac_status = 0; }; }
22350     then
22351         gcc_cv_as_comdat_group=yes
22352     else
22353       echo "configure: failed program was" >&5
22354       cat conftest.s >&5
22355     fi
22356     rm -f conftest.o conftest.s
22357   fi
22358 fi
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22360 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22361
22362 if test $gcc_cv_as_comdat_group = yes; then
22363   gcc_cv_as_comdat_group_percent=no
22364   gcc_cv_as_comdat_group_group=no
22365 else
22366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22367 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22368 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22369   $as_echo_n "(cached) " >&6
22370 else
22371   gcc_cv_as_comdat_group_percent=no
22372     if test $in_tree_gas = yes; then
22373     if test $in_tree_gas_is_elf = yes \
22374   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22375   then gcc_cv_as_comdat_group_percent=yes
22376 fi
22377   elif test x$gcc_cv_as != x; then
22378     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22379     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22380   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22381   (eval $ac_try) 2>&5
22382   ac_status=$?
22383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22384   test $ac_status = 0; }; }
22385     then
22386         gcc_cv_as_comdat_group_percent=yes
22387     else
22388       echo "configure: failed program was" >&5
22389       cat conftest.s >&5
22390     fi
22391     rm -f conftest.o conftest.s
22392   fi
22393 fi
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22395 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22396
22397  if test $gcc_cv_as_comdat_group_percent = yes; then
22398    gcc_cv_as_comdat_group_group=no
22399  else
22400    case "${target}" in
22401      # Sun as uses a completely different syntax.
22402      *-*-solaris2*)
22403        case "${target}" in
22404          sparc*-*-solaris2*)
22405            conftest_s='
22406                .group foo,".text%foo",#comdat
22407                .section ".text%foo", #alloc,#execinstr,#progbits
22408                .globl foo
22409              foo:
22410              '
22411            ;;
22412          i?86-*-solaris2*)
22413            conftest_s='
22414                .group foo,.text%foo,#comdat
22415                .section .text%foo, "ax", @progbits
22416                .globl  foo
22417              foo:
22418              '
22419            ;;
22420        esac
22421        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22422 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22423 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22424   $as_echo_n "(cached) " >&6
22425 else
22426   gcc_cv_as_comdat_group_group=no
22427   if test x$gcc_cv_as != x; then
22428     echo "$conftest_s" > conftest.s
22429     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22430   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22431   (eval $ac_try) 2>&5
22432   ac_status=$?
22433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22434   test $ac_status = 0; }; }
22435     then
22436         gcc_cv_as_comdat_group_group=yes
22437     else
22438       echo "configure: failed program was" >&5
22439       cat conftest.s >&5
22440     fi
22441     rm -f conftest.o conftest.s
22442   fi
22443 fi
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22445 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22446
22447        ;;
22448    esac
22449  fi
22450 fi
22451 if test x"$ld_is_gold" = xyes; then
22452   comdat_group=yes
22453 elif test $in_tree_ld = yes ; then
22454   comdat_group=no
22455   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 \
22456      && test $in_tree_ld_is_elf = yes; then
22457      comdat_group=yes
22458   fi
22459 elif echo "$ld_ver" | grep GNU > /dev/null; then
22460   comdat_group=yes
22461   if test 0"$ld_date" -lt 20050308; then
22462     if test -n "$ld_date"; then
22463       # If there was date string, but was earlier than 2005-03-08, fail
22464       comdat_group=no
22465     elif test "$ld_vers_major" -lt 2; then
22466       comdat_group=no
22467     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22468       comdat_group=no
22469     fi
22470   fi
22471 else
22472   case "${target}" in
22473     *-*-solaris2.1[1-9]*)
22474       comdat_group=no
22475       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22476       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22477       # version 1.688.
22478       #
22479       # If using Sun as for COMDAT group as emitted by GCC, one needs at
22480       # least ld version 1.2267.
22481       if test "$ld_vers_major" -gt 1; then
22482         comdat_group=yes
22483       elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22484         comdat_group=yes
22485       elif test "$ld_vers_minor" -ge 2267; then
22486         comdat_group=yes
22487       fi
22488       ;;
22489     *)
22490       # Assume linkers other than GNU ld don't support COMDAT group.
22491       comdat_group=no
22492       ;;
22493   esac
22494 fi
22495 # Allow overriding the automatic COMDAT group tests above.
22496 # Check whether --enable-comdat was given.
22497 if test "${enable_comdat+set}" = set; then :
22498   enableval=$enable_comdat; comdat_group="$enable_comdat"
22499 fi
22500
22501 if test $comdat_group = no; then
22502   gcc_cv_as_comdat_group=no
22503   gcc_cv_as_comdat_group_percent=no
22504   gcc_cv_as_comdat_group_group=no
22505 fi
22506
22507 cat >>confdefs.h <<_ACEOF
22508 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22509     || test $gcc_cv_as_comdat_group_percent = yes \
22510     || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22511 _ACEOF
22512
22513
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22515 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22516 if test "${gcc_cv_as_discriminator+set}" = set; then :
22517   $as_echo_n "(cached) " >&6
22518 else
22519   gcc_cv_as_discriminator=no
22520     if test $in_tree_gas = yes; then
22521     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22522   then gcc_cv_as_discriminator=yes
22523 fi
22524   elif test x$gcc_cv_as != x; then
22525     echo '      .text
22526         .file 1 "conf.c"
22527         .loc 1 1 0 discriminator 1' > conftest.s
22528     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22529   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22530   (eval $ac_try) 2>&5
22531   ac_status=$?
22532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22533   test $ac_status = 0; }; }
22534     then
22535         gcc_cv_as_discriminator=yes
22536     else
22537       echo "configure: failed program was" >&5
22538       cat conftest.s >&5
22539     fi
22540     rm -f conftest.o conftest.s
22541   fi
22542 fi
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22544 $as_echo "$gcc_cv_as_discriminator" >&6; }
22545 if test $gcc_cv_as_discriminator = yes; then
22546
22547 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22548
22549 fi
22550
22551 # Thread-local storage - the check is heavily parameterized.
22552 conftest_s=
22553 tls_first_major=
22554 tls_first_minor=
22555 tls_as_opt=
22556 case "$target" in
22557   alpha*-*-*)
22558     conftest_s='
22559         .section ".tdata","awT",@progbits
22560 foo:    .long   25
22561         .text
22562         ldq     $27,__tls_get_addr($29)         !literal!1
22563         lda     $16,foo($29)                    !tlsgd!1
22564         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
22565         ldq     $27,__tls_get_addr($29)         !literal!2
22566         lda     $16,foo($29)                    !tlsldm!2
22567         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
22568         ldq     $1,foo($29)                     !gotdtprel
22569         ldah    $2,foo($29)                     !dtprelhi
22570         lda     $3,foo($2)                      !dtprello
22571         lda     $4,foo($29)                     !dtprel
22572         ldq     $1,foo($29)                     !gottprel
22573         ldah    $2,foo($29)                     !tprelhi
22574         lda     $3,foo($2)                      !tprello
22575         lda     $4,foo($29)                     !tprel'
22576         tls_first_major=2
22577         tls_first_minor=13
22578         tls_as_opt=--fatal-warnings
22579         ;;
22580   cris-*-*|crisv32-*-*)
22581     conftest_s='
22582         .section ".tdata","awT",@progbits
22583 x:      .long   25
22584         .text
22585         move.d x:IE,$r10
22586         nop'
22587         tls_first_major=2
22588         tls_first_minor=20
22589         tls_as_opt=--fatal-warnings
22590         ;;
22591   frv*-*-*)
22592     conftest_s='
22593         .section ".tdata","awT",@progbits
22594 x:      .long   25
22595         .text
22596         call    #gettlsoff(x)'
22597         tls_first_major=2
22598         tls_first_minor=14
22599         ;;
22600   hppa*-*-linux*)
22601     conftest_s='
22602 t1:     .reg    %r20
22603 t2:     .reg    %r21
22604 gp:     .reg    %r19
22605         .section ".tdata","awT",@progbits
22606 foo:    .long   25
22607         .text
22608         .align  4
22609         addil LT%foo-$tls_gdidx$,gp
22610         ldo RT%foo-$tls_gdidx$(%r1),%arg0
22611         b __tls_get_addr
22612         nop
22613         addil LT%foo-$tls_ldidx$,gp
22614         b __tls_get_addr
22615         ldo RT%foo-$tls_ldidx$(%r1),%arg0
22616         addil LR%foo-$tls_dtpoff$,%ret0
22617         ldo RR%foo-$tls_dtpoff$(%r1),%t1
22618         mfctl %cr27,%t1
22619         addil LT%foo-$tls_ieoff$,gp
22620         ldw RT%foo-$tls_ieoff$(%r1),%t2
22621         add %t1,%t2,%t3
22622         mfctl %cr27,%t1
22623         addil LR%foo-$tls_leoff$,%t1
22624         ldo RR%foo-$tls_leoff$(%r1),%t2'
22625         tls_first_major=2
22626         tls_first_minor=15
22627         tls_as_opt=--fatal-warnings
22628         ;;
22629   arm*-*-*)
22630     conftest_s='
22631         .section ".tdata","awT",%progbits
22632 foo:    .long   25
22633         .text
22634 .word foo(gottpoff)
22635 .word foo(tpoff)
22636 .word foo(tlsgd)
22637 .word foo(tlsldm)
22638 .word foo(tlsldo)'
22639         tls_first_major=2
22640         tls_first_minor=17
22641         ;;
22642   i[34567]86-*-*)
22643     case "$target" in
22644       i[34567]86-*-solaris2.*)
22645         on_solaris=yes
22646         tga_func=___tls_get_addr
22647         ;;
22648       *)
22649         on_solaris=no
22650         ;;
22651     esac
22652     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22653       conftest_s='
22654         .section .tdata,"awt",@progbits'
22655       tls_first_major=0
22656       tls_first_minor=0
22657
22658 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22659
22660     else
22661       conftest_s='
22662         .section ".tdata","awT",@progbits'
22663       tls_first_major=2
22664       tls_first_minor=14
22665       tls_as_opt="--fatal-warnings"
22666     fi
22667     conftest_s="$conftest_s
22668 foo:    .long   25
22669         .text
22670         movl    %gs:0, %eax
22671         leal    foo@tlsgd(,%ebx,1), %eax
22672         leal    foo@tlsldm(%ebx), %eax
22673         leal    foo@dtpoff(%eax), %edx
22674         movl    foo@gottpoff(%ebx), %eax
22675         subl    foo@gottpoff(%ebx), %eax
22676         addl    foo@gotntpoff(%ebx), %eax
22677         movl    foo@indntpoff, %eax
22678         movl    \$foo@tpoff, %eax
22679         subl    \$foo@tpoff, %eax
22680         leal    foo@ntpoff(%ecx), %eax"
22681     ;;
22682   x86_64-*-*)
22683     conftest_s='
22684         .section ".tdata","awT",@progbits
22685 foo:    .long   25
22686         .text
22687         movq    %fs:0, %rax
22688         leaq    foo@TLSGD(%rip), %rdi
22689         leaq    foo@TLSLD(%rip), %rdi
22690         leaq    foo@DTPOFF(%rax), %rdx
22691         movq    foo@GOTTPOFF(%rip), %rax
22692         movq    $foo@TPOFF, %rax'
22693         tls_first_major=2
22694         tls_first_minor=14
22695         tls_as_opt=--fatal-warnings
22696         ;;
22697   ia64-*-*)
22698     conftest_s='
22699         .section ".tdata","awT",@progbits
22700 foo:    data8   25
22701         .text
22702         addl    r16 = @ltoff(@dtpmod(foo#)), gp
22703         addl    r17 = @ltoff(@dtprel(foo#)), gp
22704         addl    r18 = @ltoff(@tprel(foo#)), gp
22705         addl    r19 = @dtprel(foo#), gp
22706         adds    r21 = @dtprel(foo#), r13
22707         movl    r23 = @dtprel(foo#)
22708         addl    r20 = @tprel(foo#), gp
22709         adds    r22 = @tprel(foo#), r13
22710         movl    r24 = @tprel(foo#)'
22711         tls_first_major=2
22712         tls_first_minor=13
22713         tls_as_opt=--fatal-warnings
22714         ;;
22715   mips*-*-*)
22716     conftest_s='
22717         .section .tdata,"awT",@progbits
22718 x:
22719         .word 2
22720         .text
22721         addiu $4, $28, %tlsgd(x)
22722         addiu $4, $28, %tlsldm(x)
22723         lui $4, %dtprel_hi(x)
22724         addiu $4, $4, %dtprel_lo(x)
22725         lw $4, %gottprel(x)($28)
22726         lui $4, %tprel_hi(x)
22727         addiu $4, $4, %tprel_lo(x)'
22728         tls_first_major=2
22729         tls_first_minor=16
22730         tls_as_opt='-32 --fatal-warnings'
22731         ;;
22732   m68k-*-*)
22733     conftest_s='
22734         .section .tdata,"awT",@progbits
22735 x:
22736         .word 2
22737         .text
22738 foo:
22739         move.l x@TLSGD(%a5),%a0
22740         move.l x@TLSLDM(%a5),%a0
22741         move.l x@TLSLDO(%a5),%a0
22742         move.l x@TLSIE(%a5),%a0
22743         move.l x@TLSLE(%a5),%a0'
22744         tls_first_major=2
22745         tls_first_minor=19
22746         tls_as_opt='--fatal-warnings'
22747         ;;
22748   powerpc-*-*)
22749     conftest_s='
22750         .section ".tdata","awT",@progbits
22751         .align 2
22752 ld0:    .space 4
22753 ld1:    .space 4
22754 x1:     .space 4
22755 x2:     .space 4
22756 x3:     .space 4
22757         .text
22758         addi 3,31,ld0@got@tlsgd
22759         bl __tls_get_addr
22760         addi 3,31,x1@got@tlsld
22761         bl __tls_get_addr
22762         addi 9,3,x1@dtprel
22763         addis 9,3,x2@dtprel@ha
22764         addi 9,9,x2@dtprel@l
22765         lwz 9,x3@got@tprel(31)
22766         add 9,9,x@tls
22767         addi 9,2,x1@tprel
22768         addis 9,2,x2@tprel@ha
22769         addi 9,9,x2@tprel@l'
22770         tls_first_major=2
22771         tls_first_minor=14
22772         tls_as_opt="-a32 --fatal-warnings"
22773         ;;
22774   powerpc64-*-*)
22775     conftest_s='
22776         .section ".tdata","awT",@progbits
22777         .align 3
22778 ld0:    .space 8
22779 ld1:    .space 8
22780 x1:     .space 8
22781 x2:     .space 8
22782 x3:     .space 8
22783         .text
22784         addi 3,2,ld0@got@tlsgd
22785         bl .__tls_get_addr
22786         nop
22787         addi 3,2,ld1@toc
22788         bl .__tls_get_addr
22789         nop
22790         addi 3,2,x1@got@tlsld
22791         bl .__tls_get_addr
22792         nop
22793         addi 9,3,x1@dtprel
22794         bl .__tls_get_addr
22795         nop
22796         addis 9,3,x2@dtprel@ha
22797         addi 9,9,x2@dtprel@l
22798         bl .__tls_get_addr
22799         nop
22800         ld 9,x3@got@dtprel(2)
22801         add 9,9,3
22802         bl .__tls_get_addr
22803         nop'
22804         tls_first_major=2
22805         tls_first_minor=14
22806         tls_as_opt="-a64 --fatal-warnings"
22807         ;;
22808   s390-*-*)
22809     conftest_s='
22810         .section ".tdata","awT",@progbits
22811 foo:    .long   25
22812         .text
22813         .long   foo@TLSGD
22814         .long   foo@TLSLDM
22815         .long   foo@DTPOFF
22816         .long   foo@NTPOFF
22817         .long   foo@GOTNTPOFF
22818         .long   foo@INDNTPOFF
22819         l       %r1,foo@GOTNTPOFF(%r12)
22820         l       %r1,0(%r1):tls_load:foo
22821         bas     %r14,0(%r1,%r13):tls_gdcall:foo
22822         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
22823         tls_first_major=2
22824         tls_first_minor=14
22825         tls_as_opt="-m31 --fatal-warnings"
22826         ;;
22827   s390x-*-*)
22828     conftest_s='
22829         .section ".tdata","awT",@progbits
22830 foo:    .long   25
22831         .text
22832         .quad   foo@TLSGD
22833         .quad   foo@TLSLDM
22834         .quad   foo@DTPOFF
22835         .quad   foo@NTPOFF
22836         .quad   foo@GOTNTPOFF
22837         lg      %r1,foo@GOTNTPOFF(%r12)
22838         larl    %r1,foo@INDNTPOFF
22839         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
22840         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22841         tls_first_major=2
22842         tls_first_minor=14
22843         tls_as_opt="-m64 -Aesame --fatal-warnings"
22844         ;;
22845   sh-*-* | sh[34]-*-*)
22846     conftest_s='
22847         .section ".tdata","awT",@progbits
22848 foo:    .long   25
22849         .text
22850         .long   foo@TLSGD
22851         .long   foo@TLSLDM
22852         .long   foo@DTPOFF
22853         .long   foo@GOTTPOFF
22854         .long   foo@TPOFF'
22855         tls_first_major=2
22856         tls_first_minor=13
22857         tls_as_opt=--fatal-warnings
22858         ;;
22859   sparc*-*-*)
22860     case "$target" in
22861       sparc*-sun-solaris2.*)
22862         on_solaris=yes
22863         tga_func=__tls_get_addr
22864         ;;
22865       *)
22866         on_solaris=no
22867         ;;
22868     esac
22869     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22870       conftest_s='
22871         .section ".tdata",#alloc,#write,#tls'
22872         tls_first_major=0
22873         tls_first_minor=0
22874     else
22875       conftest_s='
22876         .section ".tdata","awT",@progbits'
22877         tls_first_major=2
22878         tls_first_minor=14
22879         tls_as_opt="-32 --fatal-warnings"
22880     fi
22881     conftest_s="$conftest_s
22882 foo:    .long   25
22883         .text
22884         sethi   %tgd_hi22(foo), %o0
22885         add     %o0, %tgd_lo10(foo), %o1
22886         add     %l7, %o1, %o0, %tgd_add(foo)
22887         call    __tls_get_addr, %tgd_call(foo)
22888         sethi   %tldm_hi22(foo), %l1
22889         add     %l1, %tldm_lo10(foo), %l2
22890         add     %l7, %l2, %o0, %tldm_add(foo)
22891         call    __tls_get_addr, %tldm_call(foo)
22892         sethi   %tldo_hix22(foo), %l3
22893         xor     %l3, %tldo_lox10(foo), %l4
22894         add     %o0, %l4, %l5, %tldo_add(foo)
22895         sethi   %tie_hi22(foo), %o3
22896         add     %o3, %tie_lo10(foo), %o3
22897         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22898         add     %g7, %o2, %o4, %tie_add(foo)
22899         sethi   %tle_hix22(foo), %l1
22900         xor     %l1, %tle_lox10(foo), %o5
22901         ld      [%g7 + %o5], %o1"
22902         ;;
22903   xtensa*-*-*)
22904     conftest_s='
22905         .section ".tdata","awT",@progbits
22906 foo:    .long   25
22907         .text
22908         movi    a8, foo@TLSFUNC
22909         movi    a10, foo@TLSARG
22910         callx8.tls a8, foo@TLSCALL'
22911         tls_first_major=2
22912         tls_first_minor=19
22913         ;;
22914 esac
22915 set_have_as_tls=no
22916 if test "x$enable_tls" = xno ; then
22917   : # TLS explicitly disabled.
22918 elif test "x$enable_tls" = xyes ; then
22919   set_have_as_tls=yes # TLS explicitly enabled.
22920 elif test -z "$tls_first_major"; then
22921   : # If we don't have a check, assume no support.
22922 else
22923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22924 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22925 if test "${gcc_cv_as_tls+set}" = set; then :
22926   $as_echo_n "(cached) " >&6
22927 else
22928   gcc_cv_as_tls=no
22929     if test $in_tree_gas = yes; then
22930     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22931   then gcc_cv_as_tls=yes
22932 fi
22933   elif test x$gcc_cv_as != x; then
22934     echo "$conftest_s" > conftest.s
22935     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22936   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22937   (eval $ac_try) 2>&5
22938   ac_status=$?
22939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22940   test $ac_status = 0; }; }
22941     then
22942         gcc_cv_as_tls=yes
22943     else
22944       echo "configure: failed program was" >&5
22945       cat conftest.s >&5
22946     fi
22947     rm -f conftest.o conftest.s
22948   fi
22949 fi
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22951 $as_echo "$gcc_cv_as_tls" >&6; }
22952 if test $gcc_cv_as_tls = yes; then
22953   set_have_as_tls=yes
22954 fi
22955 fi
22956 case "$target" in
22957   *-*-irix6*)
22958     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
22959     # with TLS support are in use, native TLS cannot work.
22960     set_have_as_tls=no
22961     ;;
22962   *-*-osf*)
22963     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
22964     # gld with TLS support are in use, native TLS cannot work.
22965     set_have_as_tls=no
22966     ;;
22967   # TLS was introduced in the Solaris 9 FCS release and backported to
22968   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
22969   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22970   # ld and GCC don't support any longer.
22971   *-*-solaris2.*)
22972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22973 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22974     ld_tls_support=no
22975     # Check ld and ld.so.1 TLS support.
22976     if echo "$ld_ver" | grep GNU > /dev/null; then
22977       # Assume all interesting versions of GNU ld have TLS support.
22978       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22979       ld_tls_support=yes
22980     else
22981       case "$target" in
22982         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22983         i?86-*-solaris2.8)
22984           min_tls_ld_vers_minor=280
22985           ;;
22986         # Solaris 8/SPARC ld has TLS support since version 1.272.
22987         sparc*-*-solaris2.8)
22988           min_tls_ld_vers_minor=272
22989           ;;
22990         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22991         i?86-*-solaris2.9)
22992           min_tls_ld_vers_minor=374
22993           ;;
22994         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22995         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22996           min_tls_ld_vers_minor=343
22997           ;;
22998       esac
22999       if test "$ld_vers_major" -gt 1 || \
23000         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23001         ld_tls_support=yes
23002       else
23003         set_have_as_tls=no
23004       fi
23005     fi
23006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23007 $as_echo "$ld_tls_support" >&6; }
23008
23009     save_LIBS="$LIBS"
23010     save_LDFLAGS="$LDFLAGS"
23011     LIBS=
23012     LDFLAGS=
23013
23014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23015 $as_echo_n "checking alternate thread library... " >&6; }
23016     case "$target" in
23017       # TLS support was backported to Solaris 8 patches, but only lives in
23018       # the alternate thread library which became the default in Solaris 9.
23019       # We want to always use that, irrespective of TLS support.
23020       *-*-solaris2.8)
23021         # Take multilib subdir into account.  There's no spec to handle
23022         # this.  The 64 symlink exists since Solaris 8.
23023         lwp_dir=/usr/lib/lwp
23024         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23025         LDFLAGS="-L$lwp_dir -R$lwp_dir"
23026         ;;
23027       *-*-solaris2*)
23028         lwp_dir="none"
23029         lwp_spec=""
23030         ;;
23031     esac
23032     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23033
23034 cat >>confdefs.h <<_ACEOF
23035 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23036 _ACEOF
23037
23038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23039 $as_echo "$lwp_dir" >&6; }
23040
23041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23042 $as_echo_n "checking library containing $tga_func... " >&6; }
23043     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23044     # (32-bit x86) only lived in libthread, so check for that.  Keep
23045     # set_have_as_tls if found, disable if not.
23046     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23048 $as_echo_n "checking for library containing $tga_func... " >&6; }
23049 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23050   $as_echo_n "(cached) " >&6
23051 else
23052   ac_func_search_save_LIBS=$LIBS
23053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23054 /* end confdefs.h.  */
23055
23056 /* Override any GCC internal prototype to avoid an error.
23057    Use char because int might match the return type of a GCC
23058    builtin and then its argument prototype would still apply.  */
23059 #ifdef __cplusplus
23060 extern "C"
23061 #endif
23062 char $tga_func ();
23063 int
23064 main ()
23065 {
23066 return $tga_func ();
23067   ;
23068   return 0;
23069 }
23070 _ACEOF
23071 for ac_lib in '' thread; do
23072   if test -z "$ac_lib"; then
23073     ac_res="none required"
23074   else
23075     ac_res=-l$ac_lib
23076     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23077   fi
23078   if ac_fn_c_try_link "$LINENO"; then :
23079   eval "$as_ac_Search=\$ac_res"
23080 fi
23081 rm -f core conftest.err conftest.$ac_objext \
23082     conftest$ac_exeext
23083   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23084   break
23085 fi
23086 done
23087 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23088
23089 else
23090   eval "$as_ac_Search=no"
23091 fi
23092 rm conftest.$ac_ext
23093 LIBS=$ac_func_search_save_LIBS
23094 fi
23095 eval ac_res=\$$as_ac_Search
23096                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23097 $as_echo "$ac_res" >&6; }
23098 eval ac_res=\$$as_ac_Search
23099 if test "$ac_res" != no; then :
23100   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23101
23102 else
23103   set_have_as_tls=no
23104 fi
23105
23106     # Clear LIBS if we cannot support TLS.
23107     if test $set_have_as_tls = no; then
23108       LIBS=
23109     fi
23110     # Always define LIB_TLS_SPEC, even without TLS support.
23111
23112 cat >>confdefs.h <<_ACEOF
23113 #define LIB_TLS_SPEC "$LIBS"
23114 _ACEOF
23115
23116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23117 $as_echo "$LIBS" >&6; }
23118
23119     LIBS="$save_LIBS"
23120     LDFLAGS="$save_LDFLAGS"
23121     ;;
23122 esac
23123 if test $set_have_as_tls = yes ; then
23124
23125 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23126
23127 fi
23128
23129 # Target-specific assembler checks.
23130
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23132 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23133 gcc_cv_ld_static_dynamic=no
23134 gcc_cv_ld_static_option='-Bstatic'
23135 gcc_cv_ld_dynamic_option='-Bdynamic'
23136 if test $in_tree_ld = yes ; then
23137   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
23138     gcc_cv_ld_static_dynamic=yes
23139   fi
23140 elif test x$gcc_cv_ld != x; then
23141   # Check if linker supports -Bstatic/-Bdynamic option
23142   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23143      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23144       gcc_cv_ld_static_dynamic=yes
23145   else
23146     case "$target" in
23147       # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23148       alpha*-dec-osf*)
23149         gcc_cv_ld_static_dynamic=yes
23150         gcc_cv_ld_static_option="-noso"
23151         gcc_cv_ld_dynamic_option="-so_archive"
23152         ;;
23153       # IRIX 6 ld supports -Bstatic/-Bdynamic.
23154       mips-sgi-irix6*)
23155         gcc_cv_ld_static_dynamic=yes
23156         ;;
23157       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23158       *-*-solaris2*)
23159         gcc_cv_ld_static_dynamic=yes
23160         ;;
23161     esac
23162   fi
23163 fi
23164 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23165
23166 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23167
23168
23169 cat >>confdefs.h <<_ACEOF
23170 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23171 _ACEOF
23172
23173
23174 cat >>confdefs.h <<_ACEOF
23175 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23176 _ACEOF
23177
23178 fi
23179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23180 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23181
23182 if test x"$demangler_in_ld" = xyes; then
23183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23184 $as_echo_n "checking linker --demangle support... " >&6; }
23185   gcc_cv_ld_demangle=no
23186   if test $in_tree_ld = yes; then
23187     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 \
23188       gcc_cv_ld_demangle=yes
23189     fi
23190   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23191     # Check if the GNU linker supports --demangle option
23192     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23193       gcc_cv_ld_demangle=yes
23194     fi
23195   fi
23196   if test x"$gcc_cv_ld_demangle" = xyes; then
23197
23198 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23199
23200   fi
23201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23202 $as_echo "$gcc_cv_ld_demangle" >&6; }
23203 fi
23204
23205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23206 $as_echo_n "checking linker plugin support... " >&6; }
23207 gcc_cv_lto_plugin=0
23208 if test -f liblto_plugin.la; then
23209   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23210     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
23211       gcc_cv_lto_plugin=2
23212     elif test "$ld_is_gold" = yes -a "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -eq 20; then
23213       gcc_cv_lto_plugin=1
23214
23215     fi
23216   elif test x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld" && echo "$ld_ver" | grep GNU > /dev/null; then
23217     # Require GNU ld or gold 2.21+ for plugin support by default.
23218     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23219       gcc_cv_lto_plugin=2
23220     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23221     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23222       gcc_cv_lto_plugin=1
23223     fi
23224   elif test x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" != x"$gcc_cv_ld"; then
23225     # Allow -fuse-linker-plugin if plugin linker differs from
23226     # default/specified linker.
23227     gcc_cv_lto_plugin=1
23228   fi
23229 fi
23230
23231 cat >>confdefs.h <<_ACEOF
23232 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23233 _ACEOF
23234
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23236 $as_echo "$gcc_cv_lto_plugin" >&6; }
23237
23238 case "$target" in
23239   # All TARGET_ABI_OSF targets.
23240   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23242 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23243 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23244   $as_echo_n "(cached) " >&6
23245 else
23246   gcc_cv_as_alpha_explicit_relocs=no
23247     if test $in_tree_gas = yes; then
23248     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23249   then gcc_cv_as_alpha_explicit_relocs=yes
23250 fi
23251   elif test x$gcc_cv_as != x; then
23252     echo '      .set nomacro
23253         .text
23254         extbl   $3, $2, $3      !lituse_bytoff!1
23255         ldq     $2, a($29)      !literal!1
23256         ldq     $4, b($29)      !literal!2
23257         ldq_u   $3, 0($2)       !lituse_base!1
23258         ldq     $27, f($29)     !literal!5
23259         jsr     $26, ($27), f   !lituse_jsr!5
23260         ldah    $29, 0($26)     !gpdisp!3
23261         lda     $0, c($29)      !gprel
23262         ldah    $1, d($29)      !gprelhigh
23263         lda     $1, d($1)       !gprellow
23264         lda     $29, 0($29)     !gpdisp!3' > conftest.s
23265     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23266   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23267   (eval $ac_try) 2>&5
23268   ac_status=$?
23269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23270   test $ac_status = 0; }; }
23271     then
23272         gcc_cv_as_alpha_explicit_relocs=yes
23273     else
23274       echo "configure: failed program was" >&5
23275       cat conftest.s >&5
23276     fi
23277     rm -f conftest.o conftest.s
23278   fi
23279 fi
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23281 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23282 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23283
23284 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23285
23286 fi
23287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23288 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23289 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23290   $as_echo_n "(cached) " >&6
23291 else
23292   gcc_cv_as_alpha_jsrdirect_relocs=no
23293     if test $in_tree_gas = yes; then
23294     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23295   then gcc_cv_as_alpha_jsrdirect_relocs=yes
23296 fi
23297   elif test x$gcc_cv_as != x; then
23298     echo '      .set nomacro
23299         .text
23300         ldq     $27, a($29)     !literal!1
23301         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
23302     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23303   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23304   (eval $ac_try) 2>&5
23305   ac_status=$?
23306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23307   test $ac_status = 0; }; }
23308     then
23309         gcc_cv_as_alpha_jsrdirect_relocs=yes
23310     else
23311       echo "configure: failed program was" >&5
23312       cat conftest.s >&5
23313     fi
23314     rm -f conftest.o conftest.s
23315   fi
23316 fi
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23318 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23319 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23320
23321 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23322
23323 fi
23324     ;;
23325
23326   cris-*-*)
23327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23328 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23329 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23330   $as_echo_n "(cached) " >&6
23331 else
23332   gcc_cv_as_cris_no_mul_bug=no
23333     if test $in_tree_gas = yes; then
23334     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23335   then gcc_cv_as_cris_no_mul_bug=yes
23336 fi
23337   elif test x$gcc_cv_as != x; then
23338     echo '.text' > conftest.s
23339     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23340   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23341   (eval $ac_try) 2>&5
23342   ac_status=$?
23343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23344   test $ac_status = 0; }; }
23345     then
23346         gcc_cv_as_cris_no_mul_bug=yes
23347     else
23348       echo "configure: failed program was" >&5
23349       cat conftest.s >&5
23350     fi
23351     rm -f conftest.o conftest.s
23352   fi
23353 fi
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23355 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23356 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23357
23358 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23359
23360 fi
23361     ;;
23362
23363   sparc*-*-*)
23364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23365 $as_echo_n "checking assembler for .register... " >&6; }
23366 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23367   $as_echo_n "(cached) " >&6
23368 else
23369   gcc_cv_as_sparc_register_op=no
23370   if test x$gcc_cv_as != x; then
23371     echo '.register %g2, #scratch' > conftest.s
23372     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23373   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23374   (eval $ac_try) 2>&5
23375   ac_status=$?
23376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23377   test $ac_status = 0; }; }
23378     then
23379         gcc_cv_as_sparc_register_op=yes
23380     else
23381       echo "configure: failed program was" >&5
23382       cat conftest.s >&5
23383     fi
23384     rm -f conftest.o conftest.s
23385   fi
23386 fi
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23388 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23389 if test $gcc_cv_as_sparc_register_op = yes; then
23390
23391 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23392
23393 fi
23394
23395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23396 $as_echo_n "checking assembler for -relax option... " >&6; }
23397 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23398   $as_echo_n "(cached) " >&6
23399 else
23400   gcc_cv_as_sparc_relax=no
23401   if test x$gcc_cv_as != x; then
23402     echo '.text' > conftest.s
23403     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23404   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23405   (eval $ac_try) 2>&5
23406   ac_status=$?
23407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23408   test $ac_status = 0; }; }
23409     then
23410         gcc_cv_as_sparc_relax=yes
23411     else
23412       echo "configure: failed program was" >&5
23413       cat conftest.s >&5
23414     fi
23415     rm -f conftest.o conftest.s
23416   fi
23417 fi
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23419 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23420 if test $gcc_cv_as_sparc_relax = yes; then
23421
23422 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23423
23424 fi
23425
23426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23427 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23428 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23429   $as_echo_n "(cached) " >&6
23430 else
23431   gcc_cv_as_sparc_gotdata_op=no
23432   if test x$gcc_cv_as != x; then
23433     echo '.text
23434 .align 4
23435 foo:
23436         nop
23437 bar:
23438         sethi %gdop_hix22(foo), %g1
23439         xor    %g1, %gdop_lox10(foo), %g1
23440         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23441     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23442   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23443   (eval $ac_try) 2>&5
23444   ac_status=$?
23445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23446   test $ac_status = 0; }; }
23447     then
23448         if test x$gcc_cv_ld != x \
23449        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23450          if test x$gcc_cv_objdump != x; then
23451            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23452               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23453                gcc_cv_as_sparc_gotdata_op=no
23454            else
23455                gcc_cv_as_sparc_gotdata_op=yes
23456            fi
23457          fi
23458        fi
23459        rm -f conftest
23460     else
23461       echo "configure: failed program was" >&5
23462       cat conftest.s >&5
23463     fi
23464     rm -f conftest.o conftest.s
23465   fi
23466 fi
23467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23468 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23469 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23470
23471 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23472
23473 fi
23474
23475     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23476 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23477 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23478   $as_echo_n "(cached) " >&6
23479 else
23480   gcc_cv_as_sparc_ua_pcrel=no
23481   if test x$gcc_cv_as != x; then
23482     echo '.text
23483 foo:
23484         nop
23485 .data
23486 .align 4
23487 .byte 0
23488 .uaword %r_disp32(foo)' > conftest.s
23489     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23490   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23491   (eval $ac_try) 2>&5
23492   ac_status=$?
23493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23494   test $ac_status = 0; }; }
23495     then
23496         if test x$gcc_cv_ld != x \
23497        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23498          gcc_cv_as_sparc_ua_pcrel=yes
23499        fi
23500        rm -f conftest
23501     else
23502       echo "configure: failed program was" >&5
23503       cat conftest.s >&5
23504     fi
23505     rm -f conftest.o conftest.s
23506   fi
23507 fi
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23509 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23510 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23511
23512 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23513
23514
23515       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23516 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23517 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23518   $as_echo_n "(cached) " >&6
23519 else
23520   gcc_cv_as_sparc_ua_pcrel_hidden=no
23521   if test x$gcc_cv_as != x; then
23522     echo '.data
23523 .align 4
23524 .byte 0x31
23525 .uaword %r_disp32(foo)
23526 .byte 0x32, 0x33, 0x34
23527 .global foo
23528 .hidden foo
23529 foo:
23530 .skip 4' > conftest.s
23531     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23532   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23533   (eval $ac_try) 2>&5
23534   ac_status=$?
23535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23536   test $ac_status = 0; }; }
23537     then
23538         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23539          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23540          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23541             | grep ' 31000000 07323334' > /dev/null 2>&1; then
23542             if $gcc_cv_objdump -R conftest 2> /dev/null \
23543                | grep 'DISP32' > /dev/null 2>&1; then
23544                 :
23545             else
23546                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23547             fi
23548          fi
23549          rm -f conftest
23550     else
23551       echo "configure: failed program was" >&5
23552       cat conftest.s >&5
23553     fi
23554     rm -f conftest.o conftest.s
23555   fi
23556 fi
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23558 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23559 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23560
23561 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23562
23563 fi
23564
23565 fi # unaligned pcrel relocs
23566
23567     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23568 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23569 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23570   $as_echo_n "(cached) " >&6
23571 else
23572   gcc_cv_as_sparc_offsetable_lo10=no
23573   if test x$gcc_cv_as != x; then
23574     echo '.text
23575         or %g1, %lo(ab) + 12, %g1
23576         or %g1, %lo(ab + 12), %g1' > conftest.s
23577     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23578   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23579   (eval $ac_try) 2>&5
23580   ac_status=$?
23581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23582   test $ac_status = 0; }; }
23583     then
23584         if test x$gcc_cv_objdump != x \
23585        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23586           | grep ' 82106000 82106000' > /dev/null 2>&1; then
23587          gcc_cv_as_sparc_offsetable_lo10=yes
23588        fi
23589     else
23590       echo "configure: failed program was" >&5
23591       cat conftest.s >&5
23592     fi
23593     rm -f conftest.o conftest.s
23594   fi
23595 fi
23596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23597 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23598 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23599
23600 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23601
23602 fi
23603     ;;
23604
23605   i[34567]86-*-* | x86_64-*-*)
23606     case $target_os in
23607       cygwin*)
23608         # Full C++ conformance when using a shared libstdc++-v3 requires some
23609         # support from the Cygwin DLL, which in more recent versions exports
23610         # wrappers to aid in interposing and redirecting operators new, delete,
23611         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
23612         # are configuring for a version of Cygwin that exports the wrappers.
23613         if test x$host = x$target; then
23614           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23615 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23616   gcc_ac_cygwin_dll_wrappers=yes
23617 else
23618   gcc_ac_cygwin_dll_wrappers=no
23619 fi
23620
23621         else
23622           # Can't check presence of libc functions during cross-compile, so
23623           # we just have to assume we're building for an up-to-date target.
23624           gcc_ac_cygwin_dll_wrappers=yes
23625         fi
23626
23627 cat >>confdefs.h <<_ACEOF
23628 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23629 _ACEOF
23630
23631     esac
23632     case $target_os in
23633       cygwin* | pe | mingw32*)
23634         # Recent binutils allows the three-operand form of ".comm" on PE.  This
23635         # definition is used unconditionally to initialise the default state of
23636         # the target option variable that governs usage of the feature.
23637         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23638 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23639 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23640   $as_echo_n "(cached) " >&6
23641 else
23642   gcc_cv_as_comm_has_align=no
23643     if test $in_tree_gas = yes; then
23644     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23645   then gcc_cv_as_comm_has_align=yes
23646 fi
23647   elif test x$gcc_cv_as != x; then
23648     echo '.comm foo,1,32' > conftest.s
23649     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23650   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23651   (eval $ac_try) 2>&5
23652   ac_status=$?
23653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23654   test $ac_status = 0; }; }
23655     then
23656         gcc_cv_as_comm_has_align=yes
23657     else
23658       echo "configure: failed program was" >&5
23659       cat conftest.s >&5
23660     fi
23661     rm -f conftest.o conftest.s
23662   fi
23663 fi
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23665 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23666
23667
23668 cat >>confdefs.h <<_ACEOF
23669 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23670 _ACEOF
23671
23672         # Used for DWARF 2 in PE
23673         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23674 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23675 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23676   $as_echo_n "(cached) " >&6
23677 else
23678   gcc_cv_as_ix86_pe_secrel32=no
23679     if test $in_tree_gas = yes; then
23680     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23681   then gcc_cv_as_ix86_pe_secrel32=yes
23682 fi
23683   elif test x$gcc_cv_as != x; then
23684     echo '.text
23685 foo:    nop
23686 .data
23687         .secrel32 foo' > 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         if test x$gcc_cv_ld != x \
23696            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23697              gcc_cv_as_ix86_pe_secrel32=yes
23698            fi
23699            rm -f conftest
23700     else
23701       echo "configure: failed program was" >&5
23702       cat conftest.s >&5
23703     fi
23704     rm -f conftest.o conftest.s
23705   fi
23706 fi
23707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23708 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23709 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23710
23711 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23712
23713 fi
23714         # Test if the assembler supports the extended form of the .section
23715         # directive that specifies section alignment.  LTO support uses this,
23716         # but normally only after installation, so we warn but don't fail the
23717         # configure if LTO is enabled but the assembler does not support it.
23718         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23719 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23720 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23721   $as_echo_n "(cached) " >&6
23722 else
23723   gcc_cv_as_section_has_align=no
23724     if test $in_tree_gas = yes; then
23725     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23726   then gcc_cv_as_section_has_align=yes
23727 fi
23728   elif test x$gcc_cv_as != x; then
23729     echo '.section lto_test,"dr0"' > conftest.s
23730     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23731   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23732   (eval $ac_try) 2>&5
23733   ac_status=$?
23734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23735   test $ac_status = 0; }; }
23736     then
23737         gcc_cv_as_section_has_align=yes
23738     else
23739       echo "configure: failed program was" >&5
23740       cat conftest.s >&5
23741     fi
23742     rm -f conftest.o conftest.s
23743   fi
23744 fi
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23746 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23747
23748         if test x$gcc_cv_as_section_has_align != xyes; then
23749           case ",$enable_languages," in
23750             *,lto,*)
23751               { $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
23752 $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;}
23753               ;;
23754           esac
23755         fi
23756         ;;
23757     esac
23758
23759     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23760 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23761 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23762   $as_echo_n "(cached) " >&6
23763 else
23764   gcc_cv_as_ix86_filds=no
23765   if test x$gcc_cv_as != x; then
23766     echo 'filds mem; fists mem' > conftest.s
23767     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23768   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23769   (eval $ac_try) 2>&5
23770   ac_status=$?
23771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23772   test $ac_status = 0; }; }
23773     then
23774         gcc_cv_as_ix86_filds=yes
23775     else
23776       echo "configure: failed program was" >&5
23777       cat conftest.s >&5
23778     fi
23779     rm -f conftest.o conftest.s
23780   fi
23781 fi
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23783 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23784 if test $gcc_cv_as_ix86_filds = yes; then
23785
23786 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23787
23788 fi
23789
23790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23791 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23792 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23793   $as_echo_n "(cached) " >&6
23794 else
23795   gcc_cv_as_ix86_fildq=no
23796   if test x$gcc_cv_as != x; then
23797     echo 'fildq mem; fistpq mem' > conftest.s
23798     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23799   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23800   (eval $ac_try) 2>&5
23801   ac_status=$?
23802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23803   test $ac_status = 0; }; }
23804     then
23805         gcc_cv_as_ix86_fildq=yes
23806     else
23807       echo "configure: failed program was" >&5
23808       cat conftest.s >&5
23809     fi
23810     rm -f conftest.o conftest.s
23811   fi
23812 fi
23813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23814 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23815 if test $gcc_cv_as_ix86_fildq = yes; then
23816
23817 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23818
23819 fi
23820
23821     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23822 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23823 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23824   $as_echo_n "(cached) " >&6
23825 else
23826   gcc_cv_as_ix86_cmov_sun_syntax=no
23827   if test x$gcc_cv_as != x; then
23828     echo 'cmovl.l %edx, %eax' > conftest.s
23829     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23830   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23831   (eval $ac_try) 2>&5
23832   ac_status=$?
23833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23834   test $ac_status = 0; }; }
23835     then
23836         gcc_cv_as_ix86_cmov_sun_syntax=yes
23837     else
23838       echo "configure: failed program was" >&5
23839       cat conftest.s >&5
23840     fi
23841     rm -f conftest.o conftest.s
23842   fi
23843 fi
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23845 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23846 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23847
23848 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23849
23850 fi
23851
23852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23853 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23854 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23855   $as_echo_n "(cached) " >&6
23856 else
23857   gcc_cv_as_ix86_ffreep=no
23858   if test x$gcc_cv_as != x; then
23859     echo 'ffreep %st(1)' > conftest.s
23860     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23861   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23862   (eval $ac_try) 2>&5
23863   ac_status=$?
23864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23865   test $ac_status = 0; }; }
23866     then
23867         gcc_cv_as_ix86_ffreep=yes
23868     else
23869       echo "configure: failed program was" >&5
23870       cat conftest.s >&5
23871     fi
23872     rm -f conftest.o conftest.s
23873   fi
23874 fi
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23876 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23877 if test $gcc_cv_as_ix86_ffreep = yes; then
23878
23879 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23880
23881 fi
23882
23883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23884 $as_echo_n "checking assembler for .quad directive... " >&6; }
23885 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23886   $as_echo_n "(cached) " >&6
23887 else
23888   gcc_cv_as_ix86_quad=no
23889   if test x$gcc_cv_as != x; then
23890     echo '.quad 0' > conftest.s
23891     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23892   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23893   (eval $ac_try) 2>&5
23894   ac_status=$?
23895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23896   test $ac_status = 0; }; }
23897     then
23898         gcc_cv_as_ix86_quad=yes
23899     else
23900       echo "configure: failed program was" >&5
23901       cat conftest.s >&5
23902     fi
23903     rm -f conftest.o conftest.s
23904   fi
23905 fi
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23907 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23908 if test $gcc_cv_as_ix86_quad = yes; then
23909
23910 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23911
23912 fi
23913
23914     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23915 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23916 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23917   $as_echo_n "(cached) " >&6
23918 else
23919   gcc_cv_as_ix86_sahf=no
23920   if test x$gcc_cv_as != x; then
23921     echo '.code64
23922        sahf' > conftest.s
23923     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23924   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23925   (eval $ac_try) 2>&5
23926   ac_status=$?
23927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23928   test $ac_status = 0; }; }
23929     then
23930         gcc_cv_as_ix86_sahf=yes
23931     else
23932       echo "configure: failed program was" >&5
23933       cat conftest.s >&5
23934     fi
23935     rm -f conftest.o conftest.s
23936   fi
23937 fi
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23939 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23940 if test $gcc_cv_as_ix86_sahf = yes; then
23941
23942 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23943
23944 fi
23945
23946     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23947 $as_echo_n "checking assembler for swap suffix... " >&6; }
23948 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23949   $as_echo_n "(cached) " >&6
23950 else
23951   gcc_cv_as_ix86_swap=no
23952   if test x$gcc_cv_as != x; then
23953     echo 'movl.s %esp, %ebp' > conftest.s
23954     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23955   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23956   (eval $ac_try) 2>&5
23957   ac_status=$?
23958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23959   test $ac_status = 0; }; }
23960     then
23961         gcc_cv_as_ix86_swap=yes
23962     else
23963       echo "configure: failed program was" >&5
23964       cat conftest.s >&5
23965     fi
23966     rm -f conftest.o conftest.s
23967   fi
23968 fi
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23970 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23971 if test $gcc_cv_as_ix86_swap = yes; then
23972
23973 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23974
23975 fi
23976
23977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23978 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23979 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23980   $as_echo_n "(cached) " >&6
23981 else
23982   gcc_cv_as_ix86_diff_sect_delta=no
23983   if test x$gcc_cv_as != x; then
23984     echo '.section .rodata
23985 .L1:
23986         .long .L2-.L1
23987         .long .L3-.L1
23988         .text
23989 .L3:    nop
23990 .L2:    nop' > conftest.s
23991     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23992   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23993   (eval $ac_try) 2>&5
23994   ac_status=$?
23995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23996   test $ac_status = 0; }; }
23997     then
23998         gcc_cv_as_ix86_diff_sect_delta=yes
23999     else
24000       echo "configure: failed program was" >&5
24001       cat conftest.s >&5
24002     fi
24003     rm -f conftest.o conftest.s
24004   fi
24005 fi
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24007 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24008 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24009
24010 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24011
24012 fi
24013
24014     # These two are used unconditionally by i386.[ch]; it is to be defined
24015     # to 1 if the feature is present, 0 otherwise.
24016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24017 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24018 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24019   $as_echo_n "(cached) " >&6
24020 else
24021   gcc_cv_as_ix86_gotoff_in_data=no
24022     if test $in_tree_gas = yes; then
24023     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24024   then gcc_cv_as_ix86_gotoff_in_data=yes
24025 fi
24026   elif test x$gcc_cv_as != x; then
24027     echo '      .text
24028 .L0:
24029         nop
24030         .data
24031         .long .L0@GOTOFF' > conftest.s
24032     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24033   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24034   (eval $ac_try) 2>&5
24035   ac_status=$?
24036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24037   test $ac_status = 0; }; }
24038     then
24039         gcc_cv_as_ix86_gotoff_in_data=yes
24040     else
24041       echo "configure: failed program was" >&5
24042       cat conftest.s >&5
24043     fi
24044     rm -f conftest.o conftest.s
24045   fi
24046 fi
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24048 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24049
24050
24051 cat >>confdefs.h <<_ACEOF
24052 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24053 _ACEOF
24054
24055
24056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24057 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24058 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24059   $as_echo_n "(cached) " >&6
24060 else
24061   gcc_cv_as_ix86_rep_lock_prefix=no
24062   if test x$gcc_cv_as != x; then
24063     echo 'rep movsl
24064          lock addl %edi, (%eax,%esi)
24065          lock orl $0, (%esp)' > conftest.s
24066     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24067   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24068   (eval $ac_try) 2>&5
24069   ac_status=$?
24070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24071   test $ac_status = 0; }; }
24072     then
24073         gcc_cv_as_ix86_rep_lock_prefix=yes
24074     else
24075       echo "configure: failed program was" >&5
24076       cat conftest.s >&5
24077     fi
24078     rm -f conftest.o conftest.s
24079   fi
24080 fi
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24082 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24083 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24084
24085 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24086
24087 fi
24088
24089     ;;
24090
24091   ia64*-*-*)
24092     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24093 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24094 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24095   $as_echo_n "(cached) " >&6
24096 else
24097   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24098     if test $in_tree_gas = yes; then
24099     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24100   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24101 fi
24102   elif test x$gcc_cv_as != x; then
24103     echo '      .text
24104         addl r15 = @ltoffx(x#), gp
24105         ;;
24106         ld8.mov r16 = [r15], x#' > conftest.s
24107     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24108   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24109   (eval $ac_try) 2>&5
24110   ac_status=$?
24111   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24112   test $ac_status = 0; }; }
24113     then
24114         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24115     else
24116       echo "configure: failed program was" >&5
24117       cat conftest.s >&5
24118     fi
24119     rm -f conftest.o conftest.s
24120   fi
24121 fi
24122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24123 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24124 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24125
24126 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24127
24128 fi
24129
24130     ;;
24131
24132   powerpc*-*-*)
24133     case $target in
24134       *-*-aix*) conftest_s='    .machine "pwr5"
24135         .csect .text[PR]
24136         mfcr 3,128';;
24137       *-*-darwin*)
24138         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24139 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24140 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24141   $as_echo_n "(cached) " >&6
24142 else
24143   gcc_cv_as_machine_directive=no
24144   if test x$gcc_cv_as != x; then
24145     echo '      .machine ppc7400' > conftest.s
24146     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24147   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24148   (eval $ac_try) 2>&5
24149   ac_status=$?
24150   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24151   test $ac_status = 0; }; }
24152     then
24153         gcc_cv_as_machine_directive=yes
24154     else
24155       echo "configure: failed program was" >&5
24156       cat conftest.s >&5
24157     fi
24158     rm -f conftest.o conftest.s
24159   fi
24160 fi
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24162 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24163
24164         if test x$gcc_cv_as_machine_directive != xyes; then
24165           echo "*** This target requires an assembler supporting \".machine\"" >&2
24166           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24167           test x$build = x$target && exit 1
24168         fi
24169         conftest_s='    .text
24170         mfcr r3,128';;
24171       *) conftest_s='   .machine power4
24172         .text
24173         mfcr 3,128';;
24174     esac
24175
24176     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24177 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24178 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24179   $as_echo_n "(cached) " >&6
24180 else
24181   gcc_cv_as_powerpc_mfcrf=no
24182     if test $in_tree_gas = yes; then
24183     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24184   then gcc_cv_as_powerpc_mfcrf=yes
24185 fi
24186   elif test x$gcc_cv_as != x; then
24187     echo "$conftest_s" > conftest.s
24188     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24189   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24190   (eval $ac_try) 2>&5
24191   ac_status=$?
24192   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24193   test $ac_status = 0; }; }
24194     then
24195         gcc_cv_as_powerpc_mfcrf=yes
24196     else
24197       echo "configure: failed program was" >&5
24198       cat conftest.s >&5
24199     fi
24200     rm -f conftest.o conftest.s
24201   fi
24202 fi
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24204 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24205 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24206
24207 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24208
24209 fi
24210
24211     case $target in
24212       *-*-aix*) conftest_s='    .machine "pwr5"
24213         .csect .text[PR]
24214         popcntb 3,3';;
24215       *) conftest_s='   .machine power5
24216         .text
24217         popcntb 3,3';;
24218     esac
24219
24220     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24221 $as_echo_n "checking assembler for popcntb support... " >&6; }
24222 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24223   $as_echo_n "(cached) " >&6
24224 else
24225   gcc_cv_as_powerpc_popcntb=no
24226     if test $in_tree_gas = yes; then
24227     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24228   then gcc_cv_as_powerpc_popcntb=yes
24229 fi
24230   elif test x$gcc_cv_as != x; then
24231     echo "$conftest_s" > conftest.s
24232     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24233   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24234   (eval $ac_try) 2>&5
24235   ac_status=$?
24236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24237   test $ac_status = 0; }; }
24238     then
24239         gcc_cv_as_powerpc_popcntb=yes
24240     else
24241       echo "configure: failed program was" >&5
24242       cat conftest.s >&5
24243     fi
24244     rm -f conftest.o conftest.s
24245   fi
24246 fi
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24248 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24249 if test $gcc_cv_as_powerpc_popcntb = yes; then
24250
24251 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24252
24253 fi
24254
24255     case $target in
24256       *-*-aix*) conftest_s='    .machine "pwr5x"
24257         .csect .text[PR]
24258         frin 1,1';;
24259       *) conftest_s='   .machine power5
24260         .text
24261         frin 1,1';;
24262     esac
24263
24264     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24265 $as_echo_n "checking assembler for fp round support... " >&6; }
24266 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24267   $as_echo_n "(cached) " >&6
24268 else
24269   gcc_cv_as_powerpc_fprnd=no
24270     if test $in_tree_gas = yes; then
24271     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24272   then gcc_cv_as_powerpc_fprnd=yes
24273 fi
24274   elif test x$gcc_cv_as != x; then
24275     echo "$conftest_s" > conftest.s
24276     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24277   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24278   (eval $ac_try) 2>&5
24279   ac_status=$?
24280   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24281   test $ac_status = 0; }; }
24282     then
24283         gcc_cv_as_powerpc_fprnd=yes
24284     else
24285       echo "configure: failed program was" >&5
24286       cat conftest.s >&5
24287     fi
24288     rm -f conftest.o conftest.s
24289   fi
24290 fi
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24292 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24293 if test $gcc_cv_as_powerpc_fprnd = yes; then
24294
24295 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24296
24297 fi
24298
24299     case $target in
24300       *-*-aix*) conftest_s='    .machine "pwr6"
24301         .csect .text[PR]
24302         mffgpr 1,3';;
24303       *) conftest_s='   .machine power6
24304         .text
24305         mffgpr 1,3';;
24306     esac
24307
24308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24309 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24310 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24311   $as_echo_n "(cached) " >&6
24312 else
24313   gcc_cv_as_powerpc_mfpgpr=no
24314     if test $in_tree_gas = yes; then
24315     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24316   then gcc_cv_as_powerpc_mfpgpr=yes
24317 fi
24318   elif test x$gcc_cv_as != x; then
24319     echo "$conftest_s" > conftest.s
24320     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24321   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24322   (eval $ac_try) 2>&5
24323   ac_status=$?
24324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24325   test $ac_status = 0; }; }
24326     then
24327         gcc_cv_as_powerpc_mfpgpr=yes
24328     else
24329       echo "configure: failed program was" >&5
24330       cat conftest.s >&5
24331     fi
24332     rm -f conftest.o conftest.s
24333   fi
24334 fi
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24336 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24337 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24338
24339 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24340
24341 fi
24342
24343     case $target in
24344       *-*-aix*) conftest_s='    .csect .text[PR]
24345 LCF..0:
24346         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24347       *-*-darwin*)
24348         conftest_s='    .text
24349 LCF0:
24350         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24351       *) conftest_s='   .text
24352 .LCF0:
24353         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24354     esac
24355
24356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24357 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24358 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24359   $as_echo_n "(cached) " >&6
24360 else
24361   gcc_cv_as_powerpc_rel16=no
24362     if test $in_tree_gas = yes; then
24363     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24364   then gcc_cv_as_powerpc_rel16=yes
24365 fi
24366   elif test x$gcc_cv_as != x; then
24367     echo "$conftest_s" > conftest.s
24368     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24369   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24370   (eval $ac_try) 2>&5
24371   ac_status=$?
24372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24373   test $ac_status = 0; }; }
24374     then
24375         gcc_cv_as_powerpc_rel16=yes
24376     else
24377       echo "configure: failed program was" >&5
24378       cat conftest.s >&5
24379     fi
24380     rm -f conftest.o conftest.s
24381   fi
24382 fi
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24384 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24385 if test $gcc_cv_as_powerpc_rel16 = yes; then
24386
24387 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24388
24389 fi
24390
24391     case $target in
24392       *-*-aix*) conftest_s='    .machine "pwr6"
24393         .csect .text[PR]
24394         cmpb 3,4,5';;
24395       *) conftest_s='   .machine power6
24396         .text
24397         cmpb 3,4,5';;
24398     esac
24399
24400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24401 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24402 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24403   $as_echo_n "(cached) " >&6
24404 else
24405   gcc_cv_as_powerpc_cmpb=no
24406     if test $in_tree_gas = yes; then
24407     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24408   then gcc_cv_as_powerpc_cmpb=yes
24409 fi
24410   elif test x$gcc_cv_as != x; then
24411     echo "$conftest_s" > conftest.s
24412     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24413   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24414   (eval $ac_try) 2>&5
24415   ac_status=$?
24416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24417   test $ac_status = 0; }; }
24418     then
24419         gcc_cv_as_powerpc_cmpb=yes
24420     else
24421       echo "configure: failed program was" >&5
24422       cat conftest.s >&5
24423     fi
24424     rm -f conftest.o conftest.s
24425   fi
24426 fi
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24428 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24429 if test $gcc_cv_as_powerpc_cmpb = yes; then
24430
24431 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24432
24433 fi
24434
24435     case $target in
24436       *-*-aix*) conftest_s='    .machine "pwr6"
24437         .csect .text[PR]
24438         dadd 1,2,3';;
24439       *) conftest_s='   .machine power6
24440         .text
24441         dadd 1,2,3';;
24442     esac
24443
24444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24445 $as_echo_n "checking assembler for decimal float support... " >&6; }
24446 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24447   $as_echo_n "(cached) " >&6
24448 else
24449   gcc_cv_as_powerpc_dfp=no
24450     if test $in_tree_gas = yes; then
24451     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24452   then gcc_cv_as_powerpc_dfp=yes
24453 fi
24454   elif test x$gcc_cv_as != x; then
24455     echo "$conftest_s" > conftest.s
24456     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24457   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24458   (eval $ac_try) 2>&5
24459   ac_status=$?
24460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24461   test $ac_status = 0; }; }
24462     then
24463         gcc_cv_as_powerpc_dfp=yes
24464     else
24465       echo "configure: failed program was" >&5
24466       cat conftest.s >&5
24467     fi
24468     rm -f conftest.o conftest.s
24469   fi
24470 fi
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24472 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24473 if test $gcc_cv_as_powerpc_dfp = yes; then
24474
24475 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24476
24477 fi
24478
24479     case $target in
24480       *-*-aix*) conftest_s='    .machine "pwr7"
24481         .csect .text[PR]
24482         lxvd2x 1,2,3';;
24483       *) conftest_s='   .machine power7
24484         .text
24485         lxvd2x 1,2,3';;
24486     esac
24487
24488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24489 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24490 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24491   $as_echo_n "(cached) " >&6
24492 else
24493   gcc_cv_as_powerpc_vsx=no
24494     if test $in_tree_gas = yes; then
24495     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24496   then gcc_cv_as_powerpc_vsx=yes
24497 fi
24498   elif test x$gcc_cv_as != x; then
24499     echo "$conftest_s" > conftest.s
24500     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24501   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24502   (eval $ac_try) 2>&5
24503   ac_status=$?
24504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24505   test $ac_status = 0; }; }
24506     then
24507         gcc_cv_as_powerpc_vsx=yes
24508     else
24509       echo "configure: failed program was" >&5
24510       cat conftest.s >&5
24511     fi
24512     rm -f conftest.o conftest.s
24513   fi
24514 fi
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24516 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24517 if test $gcc_cv_as_powerpc_vsx = yes; then
24518
24519 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24520
24521 fi
24522
24523     case $target in
24524       *-*-aix*) conftest_s='    .machine "pwr7"
24525         .csect .text[PR]
24526         popcntd 3,3';;
24527       *) conftest_s='   .machine power7
24528         .text
24529         popcntd 3,3';;
24530     esac
24531
24532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24533 $as_echo_n "checking assembler for popcntd support... " >&6; }
24534 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24535   $as_echo_n "(cached) " >&6
24536 else
24537   gcc_cv_as_powerpc_popcntd=no
24538     if test $in_tree_gas = yes; then
24539     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24540   then gcc_cv_as_powerpc_popcntd=yes
24541 fi
24542   elif test x$gcc_cv_as != x; then
24543     echo "$conftest_s" > conftest.s
24544     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24545   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24546   (eval $ac_try) 2>&5
24547   ac_status=$?
24548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24549   test $ac_status = 0; }; }
24550     then
24551         gcc_cv_as_powerpc_popcntd=yes
24552     else
24553       echo "configure: failed program was" >&5
24554       cat conftest.s >&5
24555     fi
24556     rm -f conftest.o conftest.s
24557   fi
24558 fi
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24560 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24561 if test $gcc_cv_as_powerpc_popcntd = yes; then
24562
24563 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24564
24565 fi
24566
24567     case $target in
24568       *-*-aix*) conftest_s='    .csect .text[PR]
24569         lwsync';;
24570       *) conftest_s='   .text
24571         lwsync';;
24572     esac
24573
24574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24575 $as_echo_n "checking assembler for lwsync support... " >&6; }
24576 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24577   $as_echo_n "(cached) " >&6
24578 else
24579   gcc_cv_as_powerpc_lwsync=no
24580     if test $in_tree_gas = yes; then
24581     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24582   then gcc_cv_as_powerpc_lwsync=yes
24583 fi
24584   elif test x$gcc_cv_as != x; then
24585     echo "$conftest_s" > conftest.s
24586     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24587   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24588   (eval $ac_try) 2>&5
24589   ac_status=$?
24590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24591   test $ac_status = 0; }; }
24592     then
24593         gcc_cv_as_powerpc_lwsync=yes
24594     else
24595       echo "configure: failed program was" >&5
24596       cat conftest.s >&5
24597     fi
24598     rm -f conftest.o conftest.s
24599   fi
24600 fi
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24602 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24603 if test $gcc_cv_as_powerpc_lwsync = yes; then
24604
24605 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24606
24607 fi
24608
24609     case $target in
24610       *-*-aix*) conftest_s='    .machine "476"
24611         .csect .text[PR]
24612         dci 0';;
24613       *) conftest_s='   .machine "476"
24614         .text
24615         dci 0';;
24616     esac
24617
24618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24619 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24620 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24621   $as_echo_n "(cached) " >&6
24622 else
24623   gcc_cv_as_powerpc_dci=no
24624     if test $in_tree_gas = yes; then
24625     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24626   then gcc_cv_as_powerpc_dci=yes
24627 fi
24628   elif test x$gcc_cv_as != x; then
24629     echo "$conftest_s" > conftest.s
24630     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24631   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24632   (eval $ac_try) 2>&5
24633   ac_status=$?
24634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24635   test $ac_status = 0; }; }
24636     then
24637         gcc_cv_as_powerpc_dci=yes
24638     else
24639       echo "configure: failed program was" >&5
24640       cat conftest.s >&5
24641     fi
24642     rm -f conftest.o conftest.s
24643   fi
24644 fi
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24646 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24647 if test $gcc_cv_as_powerpc_dci = yes; then
24648
24649 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24650
24651 fi
24652
24653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24654 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24655 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24656   $as_echo_n "(cached) " >&6
24657 else
24658   gcc_cv_as_powerpc_gnu_attribute=no
24659     if test $in_tree_gas = yes; then
24660     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24661   then gcc_cv_as_powerpc_gnu_attribute=yes
24662 fi
24663   elif test x$gcc_cv_as != x; then
24664     echo '.gnu_attribute 4,1' > conftest.s
24665     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24666   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24667   (eval $ac_try) 2>&5
24668   ac_status=$?
24669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24670   test $ac_status = 0; }; }
24671     then
24672         gcc_cv_as_powerpc_gnu_attribute=yes
24673     else
24674       echo "configure: failed program was" >&5
24675       cat conftest.s >&5
24676     fi
24677     rm -f conftest.o conftest.s
24678   fi
24679 fi
24680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24681 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24682 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24683
24684 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24685
24686 fi
24687
24688     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24689 $as_echo_n "checking assembler for tls marker support... " >&6; }
24690 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24691   $as_echo_n "(cached) " >&6
24692 else
24693   gcc_cv_as_powerpc_tls_markers=no
24694     if test $in_tree_gas = yes; then
24695     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24696   then gcc_cv_as_powerpc_tls_markers=yes
24697 fi
24698   elif test x$gcc_cv_as != x; then
24699     echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24700     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24701   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24702   (eval $ac_try) 2>&5
24703   ac_status=$?
24704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24705   test $ac_status = 0; }; }
24706     then
24707         gcc_cv_as_powerpc_tls_markers=yes
24708     else
24709       echo "configure: failed program was" >&5
24710       cat conftest.s >&5
24711     fi
24712     rm -f conftest.o conftest.s
24713   fi
24714 fi
24715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24716 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24717 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24718
24719 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24720
24721 fi
24722
24723     case $target in
24724       *-*-aix*)
24725         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24726 $as_echo_n "checking assembler for .ref support... " >&6; }
24727 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24728   $as_echo_n "(cached) " >&6
24729 else
24730   gcc_cv_as_aix_ref=no
24731     if test $in_tree_gas = yes; then
24732     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24733   then :
24734 fi
24735   elif test x$gcc_cv_as != x; then
24736     echo '      .csect stuff[rw]
24737              stuff:
24738                 .long 1
24739                 .extern sym
24740                 .ref sym
24741           ' > conftest.s
24742     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24743   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24744   (eval $ac_try) 2>&5
24745   ac_status=$?
24746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24747   test $ac_status = 0; }; }
24748     then
24749         gcc_cv_as_aix_ref=yes
24750     else
24751       echo "configure: failed program was" >&5
24752       cat conftest.s >&5
24753     fi
24754     rm -f conftest.o conftest.s
24755   fi
24756 fi
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24758 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24759 if test $gcc_cv_as_aix_ref = yes; then
24760
24761 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24762
24763 fi
24764         ;;
24765     esac
24766     ;;
24767
24768   mips*-*-*)
24769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24770 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24771 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24772   $as_echo_n "(cached) " >&6
24773 else
24774   gcc_cv_as_mips_explicit_relocs=no
24775     if test $in_tree_gas = yes; then
24776     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24777   then gcc_cv_as_mips_explicit_relocs=yes
24778 fi
24779   elif test x$gcc_cv_as != x; then
24780     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
24781     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24782   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24783   (eval $ac_try) 2>&5
24784   ac_status=$?
24785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24786   test $ac_status = 0; }; }
24787     then
24788         gcc_cv_as_mips_explicit_relocs=yes
24789     else
24790       echo "configure: failed program was" >&5
24791       cat conftest.s >&5
24792     fi
24793     rm -f conftest.o conftest.s
24794   fi
24795 fi
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24797 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24798 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24799   if test x$target_cpu_default = x
24800        then target_cpu_default=MASK_EXPLICIT_RELOCS
24801        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24802        fi
24803 fi
24804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24805 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24806 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24807   $as_echo_n "(cached) " >&6
24808 else
24809   gcc_cv_as_mips_no_shared=no
24810     if test $in_tree_gas = yes; then
24811     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24812   then gcc_cv_as_mips_no_shared=yes
24813 fi
24814   elif test x$gcc_cv_as != x; then
24815     echo 'nop' > conftest.s
24816     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24817   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24818   (eval $ac_try) 2>&5
24819   ac_status=$?
24820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24821   test $ac_status = 0; }; }
24822     then
24823         gcc_cv_as_mips_no_shared=yes
24824     else
24825       echo "configure: failed program was" >&5
24826       cat conftest.s >&5
24827     fi
24828     rm -f conftest.o conftest.s
24829   fi
24830 fi
24831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24832 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24833 if test $gcc_cv_as_mips_no_shared = yes; then
24834
24835 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24836
24837 fi
24838
24839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24840 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24841 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24842   $as_echo_n "(cached) " >&6
24843 else
24844   gcc_cv_as_mips_gnu_attribute=no
24845     if test $in_tree_gas = yes; then
24846     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24847   then gcc_cv_as_mips_gnu_attribute=yes
24848 fi
24849   elif test x$gcc_cv_as != x; then
24850     echo '.gnu_attribute 4,1' > conftest.s
24851     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24852   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24853   (eval $ac_try) 2>&5
24854   ac_status=$?
24855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24856   test $ac_status = 0; }; }
24857     then
24858         gcc_cv_as_mips_gnu_attribute=yes
24859     else
24860       echo "configure: failed program was" >&5
24861       cat conftest.s >&5
24862     fi
24863     rm -f conftest.o conftest.s
24864   fi
24865 fi
24866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24867 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24868 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24869
24870 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24871
24872 fi
24873
24874     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24875 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24876 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24877   $as_echo_n "(cached) " >&6
24878 else
24879   gcc_cv_as_mips_dtprelword=no
24880     if test $in_tree_gas = yes; then
24881     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24882   then gcc_cv_as_mips_dtprelword=yes
24883 fi
24884   elif test x$gcc_cv_as != x; then
24885     echo '.section .tdata,"awT",@progbits
24886 x:
24887         .word 2
24888         .text
24889         .dtprelword x+0x8000' > conftest.s
24890     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24891   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24892   (eval $ac_try) 2>&5
24893   ac_status=$?
24894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24895   test $ac_status = 0; }; }
24896     then
24897         gcc_cv_as_mips_dtprelword=yes
24898     else
24899       echo "configure: failed program was" >&5
24900       cat conftest.s >&5
24901     fi
24902     rm -f conftest.o conftest.s
24903   fi
24904 fi
24905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24906 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24907 if test $gcc_cv_as_mips_dtprelword = yes; then
24908
24909 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24910
24911 fi
24912
24913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
24914 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
24915 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
24916   $as_echo_n "(cached) " >&6
24917 else
24918   gcc_cv_as_mips_dspr1_mult=no
24919   if test x$gcc_cv_as != x; then
24920     echo '      .set    mips32r2
24921         .set    nodspr2
24922         .set    dsp
24923         madd    $ac3,$4,$5
24924         maddu   $ac3,$4,$5
24925         msub    $ac3,$4,$5
24926         msubu   $ac3,$4,$5
24927         mult    $ac3,$4,$5
24928         multu   $ac3,$4,$5' > conftest.s
24929     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24930   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24931   (eval $ac_try) 2>&5
24932   ac_status=$?
24933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24934   test $ac_status = 0; }; }
24935     then
24936         gcc_cv_as_mips_dspr1_mult=yes
24937     else
24938       echo "configure: failed program was" >&5
24939       cat conftest.s >&5
24940     fi
24941     rm -f conftest.o conftest.s
24942   fi
24943 fi
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
24945 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
24946 if test $gcc_cv_as_mips_dspr1_mult = yes; then
24947
24948 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
24949
24950 fi
24951
24952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24953 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24954     gcc_cv_as_ld_jalr_reloc=no
24955     if test $gcc_cv_as_mips_explicit_relocs = yes; then
24956       if test $in_tree_ld = yes ; then
24957         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 \
24958            && test $in_tree_ld_is_elf = yes; then
24959           gcc_cv_as_ld_jalr_reloc=yes
24960         fi
24961       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24962         echo '  .ent x' > conftest.s
24963         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
24964         echo '  ld $25,%call16(y)($28)' >> conftest.s
24965         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
24966         echo '1:        jalr $25' >> conftest.s
24967         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
24968         echo '1:        jalr $25' >> conftest.s
24969         echo '  .end x' >> conftest.s
24970         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24971            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24972           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24973              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24974             gcc_cv_as_ld_jalr_reloc=yes
24975           fi
24976         fi
24977         rm -f conftest.*
24978       fi
24979     fi
24980     if test $gcc_cv_as_ld_jalr_reloc = yes; then
24981       if test x$target_cpu_default = x; then
24982         target_cpu_default=MASK_RELAX_PIC_CALLS
24983       else
24984         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24985       fi
24986     fi
24987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24988 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24989
24990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24991 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24992 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24993   $as_echo_n "(cached) " >&6
24994 else
24995   gcc_cv_ld_mips_personality_relaxation=no
24996        if test $in_tree_ld = yes ; then
24997          if test "$gcc_cv_gld_major_version" -eq 2 \
24998                  -a "$gcc_cv_gld_minor_version" -ge 21 \
24999                  -o "$gcc_cv_gld_major_version" -gt 2; then
25000            gcc_cv_ld_mips_personality_relaxation=yes
25001          fi
25002        elif test x$gcc_cv_as != x \
25003                  -a x$gcc_cv_ld != x \
25004                  -a x$gcc_cv_readelf != x ; then
25005          cat > conftest.s <<EOF
25006         .cfi_startproc
25007         .cfi_personality 0x80,indirect_ptr
25008         .ent test
25009 test:
25010         nop
25011         .end test
25012         .cfi_endproc
25013
25014         .section .data,"aw",@progbits
25015 indirect_ptr:
25016         .dc.a personality
25017 EOF
25018          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25019             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25020            if $gcc_cv_readelf -d conftest 2>&1 \
25021               | grep TEXTREL > /dev/null 2>&1; then
25022              :
25023            elif $gcc_cv_readelf --relocs conftest 2>&1 \
25024                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25025              :
25026            else
25027              gcc_cv_ld_mips_personality_relaxation=yes
25028            fi
25029          fi
25030        fi
25031        rm -f conftest.s conftest.o conftest
25032 fi
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25034 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25035     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25036
25037 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25038
25039     fi
25040     ;;
25041 esac
25042
25043 # Mips and HP-UX need the GNU assembler.
25044 # Linux on IA64 might be able to use the Intel assembler.
25045
25046 case "$target" in
25047   mips*-*-* | *-*-hpux* )
25048     if test x$gas_flag = xyes \
25049        || test x"$host" != x"$build" \
25050        || test ! -x "$gcc_cv_as" \
25051        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25052       :
25053     else
25054       echo "*** This configuration requires the GNU assembler" >&2
25055       exit 1
25056     fi
25057     ;;
25058 esac
25059
25060 # ??? Not all targets support dwarf2 debug_line, even within a version
25061 # of gas.  Moreover, we need to emit a valid instruction to trigger any
25062 # info to the output file.  So, as supported targets are added to gas 2.11,
25063 # add some instruction here to (also) show we expect this might work.
25064 # ??? Once 2.11 is released, probably need to add first known working
25065 # version to the per-target configury.
25066 case "$cpu_type" in
25067   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25068   | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25069     insn="nop"
25070     ;;
25071   ia64 | s390)
25072     insn="nop 0"
25073     ;;
25074   mmix)
25075     insn="swym 0"
25076     ;;
25077 esac
25078 if test x"$insn" != x; then
25079  conftest_s="\
25080         .file 1 \"conftest.s\"
25081         .loc 1 3 0
25082         $insn"
25083  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25084 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25085 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25086   $as_echo_n "(cached) " >&6
25087 else
25088   gcc_cv_as_dwarf2_debug_line=no
25089     if test $in_tree_gas = yes; then
25090     if test $in_tree_gas_is_elf = yes \
25091   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25092   then gcc_cv_as_dwarf2_debug_line=yes
25093 fi
25094   elif test x$gcc_cv_as != x; then
25095     echo "$conftest_s" > conftest.s
25096     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25097   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25098   (eval $ac_try) 2>&5
25099   ac_status=$?
25100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25101   test $ac_status = 0; }; }
25102     then
25103         if test x$gcc_cv_objdump != x \
25104    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25105       | grep debug_line > /dev/null 2>&1; then
25106      gcc_cv_as_dwarf2_debug_line=yes
25107    fi
25108     else
25109       echo "configure: failed program was" >&5
25110       cat conftest.s >&5
25111     fi
25112     rm -f conftest.o conftest.s
25113   fi
25114 fi
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25116 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25117
25118
25119 # The .debug_line file table must be in the exact order that
25120 # we specified the files, since these indices are also used
25121 # by DW_AT_decl_file.  Approximate this test by testing if
25122 # the assembler bitches if the same index is assigned twice.
25123  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25124 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25125 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25126   $as_echo_n "(cached) " >&6
25127 else
25128   gcc_cv_as_dwarf2_file_buggy=no
25129   if test x$gcc_cv_as != x; then
25130     echo '      .file 1 "foo.s"
25131         .file 1 "bar.s"' > conftest.s
25132     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25133   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25134   (eval $ac_try) 2>&5
25135   ac_status=$?
25136   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25137   test $ac_status = 0; }; }
25138     then
25139         gcc_cv_as_dwarf2_file_buggy=yes
25140     else
25141       echo "configure: failed program was" >&5
25142       cat conftest.s >&5
25143     fi
25144     rm -f conftest.o conftest.s
25145   fi
25146 fi
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25148 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25149
25150
25151  if test $gcc_cv_as_dwarf2_debug_line = yes \
25152  && test $gcc_cv_as_dwarf2_file_buggy = no; then
25153
25154 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25155
25156  fi
25157
25158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25159 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25160 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25161   $as_echo_n "(cached) " >&6
25162 else
25163   gcc_cv_as_gdwarf2_flag=no
25164     if test $in_tree_gas = yes; then
25165     if test $in_tree_gas_is_elf = yes \
25166   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25167   then gcc_cv_as_gdwarf2_flag=yes
25168 fi
25169   elif test x$gcc_cv_as != x; then
25170     echo "$insn" > conftest.s
25171     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25172   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25173   (eval $ac_try) 2>&5
25174   ac_status=$?
25175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25176   test $ac_status = 0; }; }
25177     then
25178         gcc_cv_as_gdwarf2_flag=yes
25179     else
25180       echo "configure: failed program was" >&5
25181       cat conftest.s >&5
25182     fi
25183     rm -f conftest.o conftest.s
25184   fi
25185 fi
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25187 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25188 if test $gcc_cv_as_gdwarf2_flag = yes; then
25189
25190 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25191
25192 fi
25193
25194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25195 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25196 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25197   $as_echo_n "(cached) " >&6
25198 else
25199   gcc_cv_as_gstabs_flag=no
25200     if test $in_tree_gas = yes; then
25201     if test $in_tree_gas_is_elf = yes \
25202   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25203   then gcc_cv_as_gstabs_flag=yes
25204 fi
25205   elif test x$gcc_cv_as != x; then
25206     echo "$insn" > conftest.s
25207     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25208   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25209   (eval $ac_try) 2>&5
25210   ac_status=$?
25211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25212   test $ac_status = 0; }; }
25213     then
25214         # The native Solaris 9/Intel assembler doesn't understand --gstabs
25215    # and warns about it, but still exits successfully.  So check for
25216    # this.
25217    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25218   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25219   (eval $ac_try) 2>&5
25220   ac_status=$?
25221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25222   test $ac_status = 0; }; }
25223    then :
25224    else gcc_cv_as_gstabs_flag=yes
25225    fi
25226     else
25227       echo "configure: failed program was" >&5
25228       cat conftest.s >&5
25229     fi
25230     rm -f conftest.o conftest.s
25231   fi
25232 fi
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25234 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25235 if test $gcc_cv_as_gstabs_flag = yes; then
25236
25237 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25238
25239 fi
25240
25241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25242 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25243 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25244   $as_echo_n "(cached) " >&6
25245 else
25246   gcc_cv_as_debug_prefix_map_flag=no
25247     if test $in_tree_gas = yes; then
25248     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25249   then gcc_cv_as_debug_prefix_map_flag=yes
25250 fi
25251   elif test x$gcc_cv_as != x; then
25252     echo "$insn" > conftest.s
25253     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25254   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25255   (eval $ac_try) 2>&5
25256   ac_status=$?
25257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25258   test $ac_status = 0; }; }
25259     then
25260         gcc_cv_as_debug_prefix_map_flag=yes
25261     else
25262       echo "configure: failed program was" >&5
25263       cat conftest.s >&5
25264     fi
25265     rm -f conftest.o conftest.s
25266   fi
25267 fi
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25269 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25270 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25271
25272 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25273
25274 fi
25275 fi
25276
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25278 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25279 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25280   $as_echo_n "(cached) " >&6
25281 else
25282   gcc_cv_as_lcomm_with_alignment=no
25283   if test x$gcc_cv_as != x; then
25284     echo '.lcomm bar,4,16' > conftest.s
25285     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25286   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25287   (eval $ac_try) 2>&5
25288   ac_status=$?
25289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25290   test $ac_status = 0; }; }
25291     then
25292         gcc_cv_as_lcomm_with_alignment=yes
25293     else
25294       echo "configure: failed program was" >&5
25295       cat conftest.s >&5
25296     fi
25297     rm -f conftest.o conftest.s
25298   fi
25299 fi
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25301 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25302 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25303
25304 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25305
25306 fi
25307
25308 # Check whether --enable-gnu-unique-object was given.
25309 if test "${enable_gnu_unique_object+set}" = set; then :
25310   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25311     yes | no) ;;
25312     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25313 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25314   esac
25315 else
25316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25317 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25318 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25319   $as_echo_n "(cached) " >&6
25320 else
25321   gcc_cv_as_gnu_unique_object=no
25322     if test $in_tree_gas = yes; then
25323     if test $in_tree_gas_is_elf = yes \
25324   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25325   then gcc_cv_as_gnu_unique_object=yes
25326 fi
25327   elif test x$gcc_cv_as != x; then
25328     echo '.type foo, @gnu_unique_object' > conftest.s
25329     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25330   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25331   (eval $ac_try) 2>&5
25332   ac_status=$?
25333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25334   test $ac_status = 0; }; }
25335     then
25336         gcc_cv_as_gnu_unique_object=yes
25337     else
25338       echo "configure: failed program was" >&5
25339       cat conftest.s >&5
25340     fi
25341     rm -f conftest.o conftest.s
25342   fi
25343 fi
25344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25345 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25346 if test $gcc_cv_as_gnu_unique_object = yes; then
25347   # Also check for ld.so support, i.e. glibc 2.11 or higher.
25348    if test x$host = x$build -a x$host = x$target &&
25349        ldd --version 2>/dev/null &&
25350        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25351       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25352       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25353       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25354       if test "$glibcnum" -ge 2011 ; then
25355         enable_gnu_unique_object=yes
25356       fi
25357     fi
25358 fi
25359 fi
25360
25361 if test x$enable_gnu_unique_object = xyes; then
25362
25363 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25364
25365 fi
25366
25367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25368 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25369 if test "${gcc_cv_as_line_zero+set}" = set; then :
25370   $as_echo_n "(cached) " >&6
25371 else
25372   gcc_cv_as_line_zero=no
25373   if test $in_tree_gas = yes; then
25374     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25375   then gcc_cv_as_line_zero=yes
25376 fi
25377   elif test "x$gcc_cv_as" != x; then
25378     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25379     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25380   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25381   (eval $ac_try) 2>&5
25382   ac_status=$?
25383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25384   test $ac_status = 0; }; } &&
25385        test "x`cat conftest.out`" = x
25386     then
25387       gcc_cv_as_line_zero=yes
25388     else
25389       echo "configure: failed program was" >&5
25390       cat conftest.s >&5
25391       echo "configure: error output was" >&5
25392       cat conftest.out >&5
25393     fi
25394     rm -f conftest.o conftest.s conftest.out
25395   fi
25396 fi
25397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25398 $as_echo "$gcc_cv_as_line_zero" >&6; }
25399 if test "x$gcc_cv_as_line_zero" = xyes; then
25400
25401 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25402
25403 fi
25404
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25406 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25407 gcc_cv_ld_eh_frame_hdr=no
25408 if test $in_tree_ld = yes ; then
25409   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 \
25410      && test $in_tree_ld_is_elf = yes; then
25411     gcc_cv_ld_eh_frame_hdr=yes
25412   fi
25413 elif test x$gcc_cv_ld != x; then
25414   if echo "$ld_ver" | grep GNU > /dev/null; then
25415     # Check if linker supports --eh-frame-hdr option
25416     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25417       gcc_cv_ld_eh_frame_hdr=yes
25418     fi
25419   else
25420     case "$target" in
25421       *-*-solaris2*)
25422         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25423         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
25424           gcc_cv_ld_eh_frame_hdr=yes
25425         fi
25426         ;;
25427     esac
25428   fi
25429 fi
25430
25431 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25432
25433 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25434
25435 fi
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25437 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25438
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25440 $as_echo_n "checking linker position independent executable support... " >&6; }
25441 gcc_cv_ld_pie=no
25442 if test $in_tree_ld = yes ; then
25443   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 \
25444      && test $in_tree_ld_is_elf = yes; then
25445     gcc_cv_ld_pie=yes
25446   fi
25447 elif test x$gcc_cv_ld != x; then
25448         # Check if linker supports -pie option
25449         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25450                 gcc_cv_ld_pie=yes
25451         fi
25452 fi
25453 if test x"$gcc_cv_ld_pie" = xyes; then
25454
25455 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25456
25457 fi
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25459 $as_echo "$gcc_cv_ld_pie" >&6; }
25460
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25462 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25463 gcc_cv_ld_eh_gc_sections=no
25464 if test $in_tree_ld = yes ; then
25465   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 \
25466      && test $in_tree_ld_is_elf = yes; then
25467     gcc_cv_ld_eh_gc_sections=yes
25468   fi
25469 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25470   cat > conftest.s <<EOF
25471         .section        .text
25472 .globl _start
25473         .type _start, @function
25474 _start:
25475         .long foo
25476         .size _start, .-_start
25477         .section        .text.foo,"ax",@progbits
25478         .type foo, @function
25479 foo:
25480         .long 0
25481         .size foo, .-foo
25482         .section        .gcc_except_table.foo,"a",@progbits
25483 .L0:
25484         .long 0
25485         .section        .eh_frame,"a",@progbits
25486         .long .L0
25487 EOF
25488   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25489     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25490          | grep "gc-sections option ignored" > /dev/null; then
25491       gcc_cv_ld_eh_gc_sections=no
25492     elif $gcc_cv_objdump -h conftest 2> /dev/null \
25493          | grep gcc_except_table > /dev/null; then
25494       gcc_cv_ld_eh_gc_sections=yes
25495       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25496       if test x$gcc_cv_as_comdat_group != xyes; then
25497         gcc_cv_ld_eh_gc_sections=no
25498         cat > conftest.s <<EOF
25499         .section        .text
25500 .globl _start
25501         .type _start, @function
25502 _start:
25503         .long foo
25504         .size _start, .-_start
25505         .section        .gnu.linkonce.t.foo,"ax",@progbits
25506         .type foo, @function
25507 foo:
25508         .long 0
25509         .size foo, .-foo
25510         .section        .gcc_except_table.foo,"a",@progbits
25511 .L0:
25512         .long 0
25513         .section        .eh_frame,"a",@progbits
25514         .long .L0
25515 EOF
25516         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25517           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25518                | grep "gc-sections option ignored" > /dev/null; then
25519             gcc_cv_ld_eh_gc_sections=no
25520           elif $gcc_cv_objdump -h conftest 2> /dev/null \
25521                | grep gcc_except_table > /dev/null; then
25522             gcc_cv_ld_eh_gc_sections=yes
25523           fi
25524         fi
25525       fi
25526     fi
25527   fi
25528   rm -f conftest.s conftest.o conftest
25529 fi
25530 case "$target" in
25531   hppa*-*-linux*)
25532     # ??? This apparently exposes a binutils bug with PC-relative relocations.
25533     gcc_cv_ld_eh_gc_sections=no
25534     ;;
25535 esac
25536 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25537
25538 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25539
25540 fi
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25542 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25543
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
25545 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
25546 gcc_cv_ld_eh_gc_sections_bug=no
25547 if test $in_tree_ld = yes ; then
25548   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
25549      && test $in_tree_ld_is_elf = yes; then
25550     gcc_cv_ld_eh_gc_sections_bug=yes
25551   fi
25552 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
25553   gcc_cv_ld_eh_gc_sections_bug=yes
25554   cat > conftest.s <<EOF
25555         .section        .text
25556 .globl _start
25557         .type _start, @function
25558 _start:
25559         .long foo
25560         .size _start, .-_start
25561         .section        .text.startup.foo,"ax",@progbits
25562         .type foo, @function
25563 foo:
25564         .long 0
25565         .size foo, .-foo
25566         .section        .gcc_except_table.foo,"a",@progbits
25567 .L0:
25568         .long 0
25569         .section        .eh_frame,"a",@progbits
25570         .long .L0
25571 EOF
25572   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25573     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25574          | grep "gc-sections option ignored" > /dev/null; then
25575       :
25576     elif $gcc_cv_objdump -h conftest 2> /dev/null \
25577          | grep gcc_except_table > /dev/null; then
25578       gcc_cv_ld_eh_gc_sections_bug=no
25579     fi
25580   fi
25581   rm -f conftest.s conftest.o conftest
25582 fi
25583 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
25584
25585 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
25586
25587 fi
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
25589 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
25590
25591 # --------
25592 # UNSORTED
25593 # --------
25594
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25596 $as_echo_n "checking linker --as-needed support... " >&6; }
25597 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25598   $as_echo_n "(cached) " >&6
25599 else
25600   gcc_cv_ld_as_needed=no
25601 if test $in_tree_ld = yes ; then
25602   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 \
25603      && test $in_tree_ld_is_elf = yes; then
25604     gcc_cv_ld_as_needed=yes
25605   fi
25606 elif test x$gcc_cv_ld != x; then
25607         # Check if linker supports --as-needed and --no-as-needed options
25608         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25609                 gcc_cv_ld_as_needed=yes
25610         fi
25611 fi
25612
25613 fi
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25615 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25616 if test x"$gcc_cv_ld_as_needed" = xyes; then
25617
25618 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25619
25620 fi
25621
25622 case "$target:$tm_file" in
25623   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25625 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25626 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25627   $as_echo_n "(cached) " >&6
25628 else
25629   gcc_cv_ld_no_dot_syms=no
25630     if test $in_tree_ld = yes ; then
25631       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
25632         gcc_cv_ld_no_dot_syms=yes
25633       fi
25634     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25635       cat > conftest1.s <<EOF
25636         .text
25637         bl .foo
25638 EOF
25639       cat > conftest2.s <<EOF
25640         .section ".opd","aw"
25641         .align 3
25642         .globl foo
25643         .type foo,@function
25644 foo:
25645         .quad .LEfoo,.TOC.@tocbase,0
25646         .text
25647 .LEfoo:
25648         blr
25649         .size foo,.-.LEfoo
25650 EOF
25651       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25652          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25653          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25654         gcc_cv_ld_no_dot_syms=yes
25655       fi
25656       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25657     fi
25658
25659 fi
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25661 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25662     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25663
25664 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25665
25666     fi
25667
25668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25669 $as_echo_n "checking linker large toc support... " >&6; }
25670 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25671   $as_echo_n "(cached) " >&6
25672 else
25673   gcc_cv_ld_large_toc=no
25674     if test $in_tree_ld = yes ; then
25675       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
25676         gcc_cv_ld_large_toc=yes
25677       fi
25678     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25679       cat > conftest.s <<EOF
25680         .section ".tbss","awT",@nobits
25681         .align 3
25682 ie0:    .space 8
25683         .global _start
25684         .text
25685 _start:
25686         addis 9,13,ie0@got@tprel@ha
25687         ld 9,ie0@got@tprel@l(9)
25688 EOF
25689       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25690          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25691         gcc_cv_ld_large_toc=yes
25692       fi
25693       rm -f conftest conftest.o conftest.s
25694     fi
25695
25696 fi
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25698 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25699     if test x"$gcc_cv_ld_large_toc" = xyes; then
25700
25701 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25702
25703     fi
25704     ;;
25705 esac
25706
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25708 $as_echo_n "checking linker --build-id support... " >&6; }
25709 if test "${gcc_cv_ld_buildid+set}" = set; then :
25710   $as_echo_n "(cached) " >&6
25711 else
25712   gcc_cv_ld_buildid=no
25713   if test $in_tree_ld = yes ; then
25714     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25715        "$gcc_cv_gld_minor_version" -ge 18 -o \
25716        "$gcc_cv_gld_major_version" -gt 2 \
25717        && test $in_tree_ld_is_elf = yes; then
25718       gcc_cv_ld_buildid=yes
25719     fi
25720   elif test x$gcc_cv_ld != x; then
25721     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25722       gcc_cv_ld_buildid=yes
25723     fi
25724   fi
25725 fi
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25727 $as_echo "$gcc_cv_ld_buildid" >&6; }
25728 if test x"$gcc_cv_ld_buildid" = xyes; then
25729
25730 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25731
25732 fi
25733
25734 # Check whether --enable-linker-build-id was given.
25735 if test "${enable_linker_build_id+set}" = set; then :
25736   enableval=$enable_linker_build_id;
25737 else
25738   enable_linker_build_id=no
25739 fi
25740
25741
25742 if test x"$enable_linker_build_id" = xyes; then
25743   if test x"$gcc_cv_ld_buildid" = xyes; then
25744
25745 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25746
25747   else
25748     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25749 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25750   fi
25751 fi
25752
25753 # In binutils 2.21, GNU ld gained support for new emulations fully
25754 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25756 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25757 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25758   $as_echo_n "(cached) " >&6
25759 else
25760   gcc_cv_ld_sol2_emulation=no
25761   if test $in_tree_ld = yes ; then
25762     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25763        "$gcc_cv_gld_minor_version" -ge 21 -o \
25764        "$gcc_cv_gld_major_version" -gt 2 \
25765        && test $in_tree_ld_is_elf = yes; then
25766       gcc_cv_ld_sol2_emulation=yes
25767     fi
25768   elif test x$gcc_cv_ld != x; then
25769     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25770        grep _sol2 > /dev/null; then
25771       gcc_cv_ld_sol2_emulation=yes
25772     fi
25773   fi
25774 fi
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25776 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25777 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25778
25779 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25780
25781 fi
25782
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25784 $as_echo_n "checking linker --sysroot support... " >&6; }
25785 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25786   $as_echo_n "(cached) " >&6
25787 else
25788   gcc_cv_ld_sysroot=no
25789   if test $in_tree_ld = yes ; then
25790       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
25791         gcc_cv_ld_sysroot=yes
25792       fi
25793   elif test x$gcc_cv_ld != x; then
25794     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25795       gcc_cv_ld_sysroot=yes
25796     fi
25797   fi
25798 fi
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25800 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25801 if test x"$gcc_cv_ld_sysroot" = xyes; then
25802
25803 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25804
25805 fi
25806
25807 if test x$with_sysroot = x && test x$host = x$target \
25808    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25809    && test "$prefix" != "NONE"; then
25810
25811 cat >>confdefs.h <<_ACEOF
25812 #define PREFIX_INCLUDE_DIR "$prefix/include"
25813 _ACEOF
25814
25815 fi
25816
25817 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25818   if test "x$with_headers" != x; then
25819     target_header_dir=$with_headers
25820   elif test "x$with_sysroot" = x; then
25821     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25822   elif test "x$with_build_sysroot" != "x"; then
25823     target_header_dir="${with_build_sysroot}/usr/include"
25824   elif test "x$with_sysroot" = xyes; then
25825     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25826   else
25827     target_header_dir="${with_sysroot}/usr/include"
25828   fi
25829 else
25830   target_header_dir=/usr/include
25831 fi
25832
25833 # Test for stack protector support in target C library.
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25835 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25836 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25837   $as_echo_n "(cached) " >&6
25838 else
25839   gcc_cv_libc_provides_ssp=no
25840     case "$target" in
25841        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25842       # glibc 2.4 and later provides __stack_chk_fail and
25843       # either __stack_chk_guard, or TLS access to stack guard canary.
25844       if test -f $target_header_dir/features.h \
25845          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
25846             $target_header_dir/features.h > /dev/null; then
25847         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
25848            $target_header_dir/features.h > /dev/null; then
25849           gcc_cv_libc_provides_ssp=yes
25850         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
25851              $target_header_dir/features.h > /dev/null \
25852              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
25853              $target_header_dir/features.h > /dev/null; then
25854           gcc_cv_libc_provides_ssp=yes
25855         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
25856              $target_header_dir/features.h > /dev/null && \
25857              test -f $target_header_dir/bits/uClibc_config.h && \
25858              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
25859              $target_header_dir/bits/uClibc_config.h > /dev/null; then
25860           gcc_cv_libc_provides_ssp=yes
25861         fi
25862       fi
25863         ;;
25864        *-*-gnu*)
25865          # Avoid complicated tests (see
25866          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25867          # simply assert that glibc does provide this, which is true for all
25868          # realistically usable GNU/Hurd configurations.
25869          gcc_cv_libc_provides_ssp=yes;;
25870        *-*-darwin* | *-*-freebsd*)
25871          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25872 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25873   gcc_cv_libc_provides_ssp=yes
25874 else
25875   echo "no __stack_chk_fail on this target"
25876 fi
25877
25878         ;;
25879   *) gcc_cv_libc_provides_ssp=no ;;
25880     esac
25881 fi
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25883 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25884
25885 if test x$gcc_cv_libc_provides_ssp = xyes; then
25886
25887 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25888
25889 fi
25890
25891 # Test for <sys/sdt.h> on the target.
25892
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
25894 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
25895 have_sys_sdt_h=no
25896 if test -f $target_header_dir/sys/sdt.h; then
25897
25898 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
25899
25900 fi
25901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
25902 $as_echo "$have_sys_sdt_h" >&6; }
25903
25904 # Check if TFmode long double should be used by default or not.
25905 # Some glibc targets used DFmode long double, but with glibc 2.4
25906 # and later they can use TFmode.
25907 case "$target" in
25908   powerpc*-*-linux* | \
25909   sparc*-*-linux* | \
25910   s390*-*-linux* | \
25911   alpha*-*-linux*)
25912
25913 # Check whether --with-long-double-128 was given.
25914 if test "${with_long_double_128+set}" = set; then :
25915   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25916 else
25917   gcc_cv_target_ldbl128=no
25918       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25919         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25920       && gcc_cv_target_ldbl128=yes
25921
25922 fi
25923
25924     ;;
25925 esac
25926 if test x$gcc_cv_target_ldbl128 = xyes; then
25927
25928 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25929
25930 fi
25931
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
25933 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
25934 gcc_cv_target_dl_iterate_phdr=unknown
25935 case "$target" in
25936   *-*-solaris2*)
25937     # <link.h> needs both a dl_iterate_phdr declaration and support for
25938     # compilation with largefile support.
25939     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
25940       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
25941       gcc_cv_target_dl_iterate_phdr=yes
25942     else
25943       gcc_cv_target_dl_iterate_phdr=no
25944     fi
25945     ;;
25946 esac
25947
25948 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
25949
25950 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
25951
25952 fi
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
25954 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
25955
25956 # Find out what GC implementation we want, or may, use.
25957
25958 # Check whether --with-gc was given.
25959 if test "${with_gc+set}" = set; then :
25960   withval=$with_gc; case "$withval" in
25961   page)
25962     GGC=ggc-$withval
25963     ;;
25964   zone)
25965     GGC=ggc-$withval
25966
25967 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25968
25969     ;;
25970   *)
25971     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25972     ;;
25973 esac
25974 else
25975   GGC=ggc-page
25976 fi
25977
25978
25979 echo "Using $GGC for garbage collection."
25980
25981 # Libraries to use on the host.  This will normally be set by the top
25982 # level Makefile.  Here we simply capture the value for our Makefile.
25983 if test -z "${HOST_LIBS+set}"; then
25984   HOST_LIBS=
25985 fi
25986
25987
25988 # Use the system's zlib library.
25989 zlibdir=-L../zlib
25990 zlibinc="-I\$(srcdir)/../zlib"
25991
25992 # Check whether --with-system-zlib was given.
25993 if test "${with_system_zlib+set}" = set; then :
25994   withval=$with_system_zlib; zlibdir=
25995 zlibinc=
25996
25997 fi
25998
25999
26000
26001
26002
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26004 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26005     # Check whether --enable-maintainer-mode was given.
26006 if test "${enable_maintainer_mode+set}" = set; then :
26007   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26008 else
26009   maintainer_mode=no
26010 fi
26011
26012
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26014 $as_echo "$maintainer_mode" >&6; }
26015
26016 if test "$maintainer_mode" = "yes"; then
26017   MAINT=''
26018 else
26019   MAINT='#'
26020 fi
26021
26022 # --------------
26023 # Language hooks
26024 # --------------
26025
26026 # Make empty files to contain the specs and options for each language.
26027 # Then add #include lines to for a compiler that has specs and/or options.
26028
26029 subdirs=
26030 lang_opt_files=
26031 lang_specs_files=
26032 lang_tree_files=
26033 # These (without "all_") are set in each config-lang.in.
26034 # `language' must be a single word so is spelled singularly.
26035 all_languages=
26036 all_compilers=
26037 all_outputs='Makefile'
26038 # List of language makefile fragments.
26039 all_lang_makefrags=
26040 # Additional files for gengtype
26041 all_gtfiles="$target_gtfiles"
26042
26043 # These are the languages that are set in --enable-languages,
26044 # and are available in the GCC tree.
26045 all_selected_languages=
26046
26047 # Add the language fragments.
26048 # Languages are added via two mechanisms.  Some information must be
26049 # recorded in makefile variables, these are defined in config-lang.in.
26050 # We accumulate them and plug them into the main Makefile.
26051 # The other mechanism is a set of hooks for each of the main targets
26052 # like `clean', `install', etc.
26053
26054 language_hooks="Make-hooks"
26055
26056 for lang in ${srcdir}/*/config-lang.in
26057 do
26058         test "$lang" = "${srcdir}/*/config-lang.in" && continue
26059
26060         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
26061         if test "x$lang_alias" = x
26062         then
26063               echo "$lang doesn't set \$language." 1>&2
26064               exit 1
26065         fi
26066         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26067         subdirs="$subdirs $subdir"
26068
26069         # $gcc_subdir is where the gcc integration files are to be found
26070         # for a language, both for internal compiler purposes (compiler
26071         # sources implementing front-end to GCC tree converters), and for
26072         # build infrastructure purposes (Make-lang.in, etc.)
26073         #
26074         # This will be <subdir> (relative to $srcdir) if a line like
26075         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26076         # is found in <langdir>/config-lang.in, and will remain <langdir>
26077         # otherwise.
26078         #
26079         # Except for the language alias (fetched above), the regular
26080         # "config-lang.in" contents are always retrieved from $gcc_subdir,
26081         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26082         # only this and the language alias.
26083
26084         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
26085         if [ "$gcc_subdir" = "" ]; then
26086            gcc_subdir="$subdir"
26087         fi
26088
26089         case ",$enable_languages," in
26090         *,$lang_alias,*)
26091             all_selected_languages="$all_selected_languages $lang_alias"
26092             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26093                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26094             fi
26095             ;;
26096         esac
26097
26098         language=
26099         boot_language=
26100         compilers=
26101         outputs=
26102         gtfiles=
26103         subdir_requires=
26104         . ${srcdir}/$gcc_subdir/config-lang.in
26105         if test "x$language" = x
26106         then
26107                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26108                 exit 1
26109         fi
26110
26111         ok=:
26112         case ",$enable_languages," in
26113                 *,$lang_alias,*) ;;
26114                 *)
26115                         for i in $subdir_requires; do
26116                                 test -f "${srcdir}/$i/config-lang.in" && continue
26117                                 ok=false
26118                                 break
26119                         done
26120                 ;;
26121         esac
26122         $ok || continue
26123
26124         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26125         if test -f $srcdir/$gcc_subdir/lang.opt; then
26126             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26127             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26128         fi
26129         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26130             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26131         fi
26132         all_languages="$all_languages $language"
26133         all_compilers="$all_compilers $compilers"
26134         all_outputs="$all_outputs $outputs"
26135         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26136         case ",$enable_languages," in
26137                 *,lto,*)
26138
26139 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26140
26141                     enable_lto=yes
26142
26143                     ;;
26144                 *) ;;
26145         esac
26146 done
26147
26148 # Pick up gtfiles for c
26149 gtfiles=
26150 . ${srcdir}/c-config-lang.in
26151 all_gtfiles="$all_gtfiles [c] $gtfiles"
26152
26153 check_languages=
26154 for language in $all_selected_languages
26155 do
26156         check_languages="$check_languages check-$language"
26157 done
26158
26159 # We link each language in with a set of hooks, reached indirectly via
26160 # lang.${target}.  Only do so for selected languages.
26161
26162 rm -f Make-hooks
26163 touch Make-hooks
26164 target_list="all.cross start.encap rest.encap tags \
26165         install-common install-man install-info install-pdf install-html dvi \
26166         pdf html uninstall info man srcextra srcman srcinfo \
26167         mostlyclean clean distclean maintainer-clean install-plugin"
26168
26169 for t in $target_list
26170 do
26171         x=
26172         for lang in $all_selected_languages
26173         do
26174                 x="$x $lang.$t"
26175         done
26176         echo "lang.$t: $x" >> Make-hooks
26177 done
26178
26179 # --------
26180 # Option include files
26181 # --------
26182
26183 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26184 option_includes="option-includes.mk"
26185
26186
26187 # --------
26188 # UNSORTED
26189 # --------
26190
26191 # Create .gdbinit.
26192
26193 echo "dir ." > .gdbinit
26194 echo "dir ${srcdir}" >> .gdbinit
26195 if test x$gdb_needs_out_file_path = xyes
26196 then
26197         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26198 fi
26199 if test "x$subdirs" != x; then
26200         for s in $subdirs
26201         do
26202                 echo "dir ${srcdir}/$s" >> .gdbinit
26203         done
26204 fi
26205 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26206
26207 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26208
26209
26210
26211 # Find a directory in which to install a shared libgcc.
26212
26213 # Check whether --enable-version-specific-runtime-libs was given.
26214 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26215   enableval=$enable_version_specific_runtime_libs;
26216 fi
26217
26218
26219
26220 # Check whether --with-slibdir was given.
26221 if test "${with_slibdir+set}" = set; then :
26222   withval=$with_slibdir; slibdir="$with_slibdir"
26223 else
26224   if test "${enable_version_specific_runtime_libs+set}" = set; then
26225   slibdir='$(libsubdir)'
26226 elif test "$host" != "$target"; then
26227   slibdir='$(build_tooldir)/lib'
26228 else
26229   slibdir='$(libdir)'
26230 fi
26231 fi
26232
26233
26234
26235 # Substitute configuration variables
26236
26237
26238
26239
26240
26241
26242
26243
26244
26245
26246
26247
26248
26249
26250
26251
26252
26253
26254
26255
26256
26257
26258
26259
26260
26261
26262
26263
26264
26265
26266
26267
26268
26269
26270
26271
26272
26273
26274
26275
26276
26277
26278
26279
26280
26281
26282
26283
26284
26285
26286
26287
26288
26289
26290
26291
26292
26293
26294
26295
26296
26297
26298
26299
26300 # Echo link setup.
26301 if test x${build} = x${host} ; then
26302   if test x${host} = x${target} ; then
26303     echo "Links are now set up to build a native compiler for ${target}." 1>&2
26304   else
26305     echo "Links are now set up to build a cross-compiler" 1>&2
26306     echo " from ${host} to ${target}." 1>&2
26307   fi
26308 else
26309   if test x${host} = x${target} ; then
26310     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26311     echo " for ${target}." 1>&2
26312   else
26313     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26314     echo " from ${host} to ${target}." 1>&2
26315   fi
26316 fi
26317
26318
26319
26320
26321
26322
26323
26324
26325
26326 if test "x${CLOOGLIBS}" != "x" ; then
26327
26328 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26329
26330 fi
26331
26332 # Check for plugin support
26333 # Check whether --enable-plugin was given.
26334 if test "${enable_plugin+set}" = set; then :
26335   enableval=$enable_plugin; enable_plugin=$enableval
26336 else
26337   enable_plugin=yes; default_plugin=yes
26338 fi
26339
26340
26341 pluginlibs=
26342
26343 case "${host}" in
26344   *-*-darwin*)
26345     if test x$build = x$host; then
26346       export_sym_check="nm${exeext} -g"
26347     elif test x$host = x$target; then
26348       export_sym_check="$gcc_cv_nm -g"
26349     else
26350       export_sym_check=
26351     fi
26352   ;;
26353   *)
26354     if test x$build = x$host; then
26355       export_sym_check="objdump${exeext} -T"
26356     elif test x$host = x$target; then
26357       export_sym_check="$gcc_cv_objdump -T"
26358     else
26359       export_sym_check=
26360     fi
26361   ;;
26362 esac
26363
26364 if test x"$enable_plugin" = x"yes"; then
26365
26366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26367 $as_echo_n "checking for exported symbols... " >&6; }
26368   if test "x$export_sym_check" != x; then
26369     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26370     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26371     if $export_sym_check conftest | grep foobar > /dev/null; then
26372       : # No need to use a flag
26373       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26374 $as_echo "yes" >&6; }
26375     else
26376       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26377 $as_echo "yes" >&6; }
26378       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26379 $as_echo_n "checking for -rdynamic... " >&6; }
26380       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26381       if $export_sym_check conftest | grep foobar > /dev/null; then
26382         plugin_rdynamic=yes
26383         pluginlibs="-rdynamic"
26384       else
26385         plugin_rdynamic=no
26386         enable_plugin=no
26387       fi
26388       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26389 $as_echo "$plugin_rdynamic" >&6; }
26390     fi
26391   else
26392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26393 $as_echo "unable to check" >&6; }
26394   fi
26395
26396   # Check -ldl
26397   saved_LIBS="$LIBS"
26398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26399 $as_echo_n "checking for library containing dlopen... " >&6; }
26400 if test "${ac_cv_search_dlopen+set}" = set; then :
26401   $as_echo_n "(cached) " >&6
26402 else
26403   ac_func_search_save_LIBS=$LIBS
26404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26405 /* end confdefs.h.  */
26406
26407 /* Override any GCC internal prototype to avoid an error.
26408    Use char because int might match the return type of a GCC
26409    builtin and then its argument prototype would still apply.  */
26410 #ifdef __cplusplus
26411 extern "C"
26412 #endif
26413 char dlopen ();
26414 int
26415 main ()
26416 {
26417 return dlopen ();
26418   ;
26419   return 0;
26420 }
26421 _ACEOF
26422 for ac_lib in '' dl; do
26423   if test -z "$ac_lib"; then
26424     ac_res="none required"
26425   else
26426     ac_res=-l$ac_lib
26427     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26428   fi
26429   if ac_fn_c_try_link "$LINENO"; then :
26430   ac_cv_search_dlopen=$ac_res
26431 fi
26432 rm -f core conftest.err conftest.$ac_objext \
26433     conftest$ac_exeext
26434   if test "${ac_cv_search_dlopen+set}" = set; then :
26435   break
26436 fi
26437 done
26438 if test "${ac_cv_search_dlopen+set}" = set; then :
26439
26440 else
26441   ac_cv_search_dlopen=no
26442 fi
26443 rm conftest.$ac_ext
26444 LIBS=$ac_func_search_save_LIBS
26445 fi
26446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26447 $as_echo "$ac_cv_search_dlopen" >&6; }
26448 ac_res=$ac_cv_search_dlopen
26449 if test "$ac_res" != no; then :
26450   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26451
26452 fi
26453
26454   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26455     pluginlibs="$pluginlibs -ldl"
26456   fi
26457   LIBS="$saved_LIBS"
26458
26459   # Check that we can build shared objects with -fPIC -shared
26460   saved_LDFLAGS="$LDFLAGS"
26461   saved_CFLAGS="$CFLAGS"
26462   case "${host}" in
26463     *-*-darwin*)
26464       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26465       CFLAGS="$CFLAGS -fPIC"
26466       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26467     ;;
26468     *)
26469       CFLAGS="$CFLAGS -fPIC"
26470       LDFLAGS="$LDFLAGS -fPIC -shared"
26471     ;;
26472   esac
26473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26474 $as_echo_n "checking for -fPIC -shared... " >&6; }
26475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26476 /* end confdefs.h.  */
26477 extern int X;
26478 int
26479 main ()
26480 {
26481 return X == 0;
26482   ;
26483   return 0;
26484 }
26485 _ACEOF
26486 if ac_fn_c_try_link "$LINENO"; then :
26487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26488 $as_echo "yes" >&6; }; have_pic_shared=yes
26489 else
26490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26491 $as_echo "no" >&6; }; have_pic_shared=no
26492 fi
26493 rm -f core conftest.err conftest.$ac_objext \
26494     conftest$ac_exeext conftest.$ac_ext
26495   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26496     pluginlibs=
26497     enable_plugin=no
26498   fi
26499   LDFLAGS="$saved_LDFLAGS"
26500   CFLAGS="$saved_CFLAGS"
26501
26502   # If plugin support had been requested but not available, fail.
26503   if test x"$enable_plugin" = x"no" ; then
26504     if test x"$default_plugin" != x"yes"; then
26505       as_fn_error "
26506 Building GCC with plugin support requires a host that supports
26507 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26508     fi
26509   fi
26510 fi
26511
26512
26513
26514 if test x"$enable_plugin" = x"yes"; then
26515
26516 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26517
26518 fi
26519
26520
26521 # Check whether --enable-libquadmath-support was given.
26522 if test "${enable_libquadmath_support+set}" = set; then :
26523   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
26524 else
26525   ENABLE_LIBQUADMATH_SUPPORT=yes
26526 fi
26527
26528 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
26529
26530 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
26531
26532 fi
26533
26534
26535 # Specify what hash style to use by default.
26536
26537 # Check whether --with-linker-hash-style was given.
26538 if test "${with_linker_hash_style+set}" = set; then :
26539   withval=$with_linker_hash_style; case x"$withval" in
26540    xsysv)
26541      LINKER_HASH_STYLE=sysv
26542      ;;
26543    xgnu)
26544      LINKER_HASH_STYLE=gnu
26545      ;;
26546    xboth)
26547      LINKER_HASH_STYLE=both
26548      ;;
26549    *)
26550      as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
26551      ;;
26552  esac
26553 else
26554   LINKER_HASH_STYLE=''
26555 fi
26556
26557 if test x"${LINKER_HASH_STYLE}" != x; then
26558
26559 cat >>confdefs.h <<_ACEOF
26560 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
26561 _ACEOF
26562
26563 fi
26564
26565 # Configure the subdirectories
26566 # AC_CONFIG_SUBDIRS($subdirs)
26567
26568 # Create the Makefile
26569 # and configure language subdirectories
26570 ac_config_files="$ac_config_files $all_outputs"
26571
26572
26573 ac_config_commands="$ac_config_commands default"
26574
26575 cat >confcache <<\_ACEOF
26576 # This file is a shell script that caches the results of configure
26577 # tests run on this system so they can be shared between configure
26578 # scripts and configure runs, see configure's option --config-cache.
26579 # It is not useful on other systems.  If it contains results you don't
26580 # want to keep, you may remove or edit it.
26581 #
26582 # config.status only pays attention to the cache file if you give it
26583 # the --recheck option to rerun configure.
26584 #
26585 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26586 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26587 # following values.
26588
26589 _ACEOF
26590
26591 # The following way of writing the cache mishandles newlines in values,
26592 # but we know of no workaround that is simple, portable, and efficient.
26593 # So, we kill variables containing newlines.
26594 # Ultrix sh set writes to stderr and can't be redirected directly,
26595 # and sets the high bit in the cache file unless we assign to the vars.
26596 (
26597   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26598     eval ac_val=\$$ac_var
26599     case $ac_val in #(
26600     *${as_nl}*)
26601       case $ac_var in #(
26602       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26603 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26604       esac
26605       case $ac_var in #(
26606       _ | IFS | as_nl) ;; #(
26607       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26608       *) { eval $ac_var=; unset $ac_var;} ;;
26609       esac ;;
26610     esac
26611   done
26612
26613   (set) 2>&1 |
26614     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26615     *${as_nl}ac_space=\ *)
26616       # `set' does not quote correctly, so add quotes: double-quote
26617       # substitution turns \\\\ into \\, and sed turns \\ into \.
26618       sed -n \
26619         "s/'/'\\\\''/g;
26620           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26621       ;; #(
26622     *)
26623       # `set' quotes correctly as required by POSIX, so do not add quotes.
26624       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26625       ;;
26626     esac |
26627     sort
26628 ) |
26629   sed '
26630      /^ac_cv_env_/b end
26631      t clear
26632      :clear
26633      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26634      t end
26635      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26636      :end' >>confcache
26637 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26638   if test -w "$cache_file"; then
26639     test "x$cache_file" != "x/dev/null" &&
26640       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26641 $as_echo "$as_me: updating cache $cache_file" >&6;}
26642     cat confcache >$cache_file
26643   else
26644     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26645 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26646   fi
26647 fi
26648 rm -f confcache
26649
26650 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26651 # Let make expand exec_prefix.
26652 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26653
26654 DEFS=-DHAVE_CONFIG_H
26655
26656 ac_libobjs=
26657 ac_ltlibobjs=
26658 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26659   # 1. Remove the extension, and $U if already installed.
26660   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26661   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26662   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26663   #    will be set to the directory where LIBOBJS objects are built.
26664   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26665   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26666 done
26667 LIBOBJS=$ac_libobjs
26668
26669 LTLIBOBJS=$ac_ltlibobjs
26670
26671
26672
26673
26674 : ${CONFIG_STATUS=./config.status}
26675 ac_write_fail=0
26676 ac_clean_files_save=$ac_clean_files
26677 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26679 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26680 as_write_fail=0
26681 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26682 #! $SHELL
26683 # Generated by $as_me.
26684 # Run this file to recreate the current configuration.
26685 # Compiler output produced by configure, useful for debugging
26686 # configure, is in config.log if it exists.
26687
26688 debug=false
26689 ac_cs_recheck=false
26690 ac_cs_silent=false
26691
26692 SHELL=\${CONFIG_SHELL-$SHELL}
26693 export SHELL
26694 _ASEOF
26695 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26696 ## -------------------- ##
26697 ## M4sh Initialization. ##
26698 ## -------------------- ##
26699
26700 # Be more Bourne compatible
26701 DUALCASE=1; export DUALCASE # for MKS sh
26702 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26703   emulate sh
26704   NULLCMD=:
26705   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26706   # is contrary to our usage.  Disable this feature.
26707   alias -g '${1+"$@"}'='"$@"'
26708   setopt NO_GLOB_SUBST
26709 else
26710   case `(set -o) 2>/dev/null` in #(
26711   *posix*) :
26712     set -o posix ;; #(
26713   *) :
26714      ;;
26715 esac
26716 fi
26717
26718
26719 as_nl='
26720 '
26721 export as_nl
26722 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26723 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26724 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26725 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26726 # Prefer a ksh shell builtin over an external printf program on Solaris,
26727 # but without wasting forks for bash or zsh.
26728 if test -z "$BASH_VERSION$ZSH_VERSION" \
26729     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26730   as_echo='print -r --'
26731   as_echo_n='print -rn --'
26732 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26733   as_echo='printf %s\n'
26734   as_echo_n='printf %s'
26735 else
26736   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26737     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26738     as_echo_n='/usr/ucb/echo -n'
26739   else
26740     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26741     as_echo_n_body='eval
26742       arg=$1;
26743       case $arg in #(
26744       *"$as_nl"*)
26745         expr "X$arg" : "X\\(.*\\)$as_nl";
26746         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26747       esac;
26748       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26749     '
26750     export as_echo_n_body
26751     as_echo_n='sh -c $as_echo_n_body as_echo'
26752   fi
26753   export as_echo_body
26754   as_echo='sh -c $as_echo_body as_echo'
26755 fi
26756
26757 # The user is always right.
26758 if test "${PATH_SEPARATOR+set}" != set; then
26759   PATH_SEPARATOR=:
26760   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26761     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26762       PATH_SEPARATOR=';'
26763   }
26764 fi
26765
26766
26767 # IFS
26768 # We need space, tab and new line, in precisely that order.  Quoting is
26769 # there to prevent editors from complaining about space-tab.
26770 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26771 # splitting by setting IFS to empty value.)
26772 IFS=" ""        $as_nl"
26773
26774 # Find who we are.  Look in the path if we contain no directory separator.
26775 case $0 in #((
26776   *[\\/]* ) as_myself=$0 ;;
26777   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26778 for as_dir in $PATH
26779 do
26780   IFS=$as_save_IFS
26781   test -z "$as_dir" && as_dir=.
26782     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26783   done
26784 IFS=$as_save_IFS
26785
26786      ;;
26787 esac
26788 # We did not find ourselves, most probably we were run as `sh COMMAND'
26789 # in which case we are not to be found in the path.
26790 if test "x$as_myself" = x; then
26791   as_myself=$0
26792 fi
26793 if test ! -f "$as_myself"; then
26794   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26795   exit 1
26796 fi
26797
26798 # Unset variables that we do not need and which cause bugs (e.g. in
26799 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26800 # suppresses any "Segmentation fault" message there.  '((' could
26801 # trigger a bug in pdksh 5.2.14.
26802 for as_var in BASH_ENV ENV MAIL MAILPATH
26803 do eval test x\${$as_var+set} = xset \
26804   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26805 done
26806 PS1='$ '
26807 PS2='> '
26808 PS4='+ '
26809
26810 # NLS nuisances.
26811 LC_ALL=C
26812 export LC_ALL
26813 LANGUAGE=C
26814 export LANGUAGE
26815
26816 # CDPATH.
26817 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26818
26819
26820 # as_fn_error ERROR [LINENO LOG_FD]
26821 # ---------------------------------
26822 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26823 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26824 # script with status $?, using 1 if that was 0.
26825 as_fn_error ()
26826 {
26827   as_status=$?; test $as_status -eq 0 && as_status=1
26828   if test "$3"; then
26829     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26830     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26831   fi
26832   $as_echo "$as_me: error: $1" >&2
26833   as_fn_exit $as_status
26834 } # as_fn_error
26835
26836
26837 # as_fn_set_status STATUS
26838 # -----------------------
26839 # Set $? to STATUS, without forking.
26840 as_fn_set_status ()
26841 {
26842   return $1
26843 } # as_fn_set_status
26844
26845 # as_fn_exit STATUS
26846 # -----------------
26847 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26848 as_fn_exit ()
26849 {
26850   set +e
26851   as_fn_set_status $1
26852   exit $1
26853 } # as_fn_exit
26854
26855 # as_fn_unset VAR
26856 # ---------------
26857 # Portably unset VAR.
26858 as_fn_unset ()
26859 {
26860   { eval $1=; unset $1;}
26861 }
26862 as_unset=as_fn_unset
26863 # as_fn_append VAR VALUE
26864 # ----------------------
26865 # Append the text in VALUE to the end of the definition contained in VAR. Take
26866 # advantage of any shell optimizations that allow amortized linear growth over
26867 # repeated appends, instead of the typical quadratic growth present in naive
26868 # implementations.
26869 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26870   eval 'as_fn_append ()
26871   {
26872     eval $1+=\$2
26873   }'
26874 else
26875   as_fn_append ()
26876   {
26877     eval $1=\$$1\$2
26878   }
26879 fi # as_fn_append
26880
26881 # as_fn_arith ARG...
26882 # ------------------
26883 # Perform arithmetic evaluation on the ARGs, and store the result in the
26884 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26885 # must be portable across $(()) and expr.
26886 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26887   eval 'as_fn_arith ()
26888   {
26889     as_val=$(( $* ))
26890   }'
26891 else
26892   as_fn_arith ()
26893   {
26894     as_val=`expr "$@" || test $? -eq 1`
26895   }
26896 fi # as_fn_arith
26897
26898
26899 if expr a : '\(a\)' >/dev/null 2>&1 &&
26900    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26901   as_expr=expr
26902 else
26903   as_expr=false
26904 fi
26905
26906 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26907   as_basename=basename
26908 else
26909   as_basename=false
26910 fi
26911
26912 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26913   as_dirname=dirname
26914 else
26915   as_dirname=false
26916 fi
26917
26918 as_me=`$as_basename -- "$0" ||
26919 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26920          X"$0" : 'X\(//\)$' \| \
26921          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26922 $as_echo X/"$0" |
26923     sed '/^.*\/\([^/][^/]*\)\/*$/{
26924             s//\1/
26925             q
26926           }
26927           /^X\/\(\/\/\)$/{
26928             s//\1/
26929             q
26930           }
26931           /^X\/\(\/\).*/{
26932             s//\1/
26933             q
26934           }
26935           s/.*/./; q'`
26936
26937 # Avoid depending upon Character Ranges.
26938 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26939 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26940 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26941 as_cr_digits='0123456789'
26942 as_cr_alnum=$as_cr_Letters$as_cr_digits
26943
26944 ECHO_C= ECHO_N= ECHO_T=
26945 case `echo -n x` in #(((((
26946 -n*)
26947   case `echo 'xy\c'` in
26948   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26949   xy)  ECHO_C='\c';;
26950   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26951        ECHO_T=' ';;
26952   esac;;
26953 *)
26954   ECHO_N='-n';;
26955 esac
26956
26957 rm -f conf$$ conf$$.exe conf$$.file
26958 if test -d conf$$.dir; then
26959   rm -f conf$$.dir/conf$$.file
26960 else
26961   rm -f conf$$.dir
26962   mkdir conf$$.dir 2>/dev/null
26963 fi
26964 if (echo >conf$$.file) 2>/dev/null; then
26965   if ln -s conf$$.file conf$$ 2>/dev/null; then
26966     as_ln_s='ln -s'
26967     # ... but there are two gotchas:
26968     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26969     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26970     # In both cases, we have to default to `cp -p'.
26971     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26972       as_ln_s='cp -p'
26973   elif ln conf$$.file conf$$ 2>/dev/null; then
26974     as_ln_s=ln
26975   else
26976     as_ln_s='cp -p'
26977   fi
26978 else
26979   as_ln_s='cp -p'
26980 fi
26981 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26982 rmdir conf$$.dir 2>/dev/null
26983
26984
26985 # as_fn_mkdir_p
26986 # -------------
26987 # Create "$as_dir" as a directory, including parents if necessary.
26988 as_fn_mkdir_p ()
26989 {
26990
26991   case $as_dir in #(
26992   -*) as_dir=./$as_dir;;
26993   esac
26994   test -d "$as_dir" || eval $as_mkdir_p || {
26995     as_dirs=
26996     while :; do
26997       case $as_dir in #(
26998       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26999       *) as_qdir=$as_dir;;
27000       esac
27001       as_dirs="'$as_qdir' $as_dirs"
27002       as_dir=`$as_dirname -- "$as_dir" ||
27003 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27004          X"$as_dir" : 'X\(//\)[^/]' \| \
27005          X"$as_dir" : 'X\(//\)$' \| \
27006          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27007 $as_echo X"$as_dir" |
27008     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27009             s//\1/
27010             q
27011           }
27012           /^X\(\/\/\)[^/].*/{
27013             s//\1/
27014             q
27015           }
27016           /^X\(\/\/\)$/{
27017             s//\1/
27018             q
27019           }
27020           /^X\(\/\).*/{
27021             s//\1/
27022             q
27023           }
27024           s/.*/./; q'`
27025       test -d "$as_dir" && break
27026     done
27027     test -z "$as_dirs" || eval "mkdir $as_dirs"
27028   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27029
27030
27031 } # as_fn_mkdir_p
27032 if mkdir -p . 2>/dev/null; then
27033   as_mkdir_p='mkdir -p "$as_dir"'
27034 else
27035   test -d ./-p && rmdir ./-p
27036   as_mkdir_p=false
27037 fi
27038
27039 if test -x / >/dev/null 2>&1; then
27040   as_test_x='test -x'
27041 else
27042   if ls -dL / >/dev/null 2>&1; then
27043     as_ls_L_option=L
27044   else
27045     as_ls_L_option=
27046   fi
27047   as_test_x='
27048     eval sh -c '\''
27049       if test -d "$1"; then
27050         test -d "$1/.";
27051       else
27052         case $1 in #(
27053         -*)set "./$1";;
27054         esac;
27055         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27056         ???[sx]*):;;*)false;;esac;fi
27057     '\'' sh
27058   '
27059 fi
27060 as_executable_p=$as_test_x
27061
27062 # Sed expression to map a string onto a valid CPP name.
27063 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27064
27065 # Sed expression to map a string onto a valid variable name.
27066 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27067
27068
27069 exec 6>&1
27070 ## ----------------------------------- ##
27071 ## Main body of $CONFIG_STATUS script. ##
27072 ## ----------------------------------- ##
27073 _ASEOF
27074 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27075
27076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27077 # Save the log message, to keep $0 and so on meaningful, and to
27078 # report actual input values of CONFIG_FILES etc. instead of their
27079 # values after options handling.
27080 ac_log="
27081 This file was extended by $as_me, which was
27082 generated by GNU Autoconf 2.64.  Invocation command line was
27083
27084   CONFIG_FILES    = $CONFIG_FILES
27085   CONFIG_HEADERS  = $CONFIG_HEADERS
27086   CONFIG_LINKS    = $CONFIG_LINKS
27087   CONFIG_COMMANDS = $CONFIG_COMMANDS
27088   $ $0 $@
27089
27090 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27091 "
27092
27093 _ACEOF
27094
27095 case $ac_config_files in *"
27096 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27097 esac
27098
27099 case $ac_config_headers in *"
27100 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27101 esac
27102
27103
27104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27105 # Files that config.status was made for.
27106 config_files="$ac_config_files"
27107 config_headers="$ac_config_headers"
27108 config_commands="$ac_config_commands"
27109
27110 _ACEOF
27111
27112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27113 ac_cs_usage="\
27114 \`$as_me' instantiates files and other configuration actions
27115 from templates according to the current configuration.  Unless the files
27116 and actions are specified as TAGs, all are instantiated by default.
27117
27118 Usage: $0 [OPTION]... [TAG]...
27119
27120   -h, --help       print this help, then exit
27121   -V, --version    print version number and configuration settings, then exit
27122   -q, --quiet, --silent
27123                    do not print progress messages
27124   -d, --debug      don't remove temporary files
27125       --recheck    update $as_me by reconfiguring in the same conditions
27126       --file=FILE[:TEMPLATE]
27127                    instantiate the configuration file FILE
27128       --header=FILE[:TEMPLATE]
27129                    instantiate the configuration header FILE
27130
27131 Configuration files:
27132 $config_files
27133
27134 Configuration headers:
27135 $config_headers
27136
27137 Configuration commands:
27138 $config_commands
27139
27140 Report bugs to the package provider."
27141
27142 _ACEOF
27143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27144 ac_cs_version="\\
27145 config.status
27146 configured by $0, generated by GNU Autoconf 2.64,
27147   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27148
27149 Copyright (C) 2009 Free Software Foundation, Inc.
27150 This config.status script is free software; the Free Software Foundation
27151 gives unlimited permission to copy, distribute and modify it."
27152
27153 ac_pwd='$ac_pwd'
27154 srcdir='$srcdir'
27155 AWK='$AWK'
27156 test -n "\$AWK" || AWK=awk
27157 _ACEOF
27158
27159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27160 # The default lists apply if the user does not specify any file.
27161 ac_need_defaults=:
27162 while test $# != 0
27163 do
27164   case $1 in
27165   --*=*)
27166     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27167     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27168     ac_shift=:
27169     ;;
27170   *)
27171     ac_option=$1
27172     ac_optarg=$2
27173     ac_shift=shift
27174     ;;
27175   esac
27176
27177   case $ac_option in
27178   # Handling of the options.
27179   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27180     ac_cs_recheck=: ;;
27181   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27182     $as_echo "$ac_cs_version"; exit ;;
27183   --debug | --debu | --deb | --de | --d | -d )
27184     debug=: ;;
27185   --file | --fil | --fi | --f )
27186     $ac_shift
27187     case $ac_optarg in
27188     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27189     esac
27190     as_fn_append CONFIG_FILES " '$ac_optarg'"
27191     ac_need_defaults=false;;
27192   --header | --heade | --head | --hea )
27193     $ac_shift
27194     case $ac_optarg in
27195     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27196     esac
27197     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27198     ac_need_defaults=false;;
27199   --he | --h)
27200     # Conflict between --help and --header
27201     as_fn_error "ambiguous option: \`$1'
27202 Try \`$0 --help' for more information.";;
27203   --help | --hel | -h )
27204     $as_echo "$ac_cs_usage"; exit ;;
27205   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27206   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27207     ac_cs_silent=: ;;
27208
27209   # This is an error.
27210   -*) as_fn_error "unrecognized option: \`$1'
27211 Try \`$0 --help' for more information." ;;
27212
27213   *) as_fn_append ac_config_targets " $1"
27214      ac_need_defaults=false ;;
27215
27216   esac
27217   shift
27218 done
27219
27220 ac_configure_extra_args=
27221
27222 if $ac_cs_silent; then
27223   exec 6>/dev/null
27224   ac_configure_extra_args="$ac_configure_extra_args --silent"
27225 fi
27226
27227 _ACEOF
27228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27229 if \$ac_cs_recheck; then
27230   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27231   shift
27232   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27233   CONFIG_SHELL='$SHELL'
27234   export CONFIG_SHELL
27235   exec "\$@"
27236 fi
27237
27238 _ACEOF
27239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27240 exec 5>>config.log
27241 {
27242   echo
27243   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27244 ## Running $as_me. ##
27245 _ASBOX
27246   $as_echo "$ac_log"
27247 } >&5
27248
27249 _ACEOF
27250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27251 #
27252 # INIT-COMMANDS
27253 #
27254 subdirs='$subdirs'
27255
27256 _ACEOF
27257
27258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27259
27260 # Handling of arguments.
27261 for ac_config_target in $ac_config_targets
27262 do
27263   case $ac_config_target in
27264     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27265     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27266     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27267     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27268     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27269     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27270
27271   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27272   esac
27273 done
27274
27275
27276 # If the user did not use the arguments to specify the items to instantiate,
27277 # then the envvar interface is used.  Set only those that are not.
27278 # We use the long form for the default assignment because of an extremely
27279 # bizarre bug on SunOS 4.1.3.
27280 if $ac_need_defaults; then
27281   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27282   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27283   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27284 fi
27285
27286 # Have a temporary directory for convenience.  Make it in the build tree
27287 # simply because there is no reason against having it here, and in addition,
27288 # creating and moving files from /tmp can sometimes cause problems.
27289 # Hook for its removal unless debugging.
27290 # Note that there is a small window in which the directory will not be cleaned:
27291 # after its creation but before its name has been assigned to `$tmp'.
27292 $debug ||
27293 {
27294   tmp=
27295   trap 'exit_status=$?
27296   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27297 ' 0
27298   trap 'as_fn_exit 1' 1 2 13 15
27299 }
27300 # Create a (secure) tmp directory for tmp files.
27301
27302 {
27303   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27304   test -n "$tmp" && test -d "$tmp"
27305 }  ||
27306 {
27307   tmp=./conf$$-$RANDOM
27308   (umask 077 && mkdir "$tmp")
27309 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27310
27311 # Set up the scripts for CONFIG_FILES section.
27312 # No need to generate them if there are no CONFIG_FILES.
27313 # This happens for instance with `./config.status config.h'.
27314 if test -n "$CONFIG_FILES"; then
27315
27316 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27317   ac_cs_awk_getline=:
27318   ac_cs_awk_pipe_init=
27319   ac_cs_awk_read_file='
27320       while ((getline aline < (F[key])) > 0)
27321         print(aline)
27322       close(F[key])'
27323   ac_cs_awk_pipe_fini=
27324 else
27325   ac_cs_awk_getline=false
27326   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27327   ac_cs_awk_read_file='
27328       print "|#_!!_#|"
27329       print "cat " F[key] " &&"
27330       '$ac_cs_awk_pipe_init
27331   # The final `:' finishes the AND list.
27332   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27333 fi
27334 ac_cr=`echo X | tr X '\015'`
27335 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27336 # But we know of no other shell where ac_cr would be empty at this
27337 # point, so we can use a bashism as a fallback.
27338 if test "x$ac_cr" = x; then
27339   eval ac_cr=\$\'\\r\'
27340 fi
27341 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27342 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27343   ac_cs_awk_cr='\r'
27344 else
27345   ac_cs_awk_cr=$ac_cr
27346 fi
27347
27348 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27349 _ACEOF
27350
27351 # Create commands to substitute file output variables.
27352 {
27353   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27354   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27355   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27356   echo "_ACAWK" &&
27357   echo "_ACEOF"
27358 } >conf$$files.sh &&
27359 . ./conf$$files.sh ||
27360   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27361 rm -f conf$$files.sh
27362
27363 {
27364   echo "cat >conf$$subs.awk <<_ACEOF" &&
27365   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27366   echo "_ACEOF"
27367 } >conf$$subs.sh ||
27368   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27369 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27370 ac_delim='%!_!# '
27371 for ac_last_try in false false false false false :; do
27372   . ./conf$$subs.sh ||
27373     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27374
27375   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27376   if test $ac_delim_n = $ac_delim_num; then
27377     break
27378   elif $ac_last_try; then
27379     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27380   else
27381     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27382   fi
27383 done
27384 rm -f conf$$subs.sh
27385
27386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27387 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27388 _ACEOF
27389 sed -n '
27390 h
27391 s/^/S["/; s/!.*/"]=/
27392 p
27393 g
27394 s/^[^!]*!//
27395 :repl
27396 t repl
27397 s/'"$ac_delim"'$//
27398 t delim
27399 :nl
27400 h
27401 s/\(.\{148\}\).*/\1/
27402 t more1
27403 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27404 p
27405 n
27406 b repl
27407 :more1
27408 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27409 p
27410 g
27411 s/.\{148\}//
27412 t nl
27413 :delim
27414 h
27415 s/\(.\{148\}\).*/\1/
27416 t more2
27417 s/["\\]/\\&/g; s/^/"/; s/$/"/
27418 p
27419 b
27420 :more2
27421 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27422 p
27423 g
27424 s/.\{148\}//
27425 t delim
27426 ' <conf$$subs.awk | sed '
27427 /^[^""]/{
27428   N
27429   s/\n//
27430 }
27431 ' >>$CONFIG_STATUS || ac_write_fail=1
27432 rm -f conf$$subs.awk
27433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27434 _ACAWK
27435 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27436   for (key in S) S_is_set[key] = 1
27437   FS = "\a"
27438   \$ac_cs_awk_pipe_init
27439 }
27440 {
27441   line = $ 0
27442   nfields = split(line, field, "@")
27443   substed = 0
27444   len = length(field[1])
27445   for (i = 2; i < nfields; i++) {
27446     key = field[i]
27447     keylen = length(key)
27448     if (S_is_set[key]) {
27449       value = S[key]
27450       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27451       len += length(value) + length(field[++i])
27452       substed = 1
27453     } else
27454       len += 1 + keylen
27455   }
27456   if (nfields == 3 && !substed) {
27457     key = field[2]
27458     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
27459       \$ac_cs_awk_read_file
27460       next
27461     }
27462   }
27463   print line
27464 }
27465 \$ac_cs_awk_pipe_fini
27466 _ACAWK
27467 _ACEOF
27468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27469 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27470   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27471 else
27472   cat
27473 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27474   || as_fn_error "could not setup config files machinery" "$LINENO" 5
27475 _ACEOF
27476
27477 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27478 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27479 # trailing colons and then remove the whole line if VPATH becomes empty
27480 # (actually we leave an empty line to preserve line numbers).
27481 if test "x$srcdir" = x.; then
27482   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27483 s/:*\$(srcdir):*/:/
27484 s/:*\${srcdir}:*/:/
27485 s/:*@srcdir@:*/:/
27486 s/^\([^=]*=[     ]*\):*/\1/
27487 s/:*$//
27488 s/^[^=]*=[       ]*$//
27489 }'
27490 fi
27491
27492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27493 fi # test -n "$CONFIG_FILES"
27494
27495 # Set up the scripts for CONFIG_HEADERS section.
27496 # No need to generate them if there are no CONFIG_HEADERS.
27497 # This happens for instance with `./config.status Makefile'.
27498 if test -n "$CONFIG_HEADERS"; then
27499 cat >"$tmp/defines.awk" <<\_ACAWK ||
27500 BEGIN {
27501 _ACEOF
27502
27503 # Transform confdefs.h into an awk script `defines.awk', embedded as
27504 # here-document in config.status, that substitutes the proper values into
27505 # config.h.in to produce config.h.
27506
27507 # Create a delimiter string that does not exist in confdefs.h, to ease
27508 # handling of long lines.
27509 ac_delim='%!_!# '
27510 for ac_last_try in false false :; do
27511   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27512   if test -z "$ac_t"; then
27513     break
27514   elif $ac_last_try; then
27515     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27516   else
27517     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27518   fi
27519 done
27520
27521 # For the awk script, D is an array of macro values keyed by name,
27522 # likewise P contains macro parameters if any.  Preserve backslash
27523 # newline sequences.
27524
27525 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27526 sed -n '
27527 s/.\{148\}/&'"$ac_delim"'/g
27528 t rset
27529 :rset
27530 s/^[     ]*#[    ]*define[       ][      ]*/ /
27531 t def
27532 d
27533 :def
27534 s/\\$//
27535 t bsnl
27536 s/["\\]/\\&/g
27537 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27538 D["\1"]=" \3"/p
27539 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27540 d
27541 :bsnl
27542 s/["\\]/\\&/g
27543 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27544 D["\1"]=" \3\\\\\\n"\\/p
27545 t cont
27546 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27547 t cont
27548 d
27549 :cont
27550 n
27551 s/.\{148\}/&'"$ac_delim"'/g
27552 t clear
27553 :clear
27554 s/\\$//
27555 t bsnlc
27556 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27557 d
27558 :bsnlc
27559 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27560 b cont
27561 ' <confdefs.h | sed '
27562 s/'"$ac_delim"'/"\\\
27563 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27564
27565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27566   for (key in D) D_is_set[key] = 1
27567   FS = "\a"
27568 }
27569 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27570   line = \$ 0
27571   split(line, arg, " ")
27572   if (arg[1] == "#") {
27573     defundef = arg[2]
27574     mac1 = arg[3]
27575   } else {
27576     defundef = substr(arg[1], 2)
27577     mac1 = arg[2]
27578   }
27579   split(mac1, mac2, "(") #)
27580   macro = mac2[1]
27581   prefix = substr(line, 1, index(line, defundef) - 1)
27582   if (D_is_set[macro]) {
27583     # Preserve the white space surrounding the "#".
27584     print prefix "define", macro P[macro] D[macro]
27585     next
27586   } else {
27587     # Replace #undef with comments.  This is necessary, for example,
27588     # in the case of _POSIX_SOURCE, which is predefined and required
27589     # on some systems where configure will not decide to define it.
27590     if (defundef == "undef") {
27591       print "/*", prefix defundef, macro, "*/"
27592       next
27593     }
27594   }
27595 }
27596 { print }
27597 _ACAWK
27598 _ACEOF
27599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27600   as_fn_error "could not setup config headers machinery" "$LINENO" 5
27601 fi # test -n "$CONFIG_HEADERS"
27602
27603
27604 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27605 shift
27606 for ac_tag
27607 do
27608   case $ac_tag in
27609   :[FHLC]) ac_mode=$ac_tag; continue;;
27610   esac
27611   case $ac_mode$ac_tag in
27612   :[FHL]*:*);;
27613   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27614   :[FH]-) ac_tag=-:-;;
27615   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27616   esac
27617   ac_save_IFS=$IFS
27618   IFS=:
27619   set x $ac_tag
27620   IFS=$ac_save_IFS
27621   shift
27622   ac_file=$1
27623   shift
27624
27625   case $ac_mode in
27626   :L) ac_source=$1;;
27627   :[FH])
27628     ac_file_inputs=
27629     for ac_f
27630     do
27631       case $ac_f in
27632       -) ac_f="$tmp/stdin";;
27633       *) # Look for the file first in the build tree, then in the source tree
27634          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27635          # because $ac_f cannot contain `:'.
27636          test -f "$ac_f" ||
27637            case $ac_f in
27638            [\\/$]*) false;;
27639            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27640            esac ||
27641            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27642       esac
27643       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27644       as_fn_append ac_file_inputs " '$ac_f'"
27645     done
27646
27647     # Let's still pretend it is `configure' which instantiates (i.e., don't
27648     # use $as_me), people would be surprised to read:
27649     #    /* config.h.  Generated by config.status.  */
27650     configure_input='Generated from '`
27651           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27652         `' by configure.'
27653     if test x"$ac_file" != x-; then
27654       configure_input="$ac_file.  $configure_input"
27655       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27656 $as_echo "$as_me: creating $ac_file" >&6;}
27657     fi
27658     # Neutralize special characters interpreted by sed in replacement strings.
27659     case $configure_input in #(
27660     *\&* | *\|* | *\\* )
27661        ac_sed_conf_input=`$as_echo "$configure_input" |
27662        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27663     *) ac_sed_conf_input=$configure_input;;
27664     esac
27665
27666     case $ac_tag in
27667     *:-:* | *:-) cat >"$tmp/stdin" \
27668       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27669     esac
27670     ;;
27671   esac
27672
27673   ac_dir=`$as_dirname -- "$ac_file" ||
27674 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27675          X"$ac_file" : 'X\(//\)[^/]' \| \
27676          X"$ac_file" : 'X\(//\)$' \| \
27677          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27678 $as_echo X"$ac_file" |
27679     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27680             s//\1/
27681             q
27682           }
27683           /^X\(\/\/\)[^/].*/{
27684             s//\1/
27685             q
27686           }
27687           /^X\(\/\/\)$/{
27688             s//\1/
27689             q
27690           }
27691           /^X\(\/\).*/{
27692             s//\1/
27693             q
27694           }
27695           s/.*/./; q'`
27696   as_dir="$ac_dir"; as_fn_mkdir_p
27697   ac_builddir=.
27698
27699 case "$ac_dir" in
27700 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27701 *)
27702   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27703   # A ".." for each directory in $ac_dir_suffix.
27704   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27705   case $ac_top_builddir_sub in
27706   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27707   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27708   esac ;;
27709 esac
27710 ac_abs_top_builddir=$ac_pwd
27711 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27712 # for backward compatibility:
27713 ac_top_builddir=$ac_top_build_prefix
27714
27715 case $srcdir in
27716   .)  # We are building in place.
27717     ac_srcdir=.
27718     ac_top_srcdir=$ac_top_builddir_sub
27719     ac_abs_top_srcdir=$ac_pwd ;;
27720   [\\/]* | ?:[\\/]* )  # Absolute name.
27721     ac_srcdir=$srcdir$ac_dir_suffix;
27722     ac_top_srcdir=$srcdir
27723     ac_abs_top_srcdir=$srcdir ;;
27724   *) # Relative name.
27725     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27726     ac_top_srcdir=$ac_top_build_prefix$srcdir
27727     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27728 esac
27729 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27730
27731
27732   case $ac_mode in
27733   :F)
27734   #
27735   # CONFIG_FILE
27736   #
27737
27738 _ACEOF
27739
27740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27741 # If the template does not know about datarootdir, expand it.
27742 # FIXME: This hack should be removed a few years after 2.60.
27743 ac_datarootdir_hack=; ac_datarootdir_seen=
27744 ac_sed_dataroot='
27745 /datarootdir/ {
27746   p
27747   q
27748 }
27749 /@datadir@/p
27750 /@docdir@/p
27751 /@infodir@/p
27752 /@localedir@/p
27753 /@mandir@/p'
27754 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27755 *datarootdir*) ac_datarootdir_seen=yes;;
27756 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27757   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27758 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27759 _ACEOF
27760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27761   ac_datarootdir_hack='
27762   s&@datadir@&$datadir&g
27763   s&@docdir@&$docdir&g
27764   s&@infodir@&$infodir&g
27765   s&@localedir@&$localedir&g
27766   s&@mandir@&$mandir&g
27767   s&\\\${datarootdir}&$datarootdir&g' ;;
27768 esac
27769 _ACEOF
27770
27771 # Neutralize VPATH when `$srcdir' = `.'.
27772 # Shell code in configure.ac might set extrasub.
27773 # FIXME: do we really want to maintain this feature?
27774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27775 ac_sed_extra="$ac_vpsub
27776 $extrasub
27777 _ACEOF
27778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27779 :t
27780 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27781 s|@configure_input@|$ac_sed_conf_input|;t t
27782 s&@top_builddir@&$ac_top_builddir_sub&;t t
27783 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27784 s&@srcdir@&$ac_srcdir&;t t
27785 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27786 s&@top_srcdir@&$ac_top_srcdir&;t t
27787 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27788 s&@builddir@&$ac_builddir&;t t
27789 s&@abs_builddir@&$ac_abs_builddir&;t t
27790 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27791 $ac_datarootdir_hack
27792 "
27793 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27794 if $ac_cs_awk_getline; then
27795   $AWK -f "$tmp/subs.awk"
27796 else
27797   $AWK -f "$tmp/subs.awk" | $SHELL
27798 fi >$tmp/out \
27799   || as_fn_error "could not create $ac_file" "$LINENO" 5
27800
27801 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27802   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27803   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27804   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27805 which seems to be undefined.  Please make sure it is defined." >&5
27806 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27807 which seems to be undefined.  Please make sure it is defined." >&2;}
27808
27809   rm -f "$tmp/stdin"
27810   case $ac_file in
27811   -) cat "$tmp/out" && rm -f "$tmp/out";;
27812   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27813   esac \
27814   || as_fn_error "could not create $ac_file" "$LINENO" 5
27815  ;;
27816   :H)
27817   #
27818   # CONFIG_HEADER
27819   #
27820   if test x"$ac_file" != x-; then
27821     {
27822       $as_echo "/* $configure_input  */" \
27823       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27824     } >"$tmp/config.h" \
27825       || as_fn_error "could not create $ac_file" "$LINENO" 5
27826     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27827       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27828 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27829     else
27830       rm -f "$ac_file"
27831       mv "$tmp/config.h" "$ac_file" \
27832         || as_fn_error "could not create $ac_file" "$LINENO" 5
27833     fi
27834   else
27835     $as_echo "/* $configure_input  */" \
27836       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27837       || as_fn_error "could not create -" "$LINENO" 5
27838   fi
27839  ;;
27840
27841   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27842 $as_echo "$as_me: executing $ac_file commands" >&6;}
27843  ;;
27844   esac
27845
27846
27847   case $ac_file$ac_mode in
27848     "as":F) chmod +x as ;;
27849     "collect-ld":F) chmod +x collect-ld ;;
27850     "nm":F) chmod +x nm ;;
27851     "default":C)
27852 case ${CONFIG_HEADERS} in
27853   *auto-host.h:config.in*)
27854   echo > cstamp-h ;;
27855 esac
27856 # Make sure all the subdirs exist.
27857 for d in $subdirs doc build c-family
27858 do
27859     test -d $d || mkdir $d
27860 done
27861  ;;
27862
27863   esac
27864 done # for ac_tag
27865
27866
27867 as_fn_exit 0
27868 _ACEOF
27869 ac_clean_files=$ac_clean_files_save
27870
27871 test $ac_write_fail = 0 ||
27872   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27873
27874
27875 # configure is writing to config.log, and then calls config.status.
27876 # config.status does its own redirection, appending to config.log.
27877 # Unfortunately, on DOS this fails, as config.log is still kept open
27878 # by configure, so config.status won't be able to write to it; its
27879 # output is simply discarded.  So we exec the FD to /dev/null,
27880 # effectively closing config.log, so it can be properly (re)opened and
27881 # appended to by config.status.  When coming back to configure, we
27882 # need to make the FD available again.
27883 if test "$no_create" != yes; then
27884   ac_cs_success=:
27885   ac_config_status_args=
27886   test "$silent" = yes &&
27887     ac_config_status_args="$ac_config_status_args --quiet"
27888   exec 5>/dev/null
27889   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27890   exec 5>>config.log
27891   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27892   # would make configure fail if this is the last instruction.
27893   $ac_cs_success || as_fn_exit $?
27894 fi
27895 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27896   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27897 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27898 fi
27899
27900