OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 thread_file
625 out_object_file
626 out_file
627 objc_boehm_gc
628 md_file
629 local_prefix
630 lang_tree_files
631 lang_specs_files
632 lang_opt_files
633 install
634 out_host_hook_obj
635 host_xm_defines
636 host_xm_include_list
637 host_xm_file_list
638 host_exeext
639 gcc_gxx_include_dir
640 gcc_config_arguments
641 float_h_file
642 extra_programs
643 extra_passes
644 extra_parts
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 slibdir
671 dollar
672 gcc_tooldir
673 enable_lto
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 GGC
679 libgcc_visibility
680 gcc_cv_readelf
681 gcc_cv_objdump
682 ORIGINAL_NM_FOR_TARGET
683 gcc_cv_nm
684 ORIGINAL_LD_FOR_TARGET
685 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 gcc_cv_ld
687 ORIGINAL_AS_FOR_TARGET
688 gcc_cv_as
689 enable_fast_install
690 objdir
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 STRIP
697 OBJDUMP
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 SED
703 LIBTOOL
704 collect2
705 STMP_FIXINC
706 BUILD_LDFLAGS
707 BUILD_CFLAGS
708 CC_FOR_BUILD
709 inhibit_libc
710 SYSTEM_HEADER_DIR
711 ALL
712 CROSS
713 CATOBJEXT
714 GENCAT
715 INSTOBJEXT
716 DATADIRNAME
717 CATALOGS
718 POSUB
719 GMSGFMT
720 XGETTEXT
721 INCINTL
722 LIBINTL_DEP
723 LIBINTL
724 USE_NLS
725 extra_opt_files
726 extra_modes_file
727 gthread_flags
728 objext
729 manext
730 LIBICONV_DEP
731 LTLIBICONV
732 LIBICONV
733 LDEXP_LIB
734 GNAT_LIBEXC
735 COLLECT2_LIBS
736 CXXCPP
737 AR
738 NM
739 BISON
740 FLEX
741 GENERATED_MANPAGES
742 BUILD_INFO
743 MAKEINFO
744 have_mktemp_command
745 make_compare_target
746 INSTALL_DATA
747 INSTALL_PROGRAM
748 INSTALL
749 ranlib_flags
750 RANLIB
751 LN
752 LN_S
753 AWK
754 SET_MAKE
755 REPORT_BUGS_TEXI
756 REPORT_BUGS_TO
757 PKGVERSION
758 CONFIGURE_SPECS
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
761 TARGET_SYSTEM_ROOT
762 enable_shared
763 enable_fixed_point
764 enable_decimal_float
765 enable_multilib
766 ENABLE_BUILD_WITH_CXX
767 coverage_flags
768 valgrind_command
769 valgrind_path_defines
770 valgrind_path
771 TREEBROWSER
772 nocommon_flag
773 warn_cxxflags
774 warn_cflags
775 c_strict_warn
776 strict_warn
777 c_loose_warn
778 loose_warn
779 EGREP
780 GREP
781 CPP
782 OUTPUT_OPTION
783 NO_MINUS_C_MINUS_O
784 GNATMAKE
785 GNATBIND
786 ac_ct_CXX
787 CXXFLAGS
788 CXX
789 OBJEXT
790 EXEEXT
791 ac_ct_CC
792 CPPFLAGS
793 LDFLAGS
794 CFLAGS
795 CC
796 GENINSRC
797 target_subdir
798 host_subdir
799 build_subdir
800 build_libsubdir
801 target_noncanonical
802 target_os
803 target_vendor
804 target_cpu
805 target
806 host_os
807 host_vendor
808 host_cpu
809 host
810 build_os
811 build_vendor
812 build_cpu
813 build
814 target_alias
815 host_alias
816 build_alias
817 LIBS
818 ECHO_T
819 ECHO_N
820 ECHO_C
821 DEFS
822 mandir
823 localedir
824 libdir
825 psdir
826 pdfdir
827 dvidir
828 htmldir
829 infodir
830 docdir
831 oldincludedir
832 includedir
833 localstatedir
834 sharedstatedir
835 sysconfdir
836 datadir
837 datarootdir
838 libexecdir
839 sbindir
840 bindir
841 program_transform_name
842 prefix
843 exec_prefix
844 PACKAGE_URL
845 PACKAGE_BUGREPORT
846 PACKAGE_STRING
847 PACKAGE_VERSION
848 PACKAGE_TARNAME
849 PACKAGE_NAME
850 PATH_SEPARATOR
851 SHELL'
852 ac_subst_files='option_includes
853 language_hooks'
854 ac_user_opts='
855 enable_option_checking
856 with_build_libsubdir
857 with_local_prefix
858 with_gxx_include_dir
859 with_cpp_install_dir
860 enable_generated_files_in_srcdir
861 with_gnu_ld
862 with_ld
863 with_demangler_in_ld
864 with_gnu_as
865 with_as
866 enable_largefile
867 enable_werror_always
868 enable_checking
869 enable_coverage
870 enable_gather_detailed_mem_stats
871 enable_build_with_cxx
872 with_stabs
873 enable_multilib
874 enable___cxa_atexit
875 enable_decimal_float
876 enable_fixed_point
877 enable_threads
878 enable_tls
879 enable_objc_gc
880 with_dwarf2
881 enable_shared
882 with_build_sysroot
883 with_sysroot
884 with_specs
885 with_pkgversion
886 with_bugurl
887 enable_languages
888 with_multilib_list
889 enable_rpath
890 with_libiconv_prefix
891 enable_initfini_array
892 enable_sjlj_exceptions
893 with_system_libunwind
894 enable_secureplt
895 enable_leading_mingw64_underscores
896 enable_cld
897 enable_frame_pointer
898 enable_win32_registry
899 enable_static
900 with_pic
901 enable_fast_install
902 enable_libtool_lock
903 with_plugin_ld
904 enable_gnu_indirect_function
905 enable_comdat
906 enable_gnu_unique_object
907 enable_linker_build_id
908 with_long_double_128
909 with_gc
910 with_system_zlib
911 enable_maintainer_mode
912 enable_version_specific_runtime_libs
913 with_slibdir
914 enable_plugin
915 enable_libquadmath_support
916 '
917       ac_precious_vars='build_alias
918 host_alias
919 target_alias
920 CC
921 CFLAGS
922 LDFLAGS
923 LIBS
924 CPPFLAGS
925 CXX
926 CXXFLAGS
927 CCC
928 CPP
929 CXXCPP
930 GMPLIBS
931 GMPINC
932 PPLLIBS
933 PPLINC
934 CLOOGLIBS
935 CLOOGINC'
936
937
938 # Initialize some variables set by options.
939 ac_init_help=
940 ac_init_version=false
941 ac_unrecognized_opts=
942 ac_unrecognized_sep=
943 # The variables have the same names as the options, with
944 # dashes changed to underlines.
945 cache_file=/dev/null
946 exec_prefix=NONE
947 no_create=
948 no_recursion=
949 prefix=NONE
950 program_prefix=NONE
951 program_suffix=NONE
952 program_transform_name=s,x,x,
953 silent=
954 site=
955 srcdir=
956 verbose=
957 x_includes=NONE
958 x_libraries=NONE
959
960 # Installation directory options.
961 # These are left unexpanded so users can "make install exec_prefix=/foo"
962 # and all the variables that are supposed to be based on exec_prefix
963 # by default will actually change.
964 # Use braces instead of parens because sh, perl, etc. also accept them.
965 # (The list follows the same order as the GNU Coding Standards.)
966 bindir='${exec_prefix}/bin'
967 sbindir='${exec_prefix}/sbin'
968 libexecdir='${exec_prefix}/libexec'
969 datarootdir='${prefix}/share'
970 datadir='${datarootdir}'
971 sysconfdir='${prefix}/etc'
972 sharedstatedir='${prefix}/com'
973 localstatedir='${prefix}/var'
974 includedir='${prefix}/include'
975 oldincludedir='/usr/include'
976 docdir='${datarootdir}/doc/${PACKAGE}'
977 infodir='${datarootdir}/info'
978 htmldir='${docdir}'
979 dvidir='${docdir}'
980 pdfdir='${docdir}'
981 psdir='${docdir}'
982 libdir='${exec_prefix}/lib'
983 localedir='${datarootdir}/locale'
984 mandir='${datarootdir}/man'
985
986 ac_prev=
987 ac_dashdash=
988 for ac_option
989 do
990   # If the previous option needs an argument, assign it.
991   if test -n "$ac_prev"; then
992     eval $ac_prev=\$ac_option
993     ac_prev=
994     continue
995   fi
996
997   case $ac_option in
998   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
999   *)    ac_optarg=yes ;;
1000   esac
1001
1002   # Accept the important Cygnus configure options, so we can diagnose typos.
1003
1004   case $ac_dashdash$ac_option in
1005   --)
1006     ac_dashdash=yes ;;
1007
1008   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009     ac_prev=bindir ;;
1010   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1011     bindir=$ac_optarg ;;
1012
1013   -build | --build | --buil | --bui | --bu)
1014     ac_prev=build_alias ;;
1015   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1016     build_alias=$ac_optarg ;;
1017
1018   -cache-file | --cache-file | --cache-fil | --cache-fi \
1019   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1020     ac_prev=cache_file ;;
1021   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1022   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1023     cache_file=$ac_optarg ;;
1024
1025   --config-cache | -C)
1026     cache_file=config.cache ;;
1027
1028   -datadir | --datadir | --datadi | --datad)
1029     ac_prev=datadir ;;
1030   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1031     datadir=$ac_optarg ;;
1032
1033   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1034   | --dataroo | --dataro | --datar)
1035     ac_prev=datarootdir ;;
1036   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1037   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1038     datarootdir=$ac_optarg ;;
1039
1040   -disable-* | --disable-*)
1041     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1042     # Reject names that are not valid shell variable names.
1043     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044       as_fn_error "invalid feature name: $ac_useropt"
1045     ac_useropt_orig=$ac_useropt
1046     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047     case $ac_user_opts in
1048       *"
1049 "enable_$ac_useropt"
1050 "*) ;;
1051       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1052          ac_unrecognized_sep=', ';;
1053     esac
1054     eval enable_$ac_useropt=no ;;
1055
1056   -docdir | --docdir | --docdi | --doc | --do)
1057     ac_prev=docdir ;;
1058   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059     docdir=$ac_optarg ;;
1060
1061   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062     ac_prev=dvidir ;;
1063   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064     dvidir=$ac_optarg ;;
1065
1066   -enable-* | --enable-*)
1067     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068     # Reject names that are not valid shell variable names.
1069     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070       as_fn_error "invalid feature name: $ac_useropt"
1071     ac_useropt_orig=$ac_useropt
1072     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073     case $ac_user_opts in
1074       *"
1075 "enable_$ac_useropt"
1076 "*) ;;
1077       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1078          ac_unrecognized_sep=', ';;
1079     esac
1080     eval enable_$ac_useropt=\$ac_optarg ;;
1081
1082   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084   | --exec | --exe | --ex)
1085     ac_prev=exec_prefix ;;
1086   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088   | --exec=* | --exe=* | --ex=*)
1089     exec_prefix=$ac_optarg ;;
1090
1091   -gas | --gas | --ga | --g)
1092     # Obsolete; use --with-gas.
1093     with_gas=yes ;;
1094
1095   -help | --help | --hel | --he | -h)
1096     ac_init_help=long ;;
1097   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098     ac_init_help=recursive ;;
1099   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100     ac_init_help=short ;;
1101
1102   -host | --host | --hos | --ho)
1103     ac_prev=host_alias ;;
1104   -host=* | --host=* | --hos=* | --ho=*)
1105     host_alias=$ac_optarg ;;
1106
1107   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108     ac_prev=htmldir ;;
1109   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110   | --ht=*)
1111     htmldir=$ac_optarg ;;
1112
1113   -includedir | --includedir | --includedi | --included | --include \
1114   | --includ | --inclu | --incl | --inc)
1115     ac_prev=includedir ;;
1116   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117   | --includ=* | --inclu=* | --incl=* | --inc=*)
1118     includedir=$ac_optarg ;;
1119
1120   -infodir | --infodir | --infodi | --infod | --info | --inf)
1121     ac_prev=infodir ;;
1122   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123     infodir=$ac_optarg ;;
1124
1125   -libdir | --libdir | --libdi | --libd)
1126     ac_prev=libdir ;;
1127   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128     libdir=$ac_optarg ;;
1129
1130   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131   | --libexe | --libex | --libe)
1132     ac_prev=libexecdir ;;
1133   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134   | --libexe=* | --libex=* | --libe=*)
1135     libexecdir=$ac_optarg ;;
1136
1137   -localedir | --localedir | --localedi | --localed | --locale)
1138     ac_prev=localedir ;;
1139   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140     localedir=$ac_optarg ;;
1141
1142   -localstatedir | --localstatedir | --localstatedi | --localstated \
1143   | --localstate | --localstat | --localsta | --localst | --locals)
1144     ac_prev=localstatedir ;;
1145   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1146   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1147     localstatedir=$ac_optarg ;;
1148
1149   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150     ac_prev=mandir ;;
1151   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152     mandir=$ac_optarg ;;
1153
1154   -nfp | --nfp | --nf)
1155     # Obsolete; use --without-fp.
1156     with_fp=no ;;
1157
1158   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159   | --no-cr | --no-c | -n)
1160     no_create=yes ;;
1161
1162   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164     no_recursion=yes ;;
1165
1166   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168   | --oldin | --oldi | --old | --ol | --o)
1169     ac_prev=oldincludedir ;;
1170   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173     oldincludedir=$ac_optarg ;;
1174
1175   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176     ac_prev=prefix ;;
1177   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178     prefix=$ac_optarg ;;
1179
1180   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181   | --program-pre | --program-pr | --program-p)
1182     ac_prev=program_prefix ;;
1183   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185     program_prefix=$ac_optarg ;;
1186
1187   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188   | --program-suf | --program-su | --program-s)
1189     ac_prev=program_suffix ;;
1190   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192     program_suffix=$ac_optarg ;;
1193
1194   -program-transform-name | --program-transform-name \
1195   | --program-transform-nam | --program-transform-na \
1196   | --program-transform-n | --program-transform- \
1197   | --program-transform | --program-transfor \
1198   | --program-transfo | --program-transf \
1199   | --program-trans | --program-tran \
1200   | --progr-tra | --program-tr | --program-t)
1201     ac_prev=program_transform_name ;;
1202   -program-transform-name=* | --program-transform-name=* \
1203   | --program-transform-nam=* | --program-transform-na=* \
1204   | --program-transform-n=* | --program-transform-=* \
1205   | --program-transform=* | --program-transfor=* \
1206   | --program-transfo=* | --program-transf=* \
1207   | --program-trans=* | --program-tran=* \
1208   | --progr-tra=* | --program-tr=* | --program-t=*)
1209     program_transform_name=$ac_optarg ;;
1210
1211   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212     ac_prev=pdfdir ;;
1213   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214     pdfdir=$ac_optarg ;;
1215
1216   -psdir | --psdir | --psdi | --psd | --ps)
1217     ac_prev=psdir ;;
1218   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219     psdir=$ac_optarg ;;
1220
1221   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222   | -silent | --silent | --silen | --sile | --sil)
1223     silent=yes ;;
1224
1225   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226     ac_prev=sbindir ;;
1227   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228   | --sbi=* | --sb=*)
1229     sbindir=$ac_optarg ;;
1230
1231   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233   | --sharedst | --shareds | --shared | --share | --shar \
1234   | --sha | --sh)
1235     ac_prev=sharedstatedir ;;
1236   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239   | --sha=* | --sh=*)
1240     sharedstatedir=$ac_optarg ;;
1241
1242   -site | --site | --sit)
1243     ac_prev=site ;;
1244   -site=* | --site=* | --sit=*)
1245     site=$ac_optarg ;;
1246
1247   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248     ac_prev=srcdir ;;
1249   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1250     srcdir=$ac_optarg ;;
1251
1252   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253   | --syscon | --sysco | --sysc | --sys | --sy)
1254     ac_prev=sysconfdir ;;
1255   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1257     sysconfdir=$ac_optarg ;;
1258
1259   -target | --target | --targe | --targ | --tar | --ta | --t)
1260     ac_prev=target_alias ;;
1261   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1262     target_alias=$ac_optarg ;;
1263
1264   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265     verbose=yes ;;
1266
1267   -version | --version | --versio | --versi | --vers | -V)
1268     ac_init_version=: ;;
1269
1270   -with-* | --with-*)
1271     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1272     # Reject names that are not valid shell variable names.
1273     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274       as_fn_error "invalid package name: $ac_useropt"
1275     ac_useropt_orig=$ac_useropt
1276     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277     case $ac_user_opts in
1278       *"
1279 "with_$ac_useropt"
1280 "*) ;;
1281       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1282          ac_unrecognized_sep=', ';;
1283     esac
1284     eval with_$ac_useropt=\$ac_optarg ;;
1285
1286   -without-* | --without-*)
1287     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288     # Reject names that are not valid shell variable names.
1289     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290       as_fn_error "invalid package name: $ac_useropt"
1291     ac_useropt_orig=$ac_useropt
1292     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293     case $ac_user_opts in
1294       *"
1295 "with_$ac_useropt"
1296 "*) ;;
1297       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1298          ac_unrecognized_sep=', ';;
1299     esac
1300     eval with_$ac_useropt=no ;;
1301
1302   --x)
1303     # Obsolete; use --with-x.
1304     with_x=yes ;;
1305
1306   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1307   | --x-incl | --x-inc | --x-in | --x-i)
1308     ac_prev=x_includes ;;
1309   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1310   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1311     x_includes=$ac_optarg ;;
1312
1313   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1314   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1315     ac_prev=x_libraries ;;
1316   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1317   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1318     x_libraries=$ac_optarg ;;
1319
1320   -*) as_fn_error "unrecognized option: \`$ac_option'
1321 Try \`$0 --help' for more information."
1322     ;;
1323
1324   *=*)
1325     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326     # Reject names that are not valid shell variable names.
1327     case $ac_envvar in #(
1328       '' | [0-9]* | *[!_$as_cr_alnum]* )
1329       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1330     esac
1331     eval $ac_envvar=\$ac_optarg
1332     export $ac_envvar ;;
1333
1334   *)
1335     # FIXME: should be removed in autoconf 3.0.
1336     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1337     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1338       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1339     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1340     ;;
1341
1342   esac
1343 done
1344
1345 if test -n "$ac_prev"; then
1346   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1347   as_fn_error "missing argument to $ac_option"
1348 fi
1349
1350 if test -n "$ac_unrecognized_opts"; then
1351   case $enable_option_checking in
1352     no) ;;
1353     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1354     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1355   esac
1356 fi
1357
1358 # Check all directory arguments for consistency.
1359 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1360                 datadir sysconfdir sharedstatedir localstatedir includedir \
1361                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1362                 libdir localedir mandir
1363 do
1364   eval ac_val=\$$ac_var
1365   # Remove trailing slashes.
1366   case $ac_val in
1367     */ )
1368       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1369       eval $ac_var=\$ac_val;;
1370   esac
1371   # Be sure to have absolute directory names.
1372   case $ac_val in
1373     [\\/$]* | ?:[\\/]* )  continue;;
1374     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1375   esac
1376   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1377 done
1378
1379 # There might be people who depend on the old broken behavior: `$host'
1380 # used to hold the argument of --host etc.
1381 # FIXME: To remove some day.
1382 build=$build_alias
1383 host=$host_alias
1384 target=$target_alias
1385
1386 # FIXME: To remove some day.
1387 if test "x$host_alias" != x; then
1388   if test "x$build_alias" = x; then
1389     cross_compiling=maybe
1390     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1391     If a cross compiler is detected then cross compile mode will be used." >&2
1392   elif test "x$build_alias" != "x$host_alias"; then
1393     cross_compiling=yes
1394   fi
1395 fi
1396
1397 ac_tool_prefix=
1398 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1399
1400 test "$silent" = yes && exec 6>/dev/null
1401
1402
1403 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1404 ac_ls_di=`ls -di .` &&
1405 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1406   as_fn_error "working directory cannot be determined"
1407 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1408   as_fn_error "pwd does not report name of working directory"
1409
1410
1411 # Find the source files, if location was not specified.
1412 if test -z "$srcdir"; then
1413   ac_srcdir_defaulted=yes
1414   # Try the directory containing this script, then the parent directory.
1415   ac_confdir=`$as_dirname -- "$as_myself" ||
1416 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1417          X"$as_myself" : 'X\(//\)[^/]' \| \
1418          X"$as_myself" : 'X\(//\)$' \| \
1419          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1420 $as_echo X"$as_myself" |
1421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422             s//\1/
1423             q
1424           }
1425           /^X\(\/\/\)[^/].*/{
1426             s//\1/
1427             q
1428           }
1429           /^X\(\/\/\)$/{
1430             s//\1/
1431             q
1432           }
1433           /^X\(\/\).*/{
1434             s//\1/
1435             q
1436           }
1437           s/.*/./; q'`
1438   srcdir=$ac_confdir
1439   if test ! -r "$srcdir/$ac_unique_file"; then
1440     srcdir=..
1441   fi
1442 else
1443   ac_srcdir_defaulted=no
1444 fi
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1447   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1448 fi
1449 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1450 ac_abs_confdir=`(
1451         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1452         pwd)`
1453 # When building in place, set srcdir=.
1454 if test "$ac_abs_confdir" = "$ac_pwd"; then
1455   srcdir=.
1456 fi
1457 # Remove unnecessary trailing slashes from srcdir.
1458 # Double slashes in file names in object file debugging info
1459 # mess up M-x gdb in Emacs.
1460 case $srcdir in
1461 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462 esac
1463 for ac_var in $ac_precious_vars; do
1464   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1465   eval ac_env_${ac_var}_value=\$${ac_var}
1466   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1467   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1468 done
1469
1470 #
1471 # Report the --help message.
1472 #
1473 if test "$ac_init_help" = "long"; then
1474   # Omit some internal or obsolete options to make the list less imposing.
1475   # This message is too long to be a string in the A/UX 3.1 sh.
1476   cat <<_ACEOF
1477 \`configure' configures this package to adapt to many kinds of systems.
1478
1479 Usage: $0 [OPTION]... [VAR=VALUE]...
1480
1481 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1482 VAR=VALUE.  See below for descriptions of some of the useful variables.
1483
1484 Defaults for the options are specified in brackets.
1485
1486 Configuration:
1487   -h, --help              display this help and exit
1488       --help=short        display options specific to this package
1489       --help=recursive    display the short help of all the included packages
1490   -V, --version           display version information and exit
1491   -q, --quiet, --silent   do not print \`checking...' messages
1492       --cache-file=FILE   cache test results in FILE [disabled]
1493   -C, --config-cache      alias for \`--cache-file=config.cache'
1494   -n, --no-create         do not create output files
1495       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1496
1497 Installation directories:
1498   --prefix=PREFIX         install architecture-independent files in PREFIX
1499                           [$ac_default_prefix]
1500   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1501                           [PREFIX]
1502
1503 By default, \`make install' will install all the files in
1504 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1505 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1506 for instance \`--prefix=\$HOME'.
1507
1508 For better control, use the options below.
1509
1510 Fine tuning of the installation directories:
1511   --bindir=DIR            user executables [EPREFIX/bin]
1512   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1513   --libexecdir=DIR        program executables [EPREFIX/libexec]
1514   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1515   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1516   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1517   --libdir=DIR            object code libraries [EPREFIX/lib]
1518   --includedir=DIR        C header files [PREFIX/include]
1519   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1520   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1521   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1522   --infodir=DIR           info documentation [DATAROOTDIR/info]
1523   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1524   --mandir=DIR            man documentation [DATAROOTDIR/man]
1525   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1526   --htmldir=DIR           html documentation [DOCDIR]
1527   --dvidir=DIR            dvi documentation [DOCDIR]
1528   --pdfdir=DIR            pdf documentation [DOCDIR]
1529   --psdir=DIR             ps documentation [DOCDIR]
1530 _ACEOF
1531
1532   cat <<\_ACEOF
1533
1534 Program names:
1535   --program-prefix=PREFIX            prepend PREFIX to installed program names
1536   --program-suffix=SUFFIX            append SUFFIX to installed program names
1537   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1538
1539 System types:
1540   --build=BUILD     configure for building on BUILD [guessed]
1541   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1542   --target=TARGET   configure for building compilers for TARGET [HOST]
1543 _ACEOF
1544 fi
1545
1546 if test -n "$ac_init_help"; then
1547
1548   cat <<\_ACEOF
1549
1550 Optional Features:
1551   --disable-option-checking  ignore unrecognized --enable/--with options
1552   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1553   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1554   --enable-generated-files-in-srcdir
1555                           put copies of generated files in source dir
1556                           intended for creating source tarballs for users
1557                           without texinfo bison or flex.
1558   --disable-largefile     omit support for large files
1559   --enable-werror-always  enable -Werror despite compiler version
1560   --enable-checking=LIST
1561                           enable expensive run-time checks.  With LIST,
1562                           enable only specific categories of checks.
1563                           Categories are: yes,no,all,none,release.
1564                           Flags are: assert,df,fold,gc,gcac,gimple,misc,
1565                           rtlflag,rtl,runtime,tree,valgrind,types.
1566   --enable-coverage=LEVEL
1567                           enable compiler's code coverage collection.
1568                           Use to measure compiler performance and locate
1569                           unused parts of the compiler. With LEVEL, specify
1570                           optimization. Values are opt, noopt,
1571                           default is noopt
1572   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1573   --enable-build-with-cxx build with C++ compiler instead of C compiler
1574   --enable-multilib       enable library support for multiple ABIs
1575   --enable-__cxa_atexit   enable __cxa_atexit for C++
1576   --enable-decimal-float={no,yes,bid,dpd}
1577                         enable decimal float extension to C.  Selecting 'bid'
1578                         or 'dpd' choses which decimal floating point format
1579                         to use
1580   --enable-fixed-point    enable fixed-point arithmetic extension to C
1581   --enable-threads        enable thread usage for target GCC
1582   --enable-threads=LIB    use LIB thread package for target GCC
1583   --enable-tls            enable or disable generation of tls code
1584                           overriding the assembler check for tls support
1585   --enable-objc-gc        enable the use of Boehm's garbage collector with
1586                           the GNU Objective-C runtime
1587   --disable-shared        don't provide a shared libgcc
1588   --enable-languages=LIST specify which front-ends to build
1589   --disable-rpath         do not hardcode runtime library paths
1590   --enable-initfini-array       use .init_array/.fini_array sections
1591   --enable-sjlj-exceptions
1592                           arrange to use setjmp/longjmp exception handling
1593   --enable-secureplt      enable -msecure-plt by default for PowerPC
1594   --enable-leading-mingw64-underscores
1595                           Enable leading underscores on 64 bit mingw targets
1596   --enable-cld            enable -mcld by default for 32bit x86
1597   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit x86
1598   --disable-win32-registry
1599                           disable lookup of installation paths in the
1600                           Registry on Windows hosts
1601   --enable-win32-registry enable registry lookup (default)
1602   --enable-win32-registry=KEY
1603                           use KEY instead of GCC version as the last portion
1604                           of the registry key
1605   --enable-shared[=PKGS]  build shared libraries [default=yes]
1606   --enable-static[=PKGS]  build static libraries [default=yes]
1607   --enable-fast-install[=PKGS]
1608                           optimize for fast installation [default=yes]
1609   --disable-libtool-lock  avoid locking (might break parallel builds)
1610   --enable-gnu-indirect-function
1611                           enable the use of the @gnu_indirect_function to
1612                           glibc systems
1613   --enable-comdat         enable COMDAT group support
1614   --enable-gnu-unique-object
1615                           enable the use of the @gnu_unique_object ELF
1616                           extension on glibc systems
1617   --enable-linker-build-id
1618                           compiler will always pass --build-id to linker
1619   --enable-maintainer-mode
1620                           enable make rules and dependencies not useful
1621                           (and sometimes confusing) to the casual installer
1622   --enable-version-specific-runtime-libs
1623                           specify that runtime libraries should be
1624                           installed in a compiler-specific directory
1625   --enable-plugin         enable plugin support
1626   --disable-libquadmath-support
1627                           disable libquadmath support for Fortran
1628
1629 Optional Packages:
1630   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1631   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1632   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1633   --with-local-prefix=DIR specifies directory to put local include
1634   --with-gxx-include-dir=DIR
1635                           specifies directory to put g++ header files
1636   --with-cpp-install-dir=DIR
1637                           install the user visible C preprocessor in DIR
1638                           (relative to PREFIX) as well as PREFIX/bin
1639   --with-gnu-ld           arrange to work with GNU ld.
1640   --with-ld               arrange to use the specified ld (full pathname)
1641   --with-demangler-in-ld  try to use demangler in GNU ld.
1642   --with-gnu-as           arrange to work with GNU as
1643   --with-as               arrange to use the specified as (full pathname)
1644   --with-stabs            arrange to use stabs instead of host debug format
1645   --with-dwarf2           force the default debug format to be DWARF 2
1646   --with-build-sysroot=sysroot
1647                           use sysroot as the system root during the build
1648   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1649   --with-specs=SPECS      add SPECS to driver command-line processing
1650   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1651   --with-bugurl=URL       Direct users to URL to report a bug
1652   --with-multilib-list    Select multilibs (SH only)
1653   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1654   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1655   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1656   --with-system-libunwind use installed libunwind
1657   --with-pic              try to use only PIC/non-PIC objects [default=use
1658                           both]
1659   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1660   --with-plugin-ld=[ARG]  specify the plugin linker
1661   --with-long-double-128  Use 128-bit long double by default.
1662   --with-gc={page,zone}   choose the garbage collection mechanism to use
1663                           with the compiler
1664   --with-system-zlib      use installed libz
1665   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1666
1667 Some influential environment variables:
1668   CC          C compiler command
1669   CFLAGS      C compiler flags
1670   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1671               nonstandard directory <lib dir>
1672   LIBS        libraries to pass to the linker, e.g. -l<library>
1673   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1674               you have headers in a nonstandard directory <include dir>
1675   CXX         C++ compiler command
1676   CXXFLAGS    C++ compiler flags
1677   CPP         C preprocessor
1678   CXXCPP      C++ preprocessor
1679   GMPLIBS     How to link GMP
1680   GMPINC      How to find GMP include files
1681   PPLLIBS     How to link PPL
1682   PPLINC      How to find PPL include files
1683   CLOOGLIBS   How to link CLOOG
1684   CLOOGINC    How to find CLOOG include files
1685
1686 Use these variables to override the choices made by `configure' or to help
1687 it to find libraries and programs with nonstandard names/locations.
1688
1689 Report bugs to the package provider.
1690 _ACEOF
1691 ac_status=$?
1692 fi
1693
1694 if test "$ac_init_help" = "recursive"; then
1695   # If there are subdirs, report their specific --help.
1696   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1697     test -d "$ac_dir" ||
1698       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1699       continue
1700     ac_builddir=.
1701
1702 case "$ac_dir" in
1703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704 *)
1705   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1706   # A ".." for each directory in $ac_dir_suffix.
1707   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1708   case $ac_top_builddir_sub in
1709   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1711   esac ;;
1712 esac
1713 ac_abs_top_builddir=$ac_pwd
1714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1715 # for backward compatibility:
1716 ac_top_builddir=$ac_top_build_prefix
1717
1718 case $srcdir in
1719   .)  # We are building in place.
1720     ac_srcdir=.
1721     ac_top_srcdir=$ac_top_builddir_sub
1722     ac_abs_top_srcdir=$ac_pwd ;;
1723   [\\/]* | ?:[\\/]* )  # Absolute name.
1724     ac_srcdir=$srcdir$ac_dir_suffix;
1725     ac_top_srcdir=$srcdir
1726     ac_abs_top_srcdir=$srcdir ;;
1727   *) # Relative name.
1728     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1729     ac_top_srcdir=$ac_top_build_prefix$srcdir
1730     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1731 esac
1732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1733
1734     cd "$ac_dir" || { ac_status=$?; continue; }
1735     # Check for guested configure.
1736     if test -f "$ac_srcdir/configure.gnu"; then
1737       echo &&
1738       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1739     elif test -f "$ac_srcdir/configure"; then
1740       echo &&
1741       $SHELL "$ac_srcdir/configure" --help=recursive
1742     else
1743       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1744     fi || ac_status=$?
1745     cd "$ac_pwd" || { ac_status=$?; break; }
1746   done
1747 fi
1748
1749 test -n "$ac_init_help" && exit $ac_status
1750 if $ac_init_version; then
1751   cat <<\_ACEOF
1752 configure
1753 generated by GNU Autoconf 2.64
1754
1755 Copyright (C) 2009 Free Software Foundation, Inc.
1756 This configure script is free software; the Free Software Foundation
1757 gives unlimited permission to copy, distribute and modify it.
1758 _ACEOF
1759   exit
1760 fi
1761
1762 ## ------------------------ ##
1763 ## Autoconf initialization. ##
1764 ## ------------------------ ##
1765
1766 # ac_fn_c_try_compile LINENO
1767 # --------------------------
1768 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_c_try_compile ()
1770 {
1771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772   rm -f conftest.$ac_objext
1773   if { { ac_try="$ac_compile"
1774 case "(($ac_try" in
1775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776   *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780   (eval "$ac_compile") 2>conftest.err
1781   ac_status=$?
1782   if test -s conftest.err; then
1783     grep -v '^ *+' conftest.err >conftest.er1
1784     cat conftest.er1 >&5
1785     mv -f conftest.er1 conftest.err
1786   fi
1787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788   test $ac_status = 0; } && {
1789          test -z "$ac_c_werror_flag" ||
1790          test ! -s conftest.err
1791        } && test -s conftest.$ac_objext; then :
1792   ac_retval=0
1793 else
1794   $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797         ac_retval=1
1798 fi
1799   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800   return $ac_retval
1801
1802 } # ac_fn_c_try_compile
1803
1804 # ac_fn_cxx_try_compile LINENO
1805 # ----------------------------
1806 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_cxx_try_compile ()
1808 {
1809   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810   rm -f conftest.$ac_objext
1811   if { { ac_try="$ac_compile"
1812 case "(($ac_try" in
1813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814   *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818   (eval "$ac_compile") 2>conftest.err
1819   ac_status=$?
1820   if test -s conftest.err; then
1821     grep -v '^ *+' conftest.err >conftest.er1
1822     cat conftest.er1 >&5
1823     mv -f conftest.er1 conftest.err
1824   fi
1825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826   test $ac_status = 0; } && {
1827          test -z "$ac_cxx_werror_flag" ||
1828          test ! -s conftest.err
1829        } && test -s conftest.$ac_objext; then :
1830   ac_retval=0
1831 else
1832   $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835         ac_retval=1
1836 fi
1837   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838   return $ac_retval
1839
1840 } # ac_fn_cxx_try_compile
1841
1842 # ac_fn_c_try_cpp LINENO
1843 # ----------------------
1844 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_c_try_cpp ()
1846 {
1847   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848   if { { ac_try="$ac_cpp conftest.$ac_ext"
1849 case "(($ac_try" in
1850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851   *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1856   ac_status=$?
1857   if test -s conftest.err; then
1858     grep -v '^ *+' conftest.err >conftest.er1
1859     cat conftest.er1 >&5
1860     mv -f conftest.er1 conftest.err
1861   fi
1862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863   test $ac_status = 0; } >/dev/null && {
1864          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1865          test ! -s conftest.err
1866        }; then :
1867   ac_retval=0
1868 else
1869   $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872     ac_retval=1
1873 fi
1874   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875   return $ac_retval
1876
1877 } # ac_fn_c_try_cpp
1878
1879 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1882 # the include files in INCLUDES and setting the cache variable VAR
1883 # accordingly.
1884 ac_fn_c_check_header_mongrel ()
1885 {
1886   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891   $as_echo_n "(cached) " >&6
1892 fi
1893 eval ac_res=\$$3
1894                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 else
1897   # Is the header compilable?
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1899 $as_echo_n "checking $2 usability... " >&6; }
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h.  */
1902 $4
1903 #include <$2>
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906   ac_header_compiler=yes
1907 else
1908   ac_header_compiler=no
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1912 $as_echo "$ac_header_compiler" >&6; }
1913
1914 # Is the header present?
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1916 $as_echo_n "checking $2 presence... " >&6; }
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h.  */
1919 #include <$2>
1920 _ACEOF
1921 if ac_fn_c_try_cpp "$LINENO"; then :
1922   ac_header_preproc=yes
1923 else
1924   ac_header_preproc=no
1925 fi
1926 rm -f conftest.err conftest.$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1928 $as_echo "$ac_header_preproc" >&6; }
1929
1930 # So?  What about this header?
1931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1932   yes:no: )
1933     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1934 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1935     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937     ;;
1938   no:yes:* )
1939     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1940 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1941     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1942 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1943     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1944 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1945     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1946 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1947     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1949     ;;
1950 esac
1951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954   $as_echo_n "(cached) " >&6
1955 else
1956   eval "$3=\$ac_header_compiler"
1957 fi
1958 eval ac_res=\$$3
1959                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1961 fi
1962   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963
1964 } # ac_fn_c_check_header_mongrel
1965
1966 # ac_fn_c_try_run LINENO
1967 # ----------------------
1968 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1969 # that executables *can* be run.
1970 ac_fn_c_try_run ()
1971 {
1972   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973   if { { ac_try="$ac_link"
1974 case "(($ac_try" in
1975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976   *) ac_try_echo=$ac_try;;
1977 esac
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980   (eval "$ac_link") 2>&5
1981   ac_status=$?
1982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1984   { { case "(($ac_try" in
1985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986   *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990   (eval "$ac_try") 2>&5
1991   ac_status=$?
1992   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993   test $ac_status = 0; }; }; then :
1994   ac_retval=0
1995 else
1996   $as_echo "$as_me: program exited with status $ac_status" >&5
1997        $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
1999
2000        ac_retval=$ac_status
2001 fi
2002   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004   return $ac_retval
2005
2006 } # ac_fn_c_try_run
2007
2008 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2009 # -------------------------------------------------------
2010 # Tests whether HEADER exists and can be compiled using the include files in
2011 # INCLUDES, setting the cache variable VAR accordingly.
2012 ac_fn_c_check_header_compile ()
2013 {
2014   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018   $as_echo_n "(cached) " >&6
2019 else
2020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h.  */
2022 $4
2023 #include <$2>
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026   eval "$3=yes"
2027 else
2028   eval "$3=no"
2029 fi
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 fi
2032 eval ac_res=\$$3
2033                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036
2037 } # ac_fn_c_check_header_compile
2038
2039 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2040 # --------------------------------------------
2041 # Tries to find the compile-time value of EXPR in a program that includes
2042 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2043 # computed
2044 ac_fn_c_compute_int ()
2045 {
2046   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047   if test "$cross_compiling" = yes; then
2048     # Depending upon the size, compute the lo and hi bounds.
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h.  */
2051 $4
2052 int
2053 main ()
2054 {
2055 static int test_array [1 - 2 * !(($2) >= 0)];
2056 test_array [0] = 0
2057
2058   ;
2059   return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063   ac_lo=0 ac_mid=0
2064   while :; do
2065     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h.  */
2067 $4
2068 int
2069 main ()
2070 {
2071 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2072 test_array [0] = 0
2073
2074   ;
2075   return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079   ac_hi=$ac_mid; break
2080 else
2081   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2082                         if test $ac_lo -le $ac_mid; then
2083                           ac_lo= ac_hi=
2084                           break
2085                         fi
2086                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089   done
2090 else
2091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h.  */
2093 $4
2094 int
2095 main ()
2096 {
2097 static int test_array [1 - 2 * !(($2) < 0)];
2098 test_array [0] = 0
2099
2100   ;
2101   return 0;
2102 }
2103 _ACEOF
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105   ac_hi=-1 ac_mid=-1
2106   while :; do
2107     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h.  */
2109 $4
2110 int
2111 main ()
2112 {
2113 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2114 test_array [0] = 0
2115
2116   ;
2117   return 0;
2118 }
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121   ac_lo=$ac_mid; break
2122 else
2123   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2124                         if test $ac_mid -le $ac_hi; then
2125                           ac_lo= ac_hi=
2126                           break
2127                         fi
2128                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131   done
2132 else
2133   ac_lo= ac_hi=
2134 fi
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 # Binary search between lo and hi bounds.
2139 while test "x$ac_lo" != "x$ac_hi"; do
2140   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h.  */
2143 $4
2144 int
2145 main ()
2146 {
2147 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2148 test_array [0] = 0
2149
2150   ;
2151   return 0;
2152 }
2153 _ACEOF
2154 if ac_fn_c_try_compile "$LINENO"; then :
2155   ac_hi=$ac_mid
2156 else
2157   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 done
2161 case $ac_lo in #((
2162 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2163 '') ac_retval=1 ;;
2164 esac
2165   else
2166     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h.  */
2168 $4
2169 static long int longval () { return $2; }
2170 static unsigned long int ulongval () { return $2; }
2171 #include <stdio.h>
2172 #include <stdlib.h>
2173 int
2174 main ()
2175 {
2176
2177   FILE *f = fopen ("conftest.val", "w");
2178   if (! f)
2179     return 1;
2180   if (($2) < 0)
2181     {
2182       long int i = longval ();
2183       if (i != ($2))
2184         return 1;
2185       fprintf (f, "%ld", i);
2186     }
2187   else
2188     {
2189       unsigned long int i = ulongval ();
2190       if (i != ($2))
2191         return 1;
2192       fprintf (f, "%lu", i);
2193     }
2194   /* Do not output a trailing newline, as this causes \r\n confusion
2195      on some platforms.  */
2196   return ferror (f) || fclose (f) != 0;
2197
2198   ;
2199   return 0;
2200 }
2201 _ACEOF
2202 if ac_fn_c_try_run "$LINENO"; then :
2203   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2204 else
2205   ac_retval=1
2206 fi
2207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2208   conftest.$ac_objext conftest.beam conftest.$ac_ext
2209 rm -f conftest.val
2210
2211   fi
2212   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2213   return $ac_retval
2214
2215 } # ac_fn_c_compute_int
2216
2217 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2218 # -------------------------------------------
2219 # Tests whether TYPE exists after having included INCLUDES, setting cache
2220 # variable VAR accordingly.
2221 ac_fn_c_check_type ()
2222 {
2223   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 $as_echo_n "checking for $2... " >&6; }
2226 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2227   $as_echo_n "(cached) " >&6
2228 else
2229   eval "$3=no"
2230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h.  */
2232 $4
2233 int
2234 main ()
2235 {
2236 if (sizeof ($2))
2237          return 0;
2238   ;
2239   return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h.  */
2245 $4
2246 int
2247 main ()
2248 {
2249 if (sizeof (($2)))
2250             return 0;
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256
2257 else
2258   eval "$3=yes"
2259 fi
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 fi
2264 eval ac_res=\$$3
2265                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2268
2269 } # ac_fn_c_check_type
2270
2271 # ac_fn_c_find_intX_t LINENO BITS VAR
2272 # -----------------------------------
2273 # Finds a signed integer type with width BITS, setting cache variable VAR
2274 # accordingly.
2275 ac_fn_c_find_intX_t ()
2276 {
2277   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2279 $as_echo_n "checking for int$2_t... " >&6; }
2280 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281   $as_echo_n "(cached) " >&6
2282 else
2283   eval "$3=no"
2284      for ac_type in int$2_t 'int' 'long int' \
2285          'long long int' 'short int' 'signed char'; do
2286        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h.  */
2288 $ac_includes_default
2289 int
2290 main ()
2291 {
2292 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2293 test_array [0] = 0
2294
2295   ;
2296   return 0;
2297 }
2298 _ACEOF
2299 if ac_fn_c_try_compile "$LINENO"; then :
2300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h.  */
2302 $ac_includes_default
2303 int
2304 main ()
2305 {
2306 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2307                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2308 test_array [0] = 0
2309
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 if ac_fn_c_try_compile "$LINENO"; then :
2315
2316 else
2317   case $ac_type in #(
2318   int$2_t) :
2319     eval "$3=yes" ;; #(
2320   *) :
2321     eval "$3=\$ac_type" ;;
2322 esac
2323 fi
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325 fi
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327        eval as_val=\$$3
2328    if test "x$as_val" = x""no; then :
2329
2330 else
2331   break
2332 fi
2333      done
2334 fi
2335 eval ac_res=\$$3
2336                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2337 $as_echo "$ac_res" >&6; }
2338   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2339
2340 } # ac_fn_c_find_intX_t
2341
2342 # ac_fn_c_try_link LINENO
2343 # -----------------------
2344 # Try to link conftest.$ac_ext, and return whether this succeeded.
2345 ac_fn_c_try_link ()
2346 {
2347   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2348   rm -f conftest.$ac_objext conftest$ac_exeext
2349   if { { ac_try="$ac_link"
2350 case "(($ac_try" in
2351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352   *) ac_try_echo=$ac_try;;
2353 esac
2354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2355 $as_echo "$ac_try_echo"; } >&5
2356   (eval "$ac_link") 2>conftest.err
2357   ac_status=$?
2358   if test -s conftest.err; then
2359     grep -v '^ *+' conftest.err >conftest.er1
2360     cat conftest.er1 >&5
2361     mv -f conftest.er1 conftest.err
2362   fi
2363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2364   test $ac_status = 0; } && {
2365          test -z "$ac_c_werror_flag" ||
2366          test ! -s conftest.err
2367        } && test -s conftest$ac_exeext && {
2368          test "$cross_compiling" = yes ||
2369          $as_test_x conftest$ac_exeext
2370        }; then :
2371   ac_retval=0
2372 else
2373   $as_echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2375
2376         ac_retval=1
2377 fi
2378   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2379   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2380   # interfere with the next link command; also delete a directory that is
2381   # left behind by Apple's compiler.  We do this before executing the actions.
2382   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2383   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2384   return $ac_retval
2385
2386 } # ac_fn_c_try_link
2387
2388 # ac_fn_c_find_uintX_t LINENO BITS VAR
2389 # ------------------------------------
2390 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2391 # accordingly.
2392 ac_fn_c_find_uintX_t ()
2393 {
2394   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2396 $as_echo_n "checking for uint$2_t... " >&6; }
2397 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398   $as_echo_n "(cached) " >&6
2399 else
2400   eval "$3=no"
2401      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2402          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2403        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h.  */
2405 $ac_includes_default
2406 int
2407 main ()
2408 {
2409 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2410 test_array [0] = 0
2411
2412   ;
2413   return 0;
2414 }
2415 _ACEOF
2416 if ac_fn_c_try_compile "$LINENO"; then :
2417   case $ac_type in #(
2418   uint$2_t) :
2419     eval "$3=yes" ;; #(
2420   *) :
2421     eval "$3=\$ac_type" ;;
2422 esac
2423 fi
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425        eval as_val=\$$3
2426    if test "x$as_val" = x""no; then :
2427
2428 else
2429   break
2430 fi
2431      done
2432 fi
2433 eval ac_res=\$$3
2434                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2435 $as_echo "$ac_res" >&6; }
2436   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2437
2438 } # ac_fn_c_find_uintX_t
2439
2440 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2441 # ----------------------------------------------
2442 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2443 ac_fn_c_check_header_preproc ()
2444 {
2445   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2447 $as_echo_n "checking for $2... " >&6; }
2448 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2449   $as_echo_n "(cached) " >&6
2450 else
2451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h.  */
2453 #include <$2>
2454 _ACEOF
2455 if ac_fn_c_try_cpp "$LINENO"; then :
2456   eval "$3=yes"
2457 else
2458   eval "$3=no"
2459 fi
2460 rm -f conftest.err conftest.$ac_ext
2461 fi
2462 eval ac_res=\$$3
2463                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464 $as_echo "$ac_res" >&6; }
2465   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2466
2467 } # ac_fn_c_check_header_preproc
2468
2469 # ac_fn_cxx_try_cpp LINENO
2470 # ------------------------
2471 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2472 ac_fn_cxx_try_cpp ()
2473 {
2474   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475   if { { ac_try="$ac_cpp conftest.$ac_ext"
2476 case "(($ac_try" in
2477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478   *) ac_try_echo=$ac_try;;
2479 esac
2480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2481 $as_echo "$ac_try_echo"; } >&5
2482   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2483   ac_status=$?
2484   if test -s conftest.err; then
2485     grep -v '^ *+' conftest.err >conftest.er1
2486     cat conftest.er1 >&5
2487     mv -f conftest.er1 conftest.err
2488   fi
2489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2490   test $ac_status = 0; } >/dev/null && {
2491          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2492          test ! -s conftest.err
2493        }; then :
2494   ac_retval=0
2495 else
2496   $as_echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2498
2499     ac_retval=1
2500 fi
2501   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2502   return $ac_retval
2503
2504 } # ac_fn_cxx_try_cpp
2505
2506 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2507 # ------------------------------------------------
2508 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2509 ac_fn_cxx_check_header_preproc ()
2510 {
2511   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2513 $as_echo_n "checking for $2... " >&6; }
2514 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2515   $as_echo_n "(cached) " >&6
2516 else
2517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h.  */
2519 #include <$2>
2520 _ACEOF
2521 if ac_fn_cxx_try_cpp "$LINENO"; then :
2522   eval "$3=yes"
2523 else
2524   eval "$3=no"
2525 fi
2526 rm -f conftest.err conftest.$ac_ext
2527 fi
2528 eval ac_res=\$$3
2529                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2530 $as_echo "$ac_res" >&6; }
2531   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2532
2533 } # ac_fn_cxx_check_header_preproc
2534
2535 # ac_fn_c_check_func LINENO FUNC VAR
2536 # ----------------------------------
2537 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2538 ac_fn_c_check_func ()
2539 {
2540   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2542 $as_echo_n "checking for $2... " >&6; }
2543 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2544   $as_echo_n "(cached) " >&6
2545 else
2546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h.  */
2548 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2550 #define $2 innocuous_$2
2551
2552 /* System header to define __stub macros and hopefully few prototypes,
2553     which can conflict with char $2 (); below.
2554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2555     <limits.h> exists even on freestanding compilers.  */
2556
2557 #ifdef __STDC__
2558 # include <limits.h>
2559 #else
2560 # include <assert.h>
2561 #endif
2562
2563 #undef $2
2564
2565 /* Override any GCC internal prototype to avoid an error.
2566    Use char because int might match the return type of a GCC
2567    builtin and then its argument prototype would still apply.  */
2568 #ifdef __cplusplus
2569 extern "C"
2570 #endif
2571 char $2 ();
2572 /* The GNU C library defines this for functions which it implements
2573     to always fail with ENOSYS.  Some functions are actually named
2574     something starting with __ and the normal name is an alias.  */
2575 #if defined __stub_$2 || defined __stub___$2
2576 choke me
2577 #endif
2578
2579 int
2580 main ()
2581 {
2582 return $2 ();
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 if ac_fn_c_try_link "$LINENO"; then :
2588   eval "$3=yes"
2589 else
2590   eval "$3=no"
2591 fi
2592 rm -f core conftest.err conftest.$ac_objext \
2593     conftest$ac_exeext conftest.$ac_ext
2594 fi
2595 eval ac_res=\$$3
2596                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2597 $as_echo "$ac_res" >&6; }
2598   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2599
2600 } # ac_fn_c_check_func
2601
2602 # ac_fn_cxx_try_link LINENO
2603 # -------------------------
2604 # Try to link conftest.$ac_ext, and return whether this succeeded.
2605 ac_fn_cxx_try_link ()
2606 {
2607   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2608   rm -f conftest.$ac_objext conftest$ac_exeext
2609   if { { ac_try="$ac_link"
2610 case "(($ac_try" in
2611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612   *) ac_try_echo=$ac_try;;
2613 esac
2614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2615 $as_echo "$ac_try_echo"; } >&5
2616   (eval "$ac_link") 2>conftest.err
2617   ac_status=$?
2618   if test -s conftest.err; then
2619     grep -v '^ *+' conftest.err >conftest.er1
2620     cat conftest.er1 >&5
2621     mv -f conftest.er1 conftest.err
2622   fi
2623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2624   test $ac_status = 0; } && {
2625          test -z "$ac_cxx_werror_flag" ||
2626          test ! -s conftest.err
2627        } && test -s conftest$ac_exeext && {
2628          test "$cross_compiling" = yes ||
2629          $as_test_x conftest$ac_exeext
2630        }; then :
2631   ac_retval=0
2632 else
2633   $as_echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2635
2636         ac_retval=1
2637 fi
2638   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2639   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2640   # interfere with the next link command; also delete a directory that is
2641   # left behind by Apple's compiler.  We do this before executing the actions.
2642   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2643   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2644   return $ac_retval
2645
2646 } # ac_fn_cxx_try_link
2647 cat >config.log <<_ACEOF
2648 This file contains any messages produced by compilers while
2649 running configure, to aid debugging if configure makes a mistake.
2650
2651 It was created by $as_me, which was
2652 generated by GNU Autoconf 2.64.  Invocation command line was
2653
2654   $ $0 $@
2655
2656 _ACEOF
2657 exec 5>>config.log
2658 {
2659 cat <<_ASUNAME
2660 ## --------- ##
2661 ## Platform. ##
2662 ## --------- ##
2663
2664 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2665 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2666 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2667 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2668 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2669
2670 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2671 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2672
2673 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2674 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2675 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2676 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2677 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2678 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2679 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2680
2681 _ASUNAME
2682
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686   IFS=$as_save_IFS
2687   test -z "$as_dir" && as_dir=.
2688     $as_echo "PATH: $as_dir"
2689   done
2690 IFS=$as_save_IFS
2691
2692 } >&5
2693
2694 cat >&5 <<_ACEOF
2695
2696
2697 ## ----------- ##
2698 ## Core tests. ##
2699 ## ----------- ##
2700
2701 _ACEOF
2702
2703
2704 # Keep a trace of the command line.
2705 # Strip out --no-create and --no-recursion so they do not pile up.
2706 # Strip out --silent because we don't want to record it for future runs.
2707 # Also quote any args containing shell meta-characters.
2708 # Make two passes to allow for proper duplicate-argument suppression.
2709 ac_configure_args=
2710 ac_configure_args0=
2711 ac_configure_args1=
2712 ac_must_keep_next=false
2713 for ac_pass in 1 2
2714 do
2715   for ac_arg
2716   do
2717     case $ac_arg in
2718     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2719     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2720     | -silent | --silent | --silen | --sile | --sil)
2721       continue ;;
2722     *\'*)
2723       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2724     esac
2725     case $ac_pass in
2726     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2727     2)
2728       as_fn_append ac_configure_args1 " '$ac_arg'"
2729       if test $ac_must_keep_next = true; then
2730         ac_must_keep_next=false # Got value, back to normal.
2731       else
2732         case $ac_arg in
2733           *=* | --config-cache | -C | -disable-* | --disable-* \
2734           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2735           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2736           | -with-* | --with-* | -without-* | --without-* | --x)
2737             case "$ac_configure_args0 " in
2738               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2739             esac
2740             ;;
2741           -* ) ac_must_keep_next=true ;;
2742         esac
2743       fi
2744       as_fn_append ac_configure_args " '$ac_arg'"
2745       ;;
2746     esac
2747   done
2748 done
2749 { ac_configure_args0=; unset ac_configure_args0;}
2750 { ac_configure_args1=; unset ac_configure_args1;}
2751
2752 # When interrupted or exit'd, cleanup temporary files, and complete
2753 # config.log.  We remove comments because anyway the quotes in there
2754 # would cause problems or look ugly.
2755 # WARNING: Use '\'' to represent an apostrophe within the trap.
2756 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2757 trap 'exit_status=$?
2758   # Save into config.log some information that might help in debugging.
2759   {
2760     echo
2761
2762     cat <<\_ASBOX
2763 ## ---------------- ##
2764 ## Cache variables. ##
2765 ## ---------------- ##
2766 _ASBOX
2767     echo
2768     # The following way of writing the cache mishandles newlines in values,
2769 (
2770   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2771     eval ac_val=\$$ac_var
2772     case $ac_val in #(
2773     *${as_nl}*)
2774       case $ac_var in #(
2775       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2776 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2777       esac
2778       case $ac_var in #(
2779       _ | IFS | as_nl) ;; #(
2780       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2781       *) { eval $ac_var=; unset $ac_var;} ;;
2782       esac ;;
2783     esac
2784   done
2785   (set) 2>&1 |
2786     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2787     *${as_nl}ac_space=\ *)
2788       sed -n \
2789         "s/'\''/'\''\\\\'\'''\''/g;
2790           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2791       ;; #(
2792     *)
2793       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2794       ;;
2795     esac |
2796     sort
2797 )
2798     echo
2799
2800     cat <<\_ASBOX
2801 ## ----------------- ##
2802 ## Output variables. ##
2803 ## ----------------- ##
2804 _ASBOX
2805     echo
2806     for ac_var in $ac_subst_vars
2807     do
2808       eval ac_val=\$$ac_var
2809       case $ac_val in
2810       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2811       esac
2812       $as_echo "$ac_var='\''$ac_val'\''"
2813     done | sort
2814     echo
2815
2816     if test -n "$ac_subst_files"; then
2817       cat <<\_ASBOX
2818 ## ------------------- ##
2819 ## File substitutions. ##
2820 ## ------------------- ##
2821 _ASBOX
2822       echo
2823       for ac_var in $ac_subst_files
2824       do
2825         eval ac_val=\$$ac_var
2826         case $ac_val in
2827         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2828         esac
2829         $as_echo "$ac_var='\''$ac_val'\''"
2830       done | sort
2831       echo
2832     fi
2833
2834     if test -s confdefs.h; then
2835       cat <<\_ASBOX
2836 ## ----------- ##
2837 ## confdefs.h. ##
2838 ## ----------- ##
2839 _ASBOX
2840       echo
2841       cat confdefs.h
2842       echo
2843     fi
2844     test "$ac_signal" != 0 &&
2845       $as_echo "$as_me: caught signal $ac_signal"
2846     $as_echo "$as_me: exit $exit_status"
2847   } >&5
2848   rm -f core *.core core.conftest.* &&
2849     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2850     exit $exit_status
2851 ' 0
2852 for ac_signal in 1 2 13 15; do
2853   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2854 done
2855 ac_signal=0
2856
2857 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2858 rm -f -r conftest* confdefs.h
2859
2860 $as_echo "/* confdefs.h */" > confdefs.h
2861
2862 # Predefined preprocessor variables.
2863
2864 cat >>confdefs.h <<_ACEOF
2865 #define PACKAGE_NAME "$PACKAGE_NAME"
2866 _ACEOF
2867
2868 cat >>confdefs.h <<_ACEOF
2869 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2870 _ACEOF
2871
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2874 _ACEOF
2875
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_STRING "$PACKAGE_STRING"
2878 _ACEOF
2879
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2882 _ACEOF
2883
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_URL "$PACKAGE_URL"
2886 _ACEOF
2887
2888
2889 # Let the site file select an alternate cache file if it wants to.
2890 # Prefer an explicitly selected file to automatically selected ones.
2891 ac_site_file1=NONE
2892 ac_site_file2=NONE
2893 if test -n "$CONFIG_SITE"; then
2894   ac_site_file1=$CONFIG_SITE
2895 elif test "x$prefix" != xNONE; then
2896   ac_site_file1=$prefix/share/config.site
2897   ac_site_file2=$prefix/etc/config.site
2898 else
2899   ac_site_file1=$ac_default_prefix/share/config.site
2900   ac_site_file2=$ac_default_prefix/etc/config.site
2901 fi
2902 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2903 do
2904   test "x$ac_site_file" = xNONE && continue
2905   if test -r "$ac_site_file"; then
2906     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2907 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2908     sed 's/^/| /' "$ac_site_file" >&5
2909     . "$ac_site_file"
2910   fi
2911 done
2912
2913 if test -r "$cache_file"; then
2914   # Some versions of bash will fail to source /dev/null (special
2915   # files actually), so we avoid doing that.
2916   if test -f "$cache_file"; then
2917     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2918 $as_echo "$as_me: loading cache $cache_file" >&6;}
2919     case $cache_file in
2920       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2921       *)                      . "./$cache_file";;
2922     esac
2923   fi
2924 else
2925   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2926 $as_echo "$as_me: creating cache $cache_file" >&6;}
2927   >$cache_file
2928 fi
2929
2930 # Check that the precious variables saved in the cache have kept the same
2931 # value.
2932 ac_cache_corrupted=false
2933 for ac_var in $ac_precious_vars; do
2934   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2935   eval ac_new_set=\$ac_env_${ac_var}_set
2936   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2937   eval ac_new_val=\$ac_env_${ac_var}_value
2938   case $ac_old_set,$ac_new_set in
2939     set,)
2940       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2941 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2942       ac_cache_corrupted=: ;;
2943     ,set)
2944       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2945 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2946       ac_cache_corrupted=: ;;
2947     ,);;
2948     *)
2949       if test "x$ac_old_val" != "x$ac_new_val"; then
2950         # differences in whitespace do not lead to failure.
2951         ac_old_val_w=`echo x $ac_old_val`
2952         ac_new_val_w=`echo x $ac_new_val`
2953         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2954           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2955 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2956           ac_cache_corrupted=:
2957         else
2958           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2959 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2960           eval $ac_var=\$ac_old_val
2961         fi
2962         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2963 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2964         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2965 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2966       fi;;
2967   esac
2968   # Pass precious variables to config.status.
2969   if test "$ac_new_set" = set; then
2970     case $ac_new_val in
2971     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2972     *) ac_arg=$ac_var=$ac_new_val ;;
2973     esac
2974     case " $ac_configure_args " in
2975       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2976       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2977     esac
2978   fi
2979 done
2980 if $ac_cache_corrupted; then
2981   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2983   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2984 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2985   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2986 fi
2987 ## -------------------- ##
2988 ## Main body of script. ##
2989 ## -------------------- ##
2990
2991 ac_ext=c
2992 ac_cpp='$CPP $CPPFLAGS'
2993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2996
2997
2998
2999
3000
3001
3002 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3003
3004
3005 gcc_version=`cat $srcdir/BASE-VER`
3006
3007 # Determine the host, build, and target systems
3008 ac_aux_dir=
3009 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3010   for ac_t in install-sh install.sh shtool; do
3011     if test -f "$ac_dir/$ac_t"; then
3012       ac_aux_dir=$ac_dir
3013       ac_install_sh="$ac_aux_dir/$ac_t -c"
3014       break 2
3015     fi
3016   done
3017 done
3018 if test -z "$ac_aux_dir"; then
3019   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3020 fi
3021
3022 # These three variables are undocumented and unsupported,
3023 # and are intended to be withdrawn in a future Autoconf release.
3024 # They can cause serious problems if a builder's source tree is in a directory
3025 # whose full name contains unusual characters.
3026 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3027 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3028 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3029
3030
3031 # Make sure we can run config.sub.
3032 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3033   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3034
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3036 $as_echo_n "checking build system type... " >&6; }
3037 if test "${ac_cv_build+set}" = set; then :
3038   $as_echo_n "(cached) " >&6
3039 else
3040   ac_build_alias=$build_alias
3041 test "x$ac_build_alias" = x &&
3042   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3043 test "x$ac_build_alias" = x &&
3044   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3045 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3046   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3047
3048 fi
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3050 $as_echo "$ac_cv_build" >&6; }
3051 case $ac_cv_build in
3052 *-*-*) ;;
3053 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3054 esac
3055 build=$ac_cv_build
3056 ac_save_IFS=$IFS; IFS='-'
3057 set x $ac_cv_build
3058 shift
3059 build_cpu=$1
3060 build_vendor=$2
3061 shift; shift
3062 # Remember, the first character of IFS is used to create $*,
3063 # except with old shells:
3064 build_os=$*
3065 IFS=$ac_save_IFS
3066 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3067
3068
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3070 $as_echo_n "checking host system type... " >&6; }
3071 if test "${ac_cv_host+set}" = set; then :
3072   $as_echo_n "(cached) " >&6
3073 else
3074   if test "x$host_alias" = x; then
3075   ac_cv_host=$ac_cv_build
3076 else
3077   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3078     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3079 fi
3080
3081 fi
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3083 $as_echo "$ac_cv_host" >&6; }
3084 case $ac_cv_host in
3085 *-*-*) ;;
3086 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3087 esac
3088 host=$ac_cv_host
3089 ac_save_IFS=$IFS; IFS='-'
3090 set x $ac_cv_host
3091 shift
3092 host_cpu=$1
3093 host_vendor=$2
3094 shift; shift
3095 # Remember, the first character of IFS is used to create $*,
3096 # except with old shells:
3097 host_os=$*
3098 IFS=$ac_save_IFS
3099 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3100
3101
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3103 $as_echo_n "checking target system type... " >&6; }
3104 if test "${ac_cv_target+set}" = set; then :
3105   $as_echo_n "(cached) " >&6
3106 else
3107   if test "x$target_alias" = x; then
3108   ac_cv_target=$ac_cv_host
3109 else
3110   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3111     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3112 fi
3113
3114 fi
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3116 $as_echo "$ac_cv_target" >&6; }
3117 case $ac_cv_target in
3118 *-*-*) ;;
3119 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3120 esac
3121 target=$ac_cv_target
3122 ac_save_IFS=$IFS; IFS='-'
3123 set x $ac_cv_target
3124 shift
3125 target_cpu=$1
3126 target_vendor=$2
3127 shift; shift
3128 # Remember, the first character of IFS is used to create $*,
3129 # except with old shells:
3130 target_os=$*
3131 IFS=$ac_save_IFS
3132 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3133
3134
3135 # The aliases save the names the user supplied, while $host etc.
3136 # will get canonicalized.
3137 test -n "$target_alias" &&
3138   test "$program_prefix$program_suffix$program_transform_name" = \
3139     NONENONEs,x,x, &&
3140   program_prefix=${target_alias}-
3141
3142 # Determine the noncanonical target name, for directory use.
3143  case ${build_alias} in
3144   "") build_noncanonical=${build} ;;
3145   *) build_noncanonical=${build_alias} ;;
3146 esac
3147
3148  case ${host_alias} in
3149   "") host_noncanonical=${build_noncanonical} ;;
3150   *) host_noncanonical=${host_alias} ;;
3151 esac
3152
3153  case ${target_alias} in
3154   "") target_noncanonical=${host_noncanonical} ;;
3155   *) target_noncanonical=${target_alias} ;;
3156 esac
3157
3158
3159
3160
3161 # Determine the target- and build-specific subdirectories
3162
3163 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3164 # have matching libraries, they should use host libraries: Makefile.tpl
3165 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3166 # However, they still use the build modules, because the corresponding
3167 # host modules (e.g. bison) are only built for the host when bootstrap
3168 # finishes. So:
3169 # - build_subdir is where we find build modules, and never changes.
3170 # - build_libsubdir is where we find build libraries, and can be overridden.
3171
3172 # Prefix 'build-' so this never conflicts with target_subdir.
3173 build_subdir="build-${build_noncanonical}"
3174
3175 # Check whether --with-build-libsubdir was given.
3176 if test "${with_build_libsubdir+set}" = set; then :
3177   withval=$with_build_libsubdir; build_libsubdir="$withval"
3178 else
3179   build_libsubdir="$build_subdir"
3180 fi
3181
3182 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3183 if ( test $srcdir = . && test -d gcc ) \
3184    || test -d $srcdir/../host-${host_noncanonical}; then
3185   host_subdir="host-${host_noncanonical}"
3186 else
3187   host_subdir=.
3188 fi
3189 # No prefix.
3190 target_subdir=${target_noncanonical}
3191
3192
3193 # Set program_transform_name
3194 test "$program_prefix" != NONE &&
3195   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3196 # Use a double $ so make ignores it.
3197 test "$program_suffix" != NONE &&
3198   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3199 # Double any \ or $.
3200 # By default was `s,x,x', remove it if useless.
3201 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3202 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3203
3204
3205 # Check for bogus environment variables.
3206 # Test if LIBRARY_PATH contains the notation for the current directory
3207 # since this would lead to problems installing/building glibc.
3208 # LIBRARY_PATH contains the current directory if one of the following
3209 # is true:
3210 # - one of the terminals (":" and ";") is the first or last sign
3211 # - two terminals occur directly after each other
3212 # - the path contains an element with a dot in it
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3214 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3215 case ${LIBRARY_PATH} in
3216   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3217     library_path_setting="contains current directory"
3218     ;;
3219   *)
3220     library_path_setting="ok"
3221     ;;
3222 esac
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3224 $as_echo "$library_path_setting" >&6; }
3225 if test "$library_path_setting" != "ok"; then
3226 as_fn_error "
3227 *** LIBRARY_PATH shouldn't contain the current directory when
3228 *** building gcc. Please change the environment variable
3229 *** and run configure again." "$LINENO" 5
3230 fi
3231
3232 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3233 # since this would lead to problems installing/building glibc.
3234 # GCC_EXEC_PREFIX contains the current directory if one of the following
3235 # is true:
3236 # - one of the terminals (":" and ";") is the first or last sign
3237 # - two terminals occur directly after each other
3238 # - the path contains an element with a dot in it
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3240 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3241 case ${GCC_EXEC_PREFIX} in
3242   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3243     gcc_exec_prefix_setting="contains current directory"
3244     ;;
3245   *)
3246     gcc_exec_prefix_setting="ok"
3247     ;;
3248 esac
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3250 $as_echo "$gcc_exec_prefix_setting" >&6; }
3251 if test "$gcc_exec_prefix_setting" != "ok"; then
3252 as_fn_error "
3253 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3254 *** building gcc. Please change the environment variable
3255 *** and run configure again." "$LINENO" 5
3256 fi
3257
3258 # -----------
3259 # Directories
3260 # -----------
3261
3262 # Specify the local prefix
3263 local_prefix=
3264
3265 # Check whether --with-local-prefix was given.
3266 if test "${with_local_prefix+set}" = set; then :
3267   withval=$with_local_prefix; case "${withval}" in
3268 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3269 no)     ;;
3270 *)      local_prefix=$with_local_prefix ;;
3271 esac
3272 fi
3273
3274
3275 # Default local prefix if it is empty
3276 if test x$local_prefix = x; then
3277         local_prefix=/usr/local
3278 fi
3279
3280 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3281 # passed in by the toplevel make and thus we'd get different behavior
3282 # depending on where we built the sources.
3283 gcc_gxx_include_dir=
3284 # Specify the g++ header file directory
3285
3286 # Check whether --with-gxx-include-dir was given.
3287 if test "${with_gxx_include_dir+set}" = set; then :
3288   withval=$with_gxx_include_dir; case "${withval}" in
3289 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3290 no)     ;;
3291 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3292 esac
3293 fi
3294
3295
3296 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3297 if test x${gcc_gxx_include_dir} = x; then
3298   if test x${enable_version_specific_runtime_libs} = xyes; then
3299     gcc_gxx_include_dir='${libsubdir}/include/c++'
3300   else
3301     libstdcxx_incdir='include/c++/$(version)'
3302     if test x$host != x$target; then
3303        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3304     fi
3305     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3306   fi
3307 fi
3308
3309
3310 # Check whether --with-cpp_install_dir was given.
3311 if test "${with_cpp_install_dir+set}" = set; then :
3312   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3313   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3314 elif test x$withval != xno; then
3315   cpp_install_dir=$withval
3316 fi
3317 fi
3318
3319
3320 # We would like to our source tree to be readonly.  However when releases or
3321 # pre-releases are generated, the flex/bison generated files as well as the
3322 # various formats of manuals need to be included along with the rest of the
3323 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3324 # just that.
3325
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3327 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3328     # Check whether --enable-generated-files-in-srcdir was given.
3329 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3330   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3331 else
3332   generated_files_in_srcdir=no
3333 fi
3334
3335
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3337 $as_echo "$generated_files_in_srcdir" >&6; }
3338
3339 if test "$generated_files_in_srcdir" = "yes"; then
3340   GENINSRC=''
3341 else
3342   GENINSRC='#'
3343 fi
3344
3345
3346 # -------------------
3347 # Find default linker
3348 # -------------------
3349
3350 # With GNU ld
3351
3352 # Check whether --with-gnu-ld was given.
3353 if test "${with_gnu_ld+set}" = set; then :
3354   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3355 else
3356   gnu_ld_flag=no
3357 fi
3358
3359
3360 # With pre-defined ld
3361
3362 # Check whether --with-ld was given.
3363 if test "${with_ld+set}" = set; then :
3364   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3365 fi
3366
3367 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3368   if test ! -x "$DEFAULT_LINKER"; then
3369     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3370   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3371     gnu_ld_flag=yes
3372   fi
3373
3374 cat >>confdefs.h <<_ACEOF
3375 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3376 _ACEOF
3377
3378 fi
3379
3380 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3381
3382 cat >>confdefs.h <<_ACEOF
3383 #define HAVE_GNU_LD $gnu_ld
3384 _ACEOF
3385
3386
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3388 $as_echo_n "checking whether a default linker was specified... " >&6; }
3389 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3390   if test x"$gnu_ld_flag" = x"no"; then
3391     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3392 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3393   else
3394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3395 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3396   fi
3397 else
3398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3400 fi
3401
3402 # With demangler in GNU ld
3403
3404 # Check whether --with-demangler-in-ld was given.
3405 if test "${with_demangler_in_ld+set}" = set; then :
3406   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3407 else
3408   demangler_in_ld=no
3409 fi
3410
3411
3412 # ----------------------
3413 # Find default assembler
3414 # ----------------------
3415
3416 # With GNU as
3417
3418 # Check whether --with-gnu-as was given.
3419 if test "${with_gnu_as+set}" = set; then :
3420   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3421 else
3422   gas_flag=no
3423 fi
3424
3425
3426
3427 # Check whether --with-as was given.
3428 if test "${with_as+set}" = set; then :
3429   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3430 fi
3431
3432 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3433   if test ! -x "$DEFAULT_ASSEMBLER"; then
3434     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3435   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3436     gas_flag=yes
3437   fi
3438
3439 cat >>confdefs.h <<_ACEOF
3440 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3441 _ACEOF
3442
3443 fi
3444
3445 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3446
3447 cat >>confdefs.h <<_ACEOF
3448 #define HAVE_GNU_AS $gnu_as
3449 _ACEOF
3450
3451
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3453 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3454 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3455   if test x"$gas_flag" = x"no"; then
3456     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3457 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3458   else
3459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3460 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3461   fi
3462 else
3463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3465 fi
3466
3467 # ---------------
3468 # Find C compiler
3469 # ---------------
3470
3471 # If a non-executable a.out is present (e.g. created by GNU as above even if
3472 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3473 # file, even when creating an executable, so an execution test fails.
3474 # Remove possible default executable files to avoid this.
3475 #
3476 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3477 # Autoconf includes it.
3478 rm -f a.out a.exe b.out
3479
3480 # Find the native compiler
3481 ac_ext=c
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486 if test -n "$ac_tool_prefix"; then
3487   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3488 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3490 $as_echo_n "checking for $ac_word... " >&6; }
3491 if test "${ac_cv_prog_CC+set}" = set; then :
3492   $as_echo_n "(cached) " >&6
3493 else
3494   if test -n "$CC"; then
3495   ac_cv_prog_CC="$CC" # Let the user override the test.
3496 else
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH
3499 do
3500   IFS=$as_save_IFS
3501   test -z "$as_dir" && as_dir=.
3502     for ac_exec_ext in '' $ac_executable_extensions; do
3503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3504     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506     break 2
3507   fi
3508 done
3509   done
3510 IFS=$as_save_IFS
3511
3512 fi
3513 fi
3514 CC=$ac_cv_prog_CC
3515 if test -n "$CC"; then
3516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3517 $as_echo "$CC" >&6; }
3518 else
3519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 $as_echo "no" >&6; }
3521 fi
3522
3523
3524 fi
3525 if test -z "$ac_cv_prog_CC"; then
3526   ac_ct_CC=$CC
3527   # Extract the first word of "gcc", so it can be a program name with args.
3528 set dummy gcc; ac_word=$2
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530 $as_echo_n "checking for $ac_word... " >&6; }
3531 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3532   $as_echo_n "(cached) " >&6
3533 else
3534   if test -n "$ac_ct_CC"; then
3535   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3536 else
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH
3539 do
3540   IFS=$as_save_IFS
3541   test -z "$as_dir" && as_dir=.
3542     for ac_exec_ext in '' $ac_executable_extensions; do
3543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3544     ac_cv_prog_ac_ct_CC="gcc"
3545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546     break 2
3547   fi
3548 done
3549   done
3550 IFS=$as_save_IFS
3551
3552 fi
3553 fi
3554 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3555 if test -n "$ac_ct_CC"; then
3556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3557 $as_echo "$ac_ct_CC" >&6; }
3558 else
3559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 $as_echo "no" >&6; }
3561 fi
3562
3563   if test "x$ac_ct_CC" = x; then
3564     CC=""
3565   else
3566     case $cross_compiling:$ac_tool_warned in
3567 yes:)
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3570 ac_tool_warned=yes ;;
3571 esac
3572     CC=$ac_ct_CC
3573   fi
3574 else
3575   CC="$ac_cv_prog_CC"
3576 fi
3577
3578 if test -z "$CC"; then
3579           if test -n "$ac_tool_prefix"; then
3580     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3581 set dummy ${ac_tool_prefix}cc; ac_word=$2
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 $as_echo_n "checking for $ac_word... " >&6; }
3584 if test "${ac_cv_prog_CC+set}" = set; then :
3585   $as_echo_n "(cached) " >&6
3586 else
3587   if test -n "$CC"; then
3588   ac_cv_prog_CC="$CC" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595     for ac_exec_ext in '' $ac_executable_extensions; do
3596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597     ac_cv_prog_CC="${ac_tool_prefix}cc"
3598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602   done
3603 IFS=$as_save_IFS
3604
3605 fi
3606 fi
3607 CC=$ac_cv_prog_CC
3608 if test -n "$CC"; then
3609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3610 $as_echo "$CC" >&6; }
3611 else
3612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3614 fi
3615
3616
3617   fi
3618 fi
3619 if test -z "$CC"; then
3620   # Extract the first word of "cc", so it can be a program name with args.
3621 set dummy cc; ac_word=$2
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623 $as_echo_n "checking for $ac_word... " >&6; }
3624 if test "${ac_cv_prog_CC+set}" = set; then :
3625   $as_echo_n "(cached) " >&6
3626 else
3627   if test -n "$CC"; then
3628   ac_cv_prog_CC="$CC" # Let the user override the test.
3629 else
3630   ac_prog_rejected=no
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH
3633 do
3634   IFS=$as_save_IFS
3635   test -z "$as_dir" && as_dir=.
3636     for ac_exec_ext in '' $ac_executable_extensions; do
3637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3638     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3639        ac_prog_rejected=yes
3640        continue
3641      fi
3642     ac_cv_prog_CC="cc"
3643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3644     break 2
3645   fi
3646 done
3647   done
3648 IFS=$as_save_IFS
3649
3650 if test $ac_prog_rejected = yes; then
3651   # We found a bogon in the path, so make sure we never use it.
3652   set dummy $ac_cv_prog_CC
3653   shift
3654   if test $# != 0; then
3655     # We chose a different compiler from the bogus one.
3656     # However, it has the same basename, so the bogon will be chosen
3657     # first if we set CC to just the basename; use the full file name.
3658     shift
3659     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3660   fi
3661 fi
3662 fi
3663 fi
3664 CC=$ac_cv_prog_CC
3665 if test -n "$CC"; then
3666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3667 $as_echo "$CC" >&6; }
3668 else
3669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3670 $as_echo "no" >&6; }
3671 fi
3672
3673
3674 fi
3675 if test -z "$CC"; then
3676   if test -n "$ac_tool_prefix"; then
3677   for ac_prog in cl.exe
3678   do
3679     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3680 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682 $as_echo_n "checking for $ac_word... " >&6; }
3683 if test "${ac_cv_prog_CC+set}" = set; then :
3684   $as_echo_n "(cached) " >&6
3685 else
3686   if test -n "$CC"; then
3687   ac_cv_prog_CC="$CC" # Let the user override the test.
3688 else
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3691 do
3692   IFS=$as_save_IFS
3693   test -z "$as_dir" && as_dir=.
3694     for ac_exec_ext in '' $ac_executable_extensions; do
3695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3696     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3698     break 2
3699   fi
3700 done
3701   done
3702 IFS=$as_save_IFS
3703
3704 fi
3705 fi
3706 CC=$ac_cv_prog_CC
3707 if test -n "$CC"; then
3708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3709 $as_echo "$CC" >&6; }
3710 else
3711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 fi
3714
3715
3716     test -n "$CC" && break
3717   done
3718 fi
3719 if test -z "$CC"; then
3720   ac_ct_CC=$CC
3721   for ac_prog in cl.exe
3722 do
3723   # Extract the first word of "$ac_prog", so it can be a program name with args.
3724 set dummy $ac_prog; ac_word=$2
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726 $as_echo_n "checking for $ac_word... " >&6; }
3727 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3728   $as_echo_n "(cached) " >&6
3729 else
3730   if test -n "$ac_ct_CC"; then
3731   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3732 else
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3735 do
3736   IFS=$as_save_IFS
3737   test -z "$as_dir" && as_dir=.
3738     for ac_exec_ext in '' $ac_executable_extensions; do
3739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3740     ac_cv_prog_ac_ct_CC="$ac_prog"
3741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3742     break 2
3743   fi
3744 done
3745   done
3746 IFS=$as_save_IFS
3747
3748 fi
3749 fi
3750 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3751 if test -n "$ac_ct_CC"; then
3752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3753 $as_echo "$ac_ct_CC" >&6; }
3754 else
3755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756 $as_echo "no" >&6; }
3757 fi
3758
3759
3760   test -n "$ac_ct_CC" && break
3761 done
3762
3763   if test "x$ac_ct_CC" = x; then
3764     CC=""
3765   else
3766     case $cross_compiling:$ac_tool_warned in
3767 yes:)
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3770 ac_tool_warned=yes ;;
3771 esac
3772     CC=$ac_ct_CC
3773   fi
3774 fi
3775
3776 fi
3777
3778
3779 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3781 as_fn_error "no acceptable C compiler found in \$PATH
3782 See \`config.log' for more details." "$LINENO" 5; }
3783
3784 # Provide some information about the compiler.
3785 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3786 set X $ac_compile
3787 ac_compiler=$2
3788 for ac_option in --version -v -V -qversion; do
3789   { { ac_try="$ac_compiler $ac_option >&5"
3790 case "(($ac_try" in
3791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792   *) ac_try_echo=$ac_try;;
3793 esac
3794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3795 $as_echo "$ac_try_echo"; } >&5
3796   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3797   ac_status=$?
3798   if test -s conftest.err; then
3799     sed '10a\
3800 ... rest of stderr output deleted ...
3801          10q' conftest.err >conftest.er1
3802     cat conftest.er1 >&5
3803     rm -f conftest.er1 conftest.err
3804   fi
3805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806   test $ac_status = 0; }
3807 done
3808
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h.  */
3811
3812 int
3813 main ()
3814 {
3815
3816   ;
3817   return 0;
3818 }
3819 _ACEOF
3820 ac_clean_files_save=$ac_clean_files
3821 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3822 # Try to create an executable without -o first, disregard a.out.
3823 # It will help us diagnose broken compilers, and finding out an intuition
3824 # of exeext.
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3826 $as_echo_n "checking for C compiler default output file name... " >&6; }
3827 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3828
3829 # The possible output files:
3830 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3831
3832 ac_rmfiles=
3833 for ac_file in $ac_files
3834 do
3835   case $ac_file in
3836     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3837     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3838   esac
3839 done
3840 rm -f $ac_rmfiles
3841
3842 if { { ac_try="$ac_link_default"
3843 case "(($ac_try" in
3844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845   *) ac_try_echo=$ac_try;;
3846 esac
3847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3848 $as_echo "$ac_try_echo"; } >&5
3849   (eval "$ac_link_default") 2>&5
3850   ac_status=$?
3851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3852   test $ac_status = 0; }; then :
3853   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3854 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3855 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3856 # so that the user can short-circuit this test for compilers unknown to
3857 # Autoconf.
3858 for ac_file in $ac_files ''
3859 do
3860   test -f "$ac_file" || continue
3861   case $ac_file in
3862     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3863         ;;
3864     [ab].out )
3865         # We found the default executable, but exeext='' is most
3866         # certainly right.
3867         break;;
3868     *.* )
3869         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3870         then :; else
3871            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3872         fi
3873         # We set ac_cv_exeext here because the later test for it is not
3874         # safe: cross compilers may not add the suffix if given an `-o'
3875         # argument, so we may need to know it at that point already.
3876         # Even if this section looks crufty: it has the advantage of
3877         # actually working.
3878         break;;
3879     * )
3880         break;;
3881   esac
3882 done
3883 test "$ac_cv_exeext" = no && ac_cv_exeext=
3884
3885 else
3886   ac_file=''
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3889 $as_echo "$ac_file" >&6; }
3890 if test -z "$ac_file"; then :
3891   $as_echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3893
3894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3896 { as_fn_set_status 77
3897 as_fn_error "C compiler cannot create executables
3898 See \`config.log' for more details." "$LINENO" 5; }; }
3899 fi
3900 ac_exeext=$ac_cv_exeext
3901
3902 # Check that the compiler produces executables we can run.  If not, either
3903 # the compiler is broken, or we cross compile.
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3905 $as_echo_n "checking whether the C compiler works... " >&6; }
3906 # If not cross compiling, check that we can run a simple program.
3907 if test "$cross_compiling" != yes; then
3908   if { ac_try='./$ac_file'
3909   { { case "(($ac_try" in
3910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911   *) ac_try_echo=$ac_try;;
3912 esac
3913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3914 $as_echo "$ac_try_echo"; } >&5
3915   (eval "$ac_try") 2>&5
3916   ac_status=$?
3917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918   test $ac_status = 0; }; }; then
3919     cross_compiling=no
3920   else
3921     if test "$cross_compiling" = maybe; then
3922         cross_compiling=yes
3923     else
3924         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3926 as_fn_error "cannot run C compiled programs.
3927 If you meant to cross compile, use \`--host'.
3928 See \`config.log' for more details." "$LINENO" 5; }
3929     fi
3930   fi
3931 fi
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3933 $as_echo "yes" >&6; }
3934
3935 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3936 ac_clean_files=$ac_clean_files_save
3937 # Check that the compiler produces executables we can run.  If not, either
3938 # the compiler is broken, or we cross compile.
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3940 $as_echo_n "checking whether we are cross compiling... " >&6; }
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3942 $as_echo "$cross_compiling" >&6; }
3943
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3945 $as_echo_n "checking for suffix of executables... " >&6; }
3946 if { { ac_try="$ac_link"
3947 case "(($ac_try" in
3948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949   *) ac_try_echo=$ac_try;;
3950 esac
3951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3952 $as_echo "$ac_try_echo"; } >&5
3953   (eval "$ac_link") 2>&5
3954   ac_status=$?
3955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956   test $ac_status = 0; }; then :
3957   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3958 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3959 # work properly (i.e., refer to `conftest.exe'), while it won't with
3960 # `rm'.
3961 for ac_file in conftest.exe conftest conftest.*; do
3962   test -f "$ac_file" || continue
3963   case $ac_file in
3964     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3965     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3966           break;;
3967     * ) break;;
3968   esac
3969 done
3970 else
3971   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3973 as_fn_error "cannot compute suffix of executables: cannot compile and link
3974 See \`config.log' for more details." "$LINENO" 5; }
3975 fi
3976 rm -f conftest$ac_cv_exeext
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3978 $as_echo "$ac_cv_exeext" >&6; }
3979
3980 rm -f conftest.$ac_ext
3981 EXEEXT=$ac_cv_exeext
3982 ac_exeext=$EXEEXT
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3984 $as_echo_n "checking for suffix of object files... " >&6; }
3985 if test "${ac_cv_objext+set}" = set; then :
3986   $as_echo_n "(cached) " >&6
3987 else
3988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h.  */
3990
3991 int
3992 main ()
3993 {
3994
3995   ;
3996   return 0;
3997 }
3998 _ACEOF
3999 rm -f conftest.o conftest.obj
4000 if { { ac_try="$ac_compile"
4001 case "(($ac_try" in
4002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003   *) ac_try_echo=$ac_try;;
4004 esac
4005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006 $as_echo "$ac_try_echo"; } >&5
4007   (eval "$ac_compile") 2>&5
4008   ac_status=$?
4009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010   test $ac_status = 0; }; then :
4011   for ac_file in conftest.o conftest.obj conftest.*; do
4012   test -f "$ac_file" || continue;
4013   case $ac_file in
4014     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4015     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4016        break;;
4017   esac
4018 done
4019 else
4020   $as_echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4022
4023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025 as_fn_error "cannot compute suffix of object files: cannot compile
4026 See \`config.log' for more details." "$LINENO" 5; }
4027 fi
4028 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4029 fi
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4031 $as_echo "$ac_cv_objext" >&6; }
4032 OBJEXT=$ac_cv_objext
4033 ac_objext=$OBJEXT
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4035 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4036 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4037   $as_echo_n "(cached) " >&6
4038 else
4039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h.  */
4041
4042 int
4043 main ()
4044 {
4045 #ifndef __GNUC__
4046        choke me
4047 #endif
4048
4049   ;
4050   return 0;
4051 }
4052 _ACEOF
4053 if ac_fn_c_try_compile "$LINENO"; then :
4054   ac_compiler_gnu=yes
4055 else
4056   ac_compiler_gnu=no
4057 fi
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4060
4061 fi
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4063 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4064 if test $ac_compiler_gnu = yes; then
4065   GCC=yes
4066 else
4067   GCC=
4068 fi
4069 ac_test_CFLAGS=${CFLAGS+set}
4070 ac_save_CFLAGS=$CFLAGS
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4072 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4073 if test "${ac_cv_prog_cc_g+set}" = set; then :
4074   $as_echo_n "(cached) " >&6
4075 else
4076   ac_save_c_werror_flag=$ac_c_werror_flag
4077    ac_c_werror_flag=yes
4078    ac_cv_prog_cc_g=no
4079    CFLAGS="-g"
4080    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h.  */
4082
4083 int
4084 main ()
4085 {
4086
4087   ;
4088   return 0;
4089 }
4090 _ACEOF
4091 if ac_fn_c_try_compile "$LINENO"; then :
4092   ac_cv_prog_cc_g=yes
4093 else
4094   CFLAGS=""
4095       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h.  */
4097
4098 int
4099 main ()
4100 {
4101
4102   ;
4103   return 0;
4104 }
4105 _ACEOF
4106 if ac_fn_c_try_compile "$LINENO"; then :
4107
4108 else
4109   ac_c_werror_flag=$ac_save_c_werror_flag
4110          CFLAGS="-g"
4111          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h.  */
4113
4114 int
4115 main ()
4116 {
4117
4118   ;
4119   return 0;
4120 }
4121 _ACEOF
4122 if ac_fn_c_try_compile "$LINENO"; then :
4123   ac_cv_prog_cc_g=yes
4124 fi
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 fi
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 fi
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130    ac_c_werror_flag=$ac_save_c_werror_flag
4131 fi
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4133 $as_echo "$ac_cv_prog_cc_g" >&6; }
4134 if test "$ac_test_CFLAGS" = set; then
4135   CFLAGS=$ac_save_CFLAGS
4136 elif test $ac_cv_prog_cc_g = yes; then
4137   if test "$GCC" = yes; then
4138     CFLAGS="-g -O2"
4139   else
4140     CFLAGS="-g"
4141   fi
4142 else
4143   if test "$GCC" = yes; then
4144     CFLAGS="-O2"
4145   else
4146     CFLAGS=
4147   fi
4148 fi
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4150 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4151 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4152   $as_echo_n "(cached) " >&6
4153 else
4154   ac_cv_prog_cc_c89=no
4155 ac_save_CC=$CC
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h.  */
4158 #include <stdarg.h>
4159 #include <stdio.h>
4160 #include <sys/types.h>
4161 #include <sys/stat.h>
4162 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4163 struct buf { int x; };
4164 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4165 static char *e (p, i)
4166      char **p;
4167      int i;
4168 {
4169   return p[i];
4170 }
4171 static char *f (char * (*g) (char **, int), char **p, ...)
4172 {
4173   char *s;
4174   va_list v;
4175   va_start (v,p);
4176   s = g (p, va_arg (v,int));
4177   va_end (v);
4178   return s;
4179 }
4180
4181 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4182    function prototypes and stuff, but not '\xHH' hex character constants.
4183    These don't provoke an error unfortunately, instead are silently treated
4184    as 'x'.  The following induces an error, until -std is added to get
4185    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4186    array size at least.  It's necessary to write '\x00'==0 to get something
4187    that's true only with -std.  */
4188 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4189
4190 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4191    inside strings and character constants.  */
4192 #define FOO(x) 'x'
4193 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4194
4195 int test (int i, double x);
4196 struct s1 {int (*f) (int a);};
4197 struct s2 {int (*f) (double a);};
4198 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4199 int argc;
4200 char **argv;
4201 int
4202 main ()
4203 {
4204 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4205   ;
4206   return 0;
4207 }
4208 _ACEOF
4209 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4210         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4211 do
4212   CC="$ac_save_CC $ac_arg"
4213   if ac_fn_c_try_compile "$LINENO"; then :
4214   ac_cv_prog_cc_c89=$ac_arg
4215 fi
4216 rm -f core conftest.err conftest.$ac_objext
4217   test "x$ac_cv_prog_cc_c89" != "xno" && break
4218 done
4219 rm -f conftest.$ac_ext
4220 CC=$ac_save_CC
4221
4222 fi
4223 # AC_CACHE_VAL
4224 case "x$ac_cv_prog_cc_c89" in
4225   x)
4226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4227 $as_echo "none needed" >&6; } ;;
4228   xno)
4229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4230 $as_echo "unsupported" >&6; } ;;
4231   *)
4232     CC="$CC $ac_cv_prog_cc_c89"
4233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4234 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4235 esac
4236 if test "x$ac_cv_prog_cc_c89" != xno; then :
4237
4238 fi
4239
4240 ac_ext=c
4241 ac_cpp='$CPP $CPPFLAGS'
4242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245
4246 if test "x$CC" != xcc; then
4247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4248 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4249 else
4250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4251 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4252 fi
4253 set dummy $CC; ac_cc=`$as_echo "$2" |
4254                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4255 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4256   $as_echo_n "(cached) " >&6
4257 else
4258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h.  */
4260
4261 int
4262 main ()
4263 {
4264
4265   ;
4266   return 0;
4267 }
4268 _ACEOF
4269 # Make sure it works both with $CC and with simple cc.
4270 # We do the test twice because some compilers refuse to overwrite an
4271 # existing .o file with -o, though they will create one.
4272 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4273 rm -f conftest2.*
4274 if { { case "(($ac_try" in
4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276   *) ac_try_echo=$ac_try;;
4277 esac
4278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4279 $as_echo "$ac_try_echo"; } >&5
4280   (eval "$ac_try") 2>&5
4281   ac_status=$?
4282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283   test $ac_status = 0; } &&
4284    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286   *) ac_try_echo=$ac_try;;
4287 esac
4288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 $as_echo "$ac_try_echo"; } >&5
4290   (eval "$ac_try") 2>&5
4291   ac_status=$?
4292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293   test $ac_status = 0; };
4294 then
4295   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4296   if test "x$CC" != xcc; then
4297     # Test first that cc exists at all.
4298     if { ac_try='cc -c conftest.$ac_ext >&5'
4299   { { case "(($ac_try" in
4300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301   *) ac_try_echo=$ac_try;;
4302 esac
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305   (eval "$ac_try") 2>&5
4306   ac_status=$?
4307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308   test $ac_status = 0; }; }; then
4309       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4310       rm -f conftest2.*
4311       if { { case "(($ac_try" in
4312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313   *) ac_try_echo=$ac_try;;
4314 esac
4315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4316 $as_echo "$ac_try_echo"; } >&5
4317   (eval "$ac_try") 2>&5
4318   ac_status=$?
4319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320   test $ac_status = 0; } &&
4321          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323   *) ac_try_echo=$ac_try;;
4324 esac
4325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4326 $as_echo "$ac_try_echo"; } >&5
4327   (eval "$ac_try") 2>&5
4328   ac_status=$?
4329   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330   test $ac_status = 0; };
4331       then
4332         # cc works too.
4333         :
4334       else
4335         # cc exists but doesn't like -o.
4336         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4337       fi
4338     fi
4339   fi
4340 else
4341   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4342 fi
4343 rm -f core conftest*
4344
4345 fi
4346 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4348 $as_echo "yes" >&6; }
4349 else
4350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4352
4353 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4354
4355 fi
4356
4357 # expand $ac_aux_dir to an absolute path
4358 am_aux_dir=`cd $ac_aux_dir && pwd`
4359
4360 # FIXME: we rely on the cache variable name because
4361 # there is no other way.
4362 set dummy $CC
4363 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4364 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4365 if test "$am_t" != yes; then
4366    # Losing compiler, so override with the script.
4367    # FIXME: It is wrong to rewrite CC.
4368    # But if we don't then we get into trouble of one sort or another.
4369    # A longer-term fix would be to have automake use am__CC in this case,
4370    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4371    CC="$am_aux_dir/compile $CC"
4372 fi
4373
4374
4375 ac_ext=cpp
4376 ac_cpp='$CXXCPP $CPPFLAGS'
4377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4380 if test -z "$CXX"; then
4381   if test -n "$CCC"; then
4382     CXX=$CCC
4383   else
4384     if test -n "$ac_tool_prefix"; then
4385   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4386   do
4387     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390 $as_echo_n "checking for $ac_word... " >&6; }
4391 if test "${ac_cv_prog_CXX+set}" = set; then :
4392   $as_echo_n "(cached) " >&6
4393 else
4394   if test -n "$CXX"; then
4395   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400   IFS=$as_save_IFS
4401   test -z "$as_dir" && as_dir=.
4402     for ac_exec_ext in '' $ac_executable_extensions; do
4403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406     break 2
4407   fi
4408 done
4409   done
4410 IFS=$as_save_IFS
4411
4412 fi
4413 fi
4414 CXX=$ac_cv_prog_CXX
4415 if test -n "$CXX"; then
4416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4417 $as_echo "$CXX" >&6; }
4418 else
4419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4421 fi
4422
4423
4424     test -n "$CXX" && break
4425   done
4426 fi
4427 if test -z "$CXX"; then
4428   ac_ct_CXX=$CXX
4429   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4430 do
4431   # Extract the first word of "$ac_prog", so it can be a program name with args.
4432 set dummy $ac_prog; ac_word=$2
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4436   $as_echo_n "(cached) " >&6
4437 else
4438   if test -n "$ac_ct_CXX"; then
4439   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4440 else
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4443 do
4444   IFS=$as_save_IFS
4445   test -z "$as_dir" && as_dir=.
4446     for ac_exec_ext in '' $ac_executable_extensions; do
4447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4448     ac_cv_prog_ac_ct_CXX="$ac_prog"
4449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450     break 2
4451   fi
4452 done
4453   done
4454 IFS=$as_save_IFS
4455
4456 fi
4457 fi
4458 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4459 if test -n "$ac_ct_CXX"; then
4460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4461 $as_echo "$ac_ct_CXX" >&6; }
4462 else
4463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464 $as_echo "no" >&6; }
4465 fi
4466
4467
4468   test -n "$ac_ct_CXX" && break
4469 done
4470
4471   if test "x$ac_ct_CXX" = x; then
4472     CXX="g++"
4473   else
4474     case $cross_compiling:$ac_tool_warned in
4475 yes:)
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4478 ac_tool_warned=yes ;;
4479 esac
4480     CXX=$ac_ct_CXX
4481   fi
4482 fi
4483
4484   fi
4485 fi
4486 # Provide some information about the compiler.
4487 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4488 set X $ac_compile
4489 ac_compiler=$2
4490 for ac_option in --version -v -V -qversion; do
4491   { { ac_try="$ac_compiler $ac_option >&5"
4492 case "(($ac_try" in
4493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494   *) ac_try_echo=$ac_try;;
4495 esac
4496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4497 $as_echo "$ac_try_echo"; } >&5
4498   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4499   ac_status=$?
4500   if test -s conftest.err; then
4501     sed '10a\
4502 ... rest of stderr output deleted ...
4503          10q' conftest.err >conftest.er1
4504     cat conftest.er1 >&5
4505     rm -f conftest.er1 conftest.err
4506   fi
4507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508   test $ac_status = 0; }
4509 done
4510
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4512 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4513 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4514   $as_echo_n "(cached) " >&6
4515 else
4516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h.  */
4518
4519 int
4520 main ()
4521 {
4522 #ifndef __GNUC__
4523        choke me
4524 #endif
4525
4526   ;
4527   return 0;
4528 }
4529 _ACEOF
4530 if ac_fn_cxx_try_compile "$LINENO"; then :
4531   ac_compiler_gnu=yes
4532 else
4533   ac_compiler_gnu=no
4534 fi
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4537
4538 fi
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4540 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4541 if test $ac_compiler_gnu = yes; then
4542   GXX=yes
4543 else
4544   GXX=
4545 fi
4546 ac_test_CXXFLAGS=${CXXFLAGS+set}
4547 ac_save_CXXFLAGS=$CXXFLAGS
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4549 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4550 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4551   $as_echo_n "(cached) " >&6
4552 else
4553   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4554    ac_cxx_werror_flag=yes
4555    ac_cv_prog_cxx_g=no
4556    CXXFLAGS="-g"
4557    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h.  */
4559
4560 int
4561 main ()
4562 {
4563
4564   ;
4565   return 0;
4566 }
4567 _ACEOF
4568 if ac_fn_cxx_try_compile "$LINENO"; then :
4569   ac_cv_prog_cxx_g=yes
4570 else
4571   CXXFLAGS=""
4572       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h.  */
4574
4575 int
4576 main ()
4577 {
4578
4579   ;
4580   return 0;
4581 }
4582 _ACEOF
4583 if ac_fn_cxx_try_compile "$LINENO"; then :
4584
4585 else
4586   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4587          CXXFLAGS="-g"
4588          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h.  */
4590
4591 int
4592 main ()
4593 {
4594
4595   ;
4596   return 0;
4597 }
4598 _ACEOF
4599 if ac_fn_cxx_try_compile "$LINENO"; then :
4600   ac_cv_prog_cxx_g=yes
4601 fi
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 fi
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 fi
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4608 fi
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4610 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4611 if test "$ac_test_CXXFLAGS" = set; then
4612   CXXFLAGS=$ac_save_CXXFLAGS
4613 elif test $ac_cv_prog_cxx_g = yes; then
4614   if test "$GXX" = yes; then
4615     CXXFLAGS="-g -O2"
4616   else
4617     CXXFLAGS="-g"
4618   fi
4619 else
4620   if test "$GXX" = yes; then
4621     CXXFLAGS="-O2"
4622   else
4623     CXXFLAGS=
4624   fi
4625 fi
4626 ac_ext=c
4627 ac_cpp='$CPP $CPPFLAGS'
4628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631
4632
4633
4634
4635 if test -n "$ac_tool_prefix"; then
4636   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4637 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4641   $as_echo_n "(cached) " >&6
4642 else
4643   if test -n "$GNATBIND"; then
4644   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649   IFS=$as_save_IFS
4650   test -z "$as_dir" && as_dir=.
4651     for ac_exec_ext in '' $ac_executable_extensions; do
4652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4653     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655     break 2
4656   fi
4657 done
4658   done
4659 IFS=$as_save_IFS
4660
4661 fi
4662 fi
4663 GNATBIND=$ac_cv_prog_GNATBIND
4664 if test -n "$GNATBIND"; then
4665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4666 $as_echo "$GNATBIND" >&6; }
4667 else
4668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4670 fi
4671
4672
4673 fi
4674 if test -z "$ac_cv_prog_GNATBIND"; then
4675   ac_ct_GNATBIND=$GNATBIND
4676   # Extract the first word of "gnatbind", so it can be a program name with args.
4677 set dummy gnatbind; ac_word=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4681   $as_echo_n "(cached) " >&6
4682 else
4683   if test -n "$ac_ct_GNATBIND"; then
4684   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689   IFS=$as_save_IFS
4690   test -z "$as_dir" && as_dir=.
4691     for ac_exec_ext in '' $ac_executable_extensions; do
4692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695     break 2
4696   fi
4697 done
4698   done
4699 IFS=$as_save_IFS
4700
4701 fi
4702 fi
4703 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4704 if test -n "$ac_ct_GNATBIND"; then
4705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4706 $as_echo "$ac_ct_GNATBIND" >&6; }
4707 else
4708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 $as_echo "no" >&6; }
4710 fi
4711
4712   if test "x$ac_ct_GNATBIND" = x; then
4713     GNATBIND="no"
4714   else
4715     case $cross_compiling:$ac_tool_warned in
4716 yes:)
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4719 ac_tool_warned=yes ;;
4720 esac
4721     GNATBIND=$ac_ct_GNATBIND
4722   fi
4723 else
4724   GNATBIND="$ac_cv_prog_GNATBIND"
4725 fi
4726
4727 if test -n "$ac_tool_prefix"; then
4728   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4729 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4731 $as_echo_n "checking for $ac_word... " >&6; }
4732 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4733   $as_echo_n "(cached) " >&6
4734 else
4735   if test -n "$GNATMAKE"; then
4736   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4737 else
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4740 do
4741   IFS=$as_save_IFS
4742   test -z "$as_dir" && as_dir=.
4743     for ac_exec_ext in '' $ac_executable_extensions; do
4744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4745     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747     break 2
4748   fi
4749 done
4750   done
4751 IFS=$as_save_IFS
4752
4753 fi
4754 fi
4755 GNATMAKE=$ac_cv_prog_GNATMAKE
4756 if test -n "$GNATMAKE"; then
4757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4758 $as_echo "$GNATMAKE" >&6; }
4759 else
4760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761 $as_echo "no" >&6; }
4762 fi
4763
4764
4765 fi
4766 if test -z "$ac_cv_prog_GNATMAKE"; then
4767   ac_ct_GNATMAKE=$GNATMAKE
4768   # Extract the first word of "gnatmake", so it can be a program name with args.
4769 set dummy gnatmake; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4773   $as_echo_n "(cached) " >&6
4774 else
4775   if test -n "$ac_ct_GNATMAKE"; then
4776   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4777 else
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 for as_dir in $PATH
4780 do
4781   IFS=$as_save_IFS
4782   test -z "$as_dir" && as_dir=.
4783     for ac_exec_ext in '' $ac_executable_extensions; do
4784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787     break 2
4788   fi
4789 done
4790   done
4791 IFS=$as_save_IFS
4792
4793 fi
4794 fi
4795 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4796 if test -n "$ac_ct_GNATMAKE"; then
4797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4798 $as_echo "$ac_ct_GNATMAKE" >&6; }
4799 else
4800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4802 fi
4803
4804   if test "x$ac_ct_GNATMAKE" = x; then
4805     GNATMAKE="no"
4806   else
4807     case $cross_compiling:$ac_tool_warned in
4808 yes:)
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4811 ac_tool_warned=yes ;;
4812 esac
4813     GNATMAKE=$ac_ct_GNATMAKE
4814   fi
4815 else
4816   GNATMAKE="$ac_cv_prog_GNATMAKE"
4817 fi
4818
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4820 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4821 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4822   $as_echo_n "(cached) " >&6
4823 else
4824   cat >conftest.adb <<EOF
4825 procedure conftest is begin null; end conftest;
4826 EOF
4827 acx_cv_cc_gcc_supports_ada=no
4828 # There is a bug in old released versions of GCC which causes the
4829 # driver to exit successfully when the appropriate language module
4830 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4831 # Therefore we must check for the error message as well as an
4832 # unsuccessful exit.
4833 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4834 # given a .adb file, but produce no object file.  So we must check
4835 # if an object file was really produced to guard against this.
4836 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4837 if test x"$errors" = x && test -f conftest.$ac_objext; then
4838   acx_cv_cc_gcc_supports_ada=yes
4839 fi
4840 rm -f conftest.*
4841 fi
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4843 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4844
4845 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4846   have_gnat=yes
4847 else
4848   have_gnat=no
4849 fi
4850
4851
4852 # autoconf is lame and doesn't give us any substitution variable for this.
4853 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4854   NO_MINUS_C_MINUS_O=yes
4855 else
4856   OUTPUT_OPTION='-o $@'
4857 fi
4858
4859
4860
4861 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4862 # optimizations to be activated explicitly by the toplevel.
4863 case "$CC" in
4864   */prev-gcc/xgcc*) ;;
4865   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4866 esac
4867
4868
4869 # -------------------------
4870 # Check C compiler features
4871 # -------------------------
4872
4873
4874 ac_ext=c
4875 ac_cpp='$CPP $CPPFLAGS'
4876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4880 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4881 # On Suns, sometimes $CPP names a directory.
4882 if test -n "$CPP" && test -d "$CPP"; then
4883   CPP=
4884 fi
4885 if test -z "$CPP"; then
4886   if test "${ac_cv_prog_CPP+set}" = set; then :
4887   $as_echo_n "(cached) " >&6
4888 else
4889       # Double quotes because CPP needs to be expanded
4890     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4891     do
4892       ac_preproc_ok=false
4893 for ac_c_preproc_warn_flag in '' yes
4894 do
4895   # Use a header file that comes with gcc, so configuring glibc
4896   # with a fresh cross-compiler works.
4897   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4898   # <limits.h> exists even on freestanding compilers.
4899   # On the NeXT, cc -E runs the code through the compiler's parser,
4900   # not just through cpp. "Syntax error" is here to catch this case.
4901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h.  */
4903 #ifdef __STDC__
4904 # include <limits.h>
4905 #else
4906 # include <assert.h>
4907 #endif
4908                      Syntax error
4909 _ACEOF
4910 if ac_fn_c_try_cpp "$LINENO"; then :
4911
4912 else
4913   # Broken: fails on valid input.
4914 continue
4915 fi
4916 rm -f conftest.err conftest.$ac_ext
4917
4918   # OK, works on sane cases.  Now check whether nonexistent headers
4919   # can be detected and how.
4920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h.  */
4922 #include <ac_nonexistent.h>
4923 _ACEOF
4924 if ac_fn_c_try_cpp "$LINENO"; then :
4925   # Broken: success on invalid input.
4926 continue
4927 else
4928   # Passes both tests.
4929 ac_preproc_ok=:
4930 break
4931 fi
4932 rm -f conftest.err conftest.$ac_ext
4933
4934 done
4935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4936 rm -f conftest.err conftest.$ac_ext
4937 if $ac_preproc_ok; then :
4938   break
4939 fi
4940
4941     done
4942     ac_cv_prog_CPP=$CPP
4943
4944 fi
4945   CPP=$ac_cv_prog_CPP
4946 else
4947   ac_cv_prog_CPP=$CPP
4948 fi
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4950 $as_echo "$CPP" >&6; }
4951 ac_preproc_ok=false
4952 for ac_c_preproc_warn_flag in '' yes
4953 do
4954   # Use a header file that comes with gcc, so configuring glibc
4955   # with a fresh cross-compiler works.
4956   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4957   # <limits.h> exists even on freestanding compilers.
4958   # On the NeXT, cc -E runs the code through the compiler's parser,
4959   # not just through cpp. "Syntax error" is here to catch this case.
4960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h.  */
4962 #ifdef __STDC__
4963 # include <limits.h>
4964 #else
4965 # include <assert.h>
4966 #endif
4967                      Syntax error
4968 _ACEOF
4969 if ac_fn_c_try_cpp "$LINENO"; then :
4970
4971 else
4972   # Broken: fails on valid input.
4973 continue
4974 fi
4975 rm -f conftest.err conftest.$ac_ext
4976
4977   # OK, works on sane cases.  Now check whether nonexistent headers
4978   # can be detected and how.
4979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h.  */
4981 #include <ac_nonexistent.h>
4982 _ACEOF
4983 if ac_fn_c_try_cpp "$LINENO"; then :
4984   # Broken: success on invalid input.
4985 continue
4986 else
4987   # Passes both tests.
4988 ac_preproc_ok=:
4989 break
4990 fi
4991 rm -f conftest.err conftest.$ac_ext
4992
4993 done
4994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4995 rm -f conftest.err conftest.$ac_ext
4996 if $ac_preproc_ok; then :
4997
4998 else
4999   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5001 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5002 See \`config.log' for more details." "$LINENO" 5; }
5003 fi
5004
5005 ac_ext=c
5006 ac_cpp='$CPP $CPPFLAGS'
5007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5010
5011
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5013 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5014 if test "${ac_cv_path_GREP+set}" = set; then :
5015   $as_echo_n "(cached) " >&6
5016 else
5017   if test -z "$GREP"; then
5018   ac_path_GREP_found=false
5019   # Loop through the user's path and test for each of PROGNAME-LIST
5020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5022 do
5023   IFS=$as_save_IFS
5024   test -z "$as_dir" && as_dir=.
5025     for ac_prog in grep ggrep; do
5026     for ac_exec_ext in '' $ac_executable_extensions; do
5027       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5028       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5029 # Check for GNU ac_path_GREP and select it if it is found.
5030   # Check for GNU $ac_path_GREP
5031 case `"$ac_path_GREP" --version 2>&1` in
5032 *GNU*)
5033   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5034 *)
5035   ac_count=0
5036   $as_echo_n 0123456789 >"conftest.in"
5037   while :
5038   do
5039     cat "conftest.in" "conftest.in" >"conftest.tmp"
5040     mv "conftest.tmp" "conftest.in"
5041     cp "conftest.in" "conftest.nl"
5042     $as_echo 'GREP' >> "conftest.nl"
5043     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5044     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5045     as_fn_arith $ac_count + 1 && ac_count=$as_val
5046     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5047       # Best one so far, save it but keep looking for a better one
5048       ac_cv_path_GREP="$ac_path_GREP"
5049       ac_path_GREP_max=$ac_count
5050     fi
5051     # 10*(2^10) chars as input seems more than enough
5052     test $ac_count -gt 10 && break
5053   done
5054   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5055 esac
5056
5057       $ac_path_GREP_found && break 3
5058     done
5059   done
5060   done
5061 IFS=$as_save_IFS
5062   if test -z "$ac_cv_path_GREP"; then
5063     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5064   fi
5065 else
5066   ac_cv_path_GREP=$GREP
5067 fi
5068
5069 fi
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5071 $as_echo "$ac_cv_path_GREP" >&6; }
5072  GREP="$ac_cv_path_GREP"
5073
5074
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5076 $as_echo_n "checking for egrep... " >&6; }
5077 if test "${ac_cv_path_EGREP+set}" = set; then :
5078   $as_echo_n "(cached) " >&6
5079 else
5080   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5081    then ac_cv_path_EGREP="$GREP -E"
5082    else
5083      if test -z "$EGREP"; then
5084   ac_path_EGREP_found=false
5085   # Loop through the user's path and test for each of PROGNAME-LIST
5086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5088 do
5089   IFS=$as_save_IFS
5090   test -z "$as_dir" && as_dir=.
5091     for ac_prog in egrep; do
5092     for ac_exec_ext in '' $ac_executable_extensions; do
5093       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5094       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5095 # Check for GNU ac_path_EGREP and select it if it is found.
5096   # Check for GNU $ac_path_EGREP
5097 case `"$ac_path_EGREP" --version 2>&1` in
5098 *GNU*)
5099   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5100 *)
5101   ac_count=0
5102   $as_echo_n 0123456789 >"conftest.in"
5103   while :
5104   do
5105     cat "conftest.in" "conftest.in" >"conftest.tmp"
5106     mv "conftest.tmp" "conftest.in"
5107     cp "conftest.in" "conftest.nl"
5108     $as_echo 'EGREP' >> "conftest.nl"
5109     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5110     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5111     as_fn_arith $ac_count + 1 && ac_count=$as_val
5112     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5113       # Best one so far, save it but keep looking for a better one
5114       ac_cv_path_EGREP="$ac_path_EGREP"
5115       ac_path_EGREP_max=$ac_count
5116     fi
5117     # 10*(2^10) chars as input seems more than enough
5118     test $ac_count -gt 10 && break
5119   done
5120   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5121 esac
5122
5123       $ac_path_EGREP_found && break 3
5124     done
5125   done
5126   done
5127 IFS=$as_save_IFS
5128   if test -z "$ac_cv_path_EGREP"; then
5129     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5130   fi
5131 else
5132   ac_cv_path_EGREP=$EGREP
5133 fi
5134
5135    fi
5136 fi
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5138 $as_echo "$ac_cv_path_EGREP" >&6; }
5139  EGREP="$ac_cv_path_EGREP"
5140
5141
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5143 $as_echo_n "checking for ANSI C header files... " >&6; }
5144 if test "${ac_cv_header_stdc+set}" = set; then :
5145   $as_echo_n "(cached) " >&6
5146 else
5147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h.  */
5149 #include <stdlib.h>
5150 #include <stdarg.h>
5151 #include <string.h>
5152 #include <float.h>
5153
5154 int
5155 main ()
5156 {
5157
5158   ;
5159   return 0;
5160 }
5161 _ACEOF
5162 if ac_fn_c_try_compile "$LINENO"; then :
5163   ac_cv_header_stdc=yes
5164 else
5165   ac_cv_header_stdc=no
5166 fi
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168
5169 if test $ac_cv_header_stdc = yes; then
5170   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h.  */
5173 #include <string.h>
5174
5175 _ACEOF
5176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5177   $EGREP "memchr" >/dev/null 2>&1; then :
5178
5179 else
5180   ac_cv_header_stdc=no
5181 fi
5182 rm -f conftest*
5183
5184 fi
5185
5186 if test $ac_cv_header_stdc = yes; then
5187   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h.  */
5190 #include <stdlib.h>
5191
5192 _ACEOF
5193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5194   $EGREP "free" >/dev/null 2>&1; then :
5195
5196 else
5197   ac_cv_header_stdc=no
5198 fi
5199 rm -f conftest*
5200
5201 fi
5202
5203 if test $ac_cv_header_stdc = yes; then
5204   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5205   if test "$cross_compiling" = yes; then :
5206   :
5207 else
5208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209 /* end confdefs.h.  */
5210 #include <ctype.h>
5211 #include <stdlib.h>
5212 #if ((' ' & 0x0FF) == 0x020)
5213 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5214 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5215 #else
5216 # define ISLOWER(c) \
5217                    (('a' <= (c) && (c) <= 'i') \
5218                      || ('j' <= (c) && (c) <= 'r') \
5219                      || ('s' <= (c) && (c) <= 'z'))
5220 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5221 #endif
5222
5223 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5224 int
5225 main ()
5226 {
5227   int i;
5228   for (i = 0; i < 256; i++)
5229     if (XOR (islower (i), ISLOWER (i))
5230         || toupper (i) != TOUPPER (i))
5231       return 2;
5232   return 0;
5233 }
5234 _ACEOF
5235 if ac_fn_c_try_run "$LINENO"; then :
5236
5237 else
5238   ac_cv_header_stdc=no
5239 fi
5240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5241   conftest.$ac_objext conftest.beam conftest.$ac_ext
5242 fi
5243
5244 fi
5245 fi
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5247 $as_echo "$ac_cv_header_stdc" >&6; }
5248 if test $ac_cv_header_stdc = yes; then
5249
5250 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5251
5252 fi
5253
5254 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5255 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5256                   inttypes.h stdint.h unistd.h
5257 do :
5258   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5259 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5260 "
5261 eval as_val=\$$as_ac_Header
5262    if test "x$as_val" = x""yes; then :
5263   cat >>confdefs.h <<_ACEOF
5264 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5265 _ACEOF
5266
5267 fi
5268
5269 done
5270
5271
5272
5273   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5274 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5275   MINIX=yes
5276 else
5277   MINIX=
5278 fi
5279
5280
5281   if test "$MINIX" = yes; then
5282
5283 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5284
5285
5286 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5287
5288
5289 $as_echo "#define _MINIX 1" >>confdefs.h
5290
5291   fi
5292
5293
5294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5295 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5296 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5297   $as_echo_n "(cached) " >&6
5298 else
5299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h.  */
5301
5302 #         define __EXTENSIONS__ 1
5303           $ac_includes_default
5304 int
5305 main ()
5306 {
5307
5308   ;
5309   return 0;
5310 }
5311 _ACEOF
5312 if ac_fn_c_try_compile "$LINENO"; then :
5313   ac_cv_safe_to_define___extensions__=yes
5314 else
5315   ac_cv_safe_to_define___extensions__=no
5316 fi
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318 fi
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5320 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5321   test $ac_cv_safe_to_define___extensions__ = yes &&
5322     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5323
5324   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5325
5326   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5327
5328   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5329
5330   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5331
5332
5333 ac_ext=c
5334 ac_cpp='$CPP $CPPFLAGS'
5335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5339 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5340 # On Suns, sometimes $CPP names a directory.
5341 if test -n "$CPP" && test -d "$CPP"; then
5342   CPP=
5343 fi
5344 if test -z "$CPP"; then
5345   if test "${ac_cv_prog_CPP+set}" = set; then :
5346   $as_echo_n "(cached) " >&6
5347 else
5348       # Double quotes because CPP needs to be expanded
5349     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5350     do
5351       ac_preproc_ok=false
5352 for ac_c_preproc_warn_flag in '' yes
5353 do
5354   # Use a header file that comes with gcc, so configuring glibc
5355   # with a fresh cross-compiler works.
5356   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5357   # <limits.h> exists even on freestanding compilers.
5358   # On the NeXT, cc -E runs the code through the compiler's parser,
5359   # not just through cpp. "Syntax error" is here to catch this case.
5360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h.  */
5362 #ifdef __STDC__
5363 # include <limits.h>
5364 #else
5365 # include <assert.h>
5366 #endif
5367                      Syntax error
5368 _ACEOF
5369 if ac_fn_c_try_cpp "$LINENO"; then :
5370
5371 else
5372   # Broken: fails on valid input.
5373 continue
5374 fi
5375 rm -f conftest.err conftest.$ac_ext
5376
5377   # OK, works on sane cases.  Now check whether nonexistent headers
5378   # can be detected and how.
5379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h.  */
5381 #include <ac_nonexistent.h>
5382 _ACEOF
5383 if ac_fn_c_try_cpp "$LINENO"; then :
5384   # Broken: success on invalid input.
5385 continue
5386 else
5387   # Passes both tests.
5388 ac_preproc_ok=:
5389 break
5390 fi
5391 rm -f conftest.err conftest.$ac_ext
5392
5393 done
5394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5395 rm -f conftest.err conftest.$ac_ext
5396 if $ac_preproc_ok; then :
5397   break
5398 fi
5399
5400     done
5401     ac_cv_prog_CPP=$CPP
5402
5403 fi
5404   CPP=$ac_cv_prog_CPP
5405 else
5406   ac_cv_prog_CPP=$CPP
5407 fi
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5409 $as_echo "$CPP" >&6; }
5410 ac_preproc_ok=false
5411 for ac_c_preproc_warn_flag in '' yes
5412 do
5413   # Use a header file that comes with gcc, so configuring glibc
5414   # with a fresh cross-compiler works.
5415   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5416   # <limits.h> exists even on freestanding compilers.
5417   # On the NeXT, cc -E runs the code through the compiler's parser,
5418   # not just through cpp. "Syntax error" is here to catch this case.
5419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h.  */
5421 #ifdef __STDC__
5422 # include <limits.h>
5423 #else
5424 # include <assert.h>
5425 #endif
5426                      Syntax error
5427 _ACEOF
5428 if ac_fn_c_try_cpp "$LINENO"; then :
5429
5430 else
5431   # Broken: fails on valid input.
5432 continue
5433 fi
5434 rm -f conftest.err conftest.$ac_ext
5435
5436   # OK, works on sane cases.  Now check whether nonexistent headers
5437   # can be detected and how.
5438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h.  */
5440 #include <ac_nonexistent.h>
5441 _ACEOF
5442 if ac_fn_c_try_cpp "$LINENO"; then :
5443   # Broken: success on invalid input.
5444 continue
5445 else
5446   # Passes both tests.
5447 ac_preproc_ok=:
5448 break
5449 fi
5450 rm -f conftest.err conftest.$ac_ext
5451
5452 done
5453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5454 rm -f conftest.err conftest.$ac_ext
5455 if $ac_preproc_ok; then :
5456
5457 else
5458   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5460 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5461 See \`config.log' for more details." "$LINENO" 5; }
5462 fi
5463
5464 ac_ext=c
5465 ac_cpp='$CPP $CPPFLAGS'
5466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5469
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5471 $as_echo_n "checking for inline... " >&6; }
5472 if test "${ac_cv_c_inline+set}" = set; then :
5473   $as_echo_n "(cached) " >&6
5474 else
5475   ac_cv_c_inline=no
5476 for ac_kw in inline __inline__ __inline; do
5477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h.  */
5479 #ifndef __cplusplus
5480 typedef int foo_t;
5481 static $ac_kw foo_t static_foo () {return 0; }
5482 $ac_kw foo_t foo () {return 0; }
5483 #endif
5484
5485 _ACEOF
5486 if ac_fn_c_try_compile "$LINENO"; then :
5487   ac_cv_c_inline=$ac_kw
5488 fi
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490   test "$ac_cv_c_inline" != no && break
5491 done
5492
5493 fi
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5495 $as_echo "$ac_cv_c_inline" >&6; }
5496
5497 case $ac_cv_c_inline in
5498   inline | yes) ;;
5499   *)
5500     case $ac_cv_c_inline in
5501       no) ac_val=;;
5502       *) ac_val=$ac_cv_c_inline;;
5503     esac
5504     cat >>confdefs.h <<_ACEOF
5505 #ifndef __cplusplus
5506 #define inline $ac_val
5507 #endif
5508 _ACEOF
5509     ;;
5510 esac
5511
5512
5513 # Check whether --enable-largefile was given.
5514 if test "${enable_largefile+set}" = set; then :
5515   enableval=$enable_largefile;
5516 fi
5517
5518 if test "$enable_largefile" != no; then
5519
5520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5521 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5522 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5523   $as_echo_n "(cached) " >&6
5524 else
5525   ac_cv_sys_largefile_CC=no
5526      if test "$GCC" != yes; then
5527        ac_save_CC=$CC
5528        while :; do
5529          # IRIX 6.2 and later do not support large files by default,
5530          # so use the C compiler's -n32 option if that helps.
5531          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h.  */
5533 #include <sys/types.h>
5534  /* Check that off_t can represent 2**63 - 1 correctly.
5535     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5536     since some C++ compilers masquerading as C compilers
5537     incorrectly reject 9223372036854775807.  */
5538 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5539   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5540                        && LARGE_OFF_T % 2147483647 == 1)
5541                       ? 1 : -1];
5542 int
5543 main ()
5544 {
5545
5546   ;
5547   return 0;
5548 }
5549 _ACEOF
5550          if ac_fn_c_try_compile "$LINENO"; then :
5551   break
5552 fi
5553 rm -f core conftest.err conftest.$ac_objext
5554          CC="$CC -n32"
5555          if ac_fn_c_try_compile "$LINENO"; then :
5556   ac_cv_sys_largefile_CC=' -n32'; break
5557 fi
5558 rm -f core conftest.err conftest.$ac_objext
5559          break
5560        done
5561        CC=$ac_save_CC
5562        rm -f conftest.$ac_ext
5563     fi
5564 fi
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5566 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5567   if test "$ac_cv_sys_largefile_CC" != no; then
5568     CC=$CC$ac_cv_sys_largefile_CC
5569   fi
5570
5571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5572 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5573 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5574   $as_echo_n "(cached) " >&6
5575 else
5576   while :; do
5577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h.  */
5579 #include <sys/types.h>
5580  /* Check that off_t can represent 2**63 - 1 correctly.
5581     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5582     since some C++ compilers masquerading as C compilers
5583     incorrectly reject 9223372036854775807.  */
5584 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5585   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5586                        && LARGE_OFF_T % 2147483647 == 1)
5587                       ? 1 : -1];
5588 int
5589 main ()
5590 {
5591
5592   ;
5593   return 0;
5594 }
5595 _ACEOF
5596 if ac_fn_c_try_compile "$LINENO"; then :
5597   ac_cv_sys_file_offset_bits=no; break
5598 fi
5599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h.  */
5602 #define _FILE_OFFSET_BITS 64
5603 #include <sys/types.h>
5604  /* Check that off_t can represent 2**63 - 1 correctly.
5605     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5606     since some C++ compilers masquerading as C compilers
5607     incorrectly reject 9223372036854775807.  */
5608 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5609   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5610                        && LARGE_OFF_T % 2147483647 == 1)
5611                       ? 1 : -1];
5612 int
5613 main ()
5614 {
5615
5616   ;
5617   return 0;
5618 }
5619 _ACEOF
5620 if ac_fn_c_try_compile "$LINENO"; then :
5621   ac_cv_sys_file_offset_bits=64; break
5622 fi
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624   ac_cv_sys_file_offset_bits=unknown
5625   break
5626 done
5627 fi
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5629 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5630 case $ac_cv_sys_file_offset_bits in #(
5631   no | unknown) ;;
5632   *)
5633 cat >>confdefs.h <<_ACEOF
5634 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5635 _ACEOF
5636 ;;
5637 esac
5638 rm -rf conftest*
5639   if test $ac_cv_sys_file_offset_bits = unknown; then
5640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5641 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5642 if test "${ac_cv_sys_large_files+set}" = set; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645   while :; do
5646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h.  */
5648 #include <sys/types.h>
5649  /* Check that off_t can represent 2**63 - 1 correctly.
5650     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5651     since some C++ compilers masquerading as C compilers
5652     incorrectly reject 9223372036854775807.  */
5653 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5654   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5655                        && LARGE_OFF_T % 2147483647 == 1)
5656                       ? 1 : -1];
5657 int
5658 main ()
5659 {
5660
5661   ;
5662   return 0;
5663 }
5664 _ACEOF
5665 if ac_fn_c_try_compile "$LINENO"; then :
5666   ac_cv_sys_large_files=no; break
5667 fi
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h.  */
5671 #define _LARGE_FILES 1
5672 #include <sys/types.h>
5673  /* Check that off_t can represent 2**63 - 1 correctly.
5674     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5675     since some C++ compilers masquerading as C compilers
5676     incorrectly reject 9223372036854775807.  */
5677 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5678   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5679                        && LARGE_OFF_T % 2147483647 == 1)
5680                       ? 1 : -1];
5681 int
5682 main ()
5683 {
5684
5685   ;
5686   return 0;
5687 }
5688 _ACEOF
5689 if ac_fn_c_try_compile "$LINENO"; then :
5690   ac_cv_sys_large_files=1; break
5691 fi
5692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693   ac_cv_sys_large_files=unknown
5694   break
5695 done
5696 fi
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5698 $as_echo "$ac_cv_sys_large_files" >&6; }
5699 case $ac_cv_sys_large_files in #(
5700   no | unknown) ;;
5701   *)
5702 cat >>confdefs.h <<_ACEOF
5703 #define _LARGE_FILES $ac_cv_sys_large_files
5704 _ACEOF
5705 ;;
5706 esac
5707 rm -rf conftest*
5708   fi
5709 fi
5710
5711
5712 # sizeof(char) is 1 by definition.
5713 # The cast to long int works around a bug in the HP C Compiler
5714 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5715 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5716 # This bug is HP SR number 8606223364.
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5718 $as_echo_n "checking size of void *... " >&6; }
5719 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5720   $as_echo_n "(cached) " >&6
5721 else
5722   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5723
5724 else
5725   if test "$ac_cv_type_void_p" = yes; then
5726      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5728 { as_fn_set_status 77
5729 as_fn_error "cannot compute sizeof (void *)
5730 See \`config.log' for more details." "$LINENO" 5; }; }
5731    else
5732      ac_cv_sizeof_void_p=0
5733    fi
5734 fi
5735
5736 fi
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5738 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5739
5740
5741
5742 cat >>confdefs.h <<_ACEOF
5743 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5744 _ACEOF
5745
5746
5747 # The cast to long int works around a bug in the HP C Compiler
5748 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5749 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5750 # This bug is HP SR number 8606223364.
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5752 $as_echo_n "checking size of short... " >&6; }
5753 if test "${ac_cv_sizeof_short+set}" = set; then :
5754   $as_echo_n "(cached) " >&6
5755 else
5756   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5757
5758 else
5759   if test "$ac_cv_type_short" = yes; then
5760      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5762 { as_fn_set_status 77
5763 as_fn_error "cannot compute sizeof (short)
5764 See \`config.log' for more details." "$LINENO" 5; }; }
5765    else
5766      ac_cv_sizeof_short=0
5767    fi
5768 fi
5769
5770 fi
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5772 $as_echo "$ac_cv_sizeof_short" >&6; }
5773
5774
5775
5776 cat >>confdefs.h <<_ACEOF
5777 #define SIZEOF_SHORT $ac_cv_sizeof_short
5778 _ACEOF
5779
5780
5781 # The cast to long int works around a bug in the HP C Compiler
5782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5784 # This bug is HP SR number 8606223364.
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5786 $as_echo_n "checking size of int... " >&6; }
5787 if test "${ac_cv_sizeof_int+set}" = set; then :
5788   $as_echo_n "(cached) " >&6
5789 else
5790   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5791
5792 else
5793   if test "$ac_cv_type_int" = yes; then
5794      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5796 { as_fn_set_status 77
5797 as_fn_error "cannot compute sizeof (int)
5798 See \`config.log' for more details." "$LINENO" 5; }; }
5799    else
5800      ac_cv_sizeof_int=0
5801    fi
5802 fi
5803
5804 fi
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5806 $as_echo "$ac_cv_sizeof_int" >&6; }
5807
5808
5809
5810 cat >>confdefs.h <<_ACEOF
5811 #define SIZEOF_INT $ac_cv_sizeof_int
5812 _ACEOF
5813
5814
5815 # The cast to long int works around a bug in the HP C Compiler
5816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5817 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5818 # This bug is HP SR number 8606223364.
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5820 $as_echo_n "checking size of long... " >&6; }
5821 if test "${ac_cv_sizeof_long+set}" = set; then :
5822   $as_echo_n "(cached) " >&6
5823 else
5824   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5825
5826 else
5827   if test "$ac_cv_type_long" = yes; then
5828      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5830 { as_fn_set_status 77
5831 as_fn_error "cannot compute sizeof (long)
5832 See \`config.log' for more details." "$LINENO" 5; }; }
5833    else
5834      ac_cv_sizeof_long=0
5835    fi
5836 fi
5837
5838 fi
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5840 $as_echo "$ac_cv_sizeof_long" >&6; }
5841
5842
5843
5844 cat >>confdefs.h <<_ACEOF
5845 #define SIZEOF_LONG $ac_cv_sizeof_long
5846 _ACEOF
5847
5848
5849 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5850 if test "x$ac_cv_type_long_long" = x""yes; then :
5851
5852 cat >>confdefs.h <<_ACEOF
5853 #define HAVE_LONG_LONG 1
5854 _ACEOF
5855
5856 # The cast to long int works around a bug in the HP C Compiler
5857 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5858 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5859 # This bug is HP SR number 8606223364.
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5861 $as_echo_n "checking size of long long... " >&6; }
5862 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5863   $as_echo_n "(cached) " >&6
5864 else
5865   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5866
5867 else
5868   if test "$ac_cv_type_long_long" = yes; then
5869      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5871 { as_fn_set_status 77
5872 as_fn_error "cannot compute sizeof (long long)
5873 See \`config.log' for more details." "$LINENO" 5; }; }
5874    else
5875      ac_cv_sizeof_long_long=0
5876    fi
5877 fi
5878
5879 fi
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5881 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5882
5883
5884
5885 cat >>confdefs.h <<_ACEOF
5886 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5887 _ACEOF
5888
5889
5890 fi
5891
5892 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5893 if test "x$ac_cv_type___int64" = x""yes; then :
5894
5895 cat >>confdefs.h <<_ACEOF
5896 #define HAVE___INT64 1
5897 _ACEOF
5898
5899 # The cast to long int works around a bug in the HP C Compiler
5900 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5901 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5902 # This bug is HP SR number 8606223364.
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5904 $as_echo_n "checking size of __int64... " >&6; }
5905 if test "${ac_cv_sizeof___int64+set}" = set; then :
5906   $as_echo_n "(cached) " >&6
5907 else
5908   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5909
5910 else
5911   if test "$ac_cv_type___int64" = yes; then
5912      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5914 { as_fn_set_status 77
5915 as_fn_error "cannot compute sizeof (__int64)
5916 See \`config.log' for more details." "$LINENO" 5; }; }
5917    else
5918      ac_cv_sizeof___int64=0
5919    fi
5920 fi
5921
5922 fi
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5924 $as_echo "$ac_cv_sizeof___int64" >&6; }
5925
5926
5927
5928 cat >>confdefs.h <<_ACEOF
5929 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5930 _ACEOF
5931
5932
5933 fi
5934
5935 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5936 case $ac_cv_c_int8_t in #(
5937   no|yes) ;; #(
5938   *)
5939
5940 cat >>confdefs.h <<_ACEOF
5941 #define int8_t $ac_cv_c_int8_t
5942 _ACEOF
5943 ;;
5944 esac
5945
5946 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5947 case $ac_cv_c_int16_t in #(
5948   no|yes) ;; #(
5949   *)
5950
5951 cat >>confdefs.h <<_ACEOF
5952 #define int16_t $ac_cv_c_int16_t
5953 _ACEOF
5954 ;;
5955 esac
5956
5957 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5958 case $ac_cv_c_int32_t in #(
5959   no|yes) ;; #(
5960   *)
5961
5962 cat >>confdefs.h <<_ACEOF
5963 #define int32_t $ac_cv_c_int32_t
5964 _ACEOF
5965 ;;
5966 esac
5967
5968 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5969 case $ac_cv_c_int64_t in #(
5970   no|yes) ;; #(
5971   *)
5972
5973 cat >>confdefs.h <<_ACEOF
5974 #define int64_t $ac_cv_c_int64_t
5975 _ACEOF
5976 ;;
5977 esac
5978
5979
5980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5981 $as_echo_n "checking for long long int... " >&6; }
5982 if test "${ac_cv_type_long_long_int+set}" = set; then :
5983   $as_echo_n "(cached) " >&6
5984 else
5985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h.  */
5987
5988   /* For now, do not test the preprocessor; as of 2007 there are too many
5989          implementations with broken preprocessors.  Perhaps this can
5990          be revisited in 2012.  In the meantime, code should not expect
5991          #if to work with literals wider than 32 bits.  */
5992       /* Test literals.  */
5993       long long int ll = 9223372036854775807ll;
5994       long long int nll = -9223372036854775807LL;
5995       unsigned long long int ull = 18446744073709551615ULL;
5996       /* Test constant expressions.   */
5997       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5998                      ? 1 : -1)];
5999       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6000                      ? 1 : -1)];
6001       int i = 63;
6002 int
6003 main ()
6004 {
6005 /* Test availability of runtime routines for shift and division.  */
6006       long long int llmax = 9223372036854775807ll;
6007       unsigned long long int ullmax = 18446744073709551615ull;
6008       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6009               | (llmax / ll) | (llmax % ll)
6010               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6011               | (ullmax / ull) | (ullmax % ull));
6012   ;
6013   return 0;
6014 }
6015
6016 _ACEOF
6017 if ac_fn_c_try_link "$LINENO"; then :
6018                         if test "$cross_compiling" = yes; then :
6019   ac_cv_type_long_long_int=yes
6020 else
6021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h.  */
6023 #include <limits.h>
6024                #ifndef LLONG_MAX
6025                # define HALF \
6026                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6027                # define LLONG_MAX (HALF - 1 + HALF)
6028                #endif
6029 int
6030 main ()
6031 {
6032 long long int n = 1;
6033                int i;
6034                for (i = 0; ; i++)
6035                  {
6036                    long long int m = n << i;
6037                    if (m >> i != n)
6038                      return 1;
6039                    if (LLONG_MAX / 2 < m)
6040                      break;
6041                  }
6042                return 0;
6043   ;
6044   return 0;
6045 }
6046 _ACEOF
6047 if ac_fn_c_try_run "$LINENO"; then :
6048   ac_cv_type_long_long_int=yes
6049 else
6050   ac_cv_type_long_long_int=no
6051 fi
6052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6053   conftest.$ac_objext conftest.beam conftest.$ac_ext
6054 fi
6055
6056 else
6057   ac_cv_type_long_long_int=no
6058 fi
6059 rm -f core conftest.err conftest.$ac_objext \
6060     conftest$ac_exeext conftest.$ac_ext
6061 fi
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6063 $as_echo "$ac_cv_type_long_long_int" >&6; }
6064   if test $ac_cv_type_long_long_int = yes; then
6065
6066 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6067
6068   fi
6069
6070
6071
6072   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6073 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6074
6075 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6076
6077 else
6078   test $ac_cv_type_long_long_int = yes \
6079        && ac_type='long long int' \
6080        || ac_type='long int'
6081
6082 cat >>confdefs.h <<_ACEOF
6083 #define intmax_t $ac_type
6084 _ACEOF
6085
6086 fi
6087
6088
6089
6090   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6091 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6092
6093 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6094
6095 else
6096   for ac_type in 'int' 'long int' 'long long int'; do
6097        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h.  */
6099 $ac_includes_default
6100 int
6101 main ()
6102 {
6103 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6104 test_array [0] = 0
6105
6106   ;
6107   return 0;
6108 }
6109 _ACEOF
6110 if ac_fn_c_try_compile "$LINENO"; then :
6111
6112 cat >>confdefs.h <<_ACEOF
6113 #define intptr_t $ac_type
6114 _ACEOF
6115
6116           ac_type=
6117 fi
6118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119        test -z "$ac_type" && break
6120      done
6121 fi
6122
6123
6124 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6125 case $ac_cv_c_uint8_t in #(
6126   no|yes) ;; #(
6127   *)
6128
6129 $as_echo "#define _UINT8_T 1" >>confdefs.h
6130
6131
6132 cat >>confdefs.h <<_ACEOF
6133 #define uint8_t $ac_cv_c_uint8_t
6134 _ACEOF
6135 ;;
6136   esac
6137
6138 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6139 case $ac_cv_c_uint16_t in #(
6140   no|yes) ;; #(
6141   *)
6142
6143
6144 cat >>confdefs.h <<_ACEOF
6145 #define uint16_t $ac_cv_c_uint16_t
6146 _ACEOF
6147 ;;
6148   esac
6149
6150 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6151 case $ac_cv_c_uint32_t in #(
6152   no|yes) ;; #(
6153   *)
6154
6155 $as_echo "#define _UINT32_T 1" >>confdefs.h
6156
6157
6158 cat >>confdefs.h <<_ACEOF
6159 #define uint32_t $ac_cv_c_uint32_t
6160 _ACEOF
6161 ;;
6162   esac
6163
6164 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6165 case $ac_cv_c_uint64_t in #(
6166   no|yes) ;; #(
6167   *)
6168
6169 $as_echo "#define _UINT64_T 1" >>confdefs.h
6170
6171
6172 cat >>confdefs.h <<_ACEOF
6173 #define uint64_t $ac_cv_c_uint64_t
6174 _ACEOF
6175 ;;
6176   esac
6177
6178
6179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6180 $as_echo_n "checking for unsigned long long int... " >&6; }
6181 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6182   $as_echo_n "(cached) " >&6
6183 else
6184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h.  */
6186
6187   /* For now, do not test the preprocessor; as of 2007 there are too many
6188          implementations with broken preprocessors.  Perhaps this can
6189          be revisited in 2012.  In the meantime, code should not expect
6190          #if to work with literals wider than 32 bits.  */
6191       /* Test literals.  */
6192       long long int ll = 9223372036854775807ll;
6193       long long int nll = -9223372036854775807LL;
6194       unsigned long long int ull = 18446744073709551615ULL;
6195       /* Test constant expressions.   */
6196       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6197                      ? 1 : -1)];
6198       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6199                      ? 1 : -1)];
6200       int i = 63;
6201 int
6202 main ()
6203 {
6204 /* Test availability of runtime routines for shift and division.  */
6205       long long int llmax = 9223372036854775807ll;
6206       unsigned long long int ullmax = 18446744073709551615ull;
6207       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6208               | (llmax / ll) | (llmax % ll)
6209               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6210               | (ullmax / ull) | (ullmax % ull));
6211   ;
6212   return 0;
6213 }
6214
6215 _ACEOF
6216 if ac_fn_c_try_link "$LINENO"; then :
6217   ac_cv_type_unsigned_long_long_int=yes
6218 else
6219   ac_cv_type_unsigned_long_long_int=no
6220 fi
6221 rm -f core conftest.err conftest.$ac_objext \
6222     conftest$ac_exeext conftest.$ac_ext
6223 fi
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6225 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6226   if test $ac_cv_type_unsigned_long_long_int = yes; then
6227
6228 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6229
6230   fi
6231
6232
6233
6234   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6235 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6236
6237 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6238
6239 else
6240   test $ac_cv_type_unsigned_long_long_int = yes \
6241        && ac_type='unsigned long long int' \
6242        || ac_type='unsigned long int'
6243
6244 cat >>confdefs.h <<_ACEOF
6245 #define uintmax_t $ac_type
6246 _ACEOF
6247
6248 fi
6249
6250
6251
6252   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6253 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6254
6255 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6256
6257 else
6258   for ac_type in 'unsigned int' 'unsigned long int' \
6259         'unsigned long long int'; do
6260        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h.  */
6262 $ac_includes_default
6263 int
6264 main ()
6265 {
6266 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6267 test_array [0] = 0
6268
6269   ;
6270   return 0;
6271 }
6272 _ACEOF
6273 if ac_fn_c_try_compile "$LINENO"; then :
6274
6275 cat >>confdefs.h <<_ACEOF
6276 #define uintptr_t $ac_type
6277 _ACEOF
6278
6279           ac_type=
6280 fi
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282        test -z "$ac_type" && break
6283      done
6284 fi
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300 # ---------------------
6301 # Warnings and checking
6302 # ---------------------
6303
6304 # Check $CC warning features (if it's GCC).
6305 # We want to use -pedantic, but we don't want warnings about
6306 # * 'long long'
6307 # * variadic macros
6308 # * overlong strings
6309 # So, we only use -pedantic if we can disable those warnings.
6310
6311 loose_warn=
6312 save_CFLAGS="$CFLAGS"
6313 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6314   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6315
6316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6317 $as_echo_n "checking whether $CC supports $option... " >&6; }
6318 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6319   $as_echo_n "(cached) " >&6
6320 else
6321   CFLAGS="$option"
6322     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h.  */
6324
6325 int
6326 main ()
6327 {
6328
6329   ;
6330   return 0;
6331 }
6332 _ACEOF
6333 if ac_fn_c_try_compile "$LINENO"; then :
6334   eval "$as_acx_Woption=yes"
6335 else
6336   eval "$as_acx_Woption=no"
6337 fi
6338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339
6340 fi
6341 eval ac_res=\$$as_acx_Woption
6342                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6343 $as_echo "$ac_res" >&6; }
6344   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6345   loose_warn="$loose_warn${loose_warn:+ }$option"
6346 fi
6347   done
6348 CFLAGS="$save_CFLAGS"
6349
6350 c_loose_warn=
6351 save_CFLAGS="$CFLAGS"
6352 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6353   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6354
6355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6356 $as_echo_n "checking whether $CC supports $option... " >&6; }
6357 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6358   $as_echo_n "(cached) " >&6
6359 else
6360   CFLAGS="$option"
6361     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h.  */
6363
6364 int
6365 main ()
6366 {
6367
6368   ;
6369   return 0;
6370 }
6371 _ACEOF
6372 if ac_fn_c_try_compile "$LINENO"; then :
6373   eval "$as_acx_Woption=yes"
6374 else
6375   eval "$as_acx_Woption=no"
6376 fi
6377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378
6379 fi
6380 eval ac_res=\$$as_acx_Woption
6381                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6382 $as_echo "$ac_res" >&6; }
6383   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6384   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6385 fi
6386   done
6387 CFLAGS="$save_CFLAGS"
6388
6389 strict_warn=
6390 save_CFLAGS="$CFLAGS"
6391 for option in -Wmissing-format-attribute; do
6392   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6393
6394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6395 $as_echo_n "checking whether $CC supports $option... " >&6; }
6396 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6397   $as_echo_n "(cached) " >&6
6398 else
6399   CFLAGS="$option"
6400     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h.  */
6402
6403 int
6404 main ()
6405 {
6406
6407   ;
6408   return 0;
6409 }
6410 _ACEOF
6411 if ac_fn_c_try_compile "$LINENO"; then :
6412   eval "$as_acx_Woption=yes"
6413 else
6414   eval "$as_acx_Woption=no"
6415 fi
6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417
6418 fi
6419 eval ac_res=\$$as_acx_Woption
6420                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6421 $as_echo "$ac_res" >&6; }
6422   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6423   strict_warn="$strict_warn${strict_warn:+ }$option"
6424 fi
6425   done
6426 CFLAGS="$save_CFLAGS"
6427
6428 c_strict_warn=
6429 save_CFLAGS="$CFLAGS"
6430 for option in -Wold-style-definition -Wc++-compat; do
6431   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6432
6433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6434 $as_echo_n "checking whether $CC supports $option... " >&6; }
6435 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6436   $as_echo_n "(cached) " >&6
6437 else
6438   CFLAGS="$option"
6439     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h.  */
6441
6442 int
6443 main ()
6444 {
6445
6446   ;
6447   return 0;
6448 }
6449 _ACEOF
6450 if ac_fn_c_try_compile "$LINENO"; then :
6451   eval "$as_acx_Woption=yes"
6452 else
6453   eval "$as_acx_Woption=no"
6454 fi
6455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456
6457 fi
6458 eval ac_res=\$$as_acx_Woption
6459                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6460 $as_echo "$ac_res" >&6; }
6461   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6462   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6463 fi
6464   done
6465 CFLAGS="$save_CFLAGS"
6466
6467 if test "$GCC" = yes; then :
6468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6469 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6470 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6471   $as_echo_n "(cached) " >&6
6472 else
6473   save_CFLAGS="$CFLAGS"
6474 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h.  */
6477
6478 int
6479 main ()
6480 {
6481
6482   ;
6483   return 0;
6484 }
6485 _ACEOF
6486 if ac_fn_c_try_compile "$LINENO"; then :
6487   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6488 else
6489   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6490 fi
6491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492 CFLAGS="$save_CFLAGS"
6493 fi
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6495 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6496 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6497   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6498 fi
6499
6500 fi
6501
6502 # Check whether --enable-werror-always was given.
6503 if test "${enable_werror_always+set}" = set; then :
6504   enableval=$enable_werror_always;
6505 else
6506   enable_werror_always=no
6507 fi
6508
6509 if test $enable_werror_always = yes; then :
6510   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6511 fi
6512
6513
6514
6515 # The above macros do nothing if the compiler is not GCC.  However, the
6516 # Makefile has more goo to add other flags, so these variables are used
6517 # to enable warnings only for GCC.
6518 warn_cflags=
6519 warn_cxxflags=
6520 if test "x$GCC" = "xyes"; then
6521   warn_cflags='$(GCC_WARN_CFLAGS)'
6522   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6523 fi
6524
6525
6526
6527 # Enable expensive internal checks
6528 is_release=
6529 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6530   is_release=yes
6531 fi
6532
6533 # Check whether --enable-checking was given.
6534 if test "${enable_checking+set}" = set; then :
6535   enableval=$enable_checking; ac_checking_flags="${enableval}"
6536 else
6537
6538 # Determine the default checks.
6539 if test x$is_release = x ; then
6540   ac_checking_flags=yes
6541 else
6542   ac_checking_flags=release
6543 fi
6544 fi
6545
6546 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6547 for check in release $ac_checking_flags
6548 do
6549         case $check in
6550         # these set all the flags to specific states
6551         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6552                         ac_fold_checking= ; ac_gc_checking=1 ;
6553                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6554                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6555                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6556                         ac_types_checking=1 ;;
6557         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6558                         ac_fold_checking= ; ac_gc_checking= ;
6559                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6560                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6561                         ac_tree_checking= ; ac_valgrind_checking= ;
6562                         ac_types_checking= ;;
6563         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6564                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6565                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6566                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6567                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6568                         ac_types_checking=1 ;;
6569         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6570                         ac_fold_checking= ; ac_gc_checking= ;
6571                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6572                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6573                         ac_tree_checking= ; ac_valgrind_checking= ;
6574                         ac_types_checking= ;;
6575         # these enable particular checks
6576         assert)         ac_assert_checking=1 ;;
6577         df)             ac_df_checking=1 ;;
6578         fold)           ac_fold_checking=1 ;;
6579         gc)             ac_gc_checking=1 ;;
6580         gcac)           ac_gc_always_collect=1 ;;
6581         gimple)         ac_gimple_checking=1 ;;
6582         misc)           ac_checking=1 ;;
6583         rtl)            ac_rtl_checking=1 ;;
6584         rtlflag)        ac_rtlflag_checking=1 ;;
6585         runtime)        ac_runtime_checking=1 ;;
6586         tree)           ac_tree_checking=1 ;;
6587         types)          ac_types_checking=1 ;;
6588         valgrind)       ac_valgrind_checking=1 ;;
6589         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6590         esac
6591 done
6592 IFS="$ac_save_IFS"
6593
6594 nocommon_flag=""
6595 if test x$ac_checking != x ; then
6596
6597 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6598
6599   nocommon_flag=-fno-common
6600 fi
6601
6602 if test x$ac_df_checking != x ; then
6603
6604 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6605
6606 fi
6607 if test x$ac_assert_checking != x ; then
6608
6609 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6610
6611 fi
6612 if test x$ac_gimple_checking != x ; then
6613
6614 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6615
6616 fi
6617
6618 if test x$ac_runtime_checking != x ; then
6619
6620 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6621
6622 fi
6623 if test x$ac_tree_checking != x ; then
6624
6625 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6626
6627   TREEBROWSER=tree-browser.o
6628 fi
6629 if test x$ac_types_checking != x ; then
6630
6631 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6632
6633 fi
6634
6635 if test x$ac_rtl_checking != x ; then
6636
6637 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6638
6639 fi
6640 if test x$ac_rtlflag_checking != x ; then
6641
6642 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6643
6644 fi
6645 if test x$ac_gc_checking != x ; then
6646
6647 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6648
6649 fi
6650 if test x$ac_gc_always_collect != x ; then
6651
6652 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6653
6654 fi
6655 if test x$ac_fold_checking != x ; then
6656
6657 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6658
6659 fi
6660 valgrind_path_defines=
6661 valgrind_command=
6662
6663 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6664 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6665   have_valgrind_h=yes
6666 else
6667   have_valgrind_h=no
6668 fi
6669
6670
6671
6672 if test x$ac_valgrind_checking != x ; then
6673   # It is certainly possible that there's valgrind but no valgrind.h.
6674   # GCC relies on making annotations so we must have both.
6675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6676 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h.  */
6679 #include <valgrind/memcheck.h>
6680 #ifndef VALGRIND_DISCARD
6681 #error VALGRIND_DISCARD not defined
6682 #endif
6683 _ACEOF
6684 if ac_fn_c_try_cpp "$LINENO"; then :
6685   gcc_cv_header_valgrind_memcheck_h=yes
6686 else
6687   gcc_cv_header_valgrind_memcheck_h=no
6688 fi
6689 rm -f conftest.err conftest.$ac_ext
6690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6691 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6693 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h.  */
6696 #include <memcheck.h>
6697 #ifndef VALGRIND_DISCARD
6698 #error VALGRIND_DISCARD not defined
6699 #endif
6700 _ACEOF
6701 if ac_fn_c_try_cpp "$LINENO"; then :
6702   gcc_cv_header_memcheck_h=yes
6703 else
6704   gcc_cv_header_memcheck_h=no
6705 fi
6706 rm -f conftest.err conftest.$ac_ext
6707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6708 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6709
6710 # Prepare PATH_SEPARATOR.
6711 # The user is always right.
6712 if test "${PATH_SEPARATOR+set}" != set; then
6713   echo "#! /bin/sh" >conf$$.sh
6714   echo  "exit 0"   >>conf$$.sh
6715   chmod +x conf$$.sh
6716   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6717     PATH_SEPARATOR=';'
6718   else
6719     PATH_SEPARATOR=:
6720   fi
6721   rm -f conf$$.sh
6722 fi
6723
6724 # Find out how to test for executable files. Don't use a zero-byte file,
6725 # as systems may use methods other than mode bits to determine executability.
6726 cat >conf$$.file <<_ASEOF
6727 #! /bin/sh
6728 exit 0
6729 _ASEOF
6730 chmod +x conf$$.file
6731 if test -x conf$$.file >/dev/null 2>&1; then
6732   ac_executable_p="test -x"
6733 else
6734   ac_executable_p="test -f"
6735 fi
6736 rm -f conf$$.file
6737
6738 # Extract the first word of "valgrind", so it can be a program name with args.
6739 set dummy valgrind; ac_word=$2
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741 $as_echo_n "checking for $ac_word... " >&6; }
6742 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6743   $as_echo_n "(cached) " >&6
6744 else
6745   case "$valgrind_path" in
6746   [\\/]* | ?:[\\/]*)
6747     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6748     ;;
6749   *)
6750     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6751     for ac_dir in $PATH; do
6752       IFS="$ac_save_IFS"
6753       test -z "$ac_dir" && ac_dir=.
6754       for ac_exec_ext in '' $ac_executable_extensions; do
6755         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6756           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6757             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6758             break 2
6759           fi
6760         fi
6761       done
6762     done
6763     IFS="$ac_save_IFS"
6764     ;;
6765 esac
6766 fi
6767 valgrind_path="$ac_cv_path_valgrind_path"
6768 if test -n "$valgrind_path"; then
6769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6770 $as_echo "$valgrind_path" >&6; }
6771 else
6772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6774 fi
6775
6776   if test "x$valgrind_path" = "x" \
6777     || (test $have_valgrind_h = no \
6778         && test $gcc_cv_header_memcheck_h = no \
6779         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6780         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6781   fi
6782   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6783   valgrind_command="$valgrind_path -q"
6784
6785 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6786
6787   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6788
6789 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6790
6791   fi
6792   if test $gcc_cv_header_memcheck_h = yes; then
6793
6794 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6795
6796   fi
6797 fi
6798
6799
6800
6801 # Enable code coverage collection
6802 # Check whether --enable-coverage was given.
6803 if test "${enable_coverage+set}" = set; then :
6804   enableval=$enable_coverage; case "${enableval}" in
6805   yes|noopt)
6806     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6807     ;;
6808   opt)
6809     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6810     ;;
6811   no)
6812     # a.k.a. --disable-coverage
6813     coverage_flags=""
6814     ;;
6815   *)
6816     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6817     ;;
6818 esac
6819 else
6820   coverage_flags=""
6821 fi
6822
6823
6824
6825 # Check whether --enable-gather-detailed-mem-stats was given.
6826 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6827   enableval=$enable_gather_detailed_mem_stats;
6828 else
6829   enable_gather_detailed_mem_stats=no
6830 fi
6831
6832 if test x$enable_gather_detailed_mem_stats = xyes ; then
6833
6834 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6835
6836 fi
6837
6838 # -------------------------------
6839 # Miscenalleous configure options
6840 # -------------------------------
6841
6842 # See if we are building gcc with C++.
6843 # Check whether --enable-build-with-cxx was given.
6844 if test "${enable_build_with_cxx+set}" = set; then :
6845   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6846 else
6847   ENABLE_BUILD_WITH_CXX=no
6848 fi
6849
6850
6851 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6852
6853 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6854
6855 fi
6856
6857 # With stabs
6858
6859 # Check whether --with-stabs was given.
6860 if test "${with_stabs+set}" = set; then :
6861   withval=$with_stabs; stabs="$with_stabs"
6862 else
6863   stabs=no
6864 fi
6865
6866
6867 # Determine whether or not multilibs are enabled.
6868 # Check whether --enable-multilib was given.
6869 if test "${enable_multilib+set}" = set; then :
6870   enableval=$enable_multilib;
6871 else
6872   enable_multilib=yes
6873 fi
6874
6875
6876
6877 # Enable __cxa_atexit for C++.
6878 # Check whether --enable-__cxa_atexit was given.
6879 if test "${enable___cxa_atexit+set}" = set; then :
6880   enableval=$enable___cxa_atexit;
6881 fi
6882
6883
6884 # Enable C extension for decimal float if target supports it.
6885
6886 # Check whether --enable-decimal-float was given.
6887 if test "${enable_decimal_float+set}" = set; then :
6888   enableval=$enable_decimal_float;
6889   case $enable_decimal_float in
6890     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6891     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6892 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6893   esac
6894
6895 else
6896
6897   case $target in
6898     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6899     i?86*-*-mingw* | x86_64*-*-mingw* | \
6900     i?86*-*-cygwin*)
6901       enable_decimal_float=yes
6902       ;;
6903     *)
6904       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6905 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6906       enable_decimal_float=no
6907       ;;
6908   esac
6909
6910 fi
6911
6912
6913 # x86's use BID format instead of DPD
6914 case x$enable_decimal_float in
6915   xyes)
6916     case $target in
6917       i?86*-*-* | x86_64*-*-*)
6918         enable_decimal_float=bid
6919         ;;
6920       *)
6921         enable_decimal_float=dpd
6922         ;;
6923     esac
6924     default_decimal_float=$enable_decimal_float
6925     ;;
6926   xno)
6927     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6928     # dependency on libdecnumber.
6929     default_decimal_float=dpd
6930     ;;
6931 esac
6932
6933
6934
6935
6936 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6937
6938 cat >>confdefs.h <<_ACEOF
6939 #define ENABLE_DECIMAL_FLOAT $dfp
6940 _ACEOF
6941
6942
6943 # Use default_decimal_float for dependency.
6944 enable_decimal_float=$default_decimal_float
6945
6946 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6947
6948 cat >>confdefs.h <<_ACEOF
6949 #define ENABLE_DECIMAL_BID_FORMAT $bid
6950 _ACEOF
6951
6952
6953 # Enable C extension for fixed-point arithmetic.
6954 # Check whether --enable-fixed-point was given.
6955 if test "${enable_fixed_point+set}" = set; then :
6956   enableval=$enable_fixed_point;
6957
6958 else
6959
6960   case $target in
6961     mips*-*-*)
6962       case $host in
6963         mips*-sgi-irix*)
6964           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6965 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6966           enable_fixed_point=no
6967           ;;
6968         *)
6969           enable_fixed_point=yes
6970           ;;
6971       esac
6972       ;;
6973     *)
6974       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6975 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6976       enable_fixed_point=no
6977       ;;
6978   esac
6979
6980 fi
6981
6982
6983
6984 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6985
6986 cat >>confdefs.h <<_ACEOF
6987 #define ENABLE_FIXED_POINT $fixedpoint
6988 _ACEOF
6989
6990
6991 # Enable threads
6992 # Pass with no value to take the default
6993 # Pass with a value to specify a thread package
6994 # Check whether --enable-threads was given.
6995 if test "${enable_threads+set}" = set; then :
6996   enableval=$enable_threads;
6997 else
6998   enable_threads=''
6999 fi
7000
7001
7002 # Check whether --enable-tls was given.
7003 if test "${enable_tls+set}" = set; then :
7004   enableval=$enable_tls;
7005   case $enable_tls in
7006     yes | no) ;;
7007     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7008 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7009   esac
7010
7011 else
7012   enable_tls=''
7013 fi
7014
7015
7016 # Check whether --enable-objc-gc was given.
7017 if test "${enable_objc_gc+set}" = set; then :
7018   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7019         objc_boehm_gc=''
7020 else
7021         objc_boehm_gc=1
7022 fi
7023 else
7024   objc_boehm_gc=''
7025 fi
7026
7027
7028
7029 # Check whether --with-dwarf2 was given.
7030 if test "${with_dwarf2+set}" = set; then :
7031   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7032 else
7033   dwarf2=no
7034 fi
7035
7036
7037 # Check whether --enable-shared was given.
7038 if test "${enable_shared+set}" = set; then :
7039   enableval=$enable_shared;
7040   case $enable_shared in
7041   yes | no) ;;
7042   *)
7043     enable_shared=no
7044     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7045     for pkg in $enableval; do
7046       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7047         enable_shared=yes
7048       fi
7049     done
7050     IFS="$ac_save_ifs"
7051     ;;
7052   esac
7053
7054 else
7055   enable_shared=yes
7056 fi
7057
7058
7059
7060
7061 # Check whether --with-build-sysroot was given.
7062 if test "${with_build_sysroot+set}" = set; then :
7063   withval=$with_build_sysroot;
7064 fi
7065
7066
7067
7068 # Check whether --with-sysroot was given.
7069 if test "${with_sysroot+set}" = set; then :
7070   withval=$with_sysroot;
7071  case ${with_sysroot} in
7072  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7073  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7074  esac
7075
7076  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7077  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7078
7079  if test "x$prefix" = xNONE; then
7080   test_prefix=/usr/local
7081  else
7082   test_prefix=$prefix
7083  fi
7084  if test "x$exec_prefix" = xNONE; then
7085   test_exec_prefix=$test_prefix
7086  else
7087   test_exec_prefix=$exec_prefix
7088  fi
7089  case ${TARGET_SYSTEM_ROOT} in
7090  "${test_prefix}"|"${test_prefix}/"*|\
7091  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7092  '${prefix}'|'${prefix}/'*|\
7093  '${exec_prefix}'|'${exec_prefix}/'*)
7094    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7095    TARGET_SYSTEM_ROOT_DEFINE="$t"
7096    ;;
7097  esac
7098
7099 else
7100
7101  TARGET_SYSTEM_ROOT=
7102  TARGET_SYSTEM_ROOT_DEFINE=
7103  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7104
7105 fi
7106
7107
7108
7109
7110
7111
7112 # Check whether --with-specs was given.
7113 if test "${with_specs+set}" = set; then :
7114   withval=$with_specs; CONFIGURE_SPECS=$withval
7115 else
7116   CONFIGURE_SPECS=
7117
7118 fi
7119
7120
7121
7122
7123
7124 # Check whether --with-pkgversion was given.
7125 if test "${with_pkgversion+set}" = set; then :
7126   withval=$with_pkgversion; case "$withval" in
7127       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7128       no)  PKGVERSION= ;;
7129       *)   PKGVERSION="($withval) " ;;
7130      esac
7131 else
7132   PKGVERSION="(GCC) "
7133
7134 fi
7135
7136
7137
7138
7139
7140 # Check whether --with-bugurl was given.
7141 if test "${with_bugurl+set}" = set; then :
7142   withval=$with_bugurl; case "$withval" in
7143       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7144       no)  BUGURL=
7145            ;;
7146       *)   BUGURL="$withval"
7147            ;;
7148      esac
7149 else
7150   BUGURL="http://gcc.gnu.org/bugs.html"
7151
7152 fi
7153
7154   case ${BUGURL} in
7155   "")
7156     REPORT_BUGS_TO=
7157     REPORT_BUGS_TEXI=
7158     ;;
7159   *)
7160     REPORT_BUGS_TO="<$BUGURL>"
7161     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7162     ;;
7163   esac;
7164
7165
7166
7167
7168 # Sanity check enable_languages in case someone does not run the toplevel
7169 # configure # script.
7170 # Check whether --enable-languages was given.
7171 if test "${enable_languages+set}" = set; then :
7172   enableval=$enable_languages; case ,${enable_languages}, in
7173        ,,|,yes,)
7174                 # go safe -- we cannot be much sure without the toplevel
7175                 # configure's
7176                 # analysis of which target libs are present and usable
7177                 enable_languages=c
7178                 ;;
7179          *,all,*)
7180                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7181                 ;;
7182         *,c,*)
7183                 ;;
7184         *)
7185                 enable_languages=c,${enable_languages}
7186                 ;;
7187 esac
7188 else
7189   enable_languages=c
7190 fi
7191
7192
7193
7194 # Check whether --with-multilib-list was given.
7195 if test "${with_multilib_list+set}" = set; then :
7196   withval=$with_multilib_list; :
7197 else
7198   with_multilib_list=default
7199 fi
7200
7201
7202 # -------------------------
7203 # Checks for other programs
7204 # -------------------------
7205
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7207 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7208 set x ${MAKE-make}
7209 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7210 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213   cat >conftest.make <<\_ACEOF
7214 SHELL = /bin/sh
7215 all:
7216         @echo '@@@%%%=$(MAKE)=@@@%%%'
7217 _ACEOF
7218 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7219 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7220   *@@@%%%=?*=@@@%%%*)
7221     eval ac_cv_prog_make_${ac_make}_set=yes;;
7222   *)
7223     eval ac_cv_prog_make_${ac_make}_set=no;;
7224 esac
7225 rm -f conftest.make
7226 fi
7227 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7229 $as_echo "yes" >&6; }
7230   SET_MAKE=
7231 else
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7234   SET_MAKE="MAKE=${MAKE-make}"
7235 fi
7236
7237
7238 # Find some useful tools
7239 for ac_prog in gawk mawk nawk awk
7240 do
7241   # Extract the first word of "$ac_prog", so it can be a program name with args.
7242 set dummy $ac_prog; ac_word=$2
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if test "${ac_cv_prog_AWK+set}" = set; then :
7246   $as_echo_n "(cached) " >&6
7247 else
7248   if test -n "$AWK"; then
7249   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7250 else
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 for as_dir in $PATH
7253 do
7254   IFS=$as_save_IFS
7255   test -z "$as_dir" && as_dir=.
7256     for ac_exec_ext in '' $ac_executable_extensions; do
7257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7258     ac_cv_prog_AWK="$ac_prog"
7259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260     break 2
7261   fi
7262 done
7263   done
7264 IFS=$as_save_IFS
7265
7266 fi
7267 fi
7268 AWK=$ac_cv_prog_AWK
7269 if test -n "$AWK"; then
7270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7271 $as_echo "$AWK" >&6; }
7272 else
7273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 $as_echo "no" >&6; }
7275 fi
7276
7277
7278   test -n "$AWK" && break
7279 done
7280
7281 # We need awk to create options.c and options.h.
7282 # Bail out if it's missing.
7283 case ${AWK} in
7284   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7285 esac
7286
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7288 $as_echo_n "checking whether ln -s works... " >&6; }
7289 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7290   $as_echo_n "(cached) " >&6
7291 else
7292   rm -f conftestdata_t
7293 echo >conftestdata_f
7294 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7295 then
7296   gcc_cv_prog_LN_S="ln -s"
7297 else
7298   if ln conftestdata_f conftestdata_t 2>/dev/null
7299   then
7300     gcc_cv_prog_LN_S=ln
7301   else
7302     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7303     then
7304       gcc_cv_prog_LN_S="cp -p"
7305     else
7306       gcc_cv_prog_LN_S=cp
7307     fi
7308   fi
7309 fi
7310 rm -f conftestdata_f conftestdata_t
7311
7312 fi
7313 LN_S="$gcc_cv_prog_LN_S"
7314 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7316 $as_echo "yes" >&6; }
7317 else
7318   if test "$gcc_cv_prog_LN_S" = "ln"; then
7319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7320 $as_echo "no, using ln" >&6; }
7321   else
7322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7323 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7324   fi
7325 fi
7326
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7328 $as_echo_n "checking whether ln works... " >&6; }
7329 if test "${acx_cv_prog_LN+set}" = set; then :
7330   $as_echo_n "(cached) " >&6
7331 else
7332   rm -f conftestdata_t
7333 echo >conftestdata_f
7334 if ln conftestdata_f conftestdata_t 2>/dev/null
7335 then
7336   acx_cv_prog_LN=ln
7337 else
7338   acx_cv_prog_LN=no
7339 fi
7340 rm -f conftestdata_f conftestdata_t
7341
7342 fi
7343 if test $acx_cv_prog_LN = no; then
7344   LN="$LN_S"
7345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7346 $as_echo "no, using $LN" >&6; }
7347 else
7348   LN="$acx_cv_prog_LN"
7349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7350 $as_echo "yes" >&6; }
7351 fi
7352
7353 if test -n "$ac_tool_prefix"; then
7354   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7355 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7359   $as_echo_n "(cached) " >&6
7360 else
7361   if test -n "$RANLIB"; then
7362   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7363 else
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367   IFS=$as_save_IFS
7368   test -z "$as_dir" && as_dir=.
7369     for ac_exec_ext in '' $ac_executable_extensions; do
7370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373     break 2
7374   fi
7375 done
7376   done
7377 IFS=$as_save_IFS
7378
7379 fi
7380 fi
7381 RANLIB=$ac_cv_prog_RANLIB
7382 if test -n "$RANLIB"; then
7383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7384 $as_echo "$RANLIB" >&6; }
7385 else
7386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7388 fi
7389
7390
7391 fi
7392 if test -z "$ac_cv_prog_RANLIB"; then
7393   ac_ct_RANLIB=$RANLIB
7394   # Extract the first word of "ranlib", so it can be a program name with args.
7395 set dummy ranlib; ac_word=$2
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7399   $as_echo_n "(cached) " >&6
7400 else
7401   if test -n "$ac_ct_RANLIB"; then
7402   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407   IFS=$as_save_IFS
7408   test -z "$as_dir" && as_dir=.
7409     for ac_exec_ext in '' $ac_executable_extensions; do
7410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7411     ac_cv_prog_ac_ct_RANLIB="ranlib"
7412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413     break 2
7414   fi
7415 done
7416   done
7417 IFS=$as_save_IFS
7418
7419 fi
7420 fi
7421 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7422 if test -n "$ac_ct_RANLIB"; then
7423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7424 $as_echo "$ac_ct_RANLIB" >&6; }
7425 else
7426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7428 fi
7429
7430   if test "x$ac_ct_RANLIB" = x; then
7431     RANLIB=":"
7432   else
7433     case $cross_compiling:$ac_tool_warned in
7434 yes:)
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7437 ac_tool_warned=yes ;;
7438 esac
7439     RANLIB=$ac_ct_RANLIB
7440   fi
7441 else
7442   RANLIB="$ac_cv_prog_RANLIB"
7443 fi
7444
7445 ranlib_flags=""
7446
7447
7448 # Find a good install program.  We prefer a C program (faster),
7449 # so one script is as good as another.  But avoid the broken or
7450 # incompatible versions:
7451 # SysV /etc/install, /usr/sbin/install
7452 # SunOS /usr/etc/install
7453 # IRIX /sbin/install
7454 # AIX /bin/install
7455 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7456 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7457 # ./install, which can be erroneously created by make from ./install.sh.
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7459 $as_echo_n "checking for a BSD compatible install... " >&6; }
7460 if test -z "$INSTALL"; then
7461 if test "${ac_cv_path_install+set}" = set; then :
7462   $as_echo_n "(cached) " >&6
7463 else
7464     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7465   for ac_dir in $PATH; do
7466     # Account for people who put trailing slashes in PATH elements.
7467     case "$ac_dir/" in
7468     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7469     *)
7470       # OSF1 and SCO ODT 3.0 have their own names for install.
7471       for ac_prog in ginstall scoinst install; do
7472         if test -f $ac_dir/$ac_prog; then
7473           if test $ac_prog = install &&
7474             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7475             # AIX install.  It has an incompatible calling convention.
7476             # OSF/1 installbsd also uses dspmsg, but is usable.
7477             :
7478           else
7479             ac_cv_path_install="$ac_dir/$ac_prog -c"
7480             break 2
7481           fi
7482         fi
7483       done
7484       ;;
7485     esac
7486   done
7487   IFS="$ac_save_IFS"
7488
7489 fi
7490   if test "${ac_cv_path_install+set}" = set; then
7491     INSTALL="$ac_cv_path_install"
7492   else
7493     # As a last resort, use the slow shell script.  We don't cache a
7494     # path for INSTALL within a source directory, because that will
7495     # break other packages using the cache if that directory is
7496     # removed, or if the path is relative.
7497     INSTALL="$ac_install_sh"
7498   fi
7499 fi
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7501 $as_echo "$INSTALL" >&6; }
7502
7503 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7504 # It thinks the first close brace ends the variable substitution.
7505 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7506
7507 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7508
7509
7510 # See if cmp has --ignore-initial.
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7512 $as_echo_n "checking for cmp's capabilities... " >&6; }
7513 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7514   $as_echo_n "(cached) " >&6
7515 else
7516    echo abfoo >t1
7517   echo cdfoo >t2
7518   gcc_cv_prog_cmp_skip=slowcompare
7519   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7520     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7521       :
7522     else
7523       gcc_cv_prog_cmp_skip=gnucompare
7524     fi
7525   fi
7526   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7527     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7528       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7529         :
7530       else
7531         gcc_cv_prog_cmp_skip=fastcompare
7532       fi
7533     fi
7534   fi
7535   rm t1 t2
7536
7537 fi
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7539 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7540 make_compare_target=$gcc_cv_prog_cmp_skip
7541
7542
7543
7544 # See if we have the mktemp command.
7545 # Extract the first word of "mktemp", so it can be a program name with args.
7546 set dummy mktemp; ac_word=$2
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548 $as_echo_n "checking for $ac_word... " >&6; }
7549 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7550   $as_echo_n "(cached) " >&6
7551 else
7552   if test -n "$have_mktemp_command"; then
7553   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560     for ac_exec_ext in '' $ac_executable_extensions; do
7561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7562     ac_cv_prog_have_mktemp_command="yes"
7563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567   done
7568 IFS=$as_save_IFS
7569
7570   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7571 fi
7572 fi
7573 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7574 if test -n "$have_mktemp_command"; then
7575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7576 $as_echo "$have_mktemp_command" >&6; }
7577 else
7578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7580 fi
7581
7582
7583
7584 # See if makeinfo has been installed and is modern enough
7585 # that we can use it.
7586
7587   # Extract the first word of "makeinfo", so it can be a program name with args.
7588 set dummy makeinfo; ac_word=$2
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590 $as_echo_n "checking for $ac_word... " >&6; }
7591 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594   if test -n "$MAKEINFO"; then
7595   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7596 else
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600   IFS=$as_save_IFS
7601   test -z "$as_dir" && as_dir=.
7602     for ac_exec_ext in '' $ac_executable_extensions; do
7603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7604     ac_cv_prog_MAKEINFO="makeinfo"
7605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606     break 2
7607   fi
7608 done
7609   done
7610 IFS=$as_save_IFS
7611
7612 fi
7613 fi
7614 MAKEINFO=$ac_cv_prog_MAKEINFO
7615 if test -n "$MAKEINFO"; then
7616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7617 $as_echo "$MAKEINFO" >&6; }
7618 else
7619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7621 fi
7622
7623
7624   if test -n "$MAKEINFO"; then
7625     # Found it, now check the version.
7626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7627 $as_echo_n "checking for modern makeinfo... " >&6; }
7628 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7629   $as_echo_n "(cached) " >&6
7630 else
7631   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7632                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7633
7634                     case $ac_prog_version in
7635                       '')  gcc_cv_prog_makeinfo_modern=no;;
7636                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7637                       *)   gcc_cv_prog_makeinfo_modern=no;;
7638                     esac
7639
7640 fi
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7642 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7643   else
7644     gcc_cv_prog_makeinfo_modern=no
7645   fi
7646   if test $gcc_cv_prog_makeinfo_modern = no; then
7647     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7648   fi
7649
7650 if test $gcc_cv_prog_makeinfo_modern = no; then
7651   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7652 *** Makeinfo is missing or too old.
7653 *** Info documentation will not be built." >&5
7654 $as_echo "$as_me: WARNING:
7655 *** Makeinfo is missing or too old.
7656 *** Info documentation will not be built." >&2;}
7657   BUILD_INFO=
7658 else
7659   BUILD_INFO=info
7660 fi
7661
7662
7663 # Is pod2man recent enough to regenerate manpages?
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7665 $as_echo_n "checking for recent Pod::Man... " >&6; }
7666 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7668 $as_echo "yes" >&6; }
7669   GENERATED_MANPAGES=generated-manpages
7670 else
7671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7673   GENERATED_MANPAGES=
7674 fi
7675
7676
7677 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7678
7679 # How about lex?
7680 for ac_prog in flex
7681 do
7682   # Extract the first word of "$ac_prog", so it can be a program name with args.
7683 set dummy $ac_prog; ac_word=$2
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7685 $as_echo_n "checking for $ac_word... " >&6; }
7686 if test "${ac_cv_prog_FLEX+set}" = set; then :
7687   $as_echo_n "(cached) " >&6
7688 else
7689   if test -n "$FLEX"; then
7690   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7691 else
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 for as_dir in $PATH
7694 do
7695   IFS=$as_save_IFS
7696   test -z "$as_dir" && as_dir=.
7697     for ac_exec_ext in '' $ac_executable_extensions; do
7698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7699     ac_cv_prog_FLEX="$ac_prog"
7700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701     break 2
7702   fi
7703 done
7704   done
7705 IFS=$as_save_IFS
7706
7707 fi
7708 fi
7709 FLEX=$ac_cv_prog_FLEX
7710 if test -n "$FLEX"; then
7711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7712 $as_echo "$FLEX" >&6; }
7713 else
7714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7715 $as_echo "no" >&6; }
7716 fi
7717
7718
7719   test -n "$FLEX" && break
7720 done
7721 test -n "$FLEX" || FLEX="$MISSING flex"
7722
7723
7724 # Bison?
7725 for ac_prog in bison
7726 do
7727   # Extract the first word of "$ac_prog", so it can be a program name with args.
7728 set dummy $ac_prog; ac_word=$2
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 $as_echo_n "checking for $ac_word... " >&6; }
7731 if test "${ac_cv_prog_BISON+set}" = set; then :
7732   $as_echo_n "(cached) " >&6
7733 else
7734   if test -n "$BISON"; then
7735   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7736 else
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 for as_dir in $PATH
7739 do
7740   IFS=$as_save_IFS
7741   test -z "$as_dir" && as_dir=.
7742     for ac_exec_ext in '' $ac_executable_extensions; do
7743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744     ac_cv_prog_BISON="$ac_prog"
7745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746     break 2
7747   fi
7748 done
7749   done
7750 IFS=$as_save_IFS
7751
7752 fi
7753 fi
7754 BISON=$ac_cv_prog_BISON
7755 if test -n "$BISON"; then
7756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7757 $as_echo "$BISON" >&6; }
7758 else
7759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7761 fi
7762
7763
7764   test -n "$BISON" && break
7765 done
7766 test -n "$BISON" || BISON="$MISSING bison"
7767
7768
7769 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7770 # check for build == host before using them.
7771
7772 # NM
7773 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7774   && test -d ../binutils ; then
7775   NM='${objdir}/../binutils/nm-new'
7776 else
7777   # Extract the first word of "nm", so it can be a program name with args.
7778 set dummy nm; ac_word=$2
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7780 $as_echo_n "checking for $ac_word... " >&6; }
7781 if test "${ac_cv_prog_NM+set}" = set; then :
7782   $as_echo_n "(cached) " >&6
7783 else
7784   if test -n "$NM"; then
7785   ac_cv_prog_NM="$NM" # Let the user override the test.
7786 else
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 for as_dir in $PATH
7789 do
7790   IFS=$as_save_IFS
7791   test -z "$as_dir" && as_dir=.
7792     for ac_exec_ext in '' $ac_executable_extensions; do
7793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7794     ac_cv_prog_NM="nm"
7795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7796     break 2
7797   fi
7798 done
7799   done
7800 IFS=$as_save_IFS
7801
7802   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7803 fi
7804 fi
7805 NM=$ac_cv_prog_NM
7806 if test -n "$NM"; then
7807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7808 $as_echo "$NM" >&6; }
7809 else
7810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7812 fi
7813
7814
7815 fi
7816
7817 # AR
7818 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7819   && test -d ../binutils ; then
7820   AR='${objdir}/../binutils/ar'
7821 else
7822   # Extract the first word of "ar", so it can be a program name with args.
7823 set dummy ar; ac_word=$2
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825 $as_echo_n "checking for $ac_word... " >&6; }
7826 if test "${ac_cv_prog_AR+set}" = set; then :
7827   $as_echo_n "(cached) " >&6
7828 else
7829   if test -n "$AR"; then
7830   ac_cv_prog_AR="$AR" # Let the user override the test.
7831 else
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 for as_dir in $PATH
7834 do
7835   IFS=$as_save_IFS
7836   test -z "$as_dir" && as_dir=.
7837     for ac_exec_ext in '' $ac_executable_extensions; do
7838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7839     ac_cv_prog_AR="ar"
7840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841     break 2
7842   fi
7843 done
7844   done
7845 IFS=$as_save_IFS
7846
7847   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7848 fi
7849 fi
7850 AR=$ac_cv_prog_AR
7851 if test -n "$AR"; then
7852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7853 $as_echo "$AR" >&6; }
7854 else
7855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7857 fi
7858
7859
7860 fi
7861
7862
7863 # --------------------
7864 # Checks for C headers
7865 # --------------------
7866
7867 # Need to reject headers which give warnings, so that the -Werror bootstrap
7868 # works later. *sigh*  This needs to come before all header checks.
7869
7870 ac_c_preproc_warn_flag=yes
7871
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7873 $as_echo_n "checking for ANSI C header files... " >&6; }
7874 if test "${ac_cv_header_stdc+set}" = set; then :
7875   $as_echo_n "(cached) " >&6
7876 else
7877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878 /* end confdefs.h.  */
7879 #include <stdlib.h>
7880 #include <stdarg.h>
7881 #include <string.h>
7882 #include <float.h>
7883
7884 int
7885 main ()
7886 {
7887
7888   ;
7889   return 0;
7890 }
7891 _ACEOF
7892 if ac_fn_c_try_compile "$LINENO"; then :
7893   ac_cv_header_stdc=yes
7894 else
7895   ac_cv_header_stdc=no
7896 fi
7897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7898
7899 if test $ac_cv_header_stdc = yes; then
7900   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h.  */
7903 #include <string.h>
7904
7905 _ACEOF
7906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7907   $EGREP "memchr" >/dev/null 2>&1; then :
7908
7909 else
7910   ac_cv_header_stdc=no
7911 fi
7912 rm -f conftest*
7913
7914 fi
7915
7916 if test $ac_cv_header_stdc = yes; then
7917   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h.  */
7920 #include <stdlib.h>
7921
7922 _ACEOF
7923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7924   $EGREP "free" >/dev/null 2>&1; then :
7925
7926 else
7927   ac_cv_header_stdc=no
7928 fi
7929 rm -f conftest*
7930
7931 fi
7932
7933 if test $ac_cv_header_stdc = yes; then
7934   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7935   if test "$cross_compiling" = yes; then :
7936   :
7937 else
7938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h.  */
7940 #include <ctype.h>
7941 #include <stdlib.h>
7942 #if ((' ' & 0x0FF) == 0x020)
7943 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7944 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7945 #else
7946 # define ISLOWER(c) \
7947                    (('a' <= (c) && (c) <= 'i') \
7948                      || ('j' <= (c) && (c) <= 'r') \
7949                      || ('s' <= (c) && (c) <= 'z'))
7950 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7951 #endif
7952
7953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7954 int
7955 main ()
7956 {
7957   int i;
7958   for (i = 0; i < 256; i++)
7959     if (XOR (islower (i), ISLOWER (i))
7960         || toupper (i) != TOUPPER (i))
7961       return 2;
7962   return 0;
7963 }
7964 _ACEOF
7965 if ac_fn_c_try_run "$LINENO"; then :
7966
7967 else
7968   ac_cv_header_stdc=no
7969 fi
7970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7971   conftest.$ac_objext conftest.beam conftest.$ac_ext
7972 fi
7973
7974 fi
7975 fi
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7977 $as_echo "$ac_cv_header_stdc" >&6; }
7978 if test $ac_cv_header_stdc = yes; then
7979
7980 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7981
7982 fi
7983
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7985 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7986 if test "${ac_cv_header_time+set}" = set; then :
7987   $as_echo_n "(cached) " >&6
7988 else
7989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h.  */
7991 #include <sys/types.h>
7992 #include <sys/time.h>
7993 #include <time.h>
7994
7995 int
7996 main ()
7997 {
7998 if ((struct tm *) 0)
7999 return 0;
8000   ;
8001   return 0;
8002 }
8003 _ACEOF
8004 if ac_fn_c_try_compile "$LINENO"; then :
8005   ac_cv_header_time=yes
8006 else
8007   ac_cv_header_time=no
8008 fi
8009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8010 fi
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8012 $as_echo "$ac_cv_header_time" >&6; }
8013 if test $ac_cv_header_time = yes; then
8014
8015 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8016
8017 fi
8018
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8020 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8021 if test "${gcc_cv_header_string+set}" = set; then :
8022   $as_echo_n "(cached) " >&6
8023 else
8024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h.  */
8026 #include <string.h>
8027 #include <strings.h>
8028 int
8029 main ()
8030 {
8031
8032   ;
8033   return 0;
8034 }
8035 _ACEOF
8036 if ac_fn_c_try_compile "$LINENO"; then :
8037   gcc_cv_header_string=yes
8038 else
8039   gcc_cv_header_string=no
8040 fi
8041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8042 fi
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8044 $as_echo "$gcc_cv_header_string" >&6; }
8045 if test $gcc_cv_header_string = yes; then
8046
8047 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8048
8049 fi
8050
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8052 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8053 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8054   $as_echo_n "(cached) " >&6
8055 else
8056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h.  */
8058 #include <sys/types.h>
8059 #include <sys/wait.h>
8060 #ifndef WEXITSTATUS
8061 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8062 #endif
8063 #ifndef WIFEXITED
8064 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8065 #endif
8066
8067 int
8068 main ()
8069 {
8070   int s;
8071   wait (&s);
8072   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8073   ;
8074   return 0;
8075 }
8076 _ACEOF
8077 if ac_fn_c_try_compile "$LINENO"; then :
8078   ac_cv_header_sys_wait_h=yes
8079 else
8080   ac_cv_header_sys_wait_h=no
8081 fi
8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083 fi
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8085 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8086 if test $ac_cv_header_sys_wait_h = yes; then
8087
8088 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8089
8090 fi
8091
8092 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8093                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8094                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8095                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8096 do :
8097   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8098 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8099 eval as_val=\$$as_ac_Header
8100    if test "x$as_val" = x""yes; then :
8101   cat >>confdefs.h <<_ACEOF
8102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8103 _ACEOF
8104
8105 fi
8106 done
8107
8108
8109 # Check for thread headers.
8110 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8111 if test "x$ac_cv_header_thread_h" = x""yes; then :
8112   have_thread_h=yes
8113 else
8114   have_thread_h=
8115 fi
8116
8117 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8118 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8119   have_pthread_h=yes
8120 else
8121   have_pthread_h=
8122 fi
8123
8124
8125 # These tests can't be done till we know if we have limits.h.
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8127 $as_echo_n "checking for CHAR_BIT... " >&6; }
8128 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8129   $as_echo_n "(cached) " >&6
8130 else
8131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h.  */
8133 #ifdef HAVE_LIMITS_H
8134 #include <limits.h>
8135 #endif
8136 #ifdef CHAR_BIT
8137 found
8138 #endif
8139 _ACEOF
8140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8141   $EGREP "found" >/dev/null 2>&1; then :
8142   gcc_cv_decl_char_bit=yes
8143 else
8144   gcc_cv_decl_char_bit=no
8145 fi
8146 rm -f conftest*
8147
8148
8149 fi
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8151 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8152 if test $gcc_cv_decl_char_bit = no; then
8153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8154 $as_echo_n "checking number of bits in a byte... " >&6; }
8155 if test "${gcc_cv_c_nbby+set}" = set; then :
8156   $as_echo_n "(cached) " >&6
8157 else
8158   i=8
8159  gcc_cv_c_nbby=
8160  while test $i -lt 65; do
8161    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h.  */
8163
8164 int
8165 main ()
8166 {
8167 switch(0) {
8168   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8169   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8170   ; }
8171   ;
8172   return 0;
8173 }
8174 _ACEOF
8175 if ac_fn_c_try_compile "$LINENO"; then :
8176   gcc_cv_c_nbby=$i; break
8177 fi
8178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179    i=`expr $i + 1`
8180  done
8181  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8182
8183 fi
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8185 $as_echo "$gcc_cv_c_nbby" >&6; }
8186 if test $gcc_cv_c_nbby = failed; then
8187   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8188 else
8189
8190 cat >>confdefs.h <<_ACEOF
8191 #define CHAR_BIT $gcc_cv_c_nbby
8192 _ACEOF
8193
8194 fi
8195 fi
8196  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8197 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8198 if test "${ac_cv_c_bigendian+set}" = set; then :
8199   $as_echo_n "(cached) " >&6
8200 else
8201   ac_cv_c_bigendian=unknown
8202     # See if we're dealing with a universal compiler.
8203     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h.  */
8205 #ifndef __APPLE_CC__
8206                not a universal capable compiler
8207              #endif
8208              typedef int dummy;
8209
8210 _ACEOF
8211 if ac_fn_c_try_compile "$LINENO"; then :
8212
8213         # Check for potential -arch flags.  It is not universal unless
8214         # there are at least two -arch flags with different values.
8215         ac_arch=
8216         ac_prev=
8217         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8218          if test -n "$ac_prev"; then
8219            case $ac_word in
8220              i?86 | x86_64 | ppc | ppc64)
8221                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8222                  ac_arch=$ac_word
8223                else
8224                  ac_cv_c_bigendian=universal
8225                  break
8226                fi
8227                ;;
8228            esac
8229            ac_prev=
8230          elif test "x$ac_word" = "x-arch"; then
8231            ac_prev=arch
8232          fi
8233        done
8234 fi
8235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8236     if test $ac_cv_c_bigendian = unknown; then
8237       # See if sys/param.h defines the BYTE_ORDER macro.
8238       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h.  */
8240 #include <sys/types.h>
8241              #include <sys/param.h>
8242
8243 int
8244 main ()
8245 {
8246 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8247                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8248                      && LITTLE_ENDIAN)
8249               bogus endian macros
8250              #endif
8251
8252   ;
8253   return 0;
8254 }
8255 _ACEOF
8256 if ac_fn_c_try_compile "$LINENO"; then :
8257   # It does; now see whether it defined to BIG_ENDIAN or not.
8258          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h.  */
8260 #include <sys/types.h>
8261                 #include <sys/param.h>
8262
8263 int
8264 main ()
8265 {
8266 #if BYTE_ORDER != BIG_ENDIAN
8267                  not big endian
8268                 #endif
8269
8270   ;
8271   return 0;
8272 }
8273 _ACEOF
8274 if ac_fn_c_try_compile "$LINENO"; then :
8275   ac_cv_c_bigendian=yes
8276 else
8277   ac_cv_c_bigendian=no
8278 fi
8279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8280 fi
8281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8282     fi
8283     if test $ac_cv_c_bigendian = unknown; then
8284       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8285       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h.  */
8287 #include <limits.h>
8288
8289 int
8290 main ()
8291 {
8292 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8293               bogus endian macros
8294              #endif
8295
8296   ;
8297   return 0;
8298 }
8299 _ACEOF
8300 if ac_fn_c_try_compile "$LINENO"; then :
8301   # It does; now see whether it defined to _BIG_ENDIAN or not.
8302          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h.  */
8304 #include <limits.h>
8305
8306 int
8307 main ()
8308 {
8309 #ifndef _BIG_ENDIAN
8310                  not big endian
8311                 #endif
8312
8313   ;
8314   return 0;
8315 }
8316 _ACEOF
8317 if ac_fn_c_try_compile "$LINENO"; then :
8318   ac_cv_c_bigendian=yes
8319 else
8320   ac_cv_c_bigendian=no
8321 fi
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 fi
8324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8325     fi
8326     if test $ac_cv_c_bigendian = unknown; then
8327       # Compile a test program.
8328       if test "$cross_compiling" = yes; then :
8329   # Try to guess by grepping values from an object file.
8330          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h.  */
8332 short int ascii_mm[] =
8333                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8334                 short int ascii_ii[] =
8335                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8336                 int use_ascii (int i) {
8337                   return ascii_mm[i] + ascii_ii[i];
8338                 }
8339                 short int ebcdic_ii[] =
8340                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8341                 short int ebcdic_mm[] =
8342                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8343                 int use_ebcdic (int i) {
8344                   return ebcdic_mm[i] + ebcdic_ii[i];
8345                 }
8346                 extern int foo;
8347
8348 int
8349 main ()
8350 {
8351 return use_ascii (foo) == use_ebcdic (foo);
8352   ;
8353   return 0;
8354 }
8355 _ACEOF
8356 if ac_fn_c_try_compile "$LINENO"; then :
8357   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8358               ac_cv_c_bigendian=yes
8359             fi
8360             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8361               if test "$ac_cv_c_bigendian" = unknown; then
8362                 ac_cv_c_bigendian=no
8363               else
8364                 # finding both strings is unlikely to happen, but who knows?
8365                 ac_cv_c_bigendian=unknown
8366               fi
8367             fi
8368 fi
8369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370 else
8371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372 /* end confdefs.h.  */
8373 $ac_includes_default
8374 int
8375 main ()
8376 {
8377
8378              /* Are we little or big endian?  From Harbison&Steele.  */
8379              union
8380              {
8381                long int l;
8382                char c[sizeof (long int)];
8383              } u;
8384              u.l = 1;
8385              return u.c[sizeof (long int) - 1] == 1;
8386
8387   ;
8388   return 0;
8389 }
8390 _ACEOF
8391 if ac_fn_c_try_run "$LINENO"; then :
8392   ac_cv_c_bigendian=no
8393 else
8394   ac_cv_c_bigendian=yes
8395 fi
8396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8397   conftest.$ac_objext conftest.beam conftest.$ac_ext
8398 fi
8399
8400     fi
8401 fi
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8403 $as_echo "$ac_cv_c_bigendian" >&6; }
8404  case $ac_cv_c_bigendian in #(
8405    yes)
8406      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8407 ;; #(
8408    no)
8409       ;; #(
8410    universal)
8411
8412 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8413
8414      ;; #(
8415    *)
8416      as_fn_error "unknown endianness
8417  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8418  esac
8419
8420
8421 # ----------------------
8422 # Checks for C++ headers
8423 # ----------------------
8424
8425 ac_ext=cpp
8426 ac_cpp='$CXXCPP $CPPFLAGS'
8427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8431 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8432 if test -z "$CXXCPP"; then
8433   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8434   $as_echo_n "(cached) " >&6
8435 else
8436       # Double quotes because CXXCPP needs to be expanded
8437     for CXXCPP in "$CXX -E" "/lib/cpp"
8438     do
8439       ac_preproc_ok=false
8440 for ac_cxx_preproc_warn_flag in '' yes
8441 do
8442   # Use a header file that comes with gcc, so configuring glibc
8443   # with a fresh cross-compiler works.
8444   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8445   # <limits.h> exists even on freestanding compilers.
8446   # On the NeXT, cc -E runs the code through the compiler's parser,
8447   # not just through cpp. "Syntax error" is here to catch this case.
8448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449 /* end confdefs.h.  */
8450 #ifdef __STDC__
8451 # include <limits.h>
8452 #else
8453 # include <assert.h>
8454 #endif
8455                      Syntax error
8456 _ACEOF
8457 if ac_fn_cxx_try_cpp "$LINENO"; then :
8458
8459 else
8460   # Broken: fails on valid input.
8461 continue
8462 fi
8463 rm -f conftest.err conftest.$ac_ext
8464
8465   # OK, works on sane cases.  Now check whether nonexistent headers
8466   # can be detected and how.
8467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h.  */
8469 #include <ac_nonexistent.h>
8470 _ACEOF
8471 if ac_fn_cxx_try_cpp "$LINENO"; then :
8472   # Broken: success on invalid input.
8473 continue
8474 else
8475   # Passes both tests.
8476 ac_preproc_ok=:
8477 break
8478 fi
8479 rm -f conftest.err conftest.$ac_ext
8480
8481 done
8482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8483 rm -f conftest.err conftest.$ac_ext
8484 if $ac_preproc_ok; then :
8485   break
8486 fi
8487
8488     done
8489     ac_cv_prog_CXXCPP=$CXXCPP
8490
8491 fi
8492   CXXCPP=$ac_cv_prog_CXXCPP
8493 else
8494   ac_cv_prog_CXXCPP=$CXXCPP
8495 fi
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8497 $as_echo "$CXXCPP" >&6; }
8498 ac_preproc_ok=false
8499 for ac_cxx_preproc_warn_flag in '' yes
8500 do
8501   # Use a header file that comes with gcc, so configuring glibc
8502   # with a fresh cross-compiler works.
8503   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8504   # <limits.h> exists even on freestanding compilers.
8505   # On the NeXT, cc -E runs the code through the compiler's parser,
8506   # not just through cpp. "Syntax error" is here to catch this case.
8507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h.  */
8509 #ifdef __STDC__
8510 # include <limits.h>
8511 #else
8512 # include <assert.h>
8513 #endif
8514                      Syntax error
8515 _ACEOF
8516 if ac_fn_cxx_try_cpp "$LINENO"; then :
8517
8518 else
8519   # Broken: fails on valid input.
8520 continue
8521 fi
8522 rm -f conftest.err conftest.$ac_ext
8523
8524   # OK, works on sane cases.  Now check whether nonexistent headers
8525   # can be detected and how.
8526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h.  */
8528 #include <ac_nonexistent.h>
8529 _ACEOF
8530 if ac_fn_cxx_try_cpp "$LINENO"; then :
8531   # Broken: success on invalid input.
8532 continue
8533 else
8534   # Passes both tests.
8535 ac_preproc_ok=:
8536 break
8537 fi
8538 rm -f conftest.err conftest.$ac_ext
8539
8540 done
8541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8542 rm -f conftest.err conftest.$ac_ext
8543 if $ac_preproc_ok; then :
8544
8545 else
8546   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8549 See \`config.log' for more details." >&5
8550 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8551 See \`config.log' for more details." >&2;}; }
8552 fi
8553
8554 ac_ext=c
8555 ac_cpp='$CPP $CPPFLAGS'
8556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8559
8560
8561 ac_ext=cpp
8562 ac_cpp='$CXXCPP $CPPFLAGS'
8563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8566
8567
8568
8569
8570 for ac_header in unordered_map
8571 do :
8572   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8573 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8574   cat >>confdefs.h <<_ACEOF
8575 #define HAVE_UNORDERED_MAP 1
8576 _ACEOF
8577
8578 fi
8579 done
8580
8581 for ac_header in tr1/unordered_map
8582 do :
8583   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8584 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8585   cat >>confdefs.h <<_ACEOF
8586 #define HAVE_TR1_UNORDERED_MAP 1
8587 _ACEOF
8588
8589 fi
8590 done
8591
8592 for ac_header in ext/hash_map
8593 do :
8594   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8595 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8596   cat >>confdefs.h <<_ACEOF
8597 #define HAVE_EXT_HASH_MAP 1
8598 _ACEOF
8599
8600 fi
8601 done
8602
8603
8604 ac_ext=c
8605 ac_cpp='$CPP $CPPFLAGS'
8606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8609
8610
8611 # --------
8612 # UNSORTED
8613 # --------
8614
8615
8616 # These libraries may be used by collect2.
8617 # We may need a special search path to get them linked.
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8619 $as_echo_n "checking for collect2 libraries... " >&6; }
8620 if test "${gcc_cv_collect2_libs+set}" = set; then :
8621   $as_echo_n "(cached) " >&6
8622 else
8623   save_LIBS="$LIBS"
8624 for libs in '' -lld -lmld \
8625                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8626                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8627 do
8628         LIBS="$libs"
8629         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h.  */
8631
8632 /* Override any GCC internal prototype to avoid an error.
8633    Use char because int might match the return type of a GCC
8634    builtin and then its argument prototype would still apply.  */
8635 #ifdef __cplusplus
8636 extern "C"
8637 #endif
8638 char ldopen ();
8639 int
8640 main ()
8641 {
8642 return ldopen ();
8643   ;
8644   return 0;
8645 }
8646 _ACEOF
8647 if ac_fn_c_try_link "$LINENO"; then :
8648   gcc_cv_collect2_libs="$libs"; break
8649 fi
8650 rm -f core conftest.err conftest.$ac_objext \
8651     conftest$ac_exeext conftest.$ac_ext
8652 done
8653 LIBS="$save_LIBS"
8654 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8655 fi
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8657 $as_echo "$gcc_cv_collect2_libs" >&6; }
8658 case $gcc_cv_collect2_libs in
8659         "none required")        ;;
8660         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8661 esac
8662
8663
8664 # When building Ada code on Alpha, we need exc_resume which is usually in
8665 # -lexc.  So test for it.
8666 save_LIBS="$LIBS"
8667 LIBS=
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8669 $as_echo_n "checking for library containing exc_resume... " >&6; }
8670 if test "${ac_cv_search_exc_resume+set}" = set; then :
8671   $as_echo_n "(cached) " >&6
8672 else
8673   ac_func_search_save_LIBS=$LIBS
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h.  */
8676
8677 /* Override any GCC internal prototype to avoid an error.
8678    Use char because int might match the return type of a GCC
8679    builtin and then its argument prototype would still apply.  */
8680 #ifdef __cplusplus
8681 extern "C"
8682 #endif
8683 char exc_resume ();
8684 int
8685 main ()
8686 {
8687 return exc_resume ();
8688   ;
8689   return 0;
8690 }
8691 _ACEOF
8692 for ac_lib in '' exc; do
8693   if test -z "$ac_lib"; then
8694     ac_res="none required"
8695   else
8696     ac_res=-l$ac_lib
8697     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8698   fi
8699   if ac_fn_c_try_link "$LINENO"; then :
8700   ac_cv_search_exc_resume=$ac_res
8701 fi
8702 rm -f core conftest.err conftest.$ac_objext \
8703     conftest$ac_exeext
8704   if test "${ac_cv_search_exc_resume+set}" = set; then :
8705   break
8706 fi
8707 done
8708 if test "${ac_cv_search_exc_resume+set}" = set; then :
8709
8710 else
8711   ac_cv_search_exc_resume=no
8712 fi
8713 rm conftest.$ac_ext
8714 LIBS=$ac_func_search_save_LIBS
8715 fi
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8717 $as_echo "$ac_cv_search_exc_resume" >&6; }
8718 ac_res=$ac_cv_search_exc_resume
8719 if test "$ac_res" != no; then :
8720   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8721
8722 fi
8723
8724 GNAT_LIBEXC="$LIBS"
8725 LIBS="$save_LIBS"
8726
8727
8728 # Some systems put ldexp and frexp in libm instead of libc; assume
8729 # they're both in the same place.  jcf-dump needs them.
8730 save_LIBS="$LIBS"
8731 LIBS=
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8733 $as_echo_n "checking for library containing ldexp... " >&6; }
8734 if test "${ac_cv_search_ldexp+set}" = set; then :
8735   $as_echo_n "(cached) " >&6
8736 else
8737   ac_func_search_save_LIBS=$LIBS
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h.  */
8740
8741 /* Override any GCC internal prototype to avoid an error.
8742    Use char because int might match the return type of a GCC
8743    builtin and then its argument prototype would still apply.  */
8744 #ifdef __cplusplus
8745 extern "C"
8746 #endif
8747 char ldexp ();
8748 int
8749 main ()
8750 {
8751 return ldexp ();
8752   ;
8753   return 0;
8754 }
8755 _ACEOF
8756 for ac_lib in '' m; do
8757   if test -z "$ac_lib"; then
8758     ac_res="none required"
8759   else
8760     ac_res=-l$ac_lib
8761     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8762   fi
8763   if ac_fn_c_try_link "$LINENO"; then :
8764   ac_cv_search_ldexp=$ac_res
8765 fi
8766 rm -f core conftest.err conftest.$ac_objext \
8767     conftest$ac_exeext
8768   if test "${ac_cv_search_ldexp+set}" = set; then :
8769   break
8770 fi
8771 done
8772 if test "${ac_cv_search_ldexp+set}" = set; then :
8773
8774 else
8775   ac_cv_search_ldexp=no
8776 fi
8777 rm conftest.$ac_ext
8778 LIBS=$ac_func_search_save_LIBS
8779 fi
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8781 $as_echo "$ac_cv_search_ldexp" >&6; }
8782 ac_res=$ac_cv_search_ldexp
8783 if test "$ac_res" != no; then :
8784   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8785
8786 fi
8787
8788 LDEXP_LIB="$LIBS"
8789 LIBS="$save_LIBS"
8790
8791
8792 # Use <inttypes.h> only if it exists,
8793 # doesn't clash with <sys/types.h>, and declares intmax_t.
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8795 $as_echo_n "checking for inttypes.h... " >&6; }
8796 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8797   $as_echo_n "(cached) " >&6
8798 else
8799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h.  */
8801 #include <sys/types.h>
8802 #include <inttypes.h>
8803 int
8804 main ()
8805 {
8806 intmax_t i = -1;
8807   ;
8808   return 0;
8809 }
8810 _ACEOF
8811 if ac_fn_c_try_compile "$LINENO"; then :
8812   gcc_cv_header_inttypes_h=yes
8813 else
8814   gcc_cv_header_inttypes_h=no
8815 fi
8816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8817 fi
8818
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8820 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8821 if test $gcc_cv_header_inttypes_h = yes; then
8822
8823 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8824
8825 fi
8826
8827
8828
8829 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8830         sysconf strsignal getrusage nl_langinfo \
8831         gettimeofday mbstowcs wcswidth mmap setlocale \
8832         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
8833 do :
8834   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8835 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8836 eval as_val=\$$as_ac_var
8837    if test "x$as_val" = x""yes; then :
8838   cat >>confdefs.h <<_ACEOF
8839 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8840 _ACEOF
8841
8842 fi
8843 done
8844
8845
8846 if test x$ac_cv_func_mbstowcs = xyes; then
8847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8848 $as_echo_n "checking whether mbstowcs works... " >&6; }
8849 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8850   $as_echo_n "(cached) " >&6
8851 else
8852       if test "$cross_compiling" = yes; then :
8853   gcc_cv_func_mbstowcs_works=yes
8854 else
8855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h.  */
8857 #include <stdlib.h>
8858 int main()
8859 {
8860   mbstowcs(0, "", 0);
8861   return 0;
8862 }
8863 _ACEOF
8864 if ac_fn_c_try_run "$LINENO"; then :
8865   gcc_cv_func_mbstowcs_works=yes
8866 else
8867   gcc_cv_func_mbstowcs_works=no
8868 fi
8869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8870   conftest.$ac_objext conftest.beam conftest.$ac_ext
8871 fi
8872
8873 fi
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8875 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8876   if test x$gcc_cv_func_mbstowcs_works = xyes; then
8877
8878 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8879
8880   fi
8881 fi
8882
8883 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8884 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8885
8886 else
8887
8888 cat >>confdefs.h <<_ACEOF
8889 #define ssize_t int
8890 _ACEOF
8891
8892 fi
8893
8894 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8895 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8896
8897 else
8898
8899 cat >>confdefs.h <<_ACEOF
8900 #define caddr_t char *
8901 _ACEOF
8902
8903 fi
8904
8905
8906
8907 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8908 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8909   gcc_header_sys_mman_h=yes
8910 else
8911   gcc_header_sys_mman_h=no
8912 fi
8913
8914 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8915 if test "x$ac_cv_func_mmap" = x""yes; then :
8916   gcc_func_mmap=yes
8917 else
8918   gcc_func_mmap=no
8919 fi
8920
8921 if test "$gcc_header_sys_mman_h" != yes \
8922  || test "$gcc_func_mmap" != yes; then
8923    gcc_cv_func_mmap_file=no
8924    gcc_cv_func_mmap_dev_zero=no
8925    gcc_cv_func_mmap_anon=no
8926 else
8927    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8928 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8929 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8930   $as_echo_n "(cached) " >&6
8931 else
8932   # Add a system to this blacklist if
8933    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8934    # memory area containing the same data that you'd get if you applied
8935    # read() to the same fd.  The only system known to have a problem here
8936    # is VMS, where text files have record structure.
8937    case "$host_os" in
8938      vms* | ultrix*)
8939         gcc_cv_func_mmap_file=no ;;
8940      *)
8941         gcc_cv_func_mmap_file=yes;;
8942    esac
8943 fi
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8945 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8946    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8947 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8948 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8949   $as_echo_n "(cached) " >&6
8950 else
8951   # Add a system to this blacklist if it has mmap() but /dev/zero
8952    # does not exist, or if mmapping /dev/zero does not give anonymous
8953    # zeroed pages with both the following properties:
8954    # 1. If you map N consecutive pages in with one call, and then
8955    #    unmap any subset of those pages, the pages that were not
8956    #    explicitly unmapped remain accessible.
8957    # 2. If you map two adjacent blocks of memory and then unmap them
8958    #    both at once, they must both go away.
8959    # Systems known to be in this category are Windows (all variants),
8960    # VMS, and Darwin.
8961    case "$host_os" in
8962      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8963         gcc_cv_func_mmap_dev_zero=no ;;
8964      *)
8965         gcc_cv_func_mmap_dev_zero=yes;;
8966    esac
8967 fi
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8969 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8970
8971    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8972    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8973 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8974 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8975   $as_echo_n "(cached) " >&6
8976 else
8977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978 /* end confdefs.h.  */
8979 #include <sys/types.h>
8980 #include <sys/mman.h>
8981 #include <unistd.h>
8982
8983 #ifndef MAP_ANONYMOUS
8984 #define MAP_ANONYMOUS MAP_ANON
8985 #endif
8986
8987 int
8988 main ()
8989 {
8990 int n = MAP_ANONYMOUS;
8991   ;
8992   return 0;
8993 }
8994 _ACEOF
8995 if ac_fn_c_try_compile "$LINENO"; then :
8996   gcc_cv_decl_map_anon=yes
8997 else
8998   gcc_cv_decl_map_anon=no
8999 fi
9000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9001 fi
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9003 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9004
9005    if test $gcc_cv_decl_map_anon = no; then
9006      gcc_cv_func_mmap_anon=no
9007    else
9008      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9009 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9010 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9011   $as_echo_n "(cached) " >&6
9012 else
9013   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9014    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9015    # doesn't give anonymous zeroed pages with the same properties listed
9016    # above for use of /dev/zero.
9017    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9018    case "$host_os" in
9019      vms* | cygwin* | pe | mingw* | sco* | udk* )
9020         gcc_cv_func_mmap_anon=no ;;
9021      *)
9022         gcc_cv_func_mmap_anon=yes;;
9023    esac
9024 fi
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9026 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9027    fi
9028 fi
9029
9030 if test $gcc_cv_func_mmap_file = yes; then
9031
9032 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9033
9034 fi
9035 if test $gcc_cv_func_mmap_dev_zero = yes; then
9036
9037 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9038
9039 fi
9040 if test $gcc_cv_func_mmap_anon = yes; then
9041
9042 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9043
9044 fi
9045
9046
9047 case "${host}" in
9048 *-*-*vms*)
9049   # Under VMS, vfork works very differently than on Unix. The standard test
9050   # won't work, and it isn't easily adaptable. It makes more sense to
9051   # just force it.
9052   ac_cv_func_vfork_works=yes
9053   ;;
9054 esac
9055 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9056 if test "x$ac_cv_type_pid_t" = x""yes; then :
9057
9058 else
9059
9060 cat >>confdefs.h <<_ACEOF
9061 #define pid_t int
9062 _ACEOF
9063
9064 fi
9065
9066 for ac_header in vfork.h
9067 do :
9068   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9069 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9070   cat >>confdefs.h <<_ACEOF
9071 #define HAVE_VFORK_H 1
9072 _ACEOF
9073
9074 fi
9075 done
9076
9077 for ac_func in fork vfork
9078 do :
9079   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9080 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9081 eval as_val=\$$as_ac_var
9082    if test "x$as_val" = x""yes; then :
9083   cat >>confdefs.h <<_ACEOF
9084 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9085 _ACEOF
9086
9087 fi
9088 done
9089
9090 if test "x$ac_cv_func_fork" = xyes; then
9091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9092 $as_echo_n "checking for working fork... " >&6; }
9093 if test "${ac_cv_func_fork_works+set}" = set; then :
9094   $as_echo_n "(cached) " >&6
9095 else
9096   if test "$cross_compiling" = yes; then :
9097   ac_cv_func_fork_works=cross
9098 else
9099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h.  */
9101 $ac_includes_default
9102 int
9103 main ()
9104 {
9105
9106           /* By Ruediger Kuhlmann. */
9107           return fork () < 0;
9108
9109   ;
9110   return 0;
9111 }
9112 _ACEOF
9113 if ac_fn_c_try_run "$LINENO"; then :
9114   ac_cv_func_fork_works=yes
9115 else
9116   ac_cv_func_fork_works=no
9117 fi
9118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9119   conftest.$ac_objext conftest.beam conftest.$ac_ext
9120 fi
9121
9122 fi
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9124 $as_echo "$ac_cv_func_fork_works" >&6; }
9125
9126 else
9127   ac_cv_func_fork_works=$ac_cv_func_fork
9128 fi
9129 if test "x$ac_cv_func_fork_works" = xcross; then
9130   case $host in
9131     *-*-amigaos* | *-*-msdosdjgpp*)
9132       # Override, as these systems have only a dummy fork() stub
9133       ac_cv_func_fork_works=no
9134       ;;
9135     *)
9136       ac_cv_func_fork_works=yes
9137       ;;
9138   esac
9139   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9140 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9141 fi
9142 ac_cv_func_vfork_works=$ac_cv_func_vfork
9143 if test "x$ac_cv_func_vfork" = xyes; then
9144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9145 $as_echo_n "checking for working vfork... " >&6; }
9146 if test "${ac_cv_func_vfork_works+set}" = set; then :
9147   $as_echo_n "(cached) " >&6
9148 else
9149   if test "$cross_compiling" = yes; then :
9150   ac_cv_func_vfork_works=cross
9151 else
9152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h.  */
9154 /* Thanks to Paul Eggert for this test.  */
9155 $ac_includes_default
9156 #include <sys/wait.h>
9157 #ifdef HAVE_VFORK_H
9158 # include <vfork.h>
9159 #endif
9160 /* On some sparc systems, changes by the child to local and incoming
9161    argument registers are propagated back to the parent.  The compiler
9162    is told about this with #include <vfork.h>, but some compilers
9163    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9164    static variable whose address is put into a register that is
9165    clobbered by the vfork.  */
9166 static void
9167 #ifdef __cplusplus
9168 sparc_address_test (int arg)
9169 # else
9170 sparc_address_test (arg) int arg;
9171 #endif
9172 {
9173   static pid_t child;
9174   if (!child) {
9175     child = vfork ();
9176     if (child < 0) {
9177       perror ("vfork");
9178       _exit(2);
9179     }
9180     if (!child) {
9181       arg = getpid();
9182       write(-1, "", 0);
9183       _exit (arg);
9184     }
9185   }
9186 }
9187
9188 int
9189 main ()
9190 {
9191   pid_t parent = getpid ();
9192   pid_t child;
9193
9194   sparc_address_test (0);
9195
9196   child = vfork ();
9197
9198   if (child == 0) {
9199     /* Here is another test for sparc vfork register problems.  This
9200        test uses lots of local variables, at least as many local
9201        variables as main has allocated so far including compiler
9202        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9203        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9204        reuse the register of parent for one of the local variables,
9205        since it will think that parent can't possibly be used any more
9206        in this routine.  Assigning to the local variable will thus
9207        munge parent in the parent process.  */
9208     pid_t
9209       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9210       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9211     /* Convince the compiler that p..p7 are live; otherwise, it might
9212        use the same hardware register for all 8 local variables.  */
9213     if (p != p1 || p != p2 || p != p3 || p != p4
9214         || p != p5 || p != p6 || p != p7)
9215       _exit(1);
9216
9217     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9218        from child file descriptors.  If the child closes a descriptor
9219        before it execs or exits, this munges the parent's descriptor
9220        as well.  Test for this by closing stdout in the child.  */
9221     _exit(close(fileno(stdout)) != 0);
9222   } else {
9223     int status;
9224     struct stat st;
9225
9226     while (wait(&status) != child)
9227       ;
9228     return (
9229          /* Was there some problem with vforking?  */
9230          child < 0
9231
9232          /* Did the child fail?  (This shouldn't happen.)  */
9233          || status
9234
9235          /* Did the vfork/compiler bug occur?  */
9236          || parent != getpid()
9237
9238          /* Did the file descriptor bug occur?  */
9239          || fstat(fileno(stdout), &st) != 0
9240          );
9241   }
9242 }
9243 _ACEOF
9244 if ac_fn_c_try_run "$LINENO"; then :
9245   ac_cv_func_vfork_works=yes
9246 else
9247   ac_cv_func_vfork_works=no
9248 fi
9249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9250   conftest.$ac_objext conftest.beam conftest.$ac_ext
9251 fi
9252
9253 fi
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9255 $as_echo "$ac_cv_func_vfork_works" >&6; }
9256
9257 fi;
9258 if test "x$ac_cv_func_fork_works" = xcross; then
9259   ac_cv_func_vfork_works=$ac_cv_func_vfork
9260   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9261 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9262 fi
9263
9264 if test "x$ac_cv_func_vfork_works" = xyes; then
9265
9266 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9267
9268 else
9269
9270 $as_echo "#define vfork fork" >>confdefs.h
9271
9272 fi
9273 if test "x$ac_cv_func_fork_works" = xyes; then
9274
9275 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9276
9277 fi
9278
9279
9280
9281       if test "X$prefix" = "XNONE"; then
9282     acl_final_prefix="$ac_default_prefix"
9283   else
9284     acl_final_prefix="$prefix"
9285   fi
9286   if test "X$exec_prefix" = "XNONE"; then
9287     acl_final_exec_prefix='${prefix}'
9288   else
9289     acl_final_exec_prefix="$exec_prefix"
9290   fi
9291   acl_save_prefix="$prefix"
9292   prefix="$acl_final_prefix"
9293   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9294   prefix="$acl_save_prefix"
9295
9296
9297 # Check whether --with-gnu-ld was given.
9298 if test "${with_gnu_ld+set}" = set; then :
9299   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9300 else
9301   with_gnu_ld=no
9302 fi
9303
9304 # Prepare PATH_SEPARATOR.
9305 # The user is always right.
9306 if test "${PATH_SEPARATOR+set}" != set; then
9307   echo "#! /bin/sh" >conf$$.sh
9308   echo  "exit 0"   >>conf$$.sh
9309   chmod +x conf$$.sh
9310   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9311     PATH_SEPARATOR=';'
9312   else
9313     PATH_SEPARATOR=:
9314   fi
9315   rm -f conf$$.sh
9316 fi
9317 ac_prog=ld
9318 if test "$GCC" = yes; then
9319   # Check if gcc -print-prog-name=ld gives a path.
9320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9321 $as_echo_n "checking for ld used by GCC... " >&6; }
9322   case $host in
9323   *-*-mingw*)
9324     # gcc leaves a trailing carriage return which upsets mingw
9325     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9326   *)
9327     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9328   esac
9329   case $ac_prog in
9330     # Accept absolute paths.
9331     [\\/]* | [A-Za-z]:[\\/]*)
9332       re_direlt='/[^/][^/]*/\.\./'
9333       # Canonicalize the path of ld
9334       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9335       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9336         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9337       done
9338       test -z "$LD" && LD="$ac_prog"
9339       ;;
9340   "")
9341     # If it fails, then pretend we aren't using GCC.
9342     ac_prog=ld
9343     ;;
9344   *)
9345     # If it is relative, then search for the first ld in PATH.
9346     with_gnu_ld=unknown
9347     ;;
9348   esac
9349 elif test "$with_gnu_ld" = yes; then
9350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9351 $as_echo_n "checking for GNU ld... " >&6; }
9352 else
9353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9354 $as_echo_n "checking for non-GNU ld... " >&6; }
9355 fi
9356 if test "${acl_cv_path_LD+set}" = set; then :
9357   $as_echo_n "(cached) " >&6
9358 else
9359   if test -z "$LD"; then
9360   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9361   for ac_dir in $PATH; do
9362     test -z "$ac_dir" && ac_dir=.
9363     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9364       acl_cv_path_LD="$ac_dir/$ac_prog"
9365       # Check to see if the program is GNU ld.  I'd rather use --version,
9366       # but apparently some GNU ld's only accept -v.
9367       # Break only if it was the GNU/non-GNU ld that we prefer.
9368       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9369         test "$with_gnu_ld" != no && break
9370       else
9371         test "$with_gnu_ld" != yes && break
9372       fi
9373     fi
9374   done
9375   IFS="$ac_save_ifs"
9376 else
9377   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9378 fi
9379 fi
9380
9381 LD="$acl_cv_path_LD"
9382 if test -n "$LD"; then
9383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9384 $as_echo "$LD" >&6; }
9385 else
9386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9387 $as_echo "no" >&6; }
9388 fi
9389 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9391 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9392 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9393   $as_echo_n "(cached) " >&6
9394 else
9395   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9396 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9397   acl_cv_prog_gnu_ld=yes
9398 else
9399   acl_cv_prog_gnu_ld=no
9400 fi
9401 fi
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9403 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9404 with_gnu_ld=$acl_cv_prog_gnu_ld
9405
9406
9407
9408                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9409 $as_echo_n "checking for shared library run path origin... " >&6; }
9410 if test "${acl_cv_rpath+set}" = set; then :
9411   $as_echo_n "(cached) " >&6
9412 else
9413
9414     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9415     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9416     . ./conftest.sh
9417     rm -f ./conftest.sh
9418     acl_cv_rpath=done
9419
9420 fi
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9422 $as_echo "$acl_cv_rpath" >&6; }
9423   wl="$acl_cv_wl"
9424   libext="$acl_cv_libext"
9425   shlibext="$acl_cv_shlibext"
9426   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9427   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9428   hardcode_direct="$acl_cv_hardcode_direct"
9429   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9430     # Check whether --enable-rpath was given.
9431 if test "${enable_rpath+set}" = set; then :
9432   enableval=$enable_rpath; :
9433 else
9434   enable_rpath=yes
9435 fi
9436
9437
9438
9439
9440
9441
9442
9443
9444     use_additional=yes
9445
9446   acl_save_prefix="$prefix"
9447   prefix="$acl_final_prefix"
9448   acl_save_exec_prefix="$exec_prefix"
9449   exec_prefix="$acl_final_exec_prefix"
9450
9451     eval additional_includedir=\"$includedir\"
9452     eval additional_libdir=\"$libdir\"
9453
9454   exec_prefix="$acl_save_exec_prefix"
9455   prefix="$acl_save_prefix"
9456
9457
9458 # Check whether --with-libiconv-prefix was given.
9459 if test "${with_libiconv_prefix+set}" = set; then :
9460   withval=$with_libiconv_prefix;
9461     if test "X$withval" = "Xno"; then
9462       use_additional=no
9463     else
9464       if test "X$withval" = "X"; then
9465
9466   acl_save_prefix="$prefix"
9467   prefix="$acl_final_prefix"
9468   acl_save_exec_prefix="$exec_prefix"
9469   exec_prefix="$acl_final_exec_prefix"
9470
9471           eval additional_includedir=\"$includedir\"
9472           eval additional_libdir=\"$libdir\"
9473
9474   exec_prefix="$acl_save_exec_prefix"
9475   prefix="$acl_save_prefix"
9476
9477       else
9478         additional_includedir="$withval/include"
9479         additional_libdir="$withval/lib"
9480       fi
9481     fi
9482
9483 fi
9484
9485       LIBICONV=
9486   LTLIBICONV=
9487   INCICONV=
9488   rpathdirs=
9489   ltrpathdirs=
9490   names_already_handled=
9491   names_next_round='iconv '
9492   while test -n "$names_next_round"; do
9493     names_this_round="$names_next_round"
9494     names_next_round=
9495     for name in $names_this_round; do
9496       already_handled=
9497       for n in $names_already_handled; do
9498         if test "$n" = "$name"; then
9499           already_handled=yes
9500           break
9501         fi
9502       done
9503       if test -z "$already_handled"; then
9504         names_already_handled="$names_already_handled $name"
9505                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9506         eval value=\"\$HAVE_LIB$uppername\"
9507         if test -n "$value"; then
9508           if test "$value" = yes; then
9509             eval value=\"\$LIB$uppername\"
9510             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9511             eval value=\"\$LTLIB$uppername\"
9512             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9513           else
9514                                     :
9515           fi
9516         else
9517                               found_dir=
9518           found_la=
9519           found_so=
9520           found_a=
9521           if test $use_additional = yes; then
9522             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9523               found_dir="$additional_libdir"
9524               found_so="$additional_libdir/lib$name.$shlibext"
9525               if test -f "$additional_libdir/lib$name.la"; then
9526                 found_la="$additional_libdir/lib$name.la"
9527               fi
9528             else
9529               if test -f "$additional_libdir/lib$name.$libext"; then
9530                 found_dir="$additional_libdir"
9531                 found_a="$additional_libdir/lib$name.$libext"
9532                 if test -f "$additional_libdir/lib$name.la"; then
9533                   found_la="$additional_libdir/lib$name.la"
9534                 fi
9535               fi
9536             fi
9537           fi
9538           if test "X$found_dir" = "X"; then
9539             for x in $LDFLAGS $LTLIBICONV; do
9540
9541   acl_save_prefix="$prefix"
9542   prefix="$acl_final_prefix"
9543   acl_save_exec_prefix="$exec_prefix"
9544   exec_prefix="$acl_final_exec_prefix"
9545   eval x=\"$x\"
9546   exec_prefix="$acl_save_exec_prefix"
9547   prefix="$acl_save_prefix"
9548
9549               case "$x" in
9550                 -L*)
9551                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9552                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9553                     found_dir="$dir"
9554                     found_so="$dir/lib$name.$shlibext"
9555                     if test -f "$dir/lib$name.la"; then
9556                       found_la="$dir/lib$name.la"
9557                     fi
9558                   else
9559                     if test -f "$dir/lib$name.$libext"; then
9560                       found_dir="$dir"
9561                       found_a="$dir/lib$name.$libext"
9562                       if test -f "$dir/lib$name.la"; then
9563                         found_la="$dir/lib$name.la"
9564                       fi
9565                     fi
9566                   fi
9567                   ;;
9568               esac
9569               if test "X$found_dir" != "X"; then
9570                 break
9571               fi
9572             done
9573           fi
9574           if test "X$found_dir" != "X"; then
9575                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9576             if test "X$found_so" != "X"; then
9577                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9578                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9579               else
9580                                                                                 haveit=
9581                 for x in $ltrpathdirs; do
9582                   if test "X$x" = "X$found_dir"; then
9583                     haveit=yes
9584                     break
9585                   fi
9586                 done
9587                 if test -z "$haveit"; then
9588                   ltrpathdirs="$ltrpathdirs $found_dir"
9589                 fi
9590                                 if test "$hardcode_direct" = yes; then
9591                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9592                 else
9593                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9594                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9595                                                             haveit=
9596                     for x in $rpathdirs; 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                       rpathdirs="$rpathdirs $found_dir"
9604                     fi
9605                   else
9606                                                                                 haveit=
9607                     for x in $LDFLAGS $LIBICONV; do
9608
9609   acl_save_prefix="$prefix"
9610   prefix="$acl_final_prefix"
9611   acl_save_exec_prefix="$exec_prefix"
9612   exec_prefix="$acl_final_exec_prefix"
9613   eval x=\"$x\"
9614   exec_prefix="$acl_save_exec_prefix"
9615   prefix="$acl_save_prefix"
9616
9617                       if test "X$x" = "X-L$found_dir"; then
9618                         haveit=yes
9619                         break
9620                       fi
9621                     done
9622                     if test -z "$haveit"; then
9623                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9624                     fi
9625                     if test "$hardcode_minus_L" != no; then
9626                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9627                     else
9628                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9629                     fi
9630                   fi
9631                 fi
9632               fi
9633             else
9634               if test "X$found_a" != "X"; then
9635                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9636               else
9637                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9638               fi
9639             fi
9640                         additional_includedir=
9641             case "$found_dir" in
9642               */lib | */lib/)
9643                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9644                 additional_includedir="$basedir/include"
9645                 ;;
9646             esac
9647             if test "X$additional_includedir" != "X"; then
9648                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9649                 haveit=
9650                 if test "X$additional_includedir" = "X/usr/local/include"; then
9651                   if test -n "$GCC"; then
9652                     case $host_os in
9653                       linux*) haveit=yes;;
9654                     esac
9655                   fi
9656                 fi
9657                 if test -z "$haveit"; then
9658                   for x in $CPPFLAGS $INCICONV; do
9659
9660   acl_save_prefix="$prefix"
9661   prefix="$acl_final_prefix"
9662   acl_save_exec_prefix="$exec_prefix"
9663   exec_prefix="$acl_final_exec_prefix"
9664   eval x=\"$x\"
9665   exec_prefix="$acl_save_exec_prefix"
9666   prefix="$acl_save_prefix"
9667
9668                     if test "X$x" = "X-I$additional_includedir"; then
9669                       haveit=yes
9670                       break
9671                     fi
9672                   done
9673                   if test -z "$haveit"; then
9674                     if test -d "$additional_includedir"; then
9675                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9676                     fi
9677                   fi
9678                 fi
9679               fi
9680             fi
9681                         if test -n "$found_la"; then
9682                                                         save_libdir="$libdir"
9683               case "$found_la" in
9684                 */* | *\\*) . "$found_la" ;;
9685                 *) . "./$found_la" ;;
9686               esac
9687               libdir="$save_libdir"
9688                             for dep in $dependency_libs; do
9689                 case "$dep" in
9690                   -L*)
9691                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9692                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9693                       haveit=
9694                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9695                         if test -n "$GCC"; then
9696                           case $host_os in
9697                             linux*) haveit=yes;;
9698                           esac
9699                         fi
9700                       fi
9701                       if test -z "$haveit"; then
9702                         haveit=
9703                         for x in $LDFLAGS $LIBICONV; do
9704
9705   acl_save_prefix="$prefix"
9706   prefix="$acl_final_prefix"
9707   acl_save_exec_prefix="$exec_prefix"
9708   exec_prefix="$acl_final_exec_prefix"
9709   eval x=\"$x\"
9710   exec_prefix="$acl_save_exec_prefix"
9711   prefix="$acl_save_prefix"
9712
9713                           if test "X$x" = "X-L$additional_libdir"; then
9714                             haveit=yes
9715                             break
9716                           fi
9717                         done
9718                         if test -z "$haveit"; then
9719                           if test -d "$additional_libdir"; then
9720                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9721                           fi
9722                         fi
9723                         haveit=
9724                         for x in $LDFLAGS $LTLIBICONV; do
9725
9726   acl_save_prefix="$prefix"
9727   prefix="$acl_final_prefix"
9728   acl_save_exec_prefix="$exec_prefix"
9729   exec_prefix="$acl_final_exec_prefix"
9730   eval x=\"$x\"
9731   exec_prefix="$acl_save_exec_prefix"
9732   prefix="$acl_save_prefix"
9733
9734                           if test "X$x" = "X-L$additional_libdir"; then
9735                             haveit=yes
9736                             break
9737                           fi
9738                         done
9739                         if test -z "$haveit"; then
9740                           if test -d "$additional_libdir"; then
9741                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9742                           fi
9743                         fi
9744                       fi
9745                     fi
9746                     ;;
9747                   -R*)
9748                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9749                     if test "$enable_rpath" != no; then
9750                                                                   haveit=
9751                       for x in $rpathdirs; do
9752                         if test "X$x" = "X$dir"; then
9753                           haveit=yes
9754                           break
9755                         fi
9756                       done
9757                       if test -z "$haveit"; then
9758                         rpathdirs="$rpathdirs $dir"
9759                       fi
9760                                                                   haveit=
9761                       for x in $ltrpathdirs; do
9762                         if test "X$x" = "X$dir"; then
9763                           haveit=yes
9764                           break
9765                         fi
9766                       done
9767                       if test -z "$haveit"; then
9768                         ltrpathdirs="$ltrpathdirs $dir"
9769                       fi
9770                     fi
9771                     ;;
9772                   -l*)
9773                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9774                     ;;
9775                   *.la)
9776                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9777                     ;;
9778                   *)
9779                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9780                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9781                     ;;
9782                 esac
9783               done
9784             fi
9785           else
9786                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9787             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9788           fi
9789         fi
9790       fi
9791     done
9792   done
9793   if test "X$rpathdirs" != "X"; then
9794     if test -n "$hardcode_libdir_separator"; then
9795                         alldirs=
9796       for found_dir in $rpathdirs; do
9797         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9798       done
9799             acl_save_libdir="$libdir"
9800       libdir="$alldirs"
9801       eval flag=\"$hardcode_libdir_flag_spec\"
9802       libdir="$acl_save_libdir"
9803       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9804     else
9805             for found_dir in $rpathdirs; do
9806         acl_save_libdir="$libdir"
9807         libdir="$found_dir"
9808         eval flag=\"$hardcode_libdir_flag_spec\"
9809         libdir="$acl_save_libdir"
9810         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9811       done
9812     fi
9813   fi
9814   if test "X$ltrpathdirs" != "X"; then
9815             for found_dir in $ltrpathdirs; do
9816       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9817     done
9818   fi
9819
9820
9821
9822
9823
9824
9825
9826           am_save_CPPFLAGS="$CPPFLAGS"
9827
9828   for element in $INCICONV; do
9829     haveit=
9830     for x in $CPPFLAGS; do
9831
9832   acl_save_prefix="$prefix"
9833   prefix="$acl_final_prefix"
9834   acl_save_exec_prefix="$exec_prefix"
9835   exec_prefix="$acl_final_exec_prefix"
9836   eval x=\"$x\"
9837   exec_prefix="$acl_save_exec_prefix"
9838   prefix="$acl_save_prefix"
9839
9840       if test "X$x" = "X$element"; then
9841         haveit=yes
9842         break
9843       fi
9844     done
9845     if test -z "$haveit"; then
9846       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9847     fi
9848   done
9849
9850
9851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9852 $as_echo_n "checking for iconv... " >&6; }
9853 if test "${am_cv_func_iconv+set}" = set; then :
9854   $as_echo_n "(cached) " >&6
9855 else
9856
9857     am_cv_func_iconv="no, consider installing GNU libiconv"
9858     am_cv_lib_iconv=no
9859     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860 /* end confdefs.h.  */
9861 #include <stdlib.h>
9862 #include <iconv.h>
9863 int
9864 main ()
9865 {
9866 iconv_t cd = iconv_open("","");
9867        iconv(cd,NULL,NULL,NULL,NULL);
9868        iconv_close(cd);
9869   ;
9870   return 0;
9871 }
9872 _ACEOF
9873 if ac_fn_c_try_link "$LINENO"; then :
9874   am_cv_func_iconv=yes
9875 fi
9876 rm -f core conftest.err conftest.$ac_objext \
9877     conftest$ac_exeext conftest.$ac_ext
9878     if test "$am_cv_func_iconv" != yes; then
9879       am_save_LIBS="$LIBS"
9880       LIBS="$LIBS $LIBICONV"
9881       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882 /* end confdefs.h.  */
9883 #include <stdlib.h>
9884 #include <iconv.h>
9885 int
9886 main ()
9887 {
9888 iconv_t cd = iconv_open("","");
9889          iconv(cd,NULL,NULL,NULL,NULL);
9890          iconv_close(cd);
9891   ;
9892   return 0;
9893 }
9894 _ACEOF
9895 if ac_fn_c_try_link "$LINENO"; then :
9896   am_cv_lib_iconv=yes
9897         am_cv_func_iconv=yes
9898 fi
9899 rm -f core conftest.err conftest.$ac_objext \
9900     conftest$ac_exeext conftest.$ac_ext
9901       LIBS="$am_save_LIBS"
9902     fi
9903
9904 fi
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9906 $as_echo "$am_cv_func_iconv" >&6; }
9907   if test "$am_cv_func_iconv" = yes; then
9908
9909 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9910
9911   fi
9912   if test "$am_cv_lib_iconv" = yes; then
9913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9914 $as_echo_n "checking how to link with libiconv... " >&6; }
9915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9916 $as_echo "$LIBICONV" >&6; }
9917   else
9918             CPPFLAGS="$am_save_CPPFLAGS"
9919     LIBICONV=
9920     LTLIBICONV=
9921   fi
9922
9923
9924
9925   if test "$am_cv_func_iconv" = yes; then
9926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9927 $as_echo_n "checking for iconv declaration... " >&6; }
9928     if test "${am_cv_proto_iconv+set}" = set; then :
9929   $as_echo_n "(cached) " >&6
9930 else
9931
9932       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h.  */
9934
9935 #include <stdlib.h>
9936 #include <iconv.h>
9937 extern
9938 #ifdef __cplusplus
9939 "C"
9940 #endif
9941 #if defined(__STDC__) || defined(__cplusplus)
9942 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9943 #else
9944 size_t iconv();
9945 #endif
9946
9947 int
9948 main ()
9949 {
9950
9951   ;
9952   return 0;
9953 }
9954 _ACEOF
9955 if ac_fn_c_try_compile "$LINENO"; then :
9956   am_cv_proto_iconv_arg1=""
9957 else
9958   am_cv_proto_iconv_arg1="const"
9959 fi
9960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9961       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);"
9962 fi
9963
9964     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9966          }$am_cv_proto_iconv" >&5
9967 $as_echo "${ac_t:-
9968          }$am_cv_proto_iconv" >&6; }
9969
9970 cat >>confdefs.h <<_ACEOF
9971 #define ICONV_CONST $am_cv_proto_iconv_arg1
9972 _ACEOF
9973
9974   fi
9975
9976 # Until we have in-tree GNU iconv:
9977 LIBICONV_DEP=
9978
9979
9980
9981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9982 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9983 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9984   $as_echo_n "(cached) " >&6
9985 else
9986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h.  */
9988 #include <locale.h>
9989 int
9990 main ()
9991 {
9992 return LC_MESSAGES
9993   ;
9994   return 0;
9995 }
9996 _ACEOF
9997 if ac_fn_c_try_link "$LINENO"; then :
9998   am_cv_val_LC_MESSAGES=yes
9999 else
10000   am_cv_val_LC_MESSAGES=no
10001 fi
10002 rm -f core conftest.err conftest.$ac_objext \
10003     conftest$ac_exeext conftest.$ac_ext
10004 fi
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10006 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10007   if test $am_cv_val_LC_MESSAGES = yes; then
10008
10009 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10010
10011   fi
10012
10013
10014
10015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10016 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10017 if test "${am_cv_langinfo_codeset+set}" = set; then :
10018   $as_echo_n "(cached) " >&6
10019 else
10020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h.  */
10022 #include <langinfo.h>
10023 int
10024 main ()
10025 {
10026 char* cs = nl_langinfo(CODESET);
10027   ;
10028   return 0;
10029 }
10030 _ACEOF
10031 if ac_fn_c_try_link "$LINENO"; then :
10032   am_cv_langinfo_codeset=yes
10033 else
10034   am_cv_langinfo_codeset=no
10035 fi
10036 rm -f core conftest.err conftest.$ac_objext \
10037     conftest$ac_exeext conftest.$ac_ext
10038
10039 fi
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10041 $as_echo "$am_cv_langinfo_codeset" >&6; }
10042   if test $am_cv_langinfo_codeset = yes; then
10043
10044 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10045
10046   fi
10047
10048
10049 # We will need to find libiberty.h and ansidecl.h
10050 saved_CFLAGS="$CFLAGS"
10051 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10052 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10053         strsignal strstr strverscmp \
10054         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10055         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
10056 do
10057   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10059 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10060 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10061   $as_echo_n "(cached) " >&6
10062 else
10063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h.  */
10065 #undef $ac_tr_decl
10066 #define $ac_tr_decl 1
10067
10068 #include "ansidecl.h"
10069 #include "system.h"
10070
10071 int
10072 main ()
10073 {
10074 #ifndef $ac_func
10075 char *(*pfn) = (char *(*)) $ac_func ;
10076 #endif
10077   ;
10078   return 0;
10079 }
10080 _ACEOF
10081 if ac_fn_c_try_compile "$LINENO"; then :
10082   eval "gcc_cv_have_decl_$ac_func=yes"
10083 else
10084   eval "gcc_cv_have_decl_$ac_func=no"
10085 fi
10086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10087 fi
10088
10089 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10091 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10092 #define $ac_tr_decl 1
10093 _ACEOF
10094
10095 else
10096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10098 #define $ac_tr_decl 0
10099 _ACEOF
10100
10101 fi
10102
10103 done
10104
10105
10106 for ac_func in getrlimit setrlimit getrusage
10107 do
10108   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10110 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10111 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10112   $as_echo_n "(cached) " >&6
10113 else
10114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10115 /* end confdefs.h.  */
10116 #undef $ac_tr_decl
10117 #define $ac_tr_decl 1
10118
10119 #include "ansidecl.h"
10120 #include "system.h"
10121 #ifdef HAVE_SYS_RESOURCE_H
10122 #include <sys/resource.h>
10123 #endif
10124
10125
10126 int
10127 main ()
10128 {
10129 #ifndef $ac_func
10130 char *(*pfn) = (char *(*)) $ac_func ;
10131 #endif
10132   ;
10133   return 0;
10134 }
10135 _ACEOF
10136 if ac_fn_c_try_compile "$LINENO"; then :
10137   eval "gcc_cv_have_decl_$ac_func=yes"
10138 else
10139   eval "gcc_cv_have_decl_$ac_func=no"
10140 fi
10141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10142 fi
10143
10144 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10146 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10147 #define $ac_tr_decl 1
10148 _ACEOF
10149
10150 else
10151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10153 #define $ac_tr_decl 0
10154 _ACEOF
10155
10156 fi
10157
10158 done
10159
10160
10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h.  */
10163
10164 #include "ansidecl.h"
10165 #include "system.h"
10166 #ifdef HAVE_SYS_RESOURCE_H
10167 #include <sys/resource.h>
10168 #endif
10169
10170 int
10171 main ()
10172 {
10173 rlim_t l = 0;
10174   ;
10175   return 0;
10176 }
10177 _ACEOF
10178 if ac_fn_c_try_compile "$LINENO"; then :
10179
10180 else
10181
10182 $as_echo "#define rlim_t long" >>confdefs.h
10183
10184 fi
10185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10186
10187 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10188 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10189 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10190 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10191 for ac_func in ldgetname
10192 do
10193   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10195 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10196 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10197   $as_echo_n "(cached) " >&6
10198 else
10199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200 /* end confdefs.h.  */
10201 #undef $ac_tr_decl
10202 #define $ac_tr_decl 1
10203
10204 #include "ansidecl.h"
10205 #include "system.h"
10206 #ifdef HAVE_LDFCN_H
10207 #undef FREAD
10208 #undef FWRITE
10209 #include <ldfcn.h>
10210 #endif
10211
10212
10213 int
10214 main ()
10215 {
10216 #ifndef $ac_func
10217 char *(*pfn) = (char *(*)) $ac_func ;
10218 #endif
10219   ;
10220   return 0;
10221 }
10222 _ACEOF
10223 if ac_fn_c_try_compile "$LINENO"; then :
10224   eval "gcc_cv_have_decl_$ac_func=yes"
10225 else
10226   eval "gcc_cv_have_decl_$ac_func=no"
10227 fi
10228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229 fi
10230
10231 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10233 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10234 #define $ac_tr_decl 1
10235 _ACEOF
10236
10237 else
10238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10240 #define $ac_tr_decl 0
10241 _ACEOF
10242
10243 fi
10244
10245 done
10246
10247
10248 for ac_func in times
10249 do
10250   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10252 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10253 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10254   $as_echo_n "(cached) " >&6
10255 else
10256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h.  */
10258 #undef $ac_tr_decl
10259 #define $ac_tr_decl 1
10260
10261 #include "ansidecl.h"
10262 #include "system.h"
10263 #ifdef HAVE_SYS_TIMES_H
10264 #include <sys/times.h>
10265 #endif
10266
10267
10268 int
10269 main ()
10270 {
10271 #ifndef $ac_func
10272 char *(*pfn) = (char *(*)) $ac_func ;
10273 #endif
10274   ;
10275   return 0;
10276 }
10277 _ACEOF
10278 if ac_fn_c_try_compile "$LINENO"; then :
10279   eval "gcc_cv_have_decl_$ac_func=yes"
10280 else
10281   eval "gcc_cv_have_decl_$ac_func=no"
10282 fi
10283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10284 fi
10285
10286 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10288 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10289 #define $ac_tr_decl 1
10290 _ACEOF
10291
10292 else
10293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10294 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10295 #define $ac_tr_decl 0
10296 _ACEOF
10297
10298 fi
10299
10300 done
10301
10302
10303 for ac_func in sigaltstack
10304 do
10305   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10307 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10308 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10309   $as_echo_n "(cached) " >&6
10310 else
10311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h.  */
10313 #undef $ac_tr_decl
10314 #define $ac_tr_decl 1
10315
10316 #include "ansidecl.h"
10317 #include "system.h"
10318 #include <signal.h>
10319
10320
10321 int
10322 main ()
10323 {
10324 #ifndef $ac_func
10325 char *(*pfn) = (char *(*)) $ac_func ;
10326 #endif
10327   ;
10328   return 0;
10329 }
10330 _ACEOF
10331 if ac_fn_c_try_compile "$LINENO"; then :
10332   eval "gcc_cv_have_decl_$ac_func=yes"
10333 else
10334   eval "gcc_cv_have_decl_$ac_func=no"
10335 fi
10336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10337 fi
10338
10339 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10341 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10342 #define $ac_tr_decl 1
10343 _ACEOF
10344
10345 else
10346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10347 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10348 #define $ac_tr_decl 0
10349 _ACEOF
10350
10351 fi
10352
10353 done
10354
10355
10356 # More time-related stuff.
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10358 $as_echo_n "checking for struct tms... " >&6; }
10359 if test "${ac_cv_struct_tms+set}" = set; then :
10360   $as_echo_n "(cached) " >&6
10361 else
10362
10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h.  */
10365
10366 #include "ansidecl.h"
10367 #include "system.h"
10368 #ifdef HAVE_SYS_TIMES_H
10369 #include <sys/times.h>
10370 #endif
10371
10372 int
10373 main ()
10374 {
10375 struct tms tms;
10376   ;
10377   return 0;
10378 }
10379 _ACEOF
10380 if ac_fn_c_try_compile "$LINENO"; then :
10381   ac_cv_struct_tms=yes
10382 else
10383   ac_cv_struct_tms=no
10384 fi
10385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10386 fi
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10388 $as_echo "$ac_cv_struct_tms" >&6; }
10389 if test $ac_cv_struct_tms = yes; then
10390
10391 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10392
10393 fi
10394
10395 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10396 # revisit after autoconf 2.50.
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10398 $as_echo_n "checking for clock_t... " >&6; }
10399 if test "${gcc_cv_type_clock_t+set}" = set; then :
10400   $as_echo_n "(cached) " >&6
10401 else
10402
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h.  */
10405
10406 #include "ansidecl.h"
10407 #include "system.h"
10408
10409 int
10410 main ()
10411 {
10412 clock_t x;
10413   ;
10414   return 0;
10415 }
10416 _ACEOF
10417 if ac_fn_c_try_compile "$LINENO"; then :
10418   gcc_cv_type_clock_t=yes
10419 else
10420   gcc_cv_type_clock_t=no
10421 fi
10422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10423 fi
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10425 $as_echo "$gcc_cv_type_clock_t" >&6; }
10426 if test $gcc_cv_type_clock_t = yes; then
10427
10428 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10429
10430 fi
10431
10432 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10433 CFLAGS="$saved_CFLAGS"
10434
10435 # Check whether --enable-initfini-array was given.
10436 if test "${enable_initfini_array+set}" = set; then :
10437   enableval=$enable_initfini_array;
10438 else
10439
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10441 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10442 if test "${gcc_cv_initfini_array+set}" = set; then :
10443   $as_echo_n "(cached) " >&6
10444 else
10445     if test "$cross_compiling" = yes; then :
10446   gcc_cv_initfini_array=no
10447 else
10448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h.  */
10450
10451 static int x = -1;
10452 int main (void) { return x; }
10453 int foo (void) { x = 0; }
10454 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10455 _ACEOF
10456 if ac_fn_c_try_run "$LINENO"; then :
10457   gcc_cv_initfini_array=yes
10458 else
10459   gcc_cv_initfini_array=no
10460 fi
10461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10462   conftest.$ac_objext conftest.beam conftest.$ac_ext
10463 fi
10464
10465 fi
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10467 $as_echo "$gcc_cv_initfini_array" >&6; }
10468   enable_initfini_array=$gcc_cv_initfini_array
10469
10470 fi
10471
10472 if test $enable_initfini_array = yes; then
10473
10474 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10475
10476 fi
10477
10478 # mkdir takes a single argument on some systems.
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10480 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10481 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10482   $as_echo_n "(cached) " >&6
10483 else
10484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485 /* end confdefs.h.  */
10486
10487 #include <sys/types.h>
10488 #ifdef HAVE_SYS_STAT_H
10489 # include <sys/stat.h>
10490 #endif
10491 #ifdef HAVE_UNISTD_H
10492 # include <unistd.h>
10493 #endif
10494 #ifdef HAVE_DIRECT_H
10495 # include <direct.h>
10496 #endif
10497 int
10498 main ()
10499 {
10500 mkdir ("foo", 0);
10501   ;
10502   return 0;
10503 }
10504 _ACEOF
10505 if ac_fn_c_try_compile "$LINENO"; then :
10506   gcc_cv_mkdir_takes_one_arg=no
10507 else
10508   gcc_cv_mkdir_takes_one_arg=yes
10509 fi
10510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10511 fi
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10513 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10514 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10515
10516 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10517
10518 fi
10519
10520
10521 # File extensions
10522 manext='.1'
10523 objext='.o'
10524
10525
10526
10527 # With Setjmp/Longjmp based exception handling.
10528 # Check whether --enable-sjlj-exceptions was given.
10529 if test "${enable_sjlj_exceptions+set}" = set; then :
10530   enableval=$enable_sjlj_exceptions; case $target in
10531   *-*-hpux10*)
10532     if test $enableval != yes; then
10533       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10534 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10535       enableval=yes
10536     fi
10537     ;;
10538 esac
10539 force_sjlj_exceptions=yes
10540 else
10541   case $target in
10542   *-*-hpux10*)
10543     force_sjlj_exceptions=yes
10544     enableval=yes
10545     ;;
10546   *)
10547     force_sjlj_exceptions=no
10548     ;;
10549 esac
10550 fi
10551
10552 if test $force_sjlj_exceptions = yes; then
10553   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10554
10555 cat >>confdefs.h <<_ACEOF
10556 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10557 _ACEOF
10558
10559 fi
10560
10561 # For platforms with the unwind ABI which includes an unwind library,
10562 # libunwind, we can choose to use the system libunwind.
10563 # config.gcc also contains tests of with_system_libunwind.
10564
10565
10566 # Check whether --with-system-libunwind was given.
10567 if test "${with_system_libunwind+set}" = set; then :
10568   withval=$with_system_libunwind;
10569 fi
10570
10571   # If system-libunwind was not specifically set, pick a default setting.
10572   if test x$with_system_libunwind = x; then
10573     case ${target} in
10574       ia64-*-hpux*) with_system_libunwind=yes ;;
10575       *) with_system_libunwind=no ;;
10576     esac
10577   fi
10578   # Based on system-libunwind and target, do we have ipinfo?
10579   if  test x$with_system_libunwind = xyes; then
10580     case ${target} in
10581       ia64-*-*) have_unwind_getipinfo=no ;;
10582       *) have_unwind_getipinfo=yes ;;
10583     esac
10584   else
10585     # Darwin before version 9 does not have _Unwind_GetIPInfo.
10586
10587     case ${target} in
10588       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10589       *) have_unwind_getipinfo=yes ;;
10590     esac
10591
10592   fi
10593
10594   if test x$have_unwind_getipinfo = xyes; then
10595
10596 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10597
10598   fi
10599
10600
10601 # --------------------------------------------------------
10602 # Build, host, and target specific configuration fragments
10603 # --------------------------------------------------------
10604
10605 # Collect build-machine-specific information.
10606 . ${srcdir}/config.build
10607
10608 # Collect host-machine-specific information.
10609 . ${srcdir}/config.host
10610
10611 target_gtfiles=
10612
10613 # Collect target-machine-specific information.
10614 . ${srcdir}/config.gcc
10615
10616 extra_objs="${host_extra_objs} ${extra_objs}"
10617 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10618
10619 # Default the target-machine variables that were not explicitly set.
10620 if test x"$tm_file" = x
10621 then tm_file=$cpu_type/$cpu_type.h; fi
10622
10623 if test x"$extra_headers" = x
10624 then extra_headers=; fi
10625
10626 if test x$md_file = x
10627 then md_file=$cpu_type/$cpu_type.md; fi
10628
10629 if test x$out_file = x
10630 then out_file=$cpu_type/$cpu_type.c; fi
10631
10632 if test x"$tmake_file" = x
10633 then tmake_file=$cpu_type/t-$cpu_type
10634 fi
10635
10636 if test x"$dwarf2" = xyes
10637 then tm_file="$tm_file tm-dwarf2.h"
10638 fi
10639
10640 # Say what files are being used for the output code and MD file.
10641 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10642 echo "Using \`$srcdir/config/$md_file' as machine description file."
10643
10644 # If any of the xm_file variables contain nonexistent files, warn
10645 # about them and drop them.
10646
10647 bx=
10648 for x in $build_xm_file; do
10649   if    test -f $srcdir/config/$x
10650   then      bx="$bx $x"
10651   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10652 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10653   fi
10654 done
10655 build_xm_file="$bx"
10656
10657 hx=
10658 for x in $host_xm_file; do
10659   if    test -f $srcdir/config/$x
10660   then      hx="$hx $x"
10661   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10662 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10663   fi
10664 done
10665 host_xm_file="$hx"
10666
10667 tx=
10668 for x in $xm_file; do
10669   if    test -f $srcdir/config/$x
10670   then      tx="$tx $x"
10671   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10672 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10673   fi
10674 done
10675 xm_file="$tx"
10676
10677 count=a
10678 for f in $tm_file; do
10679         count=${count}x
10680 done
10681 if test $count = ax; then
10682         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10683 else
10684         echo "Using the following target machine macro files:"
10685         for f in $tm_file; do
10686                 echo "  $srcdir/config/$f"
10687         done
10688 fi
10689
10690 if test x$need_64bit_hwint = xyes; then
10691
10692 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10693
10694 fi
10695
10696 if test x$use_long_long_for_widest_fast_int = xyes; then
10697
10698 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10699
10700 fi
10701
10702 count=a
10703 for f in $host_xm_file; do
10704         count=${count}x
10705 done
10706 if test $count = a; then
10707         :
10708 elif test $count = ax; then
10709         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10710 else
10711         echo "Using the following host machine macro files:"
10712         for f in $host_xm_file; do
10713                 echo "  $srcdir/config/$f"
10714         done
10715 fi
10716 echo "Using ${out_host_hook_obj} for host machine hooks."
10717
10718 if test "$host_xm_file" != "$build_xm_file"; then
10719         count=a
10720         for f in $build_xm_file; do
10721                 count=${count}x
10722         done
10723         if test $count = a; then
10724                 :
10725         elif test $count = ax; then
10726                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10727         else
10728                 echo "Using the following build machine macro files:"
10729                 for f in $build_xm_file; do
10730                         echo "  $srcdir/config/$f"
10731                 done
10732         fi
10733 fi
10734
10735 case ${host} in
10736   powerpc*-*-darwin*)
10737     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10738 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10739 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10740   $as_echo_n "(cached) " >&6
10741 else
10742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h.  */
10744
10745 #include <sys/cdefs.h>
10746 #include <sys/signal.h>
10747 #include <ucontext.h>
10748 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10749
10750 _ACEOF
10751 if ac_fn_c_try_compile "$LINENO"; then :
10752   gcc_cv_mcontext_underscores=no
10753 else
10754   gcc_cv_mcontext_underscores=yes
10755 fi
10756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757 fi
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10759 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10760       if test $gcc_cv_mcontext_underscores = yes; then
10761
10762 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10763
10764       fi
10765     ;;
10766 esac
10767
10768 # ---------
10769 # Threading
10770 # ---------
10771
10772 # Check if a valid thread package
10773 case ${enable_threads} in
10774   "" | no)
10775     # No threads
10776     target_thread_file='single'
10777     ;;
10778   yes)
10779     # default
10780     target_thread_file='single'
10781     ;;
10782   aix | dce | gnat | irix | posix | posix95 | rtems | \
10783   single | solaris | vxworks | win32 | mipssde)
10784     target_thread_file=${enable_threads}
10785     ;;
10786   *)
10787     echo "${enable_threads} is an unknown thread package" 1>&2
10788     exit 1
10789     ;;
10790 esac
10791
10792 if test x${thread_file} = x; then
10793   # No thread file set by target-specific clauses in config.gcc,
10794   # so use file chosen by default logic above
10795   thread_file=${target_thread_file}
10796 fi
10797
10798 # Make gthr-default.h if we have a thread file.
10799 gthread_flags=
10800 if test $thread_file != single; then
10801   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10802   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10803     rm -f gthr-default.h-t
10804   else
10805     mv -f gthr-default.h-t gthr-default.h
10806   fi
10807   gthread_flags=-DHAVE_GTHR_DEFAULT
10808 fi
10809
10810
10811 # --------
10812 # UNSORTED
10813 # --------
10814
10815 use_cxa_atexit=no
10816 if test x$enable___cxa_atexit = xyes || \
10817    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10818   if test x$host = x$target; then
10819     case $host in
10820       # mingw32 doesn't have __cxa_atexit but uses atexit registration
10821       # keyed to flag_use_cxa_atexit
10822       *-*-mingw32*)
10823         use_cxa_atexit=yes
10824         ;;
10825       *)
10826         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10827 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10828   use_cxa_atexit=yes
10829 else
10830   echo "__cxa_atexit can't be enabled on this target"
10831 fi
10832
10833         ;;
10834     esac
10835   else
10836     # We can't check for __cxa_atexit when building a cross, so assume
10837     # it is available
10838     use_cxa_atexit=yes
10839   fi
10840   if test x$use_cxa_atexit = xyes; then
10841
10842 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10843
10844   fi
10845 fi
10846
10847 # Look for a file containing extra machine modes.
10848 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10849   extra_modes_file='$(srcdir)'/config/${extra_modes}
10850
10851
10852 cat >>confdefs.h <<_ACEOF
10853 #define EXTRA_MODES_FILE "config/$extra_modes"
10854 _ACEOF
10855
10856 fi
10857
10858 # Convert extra_options into a form suitable for Makefile use.
10859 extra_opt_files=
10860 all_opt_files=
10861 for f in $extra_options; do
10862   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10863   all_opt_files="$all_opt_files $srcdir/config/$f"
10864 done
10865
10866
10867 # auto-host.h is the file containing items generated by autoconf and is
10868 # the first file included by config.h.
10869 # If host=build, it is correct to have bconfig include auto-host.h
10870 # as well.  If host!=build, we are in error and need to do more
10871 # work to find out the build config parameters.
10872 if test x$host = x$build
10873 then
10874         build_auto=auto-host.h
10875 else
10876         # We create a subdir, then run autoconf in the subdir.
10877         # To prevent recursion we set host and build for the new
10878         # invocation of configure to the build for this invocation
10879         # of configure.
10880         tempdir=build.$$
10881         rm -rf $tempdir
10882         mkdir $tempdir
10883         cd $tempdir
10884         case ${srcdir} in
10885         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10886         *) realsrcdir=../${srcdir};;
10887         esac
10888         saved_CFLAGS="${CFLAGS}"
10889         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10890         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10891         ${realsrcdir}/configure \
10892                 --enable-languages=${enable_languages-all} \
10893                 --target=$target_alias --host=$build_alias --build=$build_alias
10894         CFLAGS="${saved_CFLAGS}"
10895
10896         # We just finished tests for the build machine, so rename
10897         # the file auto-build.h in the gcc directory.
10898         mv auto-host.h ../auto-build.h
10899         cd ..
10900         rm -rf $tempdir
10901         build_auto=auto-build.h
10902 fi
10903
10904
10905 tm_file="${tm_file} defaults.h"
10906 tm_p_file="${tm_p_file} tm-preds.h"
10907 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10908 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10909 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10910 # put this back in temporarily.
10911 xm_file="auto-host.h ansidecl.h ${xm_file}"
10912
10913 # --------
10914 # UNSORTED
10915 # --------
10916
10917 # Compile in configure arguments.
10918 if test -f configargs.h ; then
10919         # Being re-configured.
10920         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10921         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10922 else
10923         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10924 fi
10925
10926 # Double all backslashes and backslash all quotes to turn
10927 # gcc_config_arguments into a C string.
10928 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10929 $gcc_config_arguments
10930 EOF
10931 gcc_config_arguments_str=`cat conftest.out`
10932 rm -f conftest.out
10933
10934 cat > configargs.h <<EOF
10935 /* Generated automatically. */
10936 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10937 static const char thread_model[] = "$thread_file";
10938
10939 static const struct {
10940   const char *name, *value;
10941 } configure_default_options[] = $configure_default_options;
10942 EOF
10943
10944 gcc_BASEVER=`cat $srcdir/BASE-VER`
10945 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10946 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10947 if test -f $srcdir/REVISION ; then
10948         gcc_REVISION=`cat $srcdir/REVISION`
10949 else
10950         gcc_REVISION=""
10951 fi
10952 cat > plugin-version.h <<EOF
10953 #include "configargs.h"
10954
10955 static char basever[] = "$gcc_BASEVER";
10956 static char datestamp[] = "$gcc_DATESTAMP";
10957 static char devphase[] = "$gcc_DEVPHASE";
10958 static char revision[] = "$gcc_REVISION";
10959
10960 /* FIXME plugins: We should make the version information more precise.
10961    One way to do is to add a checksum. */
10962
10963 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10964                                                 devphase, revision,
10965                                                 configuration_arguments};
10966 EOF
10967
10968 # Internationalization
10969 # If we haven't got the data from the intl directory,
10970 # assume NLS is disabled.
10971 USE_NLS=no
10972 LIBINTL=
10973 LIBINTL_DEP=
10974 INCINTL=
10975 XGETTEXT=
10976 GMSGFMT=
10977 POSUB=
10978
10979 if test -f  ../intl/config.intl; then
10980   .  ../intl/config.intl
10981 fi
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10983 $as_echo_n "checking whether NLS is requested... " >&6; }
10984 if test x"$USE_NLS" != xyes; then
10985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986 $as_echo "no" >&6; }
10987 else
10988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10989 $as_echo "yes" >&6; }
10990
10991 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10992
10993
10994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10995 $as_echo_n "checking for catalogs to be installed... " >&6; }
10996   # Look for .po and .gmo files in the source directory.
10997   CATALOGS=
10998   XLINGUAS=
10999   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11000     # If there aren't any .gmo files the shell will give us the
11001     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11002     # weeded out.
11003     case "$cat" in *\**)
11004       continue;;
11005     esac
11006     # The quadruple backslash is collapsed to a double backslash
11007     # by the backticks, then collapsed again by the double quotes,
11008     # leaving us with one backslash in the sed expression (right
11009     # before the dot that mustn't act as a wildcard).
11010     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11011     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11012     # The user is allowed to set LINGUAS to a list of languages to
11013     # install catalogs for.  If it's empty that means "all of them."
11014     if test "x$LINGUAS" = x; then
11015       CATALOGS="$CATALOGS $cat"
11016       XLINGUAS="$XLINGUAS $lang"
11017     else
11018       case "$LINGUAS" in *$lang*)
11019         CATALOGS="$CATALOGS $cat"
11020         XLINGUAS="$XLINGUAS $lang"
11021         ;;
11022       esac
11023     fi
11024   done
11025   LINGUAS="$XLINGUAS"
11026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11027 $as_echo "$LINGUAS" >&6; }
11028
11029
11030     DATADIRNAME=share
11031
11032   INSTOBJEXT=.mo
11033
11034   GENCAT=gencat
11035
11036   CATOBJEXT=.gmo
11037
11038 fi
11039
11040 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11041 # -liconv on the link line twice.
11042 case "$LIBINTL" in *$LIBICONV*)
11043         LIBICONV= ;;
11044 esac
11045
11046 # Check whether --enable-secureplt was given.
11047 if test "${enable_secureplt+set}" = set; then :
11048   enableval=$enable_secureplt;
11049 fi
11050
11051
11052 # Check whether --enable-leading-mingw64-underscores was given.
11053 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11054   enableval=$enable_leading_mingw64_underscores;
11055 fi
11056
11057 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11058
11059 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11060
11061 fi
11062
11063 # Check whether --enable-cld was given.
11064 if test "${enable_cld+set}" = set; then :
11065   enableval=$enable_cld;
11066 else
11067   enable_cld=no
11068 fi
11069
11070
11071 # Check whether --enable-frame-pointer was given.
11072 if test "${enable_frame_pointer+set}" = set; then :
11073   enableval=$enable_frame_pointer;
11074 else
11075
11076 case $target_os in
11077 linux* | darwin[8912]*)
11078   # Enable -fomit-frame-pointer by default for Linux and Darwin with
11079   # DWARF2.
11080   enable_frame_pointer=no
11081   ;;
11082 *)
11083   enable_frame_pointer=yes
11084   ;;
11085 esac
11086
11087 fi
11088
11089
11090 # Windows32 Registry support for specifying GCC installation paths.
11091 # Check whether --enable-win32-registry was given.
11092 if test "${enable_win32_registry+set}" = set; then :
11093   enableval=$enable_win32_registry;
11094 fi
11095
11096
11097 case $host_os in
11098   win32 | pe | cygwin* | mingw32* | uwin*)
11099     if test "x$enable_win32_registry" != xno; then
11100       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11101 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11102 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11103   $as_echo_n "(cached) " >&6
11104 else
11105   ac_func_search_save_LIBS=$LIBS
11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h.  */
11108
11109 /* Override any GCC internal prototype to avoid an error.
11110    Use char because int might match the return type of a GCC
11111    builtin and then its argument prototype would still apply.  */
11112 #ifdef __cplusplus
11113 extern "C"
11114 #endif
11115 char RegOpenKeyExA ();
11116 int
11117 main ()
11118 {
11119 return RegOpenKeyExA ();
11120   ;
11121   return 0;
11122 }
11123 _ACEOF
11124 for ac_lib in '' advapi32; do
11125   if test -z "$ac_lib"; then
11126     ac_res="none required"
11127   else
11128     ac_res=-l$ac_lib
11129     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11130   fi
11131   if ac_fn_c_try_link "$LINENO"; then :
11132   ac_cv_search_RegOpenKeyExA=$ac_res
11133 fi
11134 rm -f core conftest.err conftest.$ac_objext \
11135     conftest$ac_exeext
11136   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11137   break
11138 fi
11139 done
11140 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11141
11142 else
11143   ac_cv_search_RegOpenKeyExA=no
11144 fi
11145 rm conftest.$ac_ext
11146 LIBS=$ac_func_search_save_LIBS
11147 fi
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11149 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11150 ac_res=$ac_cv_search_RegOpenKeyExA
11151 if test "$ac_res" != no; then :
11152   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11153
11154 else
11155   enable_win32_registry=no
11156 fi
11157
11158     fi
11159
11160     if test "x$enable_win32_registry" != xno; then
11161
11162 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11163
11164
11165       if test "x$enable_win32_registry" != xyes \
11166          && test "x$enable_win32_registry" != x; then
11167
11168 cat >>confdefs.h <<_ACEOF
11169 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11170 _ACEOF
11171
11172       fi
11173     fi
11174   ;;
11175 esac
11176
11177 # Get an absolute path to the GCC top-level source directory
11178 holddir=`${PWDCMD-pwd}`
11179 cd $srcdir
11180 topdir=`${PWDCMD-pwd}`
11181 cd $holddir
11182
11183 # Conditionalize the makefile for this host machine.
11184 xmake_file=
11185 for f in ${host_xmake_file}
11186 do
11187         if test -f ${srcdir}/config/$f
11188         then
11189                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11190         fi
11191 done
11192
11193 # Conditionalize the makefile for this target machine.
11194 tmake_file_=
11195 for f in ${tmake_file}
11196 do
11197         if test -f ${srcdir}/config/$f
11198         then
11199                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11200         fi
11201 done
11202 tmake_file="${tmake_file_}"
11203
11204 out_object_file=`basename $out_file .c`.o
11205
11206 tm_file_list="options.h"
11207 tm_include_list="options.h insn-constants.h"
11208 for f in $tm_file; do
11209   case $f in
11210     ./* )
11211        f=`echo $f | sed 's/^..//'`
11212        tm_file_list="${tm_file_list} $f"
11213        tm_include_list="${tm_include_list} $f"
11214        ;;
11215     defaults.h )
11216        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11217        tm_include_list="${tm_include_list} $f"
11218        ;;
11219     * )
11220        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11221        tm_include_list="${tm_include_list} config/$f"
11222        ;;
11223   esac
11224 done
11225
11226 tm_p_file_list=
11227 tm_p_include_list=
11228 for f in $tm_p_file; do
11229   case $f in
11230     tm-preds.h )
11231        tm_p_file_list="${tm_p_file_list} $f"
11232        tm_p_include_list="${tm_p_include_list} $f"
11233        ;;
11234     * )
11235        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11236        tm_p_include_list="${tm_p_include_list} config/$f"
11237   esac
11238 done
11239
11240 xm_file_list=
11241 xm_include_list=
11242 for f in $xm_file; do
11243   case $f in
11244     ansidecl.h )
11245        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11246        xm_include_list="${xm_include_list} $f"
11247        ;;
11248     auto-host.h )
11249        xm_file_list="${xm_file_list} $f"
11250        xm_include_list="${xm_include_list} $f"
11251        ;;
11252     * )
11253        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11254        xm_include_list="${xm_include_list} config/$f"
11255        ;;
11256   esac
11257 done
11258
11259 host_xm_file_list=
11260 host_xm_include_list=
11261 for f in $host_xm_file; do
11262   case $f in
11263     ansidecl.h )
11264        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11265        host_xm_include_list="${host_xm_include_list} $f"
11266        ;;
11267     auto-host.h )
11268        host_xm_file_list="${host_xm_file_list} $f"
11269        host_xm_include_list="${host_xm_include_list} $f"
11270        ;;
11271     * )
11272        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11273        host_xm_include_list="${host_xm_include_list} config/$f"
11274        ;;
11275   esac
11276 done
11277
11278 build_xm_file_list=
11279 for f in $build_xm_file; do
11280   case $f in
11281     ansidecl.h )
11282        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11283        build_xm_include_list="${build_xm_include_list} $f"
11284        ;;
11285     auto-build.h | auto-host.h )
11286        build_xm_file_list="${build_xm_file_list} $f"
11287        build_xm_include_list="${build_xm_include_list} $f"
11288        ;;
11289     * )
11290        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11291        build_xm_include_list="${build_xm_include_list} config/$f"
11292        ;;
11293   esac
11294 done
11295
11296 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11297 # cross-compiler which does not use the native headers and libraries.
11298 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11299 CROSS=
11300 ALL=all.internal
11301 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11302
11303 if test "x$with_build_sysroot" != x; then
11304   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11305 else
11306   # This value is used, even on a native system, because
11307   # CROSS_SYSTEM_HEADER_DIR is just
11308   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11309   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11310 fi
11311
11312 if test x$host != x$target
11313 then
11314         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11315         ALL=all.cross
11316         SYSTEM_HEADER_DIR=$build_system_header_dir
11317         case "$host","$target" in
11318         # Darwin crosses can use the host system's libraries and headers,
11319         # because of the fat library support.  Of course, it must be the
11320         # same version of Darwin on both sides.  Allow the user to
11321         # just say --target=foo-darwin without a version number to mean
11322         # "the version on this system".
11323             *-*-darwin*,*-*-darwin*)
11324                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11325                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11326                 if test $hostos = $targetos -o $targetos = darwin ; then
11327                     CROSS=
11328                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11329                     with_headers=yes
11330                 fi
11331                 ;;
11332
11333             i?86-*-*,x86_64-*-* \
11334             | powerpc*-*-*,powerpc64*-*-*)
11335                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11336         esac
11337
11338         case $target in
11339                 *-*-mingw*)
11340                         if test "x$with_headers" = x; then
11341                                 with_headers=yes
11342                         fi
11343                         ;;
11344                 *)
11345                         ;;
11346         esac
11347 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11348         SYSTEM_HEADER_DIR=$build_system_header_dir
11349 fi
11350
11351 # If this is a cross-compiler that does not
11352 # have its own set of headers then define
11353 # inhibit_libc
11354
11355 # If this is using newlib, without having the headers available now,
11356 # then define inhibit_libc in LIBGCC2_CFLAGS.
11357 # This prevents libgcc2 from containing any code which requires libc
11358 # support.
11359 : ${inhibit_libc=false}
11360 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11361        test x$with_newlib = xyes ; } &&
11362      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11363        inhibit_libc=true
11364 fi
11365
11366
11367 # When building gcc with a cross-compiler, we need to adjust things so
11368 # that the generator programs are still built with the native compiler.
11369 # Also, we cannot run fixincludes.
11370
11371 # These are the normal (build=host) settings:
11372 CC_FOR_BUILD='$(CC)'
11373 BUILD_CFLAGS='$(ALL_CFLAGS)'
11374 BUILD_LDFLAGS='$(LDFLAGS)'
11375 STMP_FIXINC=stmp-fixinc
11376
11377 # And these apply if build != host, or we are generating coverage data
11378 if test x$build != x$host || test "x$coverage_flags" != x
11379 then
11380     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11381     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11382 fi
11383
11384 # Expand extra_headers to include complete path.
11385 # This substitutes for lots of t-* files.
11386 extra_headers_list=
11387 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11388 for file in ${extra_headers} ; do
11389   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11390 done
11391
11392 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11393 if test x"$use_gcc_tgmath" = xyes
11394 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11395 fi
11396
11397 # Define collect2 in Makefile.
11398 case $host_can_use_collect2 in
11399   no) collect2= ;;
11400   *) collect2='collect2$(exeext)' ;;
11401 esac
11402
11403
11404 # Add a definition of USE_COLLECT2 if system wants one.
11405 case $use_collect2 in
11406   no) use_collect2= ;;
11407   "") ;;
11408   *)
11409     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11410     xm_defines="${xm_defines} USE_COLLECT2"
11411     case $host_can_use_collect2 in
11412       no)
11413         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11414         ;;
11415     esac
11416     ;;
11417 esac
11418
11419
11420 cat >>confdefs.h <<_ACEOF
11421 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11422 _ACEOF
11423
11424
11425 # ---------------------------
11426 # Assembler & linker features
11427 # ---------------------------
11428
11429 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11430 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11431 # However when ld-new is first executed from the build tree, libtool will
11432 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11433 # to the build tree.  While doing this we need to use the previous-stage
11434 # linker, or we have an infinite loop.  The presence of a shell script as
11435 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11436 # the gcc/collect-ld script.  So we need to know how libtool works, or
11437 # exec-tool will fail.
11438
11439
11440 case `pwd` in
11441   *\ * | *\     *)
11442     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11443 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11444 esac
11445
11446
11447
11448 macro_version='2.2.7a'
11449 macro_revision='1.3134'
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463 ltmain="$ac_aux_dir/ltmain.sh"
11464
11465 # Backslashify metacharacters that are still active within
11466 # double-quoted strings.
11467 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11468
11469 # Same as above, but do not quote variable references.
11470 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11471
11472 # Sed substitution to delay expansion of an escaped shell variable in a
11473 # double_quote_subst'ed string.
11474 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11475
11476 # Sed substitution to delay expansion of an escaped single quote.
11477 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11478
11479 # Sed substitution to avoid accidental globbing in evaled expressions
11480 no_glob_subst='s/\*/\\\*/g'
11481
11482 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11483 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11484 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11485
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11487 $as_echo_n "checking how to print strings... " >&6; }
11488 # Test print first, because it will be a builtin if present.
11489 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11490    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11491   ECHO='print -r --'
11492 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11493   ECHO='printf %s\n'
11494 else
11495   # Use this function as a fallback that always works.
11496   func_fallback_echo ()
11497   {
11498     eval 'cat <<_LTECHO_EOF
11499 $1
11500 _LTECHO_EOF'
11501   }
11502   ECHO='func_fallback_echo'
11503 fi
11504
11505 # func_echo_all arg...
11506 # Invoke $ECHO with all args, space-separated.
11507 func_echo_all ()
11508 {
11509     $ECHO ""
11510 }
11511
11512 case "$ECHO" in
11513   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11514 $as_echo "printf" >&6; } ;;
11515   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11516 $as_echo "print -r" >&6; } ;;
11517   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11518 $as_echo "cat" >&6; } ;;
11519 esac
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11535 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11536 if test "${ac_cv_path_SED+set}" = set; then :
11537   $as_echo_n "(cached) " >&6
11538 else
11539             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11540      for ac_i in 1 2 3 4 5 6 7; do
11541        ac_script="$ac_script$as_nl$ac_script"
11542      done
11543      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11544      { ac_script=; unset ac_script;}
11545      if test -z "$SED"; then
11546   ac_path_SED_found=false
11547   # Loop through the user's path and test for each of PROGNAME-LIST
11548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11549 for as_dir in $PATH
11550 do
11551   IFS=$as_save_IFS
11552   test -z "$as_dir" && as_dir=.
11553     for ac_prog in sed gsed; do
11554     for ac_exec_ext in '' $ac_executable_extensions; do
11555       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11556       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11557 # Check for GNU ac_path_SED and select it if it is found.
11558   # Check for GNU $ac_path_SED
11559 case `"$ac_path_SED" --version 2>&1` in
11560 *GNU*)
11561   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11562 *)
11563   ac_count=0
11564   $as_echo_n 0123456789 >"conftest.in"
11565   while :
11566   do
11567     cat "conftest.in" "conftest.in" >"conftest.tmp"
11568     mv "conftest.tmp" "conftest.in"
11569     cp "conftest.in" "conftest.nl"
11570     $as_echo '' >> "conftest.nl"
11571     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11572     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11573     as_fn_arith $ac_count + 1 && ac_count=$as_val
11574     if test $ac_count -gt ${ac_path_SED_max-0}; then
11575       # Best one so far, save it but keep looking for a better one
11576       ac_cv_path_SED="$ac_path_SED"
11577       ac_path_SED_max=$ac_count
11578     fi
11579     # 10*(2^10) chars as input seems more than enough
11580     test $ac_count -gt 10 && break
11581   done
11582   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11583 esac
11584
11585       $ac_path_SED_found && break 3
11586     done
11587   done
11588   done
11589 IFS=$as_save_IFS
11590   if test -z "$ac_cv_path_SED"; then
11591     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11592   fi
11593 else
11594   ac_cv_path_SED=$SED
11595 fi
11596
11597 fi
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11599 $as_echo "$ac_cv_path_SED" >&6; }
11600  SED="$ac_cv_path_SED"
11601   rm -f conftest.sed
11602
11603 test -z "$SED" && SED=sed
11604 Xsed="$SED -e 1s/^X//"
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11617 $as_echo_n "checking for fgrep... " >&6; }
11618 if test "${ac_cv_path_FGREP+set}" = set; then :
11619   $as_echo_n "(cached) " >&6
11620 else
11621   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11622    then ac_cv_path_FGREP="$GREP -F"
11623    else
11624      if test -z "$FGREP"; then
11625   ac_path_FGREP_found=false
11626   # Loop through the user's path and test for each of PROGNAME-LIST
11627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11629 do
11630   IFS=$as_save_IFS
11631   test -z "$as_dir" && as_dir=.
11632     for ac_prog in fgrep; do
11633     for ac_exec_ext in '' $ac_executable_extensions; do
11634       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11635       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11636 # Check for GNU ac_path_FGREP and select it if it is found.
11637   # Check for GNU $ac_path_FGREP
11638 case `"$ac_path_FGREP" --version 2>&1` in
11639 *GNU*)
11640   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11641 *)
11642   ac_count=0
11643   $as_echo_n 0123456789 >"conftest.in"
11644   while :
11645   do
11646     cat "conftest.in" "conftest.in" >"conftest.tmp"
11647     mv "conftest.tmp" "conftest.in"
11648     cp "conftest.in" "conftest.nl"
11649     $as_echo 'FGREP' >> "conftest.nl"
11650     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11651     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11652     as_fn_arith $ac_count + 1 && ac_count=$as_val
11653     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11654       # Best one so far, save it but keep looking for a better one
11655       ac_cv_path_FGREP="$ac_path_FGREP"
11656       ac_path_FGREP_max=$ac_count
11657     fi
11658     # 10*(2^10) chars as input seems more than enough
11659     test $ac_count -gt 10 && break
11660   done
11661   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11662 esac
11663
11664       $ac_path_FGREP_found && break 3
11665     done
11666   done
11667   done
11668 IFS=$as_save_IFS
11669   if test -z "$ac_cv_path_FGREP"; then
11670     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11671   fi
11672 else
11673   ac_cv_path_FGREP=$FGREP
11674 fi
11675
11676    fi
11677 fi
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11679 $as_echo "$ac_cv_path_FGREP" >&6; }
11680  FGREP="$ac_cv_path_FGREP"
11681
11682
11683 test -z "$GREP" && GREP=grep
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703 # Check whether --with-gnu-ld was given.
11704 if test "${with_gnu_ld+set}" = set; then :
11705   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11706 else
11707   with_gnu_ld=no
11708 fi
11709
11710 ac_prog=ld
11711 if test "$GCC" = yes; then
11712   # Check if gcc -print-prog-name=ld gives a path.
11713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11714 $as_echo_n "checking for ld used by $CC... " >&6; }
11715   case $host in
11716   *-*-mingw*)
11717     # gcc leaves a trailing carriage return which upsets mingw
11718     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11719   *)
11720     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11721   esac
11722   case $ac_prog in
11723     # Accept absolute paths.
11724     [\\/]* | ?:[\\/]*)
11725       re_direlt='/[^/][^/]*/\.\./'
11726       # Canonicalize the pathname of ld
11727       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11728       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11729         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11730       done
11731       test -z "$LD" && LD="$ac_prog"
11732       ;;
11733   "")
11734     # If it fails, then pretend we aren't using GCC.
11735     ac_prog=ld
11736     ;;
11737   *)
11738     # If it is relative, then search for the first ld in PATH.
11739     with_gnu_ld=unknown
11740     ;;
11741   esac
11742 elif test "$with_gnu_ld" = yes; then
11743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11744 $as_echo_n "checking for GNU ld... " >&6; }
11745 else
11746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11747 $as_echo_n "checking for non-GNU ld... " >&6; }
11748 fi
11749 if test "${lt_cv_path_LD+set}" = set; then :
11750   $as_echo_n "(cached) " >&6
11751 else
11752   if test -z "$LD"; then
11753   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11754   for ac_dir in $PATH; do
11755     IFS="$lt_save_ifs"
11756     test -z "$ac_dir" && ac_dir=.
11757     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11758       lt_cv_path_LD="$ac_dir/$ac_prog"
11759       # Check to see if the program is GNU ld.  I'd rather use --version,
11760       # but apparently some variants of GNU ld only accept -v.
11761       # Break only if it was the GNU/non-GNU ld that we prefer.
11762       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11763       *GNU* | *'with BFD'*)
11764         test "$with_gnu_ld" != no && break
11765         ;;
11766       *)
11767         test "$with_gnu_ld" != yes && break
11768         ;;
11769       esac
11770     fi
11771   done
11772   IFS="$lt_save_ifs"
11773 else
11774   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11775 fi
11776 fi
11777
11778 LD="$lt_cv_path_LD"
11779 if test -n "$LD"; then
11780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11781 $as_echo "$LD" >&6; }
11782 else
11783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784 $as_echo "no" >&6; }
11785 fi
11786 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11788 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11789 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11790   $as_echo_n "(cached) " >&6
11791 else
11792   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11793 case `$LD -v 2>&1 </dev/null` in
11794 *GNU* | *'with BFD'*)
11795   lt_cv_prog_gnu_ld=yes
11796   ;;
11797 *)
11798   lt_cv_prog_gnu_ld=no
11799   ;;
11800 esac
11801 fi
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11803 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11804 with_gnu_ld=$lt_cv_prog_gnu_ld
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11815 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11816 if test "${lt_cv_path_NM+set}" = set; then :
11817   $as_echo_n "(cached) " >&6
11818 else
11819   if test -n "$NM"; then
11820   # Let the user override the test.
11821   lt_cv_path_NM="$NM"
11822 else
11823   lt_nm_to_check="${ac_tool_prefix}nm"
11824   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11825     lt_nm_to_check="$lt_nm_to_check nm"
11826   fi
11827   for lt_tmp_nm in $lt_nm_to_check; do
11828     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11829     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11830       IFS="$lt_save_ifs"
11831       test -z "$ac_dir" && ac_dir=.
11832       tmp_nm="$ac_dir/$lt_tmp_nm"
11833       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11834         # Check to see if the nm accepts a BSD-compat flag.
11835         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11836         #   nm: unknown option "B" ignored
11837         # Tru64's nm complains that /dev/null is an invalid object file
11838         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11839         */dev/null* | *'Invalid file or object type'*)
11840           lt_cv_path_NM="$tmp_nm -B"
11841           break
11842           ;;
11843         *)
11844           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11845           */dev/null*)
11846             lt_cv_path_NM="$tmp_nm -p"
11847             break
11848             ;;
11849           *)
11850             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11851             continue # so that we can try to find one that supports BSD flags
11852             ;;
11853           esac
11854           ;;
11855         esac
11856       fi
11857     done
11858     IFS="$lt_save_ifs"
11859   done
11860   : ${lt_cv_path_NM=no}
11861 fi
11862 fi
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11864 $as_echo "$lt_cv_path_NM" >&6; }
11865 if test "$lt_cv_path_NM" != "no"; then
11866   NM="$lt_cv_path_NM"
11867 else
11868   # Didn't find any BSD compatible name lister, look for dumpbin.
11869   if test -n "$DUMPBIN"; then :
11870     # Let the user override the test.
11871   else
11872     if test -n "$ac_tool_prefix"; then
11873   for ac_prog in dumpbin "link -dump"
11874   do
11875     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11878 $as_echo_n "checking for $ac_word... " >&6; }
11879 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11880   $as_echo_n "(cached) " >&6
11881 else
11882   if test -n "$DUMPBIN"; then
11883   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11884 else
11885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886 for as_dir in $PATH
11887 do
11888   IFS=$as_save_IFS
11889   test -z "$as_dir" && as_dir=.
11890     for ac_exec_ext in '' $ac_executable_extensions; do
11891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11892     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11894     break 2
11895   fi
11896 done
11897   done
11898 IFS=$as_save_IFS
11899
11900 fi
11901 fi
11902 DUMPBIN=$ac_cv_prog_DUMPBIN
11903 if test -n "$DUMPBIN"; then
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11905 $as_echo "$DUMPBIN" >&6; }
11906 else
11907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908 $as_echo "no" >&6; }
11909 fi
11910
11911
11912     test -n "$DUMPBIN" && break
11913   done
11914 fi
11915 if test -z "$DUMPBIN"; then
11916   ac_ct_DUMPBIN=$DUMPBIN
11917   for ac_prog in dumpbin "link -dump"
11918 do
11919   # Extract the first word of "$ac_prog", so it can be a program name with args.
11920 set dummy $ac_prog; ac_word=$2
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11922 $as_echo_n "checking for $ac_word... " >&6; }
11923 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11924   $as_echo_n "(cached) " >&6
11925 else
11926   if test -n "$ac_ct_DUMPBIN"; then
11927   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11928 else
11929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930 for as_dir in $PATH
11931 do
11932   IFS=$as_save_IFS
11933   test -z "$as_dir" && as_dir=.
11934     for ac_exec_ext in '' $ac_executable_extensions; do
11935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11936     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11938     break 2
11939   fi
11940 done
11941   done
11942 IFS=$as_save_IFS
11943
11944 fi
11945 fi
11946 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11947 if test -n "$ac_ct_DUMPBIN"; then
11948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11949 $as_echo "$ac_ct_DUMPBIN" >&6; }
11950 else
11951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952 $as_echo "no" >&6; }
11953 fi
11954
11955
11956   test -n "$ac_ct_DUMPBIN" && break
11957 done
11958
11959   if test "x$ac_ct_DUMPBIN" = x; then
11960     DUMPBIN=":"
11961   else
11962     case $cross_compiling:$ac_tool_warned in
11963 yes:)
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11966 ac_tool_warned=yes ;;
11967 esac
11968     DUMPBIN=$ac_ct_DUMPBIN
11969   fi
11970 fi
11971
11972     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11973     *COFF*)
11974       DUMPBIN="$DUMPBIN -symbols"
11975       ;;
11976     *)
11977       DUMPBIN=:
11978       ;;
11979     esac
11980   fi
11981
11982   if test "$DUMPBIN" != ":"; then
11983     NM="$DUMPBIN"
11984   fi
11985 fi
11986 test -z "$NM" && NM=nm
11987
11988
11989
11990
11991
11992
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11994 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11995 if test "${lt_cv_nm_interface+set}" = set; then :
11996   $as_echo_n "(cached) " >&6
11997 else
11998   lt_cv_nm_interface="BSD nm"
11999   echo "int some_variable = 0;" > conftest.$ac_ext
12000   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12001   (eval "$ac_compile" 2>conftest.err)
12002   cat conftest.err >&5
12003   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12004   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12005   cat conftest.err >&5
12006   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12007   cat conftest.out >&5
12008   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12009     lt_cv_nm_interface="MS dumpbin"
12010   fi
12011   rm -f conftest*
12012 fi
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12014 $as_echo "$lt_cv_nm_interface" >&6; }
12015
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12017 $as_echo_n "checking whether ln -s works... " >&6; }
12018 LN_S=$as_ln_s
12019 if test "$LN_S" = "ln -s"; then
12020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12021 $as_echo "yes" >&6; }
12022 else
12023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12024 $as_echo "no, using $LN_S" >&6; }
12025 fi
12026
12027 # find the maximum length of command line arguments
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12029 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12030 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12031   $as_echo_n "(cached) " >&6
12032 else
12033     i=0
12034   teststring="ABCD"
12035
12036   case $build_os in
12037   msdosdjgpp*)
12038     # On DJGPP, this test can blow up pretty badly due to problems in libc
12039     # (any single argument exceeding 2000 bytes causes a buffer overrun
12040     # during glob expansion).  Even if it were fixed, the result of this
12041     # check would be larger than it should be.
12042     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12043     ;;
12044
12045   gnu*)
12046     # Under GNU Hurd, this test is not required because there is
12047     # no limit to the length of command line arguments.
12048     # Libtool will interpret -1 as no limit whatsoever
12049     lt_cv_sys_max_cmd_len=-1;
12050     ;;
12051
12052   cygwin* | mingw* | cegcc*)
12053     # On Win9x/ME, this test blows up -- it succeeds, but takes
12054     # about 5 minutes as the teststring grows exponentially.
12055     # Worse, since 9x/ME are not pre-emptively multitasking,
12056     # you end up with a "frozen" computer, even though with patience
12057     # the test eventually succeeds (with a max line length of 256k).
12058     # Instead, let's just punt: use the minimum linelength reported by
12059     # all of the supported platforms: 8192 (on NT/2K/XP).
12060     lt_cv_sys_max_cmd_len=8192;
12061     ;;
12062
12063   mint*)
12064     # On MiNT this can take a long time and run out of memory.
12065     lt_cv_sys_max_cmd_len=8192;
12066     ;;
12067
12068   amigaos*)
12069     # On AmigaOS with pdksh, this test takes hours, literally.
12070     # So we just punt and use a minimum line length of 8192.
12071     lt_cv_sys_max_cmd_len=8192;
12072     ;;
12073
12074   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12075     # This has been around since 386BSD, at least.  Likely further.
12076     if test -x /sbin/sysctl; then
12077       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12078     elif test -x /usr/sbin/sysctl; then
12079       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12080     else
12081       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12082     fi
12083     # And add a safety zone
12084     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12085     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12086     ;;
12087
12088   interix*)
12089     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12090     lt_cv_sys_max_cmd_len=196608
12091     ;;
12092
12093   osf*)
12094     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12095     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12096     # nice to cause kernel panics so lets avoid the loop below.
12097     # First set a reasonable default.
12098     lt_cv_sys_max_cmd_len=16384
12099     #
12100     if test -x /sbin/sysconfig; then
12101       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12102         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12103       esac
12104     fi
12105     ;;
12106   sco3.2v5*)
12107     lt_cv_sys_max_cmd_len=102400
12108     ;;
12109   sysv5* | sco5v6* | sysv4.2uw2*)
12110     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12111     if test -n "$kargmax"; then
12112       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12113     else
12114       lt_cv_sys_max_cmd_len=32768
12115     fi
12116     ;;
12117   *)
12118     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12119     if test -n "$lt_cv_sys_max_cmd_len"; then
12120       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12121       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12122     else
12123       # Make teststring a little bigger before we do anything with it.
12124       # a 1K string should be a reasonable start.
12125       for i in 1 2 3 4 5 6 7 8 ; do
12126         teststring=$teststring$teststring
12127       done
12128       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12129       # If test is not a shell built-in, we'll probably end up computing a
12130       # maximum length that is only half of the actual maximum length, but
12131       # we can't tell.
12132       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12133                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12134               test $i != 17 # 1/2 MB should be enough
12135       do
12136         i=`expr $i + 1`
12137         teststring=$teststring$teststring
12138       done
12139       # Only check the string length outside the loop.
12140       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12141       teststring=
12142       # Add a significant safety factor because C++ compilers can tack on
12143       # massive amounts of additional arguments before passing them to the
12144       # linker.  It appears as though 1/2 is a usable value.
12145       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12146     fi
12147     ;;
12148   esac
12149
12150 fi
12151
12152 if test -n $lt_cv_sys_max_cmd_len ; then
12153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12154 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12155 else
12156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12157 $as_echo "none" >&6; }
12158 fi
12159 max_cmd_len=$lt_cv_sys_max_cmd_len
12160
12161
12162
12163
12164
12165
12166 : ${CP="cp -f"}
12167 : ${MV="mv -f"}
12168 : ${RM="rm -f"}
12169
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12171 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12172 # Try some XSI features
12173 xsi_shell=no
12174 ( _lt_dummy="a/b/c"
12175   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12176       = c,a/b,, \
12177     && eval 'test $(( 1 + 1 )) -eq 2 \
12178     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12179   && xsi_shell=yes
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12181 $as_echo "$xsi_shell" >&6; }
12182
12183
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12185 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12186 lt_shell_append=no
12187 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12188     >/dev/null 2>&1 \
12189   && lt_shell_append=yes
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12191 $as_echo "$lt_shell_append" >&6; }
12192
12193
12194 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12195   lt_unset=unset
12196 else
12197   lt_unset=false
12198 fi
12199
12200
12201
12202
12203
12204 # test EBCDIC or ASCII
12205 case `echo X|tr X '\101'` in
12206  A) # ASCII based system
12207     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12208   lt_SP2NL='tr \040 \012'
12209   lt_NL2SP='tr \015\012 \040\040'
12210   ;;
12211  *) # EBCDIC based system
12212   lt_SP2NL='tr \100 \n'
12213   lt_NL2SP='tr \r\n \100\100'
12214   ;;
12215 esac
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12226 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12227 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12228   $as_echo_n "(cached) " >&6
12229 else
12230   lt_cv_ld_reload_flag='-r'
12231 fi
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12233 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12234 reload_flag=$lt_cv_ld_reload_flag
12235 case $reload_flag in
12236 "" | " "*) ;;
12237 *) reload_flag=" $reload_flag" ;;
12238 esac
12239 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12240 case $host_os in
12241   darwin*)
12242     if test "$GCC" = yes; then
12243       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12244     else
12245       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12246     fi
12247     ;;
12248 esac
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258 if test -n "$ac_tool_prefix"; then
12259   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12260 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262 $as_echo_n "checking for $ac_word... " >&6; }
12263 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12264   $as_echo_n "(cached) " >&6
12265 else
12266   if test -n "$OBJDUMP"; then
12267   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12268 else
12269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270 for as_dir in $PATH
12271 do
12272   IFS=$as_save_IFS
12273   test -z "$as_dir" && as_dir=.
12274     for ac_exec_ext in '' $ac_executable_extensions; do
12275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12276     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12278     break 2
12279   fi
12280 done
12281   done
12282 IFS=$as_save_IFS
12283
12284 fi
12285 fi
12286 OBJDUMP=$ac_cv_prog_OBJDUMP
12287 if test -n "$OBJDUMP"; then
12288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12289 $as_echo "$OBJDUMP" >&6; }
12290 else
12291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12293 fi
12294
12295
12296 fi
12297 if test -z "$ac_cv_prog_OBJDUMP"; then
12298   ac_ct_OBJDUMP=$OBJDUMP
12299   # Extract the first word of "objdump", so it can be a program name with args.
12300 set dummy objdump; ac_word=$2
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12302 $as_echo_n "checking for $ac_word... " >&6; }
12303 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12304   $as_echo_n "(cached) " >&6
12305 else
12306   if test -n "$ac_ct_OBJDUMP"; then
12307   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12308 else
12309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12310 for as_dir in $PATH
12311 do
12312   IFS=$as_save_IFS
12313   test -z "$as_dir" && as_dir=.
12314     for ac_exec_ext in '' $ac_executable_extensions; do
12315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12316     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12318     break 2
12319   fi
12320 done
12321   done
12322 IFS=$as_save_IFS
12323
12324 fi
12325 fi
12326 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12327 if test -n "$ac_ct_OBJDUMP"; then
12328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12329 $as_echo "$ac_ct_OBJDUMP" >&6; }
12330 else
12331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12332 $as_echo "no" >&6; }
12333 fi
12334
12335   if test "x$ac_ct_OBJDUMP" = x; then
12336     OBJDUMP="false"
12337   else
12338     case $cross_compiling:$ac_tool_warned in
12339 yes:)
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12342 ac_tool_warned=yes ;;
12343 esac
12344     OBJDUMP=$ac_ct_OBJDUMP
12345   fi
12346 else
12347   OBJDUMP="$ac_cv_prog_OBJDUMP"
12348 fi
12349
12350 test -z "$OBJDUMP" && OBJDUMP=objdump
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12361 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12362 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12363   $as_echo_n "(cached) " >&6
12364 else
12365   lt_cv_file_magic_cmd='$MAGIC_CMD'
12366 lt_cv_file_magic_test_file=
12367 lt_cv_deplibs_check_method='unknown'
12368 # Need to set the preceding variable on all platforms that support
12369 # interlibrary dependencies.
12370 # 'none' -- dependencies not supported.
12371 # `unknown' -- same as none, but documents that we really don't know.
12372 # 'pass_all' -- all dependencies passed with no checks.
12373 # 'test_compile' -- check by making test program.
12374 # 'file_magic [[regex]]' -- check by looking for files in library path
12375 # which responds to the $file_magic_cmd with a given extended regex.
12376 # If you have `file' or equivalent on your system and you're not sure
12377 # whether `pass_all' will *always* work, you probably want this one.
12378
12379 case $host_os in
12380 aix[4-9]*)
12381   lt_cv_deplibs_check_method=pass_all
12382   ;;
12383
12384 beos*)
12385   lt_cv_deplibs_check_method=pass_all
12386   ;;
12387
12388 bsdi[45]*)
12389   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12390   lt_cv_file_magic_cmd='/usr/bin/file -L'
12391   lt_cv_file_magic_test_file=/shlib/libc.so
12392   ;;
12393
12394 cygwin*)
12395   # func_win32_libid is a shell function defined in ltmain.sh
12396   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12397   lt_cv_file_magic_cmd='func_win32_libid'
12398   ;;
12399
12400 mingw* | pw32*)
12401   # Base MSYS/MinGW do not provide the 'file' command needed by
12402   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12403   # unless we find 'file', for example because we are cross-compiling.
12404   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12405   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12406     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12407     lt_cv_file_magic_cmd='func_win32_libid'
12408   else
12409     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12410     lt_cv_file_magic_cmd='$OBJDUMP -f'
12411   fi
12412   ;;
12413
12414 cegcc*)
12415   # use the weaker test based on 'objdump'. See mingw*.
12416   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12417   lt_cv_file_magic_cmd='$OBJDUMP -f'
12418   ;;
12419
12420 darwin* | rhapsody*)
12421   lt_cv_deplibs_check_method=pass_all
12422   ;;
12423
12424 freebsd* | dragonfly*)
12425   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12426     case $host_cpu in
12427     i*86 )
12428       # Not sure whether the presence of OpenBSD here was a mistake.
12429       # Let's accept both of them until this is cleared up.
12430       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12431       lt_cv_file_magic_cmd=/usr/bin/file
12432       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12433       ;;
12434     esac
12435   else
12436     lt_cv_deplibs_check_method=pass_all
12437   fi
12438   ;;
12439
12440 gnu*)
12441   lt_cv_deplibs_check_method=pass_all
12442   ;;
12443
12444 haiku*)
12445   lt_cv_deplibs_check_method=pass_all
12446   ;;
12447
12448 hpux10.20* | hpux11*)
12449   lt_cv_file_magic_cmd=/usr/bin/file
12450   case $host_cpu in
12451   ia64*)
12452     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12453     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12454     ;;
12455   hppa*64*)
12456     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]'
12457     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12458     ;;
12459   *)
12460     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12461     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12462     ;;
12463   esac
12464   ;;
12465
12466 interix[3-9]*)
12467   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12468   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12469   ;;
12470
12471 irix5* | irix6* | nonstopux*)
12472   case $LD in
12473   *-32|*"-32 ") libmagic=32-bit;;
12474   *-n32|*"-n32 ") libmagic=N32;;
12475   *-64|*"-64 ") libmagic=64-bit;;
12476   *) libmagic=never-match;;
12477   esac
12478   lt_cv_deplibs_check_method=pass_all
12479   ;;
12480
12481 # This must be Linux ELF.
12482 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12483   lt_cv_deplibs_check_method=pass_all
12484   ;;
12485
12486 netbsd*)
12487   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12488     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12489   else
12490     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12491   fi
12492   ;;
12493
12494 newos6*)
12495   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12496   lt_cv_file_magic_cmd=/usr/bin/file
12497   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12498   ;;
12499
12500 *nto* | *qnx*)
12501   lt_cv_deplibs_check_method=pass_all
12502   ;;
12503
12504 openbsd*)
12505   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12506     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12507   else
12508     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12509   fi
12510   ;;
12511
12512 osf3* | osf4* | osf5*)
12513   lt_cv_deplibs_check_method=pass_all
12514   ;;
12515
12516 rdos*)
12517   lt_cv_deplibs_check_method=pass_all
12518   ;;
12519
12520 solaris*)
12521   lt_cv_deplibs_check_method=pass_all
12522   ;;
12523
12524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12525   lt_cv_deplibs_check_method=pass_all
12526   ;;
12527
12528 sysv4 | sysv4.3*)
12529   case $host_vendor in
12530   motorola)
12531     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]'
12532     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12533     ;;
12534   ncr)
12535     lt_cv_deplibs_check_method=pass_all
12536     ;;
12537   sequent)
12538     lt_cv_file_magic_cmd='/bin/file'
12539     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12540     ;;
12541   sni)
12542     lt_cv_file_magic_cmd='/bin/file'
12543     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12544     lt_cv_file_magic_test_file=/lib/libc.so
12545     ;;
12546   siemens)
12547     lt_cv_deplibs_check_method=pass_all
12548     ;;
12549   pc)
12550     lt_cv_deplibs_check_method=pass_all
12551     ;;
12552   esac
12553   ;;
12554
12555 tpf*)
12556   lt_cv_deplibs_check_method=pass_all
12557   ;;
12558 esac
12559
12560 fi
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12562 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12563 file_magic_cmd=$lt_cv_file_magic_cmd
12564 deplibs_check_method=$lt_cv_deplibs_check_method
12565 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578 if test -n "$ac_tool_prefix"; then
12579   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12580 set dummy ${ac_tool_prefix}ar; ac_word=$2
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12582 $as_echo_n "checking for $ac_word... " >&6; }
12583 if test "${ac_cv_prog_AR+set}" = set; then :
12584   $as_echo_n "(cached) " >&6
12585 else
12586   if test -n "$AR"; then
12587   ac_cv_prog_AR="$AR" # Let the user override the test.
12588 else
12589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590 for as_dir in $PATH
12591 do
12592   IFS=$as_save_IFS
12593   test -z "$as_dir" && as_dir=.
12594     for ac_exec_ext in '' $ac_executable_extensions; do
12595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12596     ac_cv_prog_AR="${ac_tool_prefix}ar"
12597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12598     break 2
12599   fi
12600 done
12601   done
12602 IFS=$as_save_IFS
12603
12604 fi
12605 fi
12606 AR=$ac_cv_prog_AR
12607 if test -n "$AR"; then
12608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12609 $as_echo "$AR" >&6; }
12610 else
12611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12613 fi
12614
12615
12616 fi
12617 if test -z "$ac_cv_prog_AR"; then
12618   ac_ct_AR=$AR
12619   # Extract the first word of "ar", so it can be a program name with args.
12620 set dummy ar; ac_word=$2
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622 $as_echo_n "checking for $ac_word... " >&6; }
12623 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12624   $as_echo_n "(cached) " >&6
12625 else
12626   if test -n "$ac_ct_AR"; then
12627   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12628 else
12629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630 for as_dir in $PATH
12631 do
12632   IFS=$as_save_IFS
12633   test -z "$as_dir" && as_dir=.
12634     for ac_exec_ext in '' $ac_executable_extensions; do
12635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12636     ac_cv_prog_ac_ct_AR="ar"
12637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12638     break 2
12639   fi
12640 done
12641   done
12642 IFS=$as_save_IFS
12643
12644 fi
12645 fi
12646 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12647 if test -n "$ac_ct_AR"; then
12648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12649 $as_echo "$ac_ct_AR" >&6; }
12650 else
12651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12653 fi
12654
12655   if test "x$ac_ct_AR" = x; then
12656     AR="false"
12657   else
12658     case $cross_compiling:$ac_tool_warned in
12659 yes:)
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12662 ac_tool_warned=yes ;;
12663 esac
12664     AR=$ac_ct_AR
12665   fi
12666 else
12667   AR="$ac_cv_prog_AR"
12668 fi
12669
12670 test -z "$AR" && AR=ar
12671 test -z "$AR_FLAGS" && AR_FLAGS=cru
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683 if test -n "$ac_tool_prefix"; then
12684   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12685 set dummy ${ac_tool_prefix}strip; ac_word=$2
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12687 $as_echo_n "checking for $ac_word... " >&6; }
12688 if test "${ac_cv_prog_STRIP+set}" = set; then :
12689   $as_echo_n "(cached) " >&6
12690 else
12691   if test -n "$STRIP"; then
12692   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12693 else
12694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695 for as_dir in $PATH
12696 do
12697   IFS=$as_save_IFS
12698   test -z "$as_dir" && as_dir=.
12699     for ac_exec_ext in '' $ac_executable_extensions; do
12700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12701     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703     break 2
12704   fi
12705 done
12706   done
12707 IFS=$as_save_IFS
12708
12709 fi
12710 fi
12711 STRIP=$ac_cv_prog_STRIP
12712 if test -n "$STRIP"; then
12713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12714 $as_echo "$STRIP" >&6; }
12715 else
12716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717 $as_echo "no" >&6; }
12718 fi
12719
12720
12721 fi
12722 if test -z "$ac_cv_prog_STRIP"; then
12723   ac_ct_STRIP=$STRIP
12724   # Extract the first word of "strip", so it can be a program name with args.
12725 set dummy strip; ac_word=$2
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727 $as_echo_n "checking for $ac_word... " >&6; }
12728 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12729   $as_echo_n "(cached) " >&6
12730 else
12731   if test -n "$ac_ct_STRIP"; then
12732   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12733 else
12734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735 for as_dir in $PATH
12736 do
12737   IFS=$as_save_IFS
12738   test -z "$as_dir" && as_dir=.
12739     for ac_exec_ext in '' $ac_executable_extensions; do
12740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12741     ac_cv_prog_ac_ct_STRIP="strip"
12742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12743     break 2
12744   fi
12745 done
12746   done
12747 IFS=$as_save_IFS
12748
12749 fi
12750 fi
12751 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12752 if test -n "$ac_ct_STRIP"; then
12753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12754 $as_echo "$ac_ct_STRIP" >&6; }
12755 else
12756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757 $as_echo "no" >&6; }
12758 fi
12759
12760   if test "x$ac_ct_STRIP" = x; then
12761     STRIP=":"
12762   else
12763     case $cross_compiling:$ac_tool_warned in
12764 yes:)
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12767 ac_tool_warned=yes ;;
12768 esac
12769     STRIP=$ac_ct_STRIP
12770   fi
12771 else
12772   STRIP="$ac_cv_prog_STRIP"
12773 fi
12774
12775 test -z "$STRIP" && STRIP=:
12776
12777
12778
12779
12780
12781
12782 if test -n "$ac_tool_prefix"; then
12783   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12784 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12786 $as_echo_n "checking for $ac_word... " >&6; }
12787 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12788   $as_echo_n "(cached) " >&6
12789 else
12790   if test -n "$RANLIB"; then
12791   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12792 else
12793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12794 for as_dir in $PATH
12795 do
12796   IFS=$as_save_IFS
12797   test -z "$as_dir" && as_dir=.
12798     for ac_exec_ext in '' $ac_executable_extensions; do
12799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12800     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12802     break 2
12803   fi
12804 done
12805   done
12806 IFS=$as_save_IFS
12807
12808 fi
12809 fi
12810 RANLIB=$ac_cv_prog_RANLIB
12811 if test -n "$RANLIB"; then
12812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12813 $as_echo "$RANLIB" >&6; }
12814 else
12815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 $as_echo "no" >&6; }
12817 fi
12818
12819
12820 fi
12821 if test -z "$ac_cv_prog_RANLIB"; then
12822   ac_ct_RANLIB=$RANLIB
12823   # Extract the first word of "ranlib", so it can be a program name with args.
12824 set dummy ranlib; ac_word=$2
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826 $as_echo_n "checking for $ac_word... " >&6; }
12827 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12828   $as_echo_n "(cached) " >&6
12829 else
12830   if test -n "$ac_ct_RANLIB"; then
12831   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12832 else
12833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12834 for as_dir in $PATH
12835 do
12836   IFS=$as_save_IFS
12837   test -z "$as_dir" && as_dir=.
12838     for ac_exec_ext in '' $ac_executable_extensions; do
12839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12840     ac_cv_prog_ac_ct_RANLIB="ranlib"
12841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12842     break 2
12843   fi
12844 done
12845   done
12846 IFS=$as_save_IFS
12847
12848 fi
12849 fi
12850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12851 if test -n "$ac_ct_RANLIB"; then
12852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12853 $as_echo "$ac_ct_RANLIB" >&6; }
12854 else
12855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856 $as_echo "no" >&6; }
12857 fi
12858
12859   if test "x$ac_ct_RANLIB" = x; then
12860     RANLIB=":"
12861   else
12862     case $cross_compiling:$ac_tool_warned in
12863 yes:)
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12866 ac_tool_warned=yes ;;
12867 esac
12868     RANLIB=$ac_ct_RANLIB
12869   fi
12870 else
12871   RANLIB="$ac_cv_prog_RANLIB"
12872 fi
12873
12874 test -z "$RANLIB" && RANLIB=:
12875
12876
12877
12878
12879
12880
12881 # Determine commands to create old-style static archives.
12882 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12883 old_postinstall_cmds='chmod 644 $oldlib'
12884 old_postuninstall_cmds=
12885
12886 if test -n "$RANLIB"; then
12887   case $host_os in
12888   openbsd*)
12889     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12890     ;;
12891   *)
12892     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12893     ;;
12894   esac
12895   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12896 fi
12897
12898 case $host_os in
12899   darwin*)
12900     lock_old_archive_extraction=yes ;;
12901   *)
12902     lock_old_archive_extraction=no ;;
12903 esac
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943 # If no C compiler was specified, use CC.
12944 LTCC=${LTCC-"$CC"}
12945
12946 # If no C compiler flags were specified, use CFLAGS.
12947 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12948
12949 # Allow CC to be a program name with arguments.
12950 compiler=$CC
12951
12952
12953 # Check for command to grab the raw symbol name followed by C symbol from nm.
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12955 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12956 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12957   $as_echo_n "(cached) " >&6
12958 else
12959
12960 # These are sane defaults that work on at least a few old systems.
12961 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12962
12963 # Character class describing NM global symbol codes.
12964 symcode='[BCDEGRST]'
12965
12966 # Regexp to match symbols that can be accessed directly from C.
12967 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12968
12969 # Define system-specific variables.
12970 case $host_os in
12971 aix*)
12972   symcode='[BCDT]'
12973   ;;
12974 cygwin* | mingw* | pw32* | cegcc*)
12975   symcode='[ABCDGISTW]'
12976   ;;
12977 hpux*)
12978   if test "$host_cpu" = ia64; then
12979     symcode='[ABCDEGRST]'
12980   fi
12981   ;;
12982 irix* | nonstopux*)
12983   symcode='[BCDEGRST]'
12984   ;;
12985 osf*)
12986   symcode='[BCDEGQRST]'
12987   ;;
12988 solaris*)
12989   symcode='[BDRT]'
12990   ;;
12991 sco3.2v5*)
12992   symcode='[DT]'
12993   ;;
12994 sysv4.2uw2*)
12995   symcode='[DT]'
12996   ;;
12997 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12998   symcode='[ABDT]'
12999   ;;
13000 sysv4)
13001   symcode='[DFNSTU]'
13002   ;;
13003 esac
13004
13005 # If we're using GNU nm, then use its standard symbol codes.
13006 case `$NM -V 2>&1` in
13007 *GNU* | *'with BFD'*)
13008   symcode='[ABCDGIRSTW]' ;;
13009 esac
13010
13011 # Transform an extracted symbol line into a proper C declaration.
13012 # Some systems (esp. on ia64) link data and code symbols differently,
13013 # so use this general approach.
13014 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13015
13016 # Transform an extracted symbol line into symbol name and symbol address
13017 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13018 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'"
13019
13020 # Handle CRLF in mingw tool chain
13021 opt_cr=
13022 case $build_os in
13023 mingw*)
13024   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13025   ;;
13026 esac
13027
13028 # Try without a prefix underscore, then with it.
13029 for ac_symprfx in "" "_"; do
13030
13031   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13032   symxfrm="\\1 $ac_symprfx\\2 \\2"
13033
13034   # Write the raw and C identifiers.
13035   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13036     # Fake it for dumpbin and say T for any non-static function
13037     # and D for any global variable.
13038     # Also find C++ and __fastcall symbols from MSVC++,
13039     # which start with @ or ?.
13040     lt_cv_sys_global_symbol_pipe="$AWK '"\
13041 "     {last_section=section; section=\$ 3};"\
13042 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13043 "     \$ 0!~/External *\|/{next};"\
13044 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13045 "     {if(hide[section]) next};"\
13046 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13047 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13048 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13049 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13050 "     ' prfx=^$ac_symprfx"
13051   else
13052     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13053   fi
13054
13055   # Check to see that the pipe works correctly.
13056   pipe_works=no
13057
13058   rm -f conftest*
13059   cat > conftest.$ac_ext <<_LT_EOF
13060 #ifdef __cplusplus
13061 extern "C" {
13062 #endif
13063 char nm_test_var;
13064 void nm_test_func(void);
13065 void nm_test_func(void){}
13066 #ifdef __cplusplus
13067 }
13068 #endif
13069 int main(){nm_test_var='a';nm_test_func();return(0);}
13070 _LT_EOF
13071
13072   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13073   (eval $ac_compile) 2>&5
13074   ac_status=$?
13075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13076   test $ac_status = 0; }; then
13077     # Now try to grab the symbols.
13078     nlist=conftest.nm
13079     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13080   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13081   ac_status=$?
13082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13083   test $ac_status = 0; } && test -s "$nlist"; then
13084       # Try sorting and uniquifying the output.
13085       if sort "$nlist" | uniq > "$nlist"T; then
13086         mv -f "$nlist"T "$nlist"
13087       else
13088         rm -f "$nlist"T
13089       fi
13090
13091       # Make sure that we snagged all the symbols we need.
13092       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13093         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13094           cat <<_LT_EOF > conftest.$ac_ext
13095 #ifdef __cplusplus
13096 extern "C" {
13097 #endif
13098
13099 _LT_EOF
13100           # Now generate the symbol file.
13101           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13102
13103           cat <<_LT_EOF >> conftest.$ac_ext
13104
13105 /* The mapping between symbol names and symbols.  */
13106 const struct {
13107   const char *name;
13108   void       *address;
13109 }
13110 lt__PROGRAM__LTX_preloaded_symbols[] =
13111 {
13112   { "@PROGRAM@", (void *) 0 },
13113 _LT_EOF
13114           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13115           cat <<\_LT_EOF >> conftest.$ac_ext
13116   {0, (void *) 0}
13117 };
13118
13119 /* This works around a problem in FreeBSD linker */
13120 #ifdef FREEBSD_WORKAROUND
13121 static const void *lt_preloaded_setup() {
13122   return lt__PROGRAM__LTX_preloaded_symbols;
13123 }
13124 #endif
13125
13126 #ifdef __cplusplus
13127 }
13128 #endif
13129 _LT_EOF
13130           # Now try linking the two files.
13131           mv conftest.$ac_objext conftstm.$ac_objext
13132           lt_save_LIBS="$LIBS"
13133           lt_save_CFLAGS="$CFLAGS"
13134           LIBS="conftstm.$ac_objext"
13135           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13136           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13137   (eval $ac_link) 2>&5
13138   ac_status=$?
13139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13140   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13141             pipe_works=yes
13142           fi
13143           LIBS="$lt_save_LIBS"
13144           CFLAGS="$lt_save_CFLAGS"
13145         else
13146           echo "cannot find nm_test_func in $nlist" >&5
13147         fi
13148       else
13149         echo "cannot find nm_test_var in $nlist" >&5
13150       fi
13151     else
13152       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13153     fi
13154   else
13155     echo "$progname: failed program was:" >&5
13156     cat conftest.$ac_ext >&5
13157   fi
13158   rm -rf conftest* conftst*
13159
13160   # Do not use the global_symbol_pipe unless it works.
13161   if test "$pipe_works" = yes; then
13162     break
13163   else
13164     lt_cv_sys_global_symbol_pipe=
13165   fi
13166 done
13167
13168 fi
13169
13170 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13171   lt_cv_sys_global_symbol_to_cdecl=
13172 fi
13173 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13175 $as_echo "failed" >&6; }
13176 else
13177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13178 $as_echo "ok" >&6; }
13179 fi
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202 # Check whether --enable-libtool-lock was given.
13203 if test "${enable_libtool_lock+set}" = set; then :
13204   enableval=$enable_libtool_lock;
13205 fi
13206
13207 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13208
13209 # Some flags need to be propagated to the compiler or linker for good
13210 # libtool support.
13211 case $host in
13212 ia64-*-hpux*)
13213   # Find out which ABI we are using.
13214   echo 'int i;' > conftest.$ac_ext
13215   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13216   (eval $ac_compile) 2>&5
13217   ac_status=$?
13218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13219   test $ac_status = 0; }; then
13220     case `/usr/bin/file conftest.$ac_objext` in
13221       *ELF-32*)
13222         HPUX_IA64_MODE="32"
13223         ;;
13224       *ELF-64*)
13225         HPUX_IA64_MODE="64"
13226         ;;
13227     esac
13228   fi
13229   rm -rf conftest*
13230   ;;
13231 *-*-irix6*)
13232   # Find out which ABI we are using.
13233   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13234   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13235   (eval $ac_compile) 2>&5
13236   ac_status=$?
13237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13238   test $ac_status = 0; }; then
13239     if test "$lt_cv_prog_gnu_ld" = yes; then
13240       case `/usr/bin/file conftest.$ac_objext` in
13241         *32-bit*)
13242           LD="${LD-ld} -melf32bsmip"
13243           ;;
13244         *N32*)
13245           LD="${LD-ld} -melf32bmipn32"
13246           ;;
13247         *64-bit*)
13248           LD="${LD-ld} -melf64bmip"
13249         ;;
13250       esac
13251     else
13252       case `/usr/bin/file conftest.$ac_objext` in
13253         *32-bit*)
13254           LD="${LD-ld} -32"
13255           ;;
13256         *N32*)
13257           LD="${LD-ld} -n32"
13258           ;;
13259         *64-bit*)
13260           LD="${LD-ld} -64"
13261           ;;
13262       esac
13263     fi
13264   fi
13265   rm -rf conftest*
13266   ;;
13267
13268 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13269 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13270   # Find out which ABI we are using.
13271   echo 'int i;' > conftest.$ac_ext
13272   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13273   (eval $ac_compile) 2>&5
13274   ac_status=$?
13275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13276   test $ac_status = 0; }; then
13277     case `/usr/bin/file conftest.o` in
13278       *32-bit*)
13279         case $host in
13280           x86_64-*kfreebsd*-gnu)
13281             LD="${LD-ld} -m elf_i386_fbsd"
13282             ;;
13283           x86_64-*linux*)
13284             LD="${LD-ld} -m elf_i386"
13285             ;;
13286           ppc64-*linux*|powerpc64-*linux*)
13287             LD="${LD-ld} -m elf32ppclinux"
13288             ;;
13289           s390x-*linux*)
13290             LD="${LD-ld} -m elf_s390"
13291             ;;
13292           sparc64-*linux*)
13293             LD="${LD-ld} -m elf32_sparc"
13294             ;;
13295         esac
13296         ;;
13297       *64-bit*)
13298         case $host in
13299           x86_64-*kfreebsd*-gnu)
13300             LD="${LD-ld} -m elf_x86_64_fbsd"
13301             ;;
13302           x86_64-*linux*)
13303             LD="${LD-ld} -m elf_x86_64"
13304             ;;
13305           ppc*-*linux*|powerpc*-*linux*)
13306             LD="${LD-ld} -m elf64ppc"
13307             ;;
13308           s390*-*linux*|s390*-*tpf*)
13309             LD="${LD-ld} -m elf64_s390"
13310             ;;
13311           sparc*-*linux*)
13312             LD="${LD-ld} -m elf64_sparc"
13313             ;;
13314         esac
13315         ;;
13316     esac
13317   fi
13318   rm -rf conftest*
13319   ;;
13320
13321 *-*-sco3.2v5*)
13322   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13323   SAVE_CFLAGS="$CFLAGS"
13324   CFLAGS="$CFLAGS -belf"
13325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13326 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13327 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13328   $as_echo_n "(cached) " >&6
13329 else
13330   ac_ext=c
13331 ac_cpp='$CPP $CPPFLAGS'
13332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13335
13336      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337 /* end confdefs.h.  */
13338
13339 int
13340 main ()
13341 {
13342
13343   ;
13344   return 0;
13345 }
13346 _ACEOF
13347 if ac_fn_c_try_link "$LINENO"; then :
13348   lt_cv_cc_needs_belf=yes
13349 else
13350   lt_cv_cc_needs_belf=no
13351 fi
13352 rm -f core conftest.err conftest.$ac_objext \
13353     conftest$ac_exeext conftest.$ac_ext
13354      ac_ext=c
13355 ac_cpp='$CPP $CPPFLAGS'
13356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13359
13360 fi
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13362 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13363   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13364     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13365     CFLAGS="$SAVE_CFLAGS"
13366   fi
13367   ;;
13368 sparc*-*solaris*)
13369   # Find out which ABI we are using.
13370   echo 'int i;' > conftest.$ac_ext
13371   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13372   (eval $ac_compile) 2>&5
13373   ac_status=$?
13374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13375   test $ac_status = 0; }; then
13376     case `/usr/bin/file conftest.o` in
13377     *64-bit*)
13378       case $lt_cv_prog_gnu_ld in
13379       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13380       *)
13381         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13382           LD="${LD-ld} -64"
13383         fi
13384         ;;
13385       esac
13386       ;;
13387     esac
13388   fi
13389   rm -rf conftest*
13390   ;;
13391 esac
13392
13393 need_locks="$enable_libtool_lock"
13394
13395
13396   case $host_os in
13397     rhapsody* | darwin*)
13398     if test -n "$ac_tool_prefix"; then
13399   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13400 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13402 $as_echo_n "checking for $ac_word... " >&6; }
13403 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13404   $as_echo_n "(cached) " >&6
13405 else
13406   if test -n "$DSYMUTIL"; then
13407   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13408 else
13409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13410 for as_dir in $PATH
13411 do
13412   IFS=$as_save_IFS
13413   test -z "$as_dir" && as_dir=.
13414     for ac_exec_ext in '' $ac_executable_extensions; do
13415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13416     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13418     break 2
13419   fi
13420 done
13421   done
13422 IFS=$as_save_IFS
13423
13424 fi
13425 fi
13426 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13427 if test -n "$DSYMUTIL"; then
13428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13429 $as_echo "$DSYMUTIL" >&6; }
13430 else
13431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13432 $as_echo "no" >&6; }
13433 fi
13434
13435
13436 fi
13437 if test -z "$ac_cv_prog_DSYMUTIL"; then
13438   ac_ct_DSYMUTIL=$DSYMUTIL
13439   # Extract the first word of "dsymutil", so it can be a program name with args.
13440 set dummy dsymutil; ac_word=$2
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13442 $as_echo_n "checking for $ac_word... " >&6; }
13443 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13444   $as_echo_n "(cached) " >&6
13445 else
13446   if test -n "$ac_ct_DSYMUTIL"; then
13447   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13448 else
13449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13450 for as_dir in $PATH
13451 do
13452   IFS=$as_save_IFS
13453   test -z "$as_dir" && as_dir=.
13454     for ac_exec_ext in '' $ac_executable_extensions; do
13455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13456     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13458     break 2
13459   fi
13460 done
13461   done
13462 IFS=$as_save_IFS
13463
13464 fi
13465 fi
13466 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13467 if test -n "$ac_ct_DSYMUTIL"; then
13468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13469 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13470 else
13471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472 $as_echo "no" >&6; }
13473 fi
13474
13475   if test "x$ac_ct_DSYMUTIL" = x; then
13476     DSYMUTIL=":"
13477   else
13478     case $cross_compiling:$ac_tool_warned in
13479 yes:)
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13482 ac_tool_warned=yes ;;
13483 esac
13484     DSYMUTIL=$ac_ct_DSYMUTIL
13485   fi
13486 else
13487   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13488 fi
13489
13490     if test -n "$ac_tool_prefix"; then
13491   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13492 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13494 $as_echo_n "checking for $ac_word... " >&6; }
13495 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13496   $as_echo_n "(cached) " >&6
13497 else
13498   if test -n "$NMEDIT"; then
13499   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13500 else
13501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502 for as_dir in $PATH
13503 do
13504   IFS=$as_save_IFS
13505   test -z "$as_dir" && as_dir=.
13506     for ac_exec_ext in '' $ac_executable_extensions; do
13507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13508     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13510     break 2
13511   fi
13512 done
13513   done
13514 IFS=$as_save_IFS
13515
13516 fi
13517 fi
13518 NMEDIT=$ac_cv_prog_NMEDIT
13519 if test -n "$NMEDIT"; then
13520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13521 $as_echo "$NMEDIT" >&6; }
13522 else
13523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13524 $as_echo "no" >&6; }
13525 fi
13526
13527
13528 fi
13529 if test -z "$ac_cv_prog_NMEDIT"; then
13530   ac_ct_NMEDIT=$NMEDIT
13531   # Extract the first word of "nmedit", so it can be a program name with args.
13532 set dummy nmedit; ac_word=$2
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13534 $as_echo_n "checking for $ac_word... " >&6; }
13535 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13536   $as_echo_n "(cached) " >&6
13537 else
13538   if test -n "$ac_ct_NMEDIT"; then
13539   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13540 else
13541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13542 for as_dir in $PATH
13543 do
13544   IFS=$as_save_IFS
13545   test -z "$as_dir" && as_dir=.
13546     for ac_exec_ext in '' $ac_executable_extensions; do
13547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13548     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13550     break 2
13551   fi
13552 done
13553   done
13554 IFS=$as_save_IFS
13555
13556 fi
13557 fi
13558 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13559 if test -n "$ac_ct_NMEDIT"; then
13560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13561 $as_echo "$ac_ct_NMEDIT" >&6; }
13562 else
13563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13564 $as_echo "no" >&6; }
13565 fi
13566
13567   if test "x$ac_ct_NMEDIT" = x; then
13568     NMEDIT=":"
13569   else
13570     case $cross_compiling:$ac_tool_warned in
13571 yes:)
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13574 ac_tool_warned=yes ;;
13575 esac
13576     NMEDIT=$ac_ct_NMEDIT
13577   fi
13578 else
13579   NMEDIT="$ac_cv_prog_NMEDIT"
13580 fi
13581
13582     if test -n "$ac_tool_prefix"; then
13583   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13584 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13586 $as_echo_n "checking for $ac_word... " >&6; }
13587 if test "${ac_cv_prog_LIPO+set}" = set; then :
13588   $as_echo_n "(cached) " >&6
13589 else
13590   if test -n "$LIPO"; then
13591   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13592 else
13593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13594 for as_dir in $PATH
13595 do
13596   IFS=$as_save_IFS
13597   test -z "$as_dir" && as_dir=.
13598     for ac_exec_ext in '' $ac_executable_extensions; do
13599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13600     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13602     break 2
13603   fi
13604 done
13605   done
13606 IFS=$as_save_IFS
13607
13608 fi
13609 fi
13610 LIPO=$ac_cv_prog_LIPO
13611 if test -n "$LIPO"; then
13612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13613 $as_echo "$LIPO" >&6; }
13614 else
13615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13616 $as_echo "no" >&6; }
13617 fi
13618
13619
13620 fi
13621 if test -z "$ac_cv_prog_LIPO"; then
13622   ac_ct_LIPO=$LIPO
13623   # Extract the first word of "lipo", so it can be a program name with args.
13624 set dummy lipo; ac_word=$2
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13626 $as_echo_n "checking for $ac_word... " >&6; }
13627 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13628   $as_echo_n "(cached) " >&6
13629 else
13630   if test -n "$ac_ct_LIPO"; then
13631   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13632 else
13633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13634 for as_dir in $PATH
13635 do
13636   IFS=$as_save_IFS
13637   test -z "$as_dir" && as_dir=.
13638     for ac_exec_ext in '' $ac_executable_extensions; do
13639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13640     ac_cv_prog_ac_ct_LIPO="lipo"
13641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13642     break 2
13643   fi
13644 done
13645   done
13646 IFS=$as_save_IFS
13647
13648 fi
13649 fi
13650 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13651 if test -n "$ac_ct_LIPO"; then
13652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13653 $as_echo "$ac_ct_LIPO" >&6; }
13654 else
13655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13656 $as_echo "no" >&6; }
13657 fi
13658
13659   if test "x$ac_ct_LIPO" = x; then
13660     LIPO=":"
13661   else
13662     case $cross_compiling:$ac_tool_warned in
13663 yes:)
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13666 ac_tool_warned=yes ;;
13667 esac
13668     LIPO=$ac_ct_LIPO
13669   fi
13670 else
13671   LIPO="$ac_cv_prog_LIPO"
13672 fi
13673
13674     if test -n "$ac_tool_prefix"; then
13675   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13676 set dummy ${ac_tool_prefix}otool; ac_word=$2
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13678 $as_echo_n "checking for $ac_word... " >&6; }
13679 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13680   $as_echo_n "(cached) " >&6
13681 else
13682   if test -n "$OTOOL"; then
13683   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13684 else
13685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13686 for as_dir in $PATH
13687 do
13688   IFS=$as_save_IFS
13689   test -z "$as_dir" && as_dir=.
13690     for ac_exec_ext in '' $ac_executable_extensions; do
13691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13692     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13694     break 2
13695   fi
13696 done
13697   done
13698 IFS=$as_save_IFS
13699
13700 fi
13701 fi
13702 OTOOL=$ac_cv_prog_OTOOL
13703 if test -n "$OTOOL"; then
13704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13705 $as_echo "$OTOOL" >&6; }
13706 else
13707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13708 $as_echo "no" >&6; }
13709 fi
13710
13711
13712 fi
13713 if test -z "$ac_cv_prog_OTOOL"; then
13714   ac_ct_OTOOL=$OTOOL
13715   # Extract the first word of "otool", so it can be a program name with args.
13716 set dummy otool; ac_word=$2
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13718 $as_echo_n "checking for $ac_word... " >&6; }
13719 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13720   $as_echo_n "(cached) " >&6
13721 else
13722   if test -n "$ac_ct_OTOOL"; then
13723   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13724 else
13725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726 for as_dir in $PATH
13727 do
13728   IFS=$as_save_IFS
13729   test -z "$as_dir" && as_dir=.
13730     for ac_exec_ext in '' $ac_executable_extensions; do
13731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13732     ac_cv_prog_ac_ct_OTOOL="otool"
13733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13734     break 2
13735   fi
13736 done
13737   done
13738 IFS=$as_save_IFS
13739
13740 fi
13741 fi
13742 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13743 if test -n "$ac_ct_OTOOL"; then
13744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13745 $as_echo "$ac_ct_OTOOL" >&6; }
13746 else
13747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13749 fi
13750
13751   if test "x$ac_ct_OTOOL" = x; then
13752     OTOOL=":"
13753   else
13754     case $cross_compiling:$ac_tool_warned in
13755 yes:)
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13758 ac_tool_warned=yes ;;
13759 esac
13760     OTOOL=$ac_ct_OTOOL
13761   fi
13762 else
13763   OTOOL="$ac_cv_prog_OTOOL"
13764 fi
13765
13766     if test -n "$ac_tool_prefix"; then
13767   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13768 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13770 $as_echo_n "checking for $ac_word... " >&6; }
13771 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13772   $as_echo_n "(cached) " >&6
13773 else
13774   if test -n "$OTOOL64"; then
13775   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13776 else
13777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13778 for as_dir in $PATH
13779 do
13780   IFS=$as_save_IFS
13781   test -z "$as_dir" && as_dir=.
13782     for ac_exec_ext in '' $ac_executable_extensions; do
13783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13784     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13786     break 2
13787   fi
13788 done
13789   done
13790 IFS=$as_save_IFS
13791
13792 fi
13793 fi
13794 OTOOL64=$ac_cv_prog_OTOOL64
13795 if test -n "$OTOOL64"; then
13796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13797 $as_echo "$OTOOL64" >&6; }
13798 else
13799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13800 $as_echo "no" >&6; }
13801 fi
13802
13803
13804 fi
13805 if test -z "$ac_cv_prog_OTOOL64"; then
13806   ac_ct_OTOOL64=$OTOOL64
13807   # Extract the first word of "otool64", so it can be a program name with args.
13808 set dummy otool64; ac_word=$2
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13810 $as_echo_n "checking for $ac_word... " >&6; }
13811 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13812   $as_echo_n "(cached) " >&6
13813 else
13814   if test -n "$ac_ct_OTOOL64"; then
13815   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13816 else
13817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13818 for as_dir in $PATH
13819 do
13820   IFS=$as_save_IFS
13821   test -z "$as_dir" && as_dir=.
13822     for ac_exec_ext in '' $ac_executable_extensions; do
13823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13824     ac_cv_prog_ac_ct_OTOOL64="otool64"
13825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13826     break 2
13827   fi
13828 done
13829   done
13830 IFS=$as_save_IFS
13831
13832 fi
13833 fi
13834 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13835 if test -n "$ac_ct_OTOOL64"; then
13836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13837 $as_echo "$ac_ct_OTOOL64" >&6; }
13838 else
13839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13840 $as_echo "no" >&6; }
13841 fi
13842
13843   if test "x$ac_ct_OTOOL64" = x; then
13844     OTOOL64=":"
13845   else
13846     case $cross_compiling:$ac_tool_warned in
13847 yes:)
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13850 ac_tool_warned=yes ;;
13851 esac
13852     OTOOL64=$ac_ct_OTOOL64
13853   fi
13854 else
13855   OTOOL64="$ac_cv_prog_OTOOL64"
13856 fi
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13885 $as_echo_n "checking for -single_module linker flag... " >&6; }
13886 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13887   $as_echo_n "(cached) " >&6
13888 else
13889   lt_cv_apple_cc_single_mod=no
13890       if test -z "${LT_MULTI_MODULE}"; then
13891         # By default we will add the -single_module flag. You can override
13892         # by either setting the environment variable LT_MULTI_MODULE
13893         # non-empty at configure time, or by adding -multi_module to the
13894         # link flags.
13895         rm -rf libconftest.dylib*
13896         echo "int foo(void){return 1;}" > conftest.c
13897         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13898 -dynamiclib -Wl,-single_module conftest.c" >&5
13899         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13900           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13901         _lt_result=$?
13902         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13903           lt_cv_apple_cc_single_mod=yes
13904         else
13905           cat conftest.err >&5
13906         fi
13907         rm -rf libconftest.dylib*
13908         rm -f conftest.*
13909       fi
13910 fi
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13912 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13914 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13915 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13916   $as_echo_n "(cached) " >&6
13917 else
13918   lt_cv_ld_exported_symbols_list=no
13919       save_LDFLAGS=$LDFLAGS
13920       echo "_main" > conftest.sym
13921       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13922       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h.  */
13924
13925 int
13926 main ()
13927 {
13928
13929   ;
13930   return 0;
13931 }
13932 _ACEOF
13933 if ac_fn_c_try_link "$LINENO"; then :
13934   lt_cv_ld_exported_symbols_list=yes
13935 else
13936   lt_cv_ld_exported_symbols_list=no
13937 fi
13938 rm -f core conftest.err conftest.$ac_objext \
13939     conftest$ac_exeext conftest.$ac_ext
13940         LDFLAGS="$save_LDFLAGS"
13941
13942 fi
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13944 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13946 $as_echo_n "checking for -force_load linker flag... " >&6; }
13947 if test "${lt_cv_ld_force_load+set}" = set; then :
13948   $as_echo_n "(cached) " >&6
13949 else
13950   lt_cv_ld_force_load=no
13951       cat > conftest.c << _LT_EOF
13952 int forced_loaded() { return 2;}
13953 _LT_EOF
13954       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13955       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13956       echo "$AR cru libconftest.a conftest.o" >&5
13957       $AR cru libconftest.a conftest.o 2>&5
13958       cat > conftest.c << _LT_EOF
13959 int main() { return 0;}
13960 _LT_EOF
13961       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13962       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13963       _lt_result=$?
13964       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13965         lt_cv_ld_force_load=yes
13966       else
13967         cat conftest.err >&5
13968       fi
13969         rm -f conftest.err libconftest.a conftest conftest.c
13970         rm -rf conftest.dSYM
13971
13972 fi
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13974 $as_echo "$lt_cv_ld_force_load" >&6; }
13975     case $host_os in
13976     rhapsody* | darwin1.[012])
13977       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13978     darwin1.*)
13979       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13980     darwin*) # darwin 5.x on
13981       # if running on 10.5 or later, the deployment target defaults
13982       # to the OS version, if on x86, and 10.4, the deployment
13983       # target defaults to 10.4. Don't you love it?
13984       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13985         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13986           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13987         10.[012]*)
13988           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13989         10.*)
13990           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13991       esac
13992     ;;
13993   esac
13994     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13995       _lt_dar_single_mod='$single_module'
13996     fi
13997     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13998       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13999     else
14000       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14001     fi
14002     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14003       _lt_dsymutil='~$DSYMUTIL $lib || :'
14004     else
14005       _lt_dsymutil=
14006     fi
14007     ;;
14008   esac
14009
14010 for ac_header in dlfcn.h
14011 do :
14012   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14013 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14014   cat >>confdefs.h <<_ACEOF
14015 #define HAVE_DLFCN_H 1
14016 _ACEOF
14017
14018 fi
14019 done
14020
14021
14022
14023
14024
14025 # Set options
14026
14027
14028
14029         enable_dlopen=no
14030
14031
14032   enable_win32_dll=no
14033
14034
14035             # Check whether --enable-shared was given.
14036 if test "${enable_shared+set}" = set; then :
14037   enableval=$enable_shared; p=${PACKAGE-default}
14038     case $enableval in
14039     yes) enable_shared=yes ;;
14040     no) enable_shared=no ;;
14041     *)
14042       enable_shared=no
14043       # Look at the argument we got.  We use all the common list separators.
14044       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14045       for pkg in $enableval; do
14046         IFS="$lt_save_ifs"
14047         if test "X$pkg" = "X$p"; then
14048           enable_shared=yes
14049         fi
14050       done
14051       IFS="$lt_save_ifs"
14052       ;;
14053     esac
14054 else
14055   enable_shared=yes
14056 fi
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066   # Check whether --enable-static was given.
14067 if test "${enable_static+set}" = set; then :
14068   enableval=$enable_static; p=${PACKAGE-default}
14069     case $enableval in
14070     yes) enable_static=yes ;;
14071     no) enable_static=no ;;
14072     *)
14073      enable_static=no
14074       # Look at the argument we got.  We use all the common list separators.
14075       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14076       for pkg in $enableval; do
14077         IFS="$lt_save_ifs"
14078         if test "X$pkg" = "X$p"; then
14079           enable_static=yes
14080         fi
14081       done
14082       IFS="$lt_save_ifs"
14083       ;;
14084     esac
14085 else
14086   enable_static=yes
14087 fi
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098 # Check whether --with-pic was given.
14099 if test "${with_pic+set}" = set; then :
14100   withval=$with_pic; pic_mode="$withval"
14101 else
14102   pic_mode=default
14103 fi
14104
14105
14106 test -z "$pic_mode" && pic_mode=default
14107
14108
14109
14110
14111
14112
14113
14114   # Check whether --enable-fast-install was given.
14115 if test "${enable_fast_install+set}" = set; then :
14116   enableval=$enable_fast_install; p=${PACKAGE-default}
14117     case $enableval in
14118     yes) enable_fast_install=yes ;;
14119     no) enable_fast_install=no ;;
14120     *)
14121       enable_fast_install=no
14122       # Look at the argument we got.  We use all the common list separators.
14123       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14124       for pkg in $enableval; do
14125         IFS="$lt_save_ifs"
14126         if test "X$pkg" = "X$p"; then
14127           enable_fast_install=yes
14128         fi
14129       done
14130       IFS="$lt_save_ifs"
14131       ;;
14132     esac
14133 else
14134   enable_fast_install=yes
14135 fi
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147 # This can be used to rebuild libtool when needed
14148 LIBTOOL_DEPS="$ltmain"
14149
14150 # Always use our own libtool.
14151 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178 test -z "$LN_S" && LN_S="ln -s"
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193 if test -n "${ZSH_VERSION+set}" ; then
14194    setopt NO_GLOB_SUBST
14195 fi
14196
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14198 $as_echo_n "checking for objdir... " >&6; }
14199 if test "${lt_cv_objdir+set}" = set; then :
14200   $as_echo_n "(cached) " >&6
14201 else
14202   rm -f .libs 2>/dev/null
14203 mkdir .libs 2>/dev/null
14204 if test -d .libs; then
14205   lt_cv_objdir=.libs
14206 else
14207   # MS-DOS does not allow filenames that begin with a dot.
14208   lt_cv_objdir=_libs
14209 fi
14210 rmdir .libs 2>/dev/null
14211 fi
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14213 $as_echo "$lt_cv_objdir" >&6; }
14214 objdir=$lt_cv_objdir
14215
14216
14217
14218
14219
14220 cat >>confdefs.h <<_ACEOF
14221 #define LT_OBJDIR "$lt_cv_objdir/"
14222 _ACEOF
14223
14224
14225
14226
14227 case $host_os in
14228 aix3*)
14229   # AIX sometimes has problems with the GCC collect2 program.  For some
14230   # reason, if we set the COLLECT_NAMES environment variable, the problems
14231   # vanish in a puff of smoke.
14232   if test "X${COLLECT_NAMES+set}" != Xset; then
14233     COLLECT_NAMES=
14234     export COLLECT_NAMES
14235   fi
14236   ;;
14237 esac
14238
14239 # Global variables:
14240 ofile=libtool
14241 can_build_shared=yes
14242
14243 # All known linkers require a `.a' archive for static linking (except MSVC,
14244 # which needs '.lib').
14245 libext=a
14246
14247 with_gnu_ld="$lt_cv_prog_gnu_ld"
14248
14249 old_CC="$CC"
14250 old_CFLAGS="$CFLAGS"
14251
14252 # Set sane defaults for various variables
14253 test -z "$CC" && CC=cc
14254 test -z "$LTCC" && LTCC=$CC
14255 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14256 test -z "$LD" && LD=ld
14257 test -z "$ac_objext" && ac_objext=o
14258
14259 for cc_temp in $compiler""; do
14260   case $cc_temp in
14261     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14262     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14263     \-*) ;;
14264     *) break;;
14265   esac
14266 done
14267 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14268
14269
14270 # Only perform the check for file, if the check method requires it
14271 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14272 case $deplibs_check_method in
14273 file_magic*)
14274   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14275     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14276 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14277 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14278   $as_echo_n "(cached) " >&6
14279 else
14280   case $MAGIC_CMD in
14281 [\\/*] |  ?:[\\/]*)
14282   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14283   ;;
14284 *)
14285   lt_save_MAGIC_CMD="$MAGIC_CMD"
14286   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14287   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14288   for ac_dir in $ac_dummy; do
14289     IFS="$lt_save_ifs"
14290     test -z "$ac_dir" && ac_dir=.
14291     if test -f $ac_dir/${ac_tool_prefix}file; then
14292       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14293       if test -n "$file_magic_test_file"; then
14294         case $deplibs_check_method in
14295         "file_magic "*)
14296           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14297           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14298           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14299             $EGREP "$file_magic_regex" > /dev/null; then
14300             :
14301           else
14302             cat <<_LT_EOF 1>&2
14303
14304 *** Warning: the command libtool uses to detect shared libraries,
14305 *** $file_magic_cmd, produces output that libtool cannot recognize.
14306 *** The result is that libtool may fail to recognize shared libraries
14307 *** as such.  This will affect the creation of libtool libraries that
14308 *** depend on shared libraries, but programs linked with such libtool
14309 *** libraries will work regardless of this problem.  Nevertheless, you
14310 *** may want to report the problem to your system manager and/or to
14311 *** bug-libtool@gnu.org
14312
14313 _LT_EOF
14314           fi ;;
14315         esac
14316       fi
14317       break
14318     fi
14319   done
14320   IFS="$lt_save_ifs"
14321   MAGIC_CMD="$lt_save_MAGIC_CMD"
14322   ;;
14323 esac
14324 fi
14325
14326 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14327 if test -n "$MAGIC_CMD"; then
14328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14329 $as_echo "$MAGIC_CMD" >&6; }
14330 else
14331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14332 $as_echo "no" >&6; }
14333 fi
14334
14335
14336
14337
14338
14339 if test -z "$lt_cv_path_MAGIC_CMD"; then
14340   if test -n "$ac_tool_prefix"; then
14341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14342 $as_echo_n "checking for file... " >&6; }
14343 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14344   $as_echo_n "(cached) " >&6
14345 else
14346   case $MAGIC_CMD in
14347 [\\/*] |  ?:[\\/]*)
14348   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14349   ;;
14350 *)
14351   lt_save_MAGIC_CMD="$MAGIC_CMD"
14352   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14353   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14354   for ac_dir in $ac_dummy; do
14355     IFS="$lt_save_ifs"
14356     test -z "$ac_dir" && ac_dir=.
14357     if test -f $ac_dir/file; then
14358       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14359       if test -n "$file_magic_test_file"; then
14360         case $deplibs_check_method in
14361         "file_magic "*)
14362           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14363           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14364           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14365             $EGREP "$file_magic_regex" > /dev/null; then
14366             :
14367           else
14368             cat <<_LT_EOF 1>&2
14369
14370 *** Warning: the command libtool uses to detect shared libraries,
14371 *** $file_magic_cmd, produces output that libtool cannot recognize.
14372 *** The result is that libtool may fail to recognize shared libraries
14373 *** as such.  This will affect the creation of libtool libraries that
14374 *** depend on shared libraries, but programs linked with such libtool
14375 *** libraries will work regardless of this problem.  Nevertheless, you
14376 *** may want to report the problem to your system manager and/or to
14377 *** bug-libtool@gnu.org
14378
14379 _LT_EOF
14380           fi ;;
14381         esac
14382       fi
14383       break
14384     fi
14385   done
14386   IFS="$lt_save_ifs"
14387   MAGIC_CMD="$lt_save_MAGIC_CMD"
14388   ;;
14389 esac
14390 fi
14391
14392 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14393 if test -n "$MAGIC_CMD"; then
14394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14395 $as_echo "$MAGIC_CMD" >&6; }
14396 else
14397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14398 $as_echo "no" >&6; }
14399 fi
14400
14401
14402   else
14403     MAGIC_CMD=:
14404   fi
14405 fi
14406
14407   fi
14408   ;;
14409 esac
14410
14411 # Use C for the default configuration in the libtool script
14412
14413 lt_save_CC="$CC"
14414 ac_ext=c
14415 ac_cpp='$CPP $CPPFLAGS'
14416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14419
14420
14421 # Source file extension for C test sources.
14422 ac_ext=c
14423
14424 # Object file extension for compiled C test sources.
14425 objext=o
14426 objext=$objext
14427
14428 # Code to be used in simple compile tests
14429 lt_simple_compile_test_code="int some_variable = 0;"
14430
14431 # Code to be used in simple link tests
14432 lt_simple_link_test_code='int main(){return(0);}'
14433
14434
14435
14436
14437
14438
14439
14440 # If no C compiler was specified, use CC.
14441 LTCC=${LTCC-"$CC"}
14442
14443 # If no C compiler flags were specified, use CFLAGS.
14444 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14445
14446 # Allow CC to be a program name with arguments.
14447 compiler=$CC
14448
14449 # Save the default compiler, since it gets overwritten when the other
14450 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14451 compiler_DEFAULT=$CC
14452
14453 # save warnings/boilerplate of simple test code
14454 ac_outfile=conftest.$ac_objext
14455 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14456 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14457 _lt_compiler_boilerplate=`cat conftest.err`
14458 $RM conftest*
14459
14460 ac_outfile=conftest.$ac_objext
14461 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14462 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14463 _lt_linker_boilerplate=`cat conftest.err`
14464 $RM -r conftest*
14465
14466
14467 ## CAVEAT EMPTOR:
14468 ## There is no encapsulation within the following macros, do not change
14469 ## the running order or otherwise move them around unless you know exactly
14470 ## what you are doing...
14471 if test -n "$compiler"; then
14472
14473 lt_prog_compiler_no_builtin_flag=
14474
14475 if test "$GCC" = yes; then
14476   case $cc_basename in
14477   nvcc*)
14478     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14479   *)
14480     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14481   esac
14482
14483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14484 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14485 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14486   $as_echo_n "(cached) " >&6
14487 else
14488   lt_cv_prog_compiler_rtti_exceptions=no
14489    ac_outfile=conftest.$ac_objext
14490    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14491    lt_compiler_flag="-fno-rtti -fno-exceptions"
14492    # Insert the option either (1) after the last *FLAGS variable, or
14493    # (2) before a word containing "conftest.", or (3) at the end.
14494    # Note that $ac_compile itself does not contain backslashes and begins
14495    # with a dollar sign (not a hyphen), so the echo should work correctly.
14496    # The option is referenced via a variable to avoid confusing sed.
14497    lt_compile=`echo "$ac_compile" | $SED \
14498    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14499    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14500    -e 's:$: $lt_compiler_flag:'`
14501    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14502    (eval "$lt_compile" 2>conftest.err)
14503    ac_status=$?
14504    cat conftest.err >&5
14505    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506    if (exit $ac_status) && test -s "$ac_outfile"; then
14507      # The compiler can only warn and ignore the option if not recognized
14508      # So say no if there are warnings other than the usual output.
14509      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14510      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14511      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14512        lt_cv_prog_compiler_rtti_exceptions=yes
14513      fi
14514    fi
14515    $RM conftest*
14516
14517 fi
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14519 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14520
14521 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14522     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14523 else
14524     :
14525 fi
14526
14527 fi
14528
14529
14530
14531
14532
14533
14534   lt_prog_compiler_wl=
14535 lt_prog_compiler_pic=
14536 lt_prog_compiler_static=
14537
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14539 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14540
14541   if test "$GCC" = yes; then
14542     lt_prog_compiler_wl='-Wl,'
14543     lt_prog_compiler_static='-static'
14544
14545     case $host_os in
14546       aix*)
14547       # All AIX code is PIC.
14548       if test "$host_cpu" = ia64; then
14549         # AIX 5 now supports IA64 processor
14550         lt_prog_compiler_static='-Bstatic'
14551       fi
14552       ;;
14553
14554     amigaos*)
14555       case $host_cpu in
14556       powerpc)
14557             # see comment about AmigaOS4 .so support
14558             lt_prog_compiler_pic='-fPIC'
14559         ;;
14560       m68k)
14561             # FIXME: we need at least 68020 code to build shared libraries, but
14562             # adding the `-m68020' flag to GCC prevents building anything better,
14563             # like `-m68040'.
14564             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14565         ;;
14566       esac
14567       ;;
14568
14569     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14570       # PIC is the default for these OSes.
14571       ;;
14572
14573     mingw* | cygwin* | pw32* | os2* | cegcc*)
14574       # This hack is so that the source file can tell whether it is being
14575       # built for inclusion in a dll (and should export symbols for example).
14576       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14577       # (--disable-auto-import) libraries
14578       lt_prog_compiler_pic='-DDLL_EXPORT'
14579       ;;
14580
14581     darwin* | rhapsody*)
14582       # PIC is the default on this platform
14583       # Common symbols not allowed in MH_DYLIB files
14584       lt_prog_compiler_pic='-fno-common'
14585       ;;
14586
14587     haiku*)
14588       # PIC is the default for Haiku.
14589       # The "-static" flag exists, but is broken.
14590       lt_prog_compiler_static=
14591       ;;
14592
14593     hpux*)
14594       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14595       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14596       # sets the default TLS model and affects inlining.
14597       case $host_cpu in
14598       hppa*64*)
14599         # +Z the default
14600         ;;
14601       *)
14602         lt_prog_compiler_pic='-fPIC'
14603         ;;
14604       esac
14605       ;;
14606
14607     interix[3-9]*)
14608       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14609       # Instead, we relocate shared libraries at runtime.
14610       ;;
14611
14612     msdosdjgpp*)
14613       # Just because we use GCC doesn't mean we suddenly get shared libraries
14614       # on systems that don't support them.
14615       lt_prog_compiler_can_build_shared=no
14616       enable_shared=no
14617       ;;
14618
14619     *nto* | *qnx*)
14620       # QNX uses GNU C++, but need to define -shared option too, otherwise
14621       # it will coredump.
14622       lt_prog_compiler_pic='-fPIC -shared'
14623       ;;
14624
14625     sysv4*MP*)
14626       if test -d /usr/nec; then
14627         lt_prog_compiler_pic=-Kconform_pic
14628       fi
14629       ;;
14630
14631     *)
14632       lt_prog_compiler_pic='-fPIC'
14633       ;;
14634     esac
14635
14636     case $cc_basename in
14637     nvcc*) # Cuda Compiler Driver 2.2
14638       lt_prog_compiler_wl='-Xlinker '
14639       lt_prog_compiler_pic='-Xcompiler -fPIC'
14640       ;;
14641     esac
14642   else
14643     # PORTME Check for flag to pass linker flags through the system compiler.
14644     case $host_os in
14645     aix*)
14646       lt_prog_compiler_wl='-Wl,'
14647       if test "$host_cpu" = ia64; then
14648         # AIX 5 now supports IA64 processor
14649         lt_prog_compiler_static='-Bstatic'
14650       else
14651         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14652       fi
14653       ;;
14654
14655     mingw* | cygwin* | pw32* | os2* | cegcc*)
14656       # This hack is so that the source file can tell whether it is being
14657       # built for inclusion in a dll (and should export symbols for example).
14658       lt_prog_compiler_pic='-DDLL_EXPORT'
14659       ;;
14660
14661     hpux9* | hpux10* | hpux11*)
14662       lt_prog_compiler_wl='-Wl,'
14663       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14664       # not for PA HP-UX.
14665       case $host_cpu in
14666       hppa*64*|ia64*)
14667         # +Z the default
14668         ;;
14669       *)
14670         lt_prog_compiler_pic='+Z'
14671         ;;
14672       esac
14673       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14674       lt_prog_compiler_static='${wl}-a ${wl}archive'
14675       ;;
14676
14677     irix5* | irix6* | nonstopux*)
14678       lt_prog_compiler_wl='-Wl,'
14679       # PIC (with -KPIC) is the default.
14680       lt_prog_compiler_static='-non_shared'
14681       ;;
14682
14683     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14684       case $cc_basename in
14685       # old Intel for x86_64 which still supported -KPIC.
14686       ecc*)
14687         lt_prog_compiler_wl='-Wl,'
14688         lt_prog_compiler_pic='-KPIC'
14689         lt_prog_compiler_static='-static'
14690         ;;
14691       # icc used to be incompatible with GCC.
14692       # ICC 10 doesn't accept -KPIC any more.
14693       icc* | ifort*)
14694         lt_prog_compiler_wl='-Wl,'
14695         lt_prog_compiler_pic='-fPIC'
14696         lt_prog_compiler_static='-static'
14697         ;;
14698       # Lahey Fortran 8.1.
14699       lf95*)
14700         lt_prog_compiler_wl='-Wl,'
14701         lt_prog_compiler_pic='--shared'
14702         lt_prog_compiler_static='--static'
14703         ;;
14704       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14705         # Portland Group compilers (*not* the Pentium gcc compiler,
14706         # which looks to be a dead project)
14707         lt_prog_compiler_wl='-Wl,'
14708         lt_prog_compiler_pic='-fpic'
14709         lt_prog_compiler_static='-Bstatic'
14710         ;;
14711       ccc*)
14712         lt_prog_compiler_wl='-Wl,'
14713         # All Alpha code is PIC.
14714         lt_prog_compiler_static='-non_shared'
14715         ;;
14716       xl* | bgxl* | bgf* | mpixl*)
14717         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14718         lt_prog_compiler_wl='-Wl,'
14719         lt_prog_compiler_pic='-qpic'
14720         lt_prog_compiler_static='-qstaticlink'
14721         ;;
14722       *)
14723         case `$CC -V 2>&1 | sed 5q` in
14724         *Sun\ F* | *Sun*Fortran*)
14725           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14726           lt_prog_compiler_pic='-KPIC'
14727           lt_prog_compiler_static='-Bstatic'
14728           lt_prog_compiler_wl=''
14729           ;;
14730         *Sun\ C*)
14731           # Sun C 5.9
14732           lt_prog_compiler_pic='-KPIC'
14733           lt_prog_compiler_static='-Bstatic'
14734           lt_prog_compiler_wl='-Wl,'
14735           ;;
14736         esac
14737         ;;
14738       esac
14739       ;;
14740
14741     newsos6)
14742       lt_prog_compiler_pic='-KPIC'
14743       lt_prog_compiler_static='-Bstatic'
14744       ;;
14745
14746     *nto* | *qnx*)
14747       # QNX uses GNU C++, but need to define -shared option too, otherwise
14748       # it will coredump.
14749       lt_prog_compiler_pic='-fPIC -shared'
14750       ;;
14751
14752     osf3* | osf4* | osf5*)
14753       lt_prog_compiler_wl='-Wl,'
14754       # All OSF/1 code is PIC.
14755       lt_prog_compiler_static='-non_shared'
14756       ;;
14757
14758     rdos*)
14759       lt_prog_compiler_static='-non_shared'
14760       ;;
14761
14762     solaris*)
14763       lt_prog_compiler_pic='-KPIC'
14764       lt_prog_compiler_static='-Bstatic'
14765       case $cc_basename in
14766       f77* | f90* | f95*)
14767         lt_prog_compiler_wl='-Qoption ld ';;
14768       *)
14769         lt_prog_compiler_wl='-Wl,';;
14770       esac
14771       ;;
14772
14773     sunos4*)
14774       lt_prog_compiler_wl='-Qoption ld '
14775       lt_prog_compiler_pic='-PIC'
14776       lt_prog_compiler_static='-Bstatic'
14777       ;;
14778
14779     sysv4 | sysv4.2uw2* | sysv4.3*)
14780       lt_prog_compiler_wl='-Wl,'
14781       lt_prog_compiler_pic='-KPIC'
14782       lt_prog_compiler_static='-Bstatic'
14783       ;;
14784
14785     sysv4*MP*)
14786       if test -d /usr/nec ;then
14787         lt_prog_compiler_pic='-Kconform_pic'
14788         lt_prog_compiler_static='-Bstatic'
14789       fi
14790       ;;
14791
14792     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14793       lt_prog_compiler_wl='-Wl,'
14794       lt_prog_compiler_pic='-KPIC'
14795       lt_prog_compiler_static='-Bstatic'
14796       ;;
14797
14798     unicos*)
14799       lt_prog_compiler_wl='-Wl,'
14800       lt_prog_compiler_can_build_shared=no
14801       ;;
14802
14803     uts4*)
14804       lt_prog_compiler_pic='-pic'
14805       lt_prog_compiler_static='-Bstatic'
14806       ;;
14807
14808     *)
14809       lt_prog_compiler_can_build_shared=no
14810       ;;
14811     esac
14812   fi
14813
14814 case $host_os in
14815   # For platforms which do not support PIC, -DPIC is meaningless:
14816   *djgpp*)
14817     lt_prog_compiler_pic=
14818     ;;
14819   *)
14820     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14821     ;;
14822 esac
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14824 $as_echo "$lt_prog_compiler_pic" >&6; }
14825
14826
14827
14828
14829
14830
14831 #
14832 # Check to make sure the PIC flag actually works.
14833 #
14834 if test -n "$lt_prog_compiler_pic"; then
14835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14836 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14837 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14838   $as_echo_n "(cached) " >&6
14839 else
14840   lt_cv_prog_compiler_pic_works=no
14841    ac_outfile=conftest.$ac_objext
14842    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14843    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14844    # Insert the option either (1) after the last *FLAGS variable, or
14845    # (2) before a word containing "conftest.", or (3) at the end.
14846    # Note that $ac_compile itself does not contain backslashes and begins
14847    # with a dollar sign (not a hyphen), so the echo should work correctly.
14848    # The option is referenced via a variable to avoid confusing sed.
14849    lt_compile=`echo "$ac_compile" | $SED \
14850    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14851    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14852    -e 's:$: $lt_compiler_flag:'`
14853    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14854    (eval "$lt_compile" 2>conftest.err)
14855    ac_status=$?
14856    cat conftest.err >&5
14857    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858    if (exit $ac_status) && test -s "$ac_outfile"; then
14859      # The compiler can only warn and ignore the option if not recognized
14860      # So say no if there are warnings other than the usual output.
14861      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14862      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14863      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14864        lt_cv_prog_compiler_pic_works=yes
14865      fi
14866    fi
14867    $RM conftest*
14868
14869 fi
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14871 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14872
14873 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14874     case $lt_prog_compiler_pic in
14875      "" | " "*) ;;
14876      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14877      esac
14878 else
14879     lt_prog_compiler_pic=
14880      lt_prog_compiler_can_build_shared=no
14881 fi
14882
14883 fi
14884
14885
14886
14887
14888
14889
14890 #
14891 # Check to make sure the static flag actually works.
14892 #
14893 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14895 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14896 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14897   $as_echo_n "(cached) " >&6
14898 else
14899   lt_cv_prog_compiler_static_works=no
14900    save_LDFLAGS="$LDFLAGS"
14901    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14902    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14903    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14904      # The linker can only warn and ignore the option if not recognized
14905      # So say no if there are warnings
14906      if test -s conftest.err; then
14907        # Append any errors to the config.log.
14908        cat conftest.err 1>&5
14909        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14910        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14911        if diff conftest.exp conftest.er2 >/dev/null; then
14912          lt_cv_prog_compiler_static_works=yes
14913        fi
14914      else
14915        lt_cv_prog_compiler_static_works=yes
14916      fi
14917    fi
14918    $RM -r conftest*
14919    LDFLAGS="$save_LDFLAGS"
14920
14921 fi
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14923 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14924
14925 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14926     :
14927 else
14928     lt_prog_compiler_static=
14929 fi
14930
14931
14932
14933
14934
14935
14936
14937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14938 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14939 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14940   $as_echo_n "(cached) " >&6
14941 else
14942   lt_cv_prog_compiler_c_o=no
14943    $RM -r conftest 2>/dev/null
14944    mkdir conftest
14945    cd conftest
14946    mkdir out
14947    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14948
14949    lt_compiler_flag="-o out/conftest2.$ac_objext"
14950    # Insert the option either (1) after the last *FLAGS variable, or
14951    # (2) before a word containing "conftest.", or (3) at the end.
14952    # Note that $ac_compile itself does not contain backslashes and begins
14953    # with a dollar sign (not a hyphen), so the echo should work correctly.
14954    lt_compile=`echo "$ac_compile" | $SED \
14955    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14956    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14957    -e 's:$: $lt_compiler_flag:'`
14958    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14959    (eval "$lt_compile" 2>out/conftest.err)
14960    ac_status=$?
14961    cat out/conftest.err >&5
14962    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14964    then
14965      # The compiler can only warn and ignore the option if not recognized
14966      # So say no if there are warnings
14967      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14968      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14969      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14970        lt_cv_prog_compiler_c_o=yes
14971      fi
14972    fi
14973    chmod u+w . 2>&5
14974    $RM conftest*
14975    # SGI C++ compiler will create directory out/ii_files/ for
14976    # template instantiation
14977    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14978    $RM out/* && rmdir out
14979    cd ..
14980    $RM -r conftest
14981    $RM conftest*
14982
14983 fi
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14985 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14986
14987
14988
14989
14990
14991
14992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14993 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14994 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14995   $as_echo_n "(cached) " >&6
14996 else
14997   lt_cv_prog_compiler_c_o=no
14998    $RM -r conftest 2>/dev/null
14999    mkdir conftest
15000    cd conftest
15001    mkdir out
15002    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15003
15004    lt_compiler_flag="-o out/conftest2.$ac_objext"
15005    # Insert the option either (1) after the last *FLAGS variable, or
15006    # (2) before a word containing "conftest.", or (3) at the end.
15007    # Note that $ac_compile itself does not contain backslashes and begins
15008    # with a dollar sign (not a hyphen), so the echo should work correctly.
15009    lt_compile=`echo "$ac_compile" | $SED \
15010    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15011    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15012    -e 's:$: $lt_compiler_flag:'`
15013    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15014    (eval "$lt_compile" 2>out/conftest.err)
15015    ac_status=$?
15016    cat out/conftest.err >&5
15017    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15019    then
15020      # The compiler can only warn and ignore the option if not recognized
15021      # So say no if there are warnings
15022      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15023      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15024      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15025        lt_cv_prog_compiler_c_o=yes
15026      fi
15027    fi
15028    chmod u+w . 2>&5
15029    $RM conftest*
15030    # SGI C++ compiler will create directory out/ii_files/ for
15031    # template instantiation
15032    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15033    $RM out/* && rmdir out
15034    cd ..
15035    $RM -r conftest
15036    $RM conftest*
15037
15038 fi
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15040 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15041
15042
15043
15044
15045 hard_links="nottested"
15046 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15047   # do not overwrite the value of need_locks provided by the user
15048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15049 $as_echo_n "checking if we can lock with hard links... " >&6; }
15050   hard_links=yes
15051   $RM conftest*
15052   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15053   touch conftest.a
15054   ln conftest.a conftest.b 2>&5 || hard_links=no
15055   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15057 $as_echo "$hard_links" >&6; }
15058   if test "$hard_links" = no; then
15059     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15060 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15061     need_locks=warn
15062   fi
15063 else
15064   need_locks=no
15065 fi
15066
15067
15068
15069
15070
15071
15072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15073 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15074
15075   runpath_var=
15076   allow_undefined_flag=
15077   always_export_symbols=no
15078   archive_cmds=
15079   archive_expsym_cmds=
15080   compiler_needs_object=no
15081   enable_shared_with_static_runtimes=no
15082   export_dynamic_flag_spec=
15083   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15084   hardcode_automatic=no
15085   hardcode_direct=no
15086   hardcode_direct_absolute=no
15087   hardcode_libdir_flag_spec=
15088   hardcode_libdir_flag_spec_ld=
15089   hardcode_libdir_separator=
15090   hardcode_minus_L=no
15091   hardcode_shlibpath_var=unsupported
15092   inherit_rpath=no
15093   link_all_deplibs=unknown
15094   module_cmds=
15095   module_expsym_cmds=
15096   old_archive_from_new_cmds=
15097   old_archive_from_expsyms_cmds=
15098   thread_safe_flag_spec=
15099   whole_archive_flag_spec=
15100   # include_expsyms should be a list of space-separated symbols to be *always*
15101   # included in the symbol list
15102   include_expsyms=
15103   # exclude_expsyms can be an extended regexp of symbols to exclude
15104   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15105   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15106   # as well as any symbol that contains `d'.
15107   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15108   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15109   # platforms (ab)use it in PIC code, but their linkers get confused if
15110   # the symbol is explicitly referenced.  Since portable code cannot
15111   # rely on this symbol name, it's probably fine to never include it in
15112   # preloaded symbol tables.
15113   # Exclude shared library initialization/finalization symbols.
15114   extract_expsyms_cmds=
15115
15116   case $host_os in
15117   cygwin* | mingw* | pw32* | cegcc*)
15118     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15119     # When not using gcc, we currently assume that we are using
15120     # Microsoft Visual C++.
15121     if test "$GCC" != yes; then
15122       with_gnu_ld=no
15123     fi
15124     ;;
15125   interix*)
15126     # we just hope/assume this is gcc and not c89 (= MSVC++)
15127     with_gnu_ld=yes
15128     ;;
15129   openbsd*)
15130     with_gnu_ld=no
15131     ;;
15132   esac
15133
15134   ld_shlibs=yes
15135
15136   # On some targets, GNU ld is compatible enough with the native linker
15137   # that we're better off using the native interface for both.
15138   lt_use_gnu_ld_interface=no
15139   if test "$with_gnu_ld" = yes; then
15140     case $host_os in
15141       aix*)
15142         # The AIX port of GNU ld has always aspired to compatibility
15143         # with the native linker.  However, as the warning in the GNU ld
15144         # block says, versions before 2.19.5* couldn't really create working
15145         # shared libraries, regardless of the interface used.
15146         case `$LD -v 2>&1` in
15147           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15148           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15149           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15150           *)
15151             lt_use_gnu_ld_interface=yes
15152             ;;
15153         esac
15154         ;;
15155       *)
15156         lt_use_gnu_ld_interface=yes
15157         ;;
15158     esac
15159   fi
15160
15161   if test "$lt_use_gnu_ld_interface" = yes; then
15162     # If archive_cmds runs LD, not CC, wlarc should be empty
15163     wlarc='${wl}'
15164
15165     # Set some defaults for GNU ld with shared library support. These
15166     # are reset later if shared libraries are not supported. Putting them
15167     # here allows them to be overridden if necessary.
15168     runpath_var=LD_RUN_PATH
15169     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15170     export_dynamic_flag_spec='${wl}--export-dynamic'
15171     # ancient GNU ld didn't support --whole-archive et. al.
15172     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15173       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15174     else
15175       whole_archive_flag_spec=
15176     fi
15177     supports_anon_versioning=no
15178     case `$LD -v 2>&1` in
15179       *GNU\ gold*) supports_anon_versioning=yes ;;
15180       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15181       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15182       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15183       *\ 2.11.*) ;; # other 2.11 versions
15184       *) supports_anon_versioning=yes ;;
15185     esac
15186
15187     # See if GNU ld supports shared libraries.
15188     case $host_os in
15189     aix[3-9]*)
15190       # On AIX/PPC, the GNU linker is very broken
15191       if test "$host_cpu" != ia64; then
15192         ld_shlibs=no
15193         cat <<_LT_EOF 1>&2
15194
15195 *** Warning: the GNU linker, at least up to release 2.19, is reported
15196 *** to be unable to reliably create shared libraries on AIX.
15197 *** Therefore, libtool is disabling shared libraries support.  If you
15198 *** really care for shared libraries, you may want to install binutils
15199 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15200 *** You will then need to restart the configuration process.
15201
15202 _LT_EOF
15203       fi
15204       ;;
15205
15206     amigaos*)
15207       case $host_cpu in
15208       powerpc)
15209             # see comment about AmigaOS4 .so support
15210             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15211             archive_expsym_cmds=''
15212         ;;
15213       m68k)
15214             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)'
15215             hardcode_libdir_flag_spec='-L$libdir'
15216             hardcode_minus_L=yes
15217         ;;
15218       esac
15219       ;;
15220
15221     beos*)
15222       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15223         allow_undefined_flag=unsupported
15224         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15225         # support --undefined.  This deserves some investigation.  FIXME
15226         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15227       else
15228         ld_shlibs=no
15229       fi
15230       ;;
15231
15232     cygwin* | mingw* | pw32* | cegcc*)
15233       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15234       # as there is no search path for DLLs.
15235       hardcode_libdir_flag_spec='-L$libdir'
15236       export_dynamic_flag_spec='${wl}--export-all-symbols'
15237       allow_undefined_flag=unsupported
15238       always_export_symbols=no
15239       enable_shared_with_static_runtimes=yes
15240       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15241
15242       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15243         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15244         # If the export-symbols file already is a .def file (1st line
15245         # is EXPORTS), use it as is; otherwise, prepend...
15246         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15247           cp $export_symbols $output_objdir/$soname.def;
15248         else
15249           echo EXPORTS > $output_objdir/$soname.def;
15250           cat $export_symbols >> $output_objdir/$soname.def;
15251         fi~
15252         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15253       else
15254         ld_shlibs=no
15255       fi
15256       ;;
15257
15258     haiku*)
15259       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15260       link_all_deplibs=yes
15261       ;;
15262
15263     interix[3-9]*)
15264       hardcode_direct=no
15265       hardcode_shlibpath_var=no
15266       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15267       export_dynamic_flag_spec='${wl}-E'
15268       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15269       # Instead, shared libraries are loaded at an image base (0x10000000 by
15270       # default) and relocated if they conflict, which is a slow very memory
15271       # consuming and fragmenting process.  To avoid this, we pick a random,
15272       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15273       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15274       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15275       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'
15276       ;;
15277
15278     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15279       tmp_diet=no
15280       if test "$host_os" = linux-dietlibc; then
15281         case $cc_basename in
15282           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15283         esac
15284       fi
15285       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15286          && test "$tmp_diet" = no
15287       then
15288         tmp_addflag=
15289         tmp_sharedflag='-shared'
15290         case $cc_basename,$host_cpu in
15291         pgcc*)                          # Portland Group C compiler
15292           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'
15293           tmp_addflag=' $pic_flag'
15294           ;;
15295         pgf77* | pgf90* | pgf95* | pgfortran*)
15296                                         # Portland Group f77 and f90 compilers
15297           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'
15298           tmp_addflag=' $pic_flag -Mnomain' ;;
15299         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15300           tmp_addflag=' -i_dynamic' ;;
15301         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15302           tmp_addflag=' -i_dynamic -nofor_main' ;;
15303         ifc* | ifort*)                  # Intel Fortran compiler
15304           tmp_addflag=' -nofor_main' ;;
15305         lf95*)                          # Lahey Fortran 8.1
15306           whole_archive_flag_spec=
15307           tmp_sharedflag='--shared' ;;
15308         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15309           tmp_sharedflag='-qmkshrobj'
15310           tmp_addflag= ;;
15311         nvcc*)  # Cuda Compiler Driver 2.2
15312           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'
15313           compiler_needs_object=yes
15314           ;;
15315         esac
15316         case `$CC -V 2>&1 | sed 5q` in
15317         *Sun\ C*)                       # Sun C 5.9
15318           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'
15319           compiler_needs_object=yes
15320           tmp_sharedflag='-G' ;;
15321         *Sun\ F*)                       # Sun Fortran 8.3
15322           tmp_sharedflag='-G' ;;
15323         esac
15324         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15325
15326         if test "x$supports_anon_versioning" = xyes; then
15327           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15328             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15329             echo "local: *; };" >> $output_objdir/$libname.ver~
15330             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15331         fi
15332
15333         case $cc_basename in
15334         xlf* | bgf* | bgxlf* | mpixlf*)
15335           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15336           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15337           hardcode_libdir_flag_spec=
15338           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15339           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15340           if test "x$supports_anon_versioning" = xyes; then
15341             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15342               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15343               echo "local: *; };" >> $output_objdir/$libname.ver~
15344               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15345           fi
15346           ;;
15347         esac
15348       else
15349         ld_shlibs=no
15350       fi
15351       ;;
15352
15353     netbsd*)
15354       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15355         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15356         wlarc=
15357       else
15358         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15359         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15360       fi
15361       ;;
15362
15363     solaris*)
15364       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15365         ld_shlibs=no
15366         cat <<_LT_EOF 1>&2
15367
15368 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15369 *** create shared libraries on Solaris systems.  Therefore, libtool
15370 *** is disabling shared libraries support.  We urge you to upgrade GNU
15371 *** binutils to release 2.9.1 or newer.  Another option is to modify
15372 *** your PATH or compiler configuration so that the native linker is
15373 *** used, and then restart.
15374
15375 _LT_EOF
15376       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15377         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15378         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15379       else
15380         ld_shlibs=no
15381       fi
15382       ;;
15383
15384     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15385       case `$LD -v 2>&1` in
15386         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15387         ld_shlibs=no
15388         cat <<_LT_EOF 1>&2
15389
15390 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15391 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15392 *** is disabling shared libraries support.  We urge you to upgrade GNU
15393 *** binutils to release 2.16.91.0.3 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         ;;
15399         *)
15400           # For security reasons, it is highly recommended that you always
15401           # use absolute paths for naming shared libraries, and exclude the
15402           # DT_RUNPATH tag from executables and libraries.  But doing so
15403           # requires that you compile everything twice, which is a pain.
15404           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15405             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15406             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15407             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15408           else
15409             ld_shlibs=no
15410           fi
15411         ;;
15412       esac
15413       ;;
15414
15415     sunos4*)
15416       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15417       wlarc=
15418       hardcode_direct=yes
15419       hardcode_shlibpath_var=no
15420       ;;
15421
15422     *)
15423       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15424         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15425         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15426       else
15427         ld_shlibs=no
15428       fi
15429       ;;
15430     esac
15431
15432     if test "$ld_shlibs" = no; then
15433       runpath_var=
15434       hardcode_libdir_flag_spec=
15435       export_dynamic_flag_spec=
15436       whole_archive_flag_spec=
15437     fi
15438   else
15439     # PORTME fill in a description of your system's linker (not GNU ld)
15440     case $host_os in
15441     aix3*)
15442       allow_undefined_flag=unsupported
15443       always_export_symbols=yes
15444       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'
15445       # Note: this linker hardcodes the directories in LIBPATH if there
15446       # are no directories specified by -L.
15447       hardcode_minus_L=yes
15448       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15449         # Neither direct hardcoding nor static linking is supported with a
15450         # broken collect2.
15451         hardcode_direct=unsupported
15452       fi
15453       ;;
15454
15455     aix[4-9]*)
15456       if test "$host_cpu" = ia64; then
15457         # On IA64, the linker does run time linking by default, so we don't
15458         # have to do anything special.
15459         aix_use_runtimelinking=no
15460         exp_sym_flag='-Bexport'
15461         no_entry_flag=""
15462       else
15463         # If we're using GNU nm, then we don't want the "-C" option.
15464         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15465         # Also, AIX nm treats weak defined symbols like other global
15466         # defined symbols, whereas GNU nm marks them as "W".
15467         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15468           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'
15469         else
15470           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'
15471         fi
15472         aix_use_runtimelinking=no
15473
15474         # Test if we are trying to use run time linking or normal
15475         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15476         # need to do runtime linking.
15477         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15478           for ld_flag in $LDFLAGS; do
15479           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15480             aix_use_runtimelinking=yes
15481             break
15482           fi
15483           done
15484           ;;
15485         esac
15486
15487         exp_sym_flag='-bexport'
15488         no_entry_flag='-bnoentry'
15489       fi
15490
15491       # When large executables or shared objects are built, AIX ld can
15492       # have problems creating the table of contents.  If linking a library
15493       # or program results in "error TOC overflow" add -mminimal-toc to
15494       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15495       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15496
15497       archive_cmds=''
15498       hardcode_direct=yes
15499       hardcode_direct_absolute=yes
15500       hardcode_libdir_separator=':'
15501       link_all_deplibs=yes
15502       file_list_spec='${wl}-f,'
15503
15504       if test "$GCC" = yes; then
15505         case $host_os in aix4.[012]|aix4.[012].*)
15506         # We only want to do this on AIX 4.2 and lower, the check
15507         # below for broken collect2 doesn't work under 4.3+
15508           collect2name=`${CC} -print-prog-name=collect2`
15509           if test -f "$collect2name" &&
15510            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15511           then
15512           # We have reworked collect2
15513           :
15514           else
15515           # We have old collect2
15516           hardcode_direct=unsupported
15517           # It fails to find uninstalled libraries when the uninstalled
15518           # path is not listed in the libpath.  Setting hardcode_minus_L
15519           # to unsupported forces relinking
15520           hardcode_minus_L=yes
15521           hardcode_libdir_flag_spec='-L$libdir'
15522           hardcode_libdir_separator=
15523           fi
15524           ;;
15525         esac
15526         shared_flag='-shared'
15527         if test "$aix_use_runtimelinking" = yes; then
15528           shared_flag="$shared_flag "'${wl}-G'
15529         fi
15530       else
15531         # not using gcc
15532         if test "$host_cpu" = ia64; then
15533         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15534         # chokes on -Wl,-G. The following line is correct:
15535           shared_flag='-G'
15536         else
15537           if test "$aix_use_runtimelinking" = yes; then
15538             shared_flag='${wl}-G'
15539           else
15540             shared_flag='${wl}-bM:SRE'
15541           fi
15542         fi
15543       fi
15544
15545       export_dynamic_flag_spec='${wl}-bexpall'
15546       # It seems that -bexpall does not export symbols beginning with
15547       # underscore (_), so it is better to generate a list of symbols to export.
15548       always_export_symbols=yes
15549       if test "$aix_use_runtimelinking" = yes; then
15550         # Warning - without using the other runtime loading flags (-brtl),
15551         # -berok will link without error, but may produce a broken library.
15552         allow_undefined_flag='-berok'
15553         # Determine the default libpath from the value encoded in an
15554         # empty executable.
15555         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h.  */
15557
15558 int
15559 main ()
15560 {
15561
15562   ;
15563   return 0;
15564 }
15565 _ACEOF
15566 if ac_fn_c_try_link "$LINENO"; then :
15567
15568 lt_aix_libpath_sed='
15569     /Import File Strings/,/^$/ {
15570         /^0/ {
15571             s/^0  *\(.*\)$/\1/
15572             p
15573         }
15574     }'
15575 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15576 # Check for a 64-bit object if we didn't find anything.
15577 if test -z "$aix_libpath"; then
15578   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15579 fi
15580 fi
15581 rm -f core conftest.err conftest.$ac_objext \
15582     conftest$ac_exeext conftest.$ac_ext
15583 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15584
15585         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15586         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"
15587       else
15588         if test "$host_cpu" = ia64; then
15589           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15590           allow_undefined_flag="-z nodefs"
15591           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"
15592         else
15593          # Determine the default libpath from the value encoded in an
15594          # empty executable.
15595          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15596 /* end confdefs.h.  */
15597
15598 int
15599 main ()
15600 {
15601
15602   ;
15603   return 0;
15604 }
15605 _ACEOF
15606 if ac_fn_c_try_link "$LINENO"; then :
15607
15608 lt_aix_libpath_sed='
15609     /Import File Strings/,/^$/ {
15610         /^0/ {
15611             s/^0  *\(.*\)$/\1/
15612             p
15613         }
15614     }'
15615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15616 # Check for a 64-bit object if we didn't find anything.
15617 if test -z "$aix_libpath"; then
15618   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15619 fi
15620 fi
15621 rm -f core conftest.err conftest.$ac_objext \
15622     conftest$ac_exeext conftest.$ac_ext
15623 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15624
15625          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15626           # Warning - without using the other run time loading flags,
15627           # -berok will link without error, but may produce a broken library.
15628           no_undefined_flag=' ${wl}-bernotok'
15629           allow_undefined_flag=' ${wl}-berok'
15630           if test "$with_gnu_ld" = yes; then
15631             # We only use this code for GNU lds that support --whole-archive.
15632             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15633           else
15634             # Exported symbols can be pulled into shared objects from archives
15635             whole_archive_flag_spec='$convenience'
15636           fi
15637           archive_cmds_need_lc=yes
15638           # This is similar to how AIX traditionally builds its shared libraries.
15639           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'
15640         fi
15641       fi
15642       ;;
15643
15644     amigaos*)
15645       case $host_cpu in
15646       powerpc)
15647             # see comment about AmigaOS4 .so support
15648             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15649             archive_expsym_cmds=''
15650         ;;
15651       m68k)
15652             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)'
15653             hardcode_libdir_flag_spec='-L$libdir'
15654             hardcode_minus_L=yes
15655         ;;
15656       esac
15657       ;;
15658
15659     bsdi[45]*)
15660       export_dynamic_flag_spec=-rdynamic
15661       ;;
15662
15663     cygwin* | mingw* | pw32* | cegcc*)
15664       # When not using gcc, we currently assume that we are using
15665       # Microsoft Visual C++.
15666       # hardcode_libdir_flag_spec is actually meaningless, as there is
15667       # no search path for DLLs.
15668       hardcode_libdir_flag_spec=' '
15669       allow_undefined_flag=unsupported
15670       # Tell ltmain to make .lib files, not .a files.
15671       libext=lib
15672       # Tell ltmain to make .dll files, not .so files.
15673       shrext_cmds=".dll"
15674       # FIXME: Setting linknames here is a bad hack.
15675       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15676       # The linker will automatically build a .lib file if we build a DLL.
15677       old_archive_from_new_cmds='true'
15678       # FIXME: Should let the user specify the lib program.
15679       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15680       fix_srcfile_path='`cygpath -w "$srcfile"`'
15681       enable_shared_with_static_runtimes=yes
15682       ;;
15683
15684     darwin* | rhapsody*)
15685
15686
15687   archive_cmds_need_lc=no
15688   hardcode_direct=no
15689   hardcode_automatic=yes
15690   hardcode_shlibpath_var=unsupported
15691   if test "$lt_cv_ld_force_load" = "yes"; then
15692     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\"`'
15693   else
15694     whole_archive_flag_spec=''
15695   fi
15696   link_all_deplibs=yes
15697   allow_undefined_flag="$_lt_dar_allow_undefined"
15698   case $cc_basename in
15699      ifort*) _lt_dar_can_shared=yes ;;
15700      *) _lt_dar_can_shared=$GCC ;;
15701   esac
15702   if test "$_lt_dar_can_shared" = "yes"; then
15703     output_verbose_link_cmd=func_echo_all
15704     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15705     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15706     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}"
15707     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}"
15708
15709   else
15710   ld_shlibs=no
15711   fi
15712
15713       ;;
15714
15715     dgux*)
15716       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15717       hardcode_libdir_flag_spec='-L$libdir'
15718       hardcode_shlibpath_var=no
15719       ;;
15720
15721     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15722     # support.  Future versions do this automatically, but an explicit c++rt0.o
15723     # does not break anything, and helps significantly (at the cost of a little
15724     # extra space).
15725     freebsd2.2*)
15726       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15727       hardcode_libdir_flag_spec='-R$libdir'
15728       hardcode_direct=yes
15729       hardcode_shlibpath_var=no
15730       ;;
15731
15732     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15733     freebsd2.*)
15734       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15735       hardcode_direct=yes
15736       hardcode_minus_L=yes
15737       hardcode_shlibpath_var=no
15738       ;;
15739
15740     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15741     freebsd* | dragonfly*)
15742       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15743       hardcode_libdir_flag_spec='-R$libdir'
15744       hardcode_direct=yes
15745       hardcode_shlibpath_var=no
15746       ;;
15747
15748     hpux9*)
15749       if test "$GCC" = yes; then
15750         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'
15751       else
15752         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'
15753       fi
15754       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15755       hardcode_libdir_separator=:
15756       hardcode_direct=yes
15757
15758       # hardcode_minus_L: Not really in the search PATH,
15759       # but as the default location of the library.
15760       hardcode_minus_L=yes
15761       export_dynamic_flag_spec='${wl}-E'
15762       ;;
15763
15764     hpux10*)
15765       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15766         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15767       else
15768         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15769       fi
15770       if test "$with_gnu_ld" = no; then
15771         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15772         hardcode_libdir_flag_spec_ld='+b $libdir'
15773         hardcode_libdir_separator=:
15774         hardcode_direct=yes
15775         hardcode_direct_absolute=yes
15776         export_dynamic_flag_spec='${wl}-E'
15777         # hardcode_minus_L: Not really in the search PATH,
15778         # but as the default location of the library.
15779         hardcode_minus_L=yes
15780       fi
15781       ;;
15782
15783     hpux11*)
15784       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15785         case $host_cpu in
15786         hppa*64*)
15787           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15788           ;;
15789         ia64*)
15790           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15791           ;;
15792         *)
15793           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15794           ;;
15795         esac
15796       else
15797         case $host_cpu in
15798         hppa*64*)
15799           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15800           ;;
15801         ia64*)
15802           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15803           ;;
15804         *)
15805
15806           # Older versions of the 11.00 compiler do not understand -b yet
15807           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15808           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15809 $as_echo_n "checking if $CC understands -b... " >&6; }
15810 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15811   $as_echo_n "(cached) " >&6
15812 else
15813   lt_cv_prog_compiler__b=no
15814    save_LDFLAGS="$LDFLAGS"
15815    LDFLAGS="$LDFLAGS -b"
15816    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15817    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15818      # The linker can only warn and ignore the option if not recognized
15819      # So say no if there are warnings
15820      if test -s conftest.err; then
15821        # Append any errors to the config.log.
15822        cat conftest.err 1>&5
15823        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15824        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15825        if diff conftest.exp conftest.er2 >/dev/null; then
15826          lt_cv_prog_compiler__b=yes
15827        fi
15828      else
15829        lt_cv_prog_compiler__b=yes
15830      fi
15831    fi
15832    $RM -r conftest*
15833    LDFLAGS="$save_LDFLAGS"
15834
15835 fi
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15837 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15838
15839 if test x"$lt_cv_prog_compiler__b" = xyes; then
15840     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15841 else
15842     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15843 fi
15844
15845           ;;
15846         esac
15847       fi
15848       if test "$with_gnu_ld" = no; then
15849         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15850         hardcode_libdir_separator=:
15851
15852         case $host_cpu in
15853         hppa*64*|ia64*)
15854           hardcode_direct=no
15855           hardcode_shlibpath_var=no
15856           ;;
15857         *)
15858           hardcode_direct=yes
15859           hardcode_direct_absolute=yes
15860           export_dynamic_flag_spec='${wl}-E'
15861
15862           # hardcode_minus_L: Not really in the search PATH,
15863           # but as the default location of the library.
15864           hardcode_minus_L=yes
15865           ;;
15866         esac
15867       fi
15868       ;;
15869
15870     irix5* | irix6* | nonstopux*)
15871       if test "$GCC" = yes; then
15872         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'
15873         # Try to use the -exported_symbol ld option, if it does not
15874         # work, assume that -exports_file does not work either and
15875         # implicitly export all symbols.
15876         save_LDFLAGS="$LDFLAGS"
15877         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15878         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h.  */
15880 int foo(void) {}
15881 _ACEOF
15882 if ac_fn_c_try_link "$LINENO"; then :
15883   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'
15884
15885 fi
15886 rm -f core conftest.err conftest.$ac_objext \
15887     conftest$ac_exeext conftest.$ac_ext
15888         LDFLAGS="$save_LDFLAGS"
15889       else
15890         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'
15891         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'
15892       fi
15893       archive_cmds_need_lc='no'
15894       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15895       hardcode_libdir_separator=:
15896       inherit_rpath=yes
15897       link_all_deplibs=yes
15898       ;;
15899
15900     netbsd*)
15901       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15902         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15903       else
15904         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15905       fi
15906       hardcode_libdir_flag_spec='-R$libdir'
15907       hardcode_direct=yes
15908       hardcode_shlibpath_var=no
15909       ;;
15910
15911     newsos6)
15912       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15913       hardcode_direct=yes
15914       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15915       hardcode_libdir_separator=:
15916       hardcode_shlibpath_var=no
15917       ;;
15918
15919     *nto* | *qnx*)
15920       ;;
15921
15922     openbsd*)
15923       if test -f /usr/libexec/ld.so; then
15924         hardcode_direct=yes
15925         hardcode_shlibpath_var=no
15926         hardcode_direct_absolute=yes
15927         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15928           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15929           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15930           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15931           export_dynamic_flag_spec='${wl}-E'
15932         else
15933           case $host_os in
15934            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15935              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15936              hardcode_libdir_flag_spec='-R$libdir'
15937              ;;
15938            *)
15939              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15940              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15941              ;;
15942           esac
15943         fi
15944       else
15945         ld_shlibs=no
15946       fi
15947       ;;
15948
15949     os2*)
15950       hardcode_libdir_flag_spec='-L$libdir'
15951       hardcode_minus_L=yes
15952       allow_undefined_flag=unsupported
15953       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'
15954       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15955       ;;
15956
15957     osf3*)
15958       if test "$GCC" = yes; then
15959         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15960         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'
15961       else
15962         allow_undefined_flag=' -expect_unresolved \*'
15963         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'
15964       fi
15965       archive_cmds_need_lc='no'
15966       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15967       hardcode_libdir_separator=:
15968       ;;
15969
15970     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15971       if test "$GCC" = yes; then
15972         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15973         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'
15974         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15975       else
15976         allow_undefined_flag=' -expect_unresolved \*'
15977         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'
15978         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~
15979         $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'
15980
15981         # Both c and cxx compiler support -rpath directly
15982         hardcode_libdir_flag_spec='-rpath $libdir'
15983       fi
15984       archive_cmds_need_lc='no'
15985       hardcode_libdir_separator=:
15986       ;;
15987
15988     solaris*)
15989       no_undefined_flag=' -z defs'
15990       if test "$GCC" = yes; then
15991         wlarc='${wl}'
15992         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15993         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15994           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15995       else
15996         case `$CC -V 2>&1` in
15997         *"Compilers 5.0"*)
15998           wlarc=''
15999           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16000           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16001           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16002           ;;
16003         *)
16004           wlarc='${wl}'
16005           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16006           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16007           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16008           ;;
16009         esac
16010       fi
16011       hardcode_libdir_flag_spec='-R$libdir'
16012       hardcode_shlibpath_var=no
16013       case $host_os in
16014       solaris2.[0-5] | solaris2.[0-5].*) ;;
16015       *)
16016         # The compiler driver will combine and reorder linker options,
16017         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16018         # but is careful enough not to reorder.
16019         # Supported since Solaris 2.6 (maybe 2.5.1?)
16020         if test "$GCC" = yes; then
16021           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16022         else
16023           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16024         fi
16025         ;;
16026       esac
16027       link_all_deplibs=yes
16028       ;;
16029
16030     sunos4*)
16031       if test "x$host_vendor" = xsequent; then
16032         # Use $CC to link under sequent, because it throws in some extra .o
16033         # files that make .init and .fini sections work.
16034         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16035       else
16036         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16037       fi
16038       hardcode_libdir_flag_spec='-L$libdir'
16039       hardcode_direct=yes
16040       hardcode_minus_L=yes
16041       hardcode_shlibpath_var=no
16042       ;;
16043
16044     sysv4)
16045       case $host_vendor in
16046         sni)
16047           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16048           hardcode_direct=yes # is this really true???
16049         ;;
16050         siemens)
16051           ## LD is ld it makes a PLAMLIB
16052           ## CC just makes a GrossModule.
16053           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16054           reload_cmds='$CC -r -o $output$reload_objs'
16055           hardcode_direct=no
16056         ;;
16057         motorola)
16058           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16059           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16060         ;;
16061       esac
16062       runpath_var='LD_RUN_PATH'
16063       hardcode_shlibpath_var=no
16064       ;;
16065
16066     sysv4.3*)
16067       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16068       hardcode_shlibpath_var=no
16069       export_dynamic_flag_spec='-Bexport'
16070       ;;
16071
16072     sysv4*MP*)
16073       if test -d /usr/nec; then
16074         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16075         hardcode_shlibpath_var=no
16076         runpath_var=LD_RUN_PATH
16077         hardcode_runpath_var=yes
16078         ld_shlibs=yes
16079       fi
16080       ;;
16081
16082     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16083       no_undefined_flag='${wl}-z,text'
16084       archive_cmds_need_lc=no
16085       hardcode_shlibpath_var=no
16086       runpath_var='LD_RUN_PATH'
16087
16088       if test "$GCC" = yes; then
16089         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16090         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16091       else
16092         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16093         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16094       fi
16095       ;;
16096
16097     sysv5* | sco3.2v5* | sco5v6*)
16098       # Note: We can NOT use -z defs as we might desire, because we do not
16099       # link with -lc, and that would cause any symbols used from libc to
16100       # always be unresolved, which means just about no library would
16101       # ever link correctly.  If we're not using GNU ld we use -z text
16102       # though, which does catch some bad symbols but isn't as heavy-handed
16103       # as -z defs.
16104       no_undefined_flag='${wl}-z,text'
16105       allow_undefined_flag='${wl}-z,nodefs'
16106       archive_cmds_need_lc=no
16107       hardcode_shlibpath_var=no
16108       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16109       hardcode_libdir_separator=':'
16110       link_all_deplibs=yes
16111       export_dynamic_flag_spec='${wl}-Bexport'
16112       runpath_var='LD_RUN_PATH'
16113
16114       if test "$GCC" = yes; then
16115         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16116         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16117       else
16118         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16119         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16120       fi
16121       ;;
16122
16123     uts4*)
16124       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16125       hardcode_libdir_flag_spec='-L$libdir'
16126       hardcode_shlibpath_var=no
16127       ;;
16128
16129     *)
16130       ld_shlibs=no
16131       ;;
16132     esac
16133
16134     if test x$host_vendor = xsni; then
16135       case $host in
16136       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16137         export_dynamic_flag_spec='${wl}-Blargedynsym'
16138         ;;
16139       esac
16140     fi
16141   fi
16142
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16144 $as_echo "$ld_shlibs" >&6; }
16145 test "$ld_shlibs" = no && can_build_shared=no
16146
16147 with_gnu_ld=$with_gnu_ld
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163 #
16164 # Do we need to explicitly link libc?
16165 #
16166 case "x$archive_cmds_need_lc" in
16167 x|xyes)
16168   # Assume -lc should be added
16169   archive_cmds_need_lc=yes
16170
16171   if test "$enable_shared" = yes && test "$GCC" = yes; then
16172     case $archive_cmds in
16173     *'~'*)
16174       # FIXME: we may have to deal with multi-command sequences.
16175       ;;
16176     '$CC '*)
16177       # Test whether the compiler implicitly links with -lc since on some
16178       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16179       # to ld, don't add -lc before -lgcc.
16180       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16181 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16182 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16183   $as_echo_n "(cached) " >&6
16184 else
16185   $RM conftest*
16186         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16187
16188         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16189   (eval $ac_compile) 2>&5
16190   ac_status=$?
16191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16192   test $ac_status = 0; } 2>conftest.err; then
16193           soname=conftest
16194           lib=conftest
16195           libobjs=conftest.$ac_objext
16196           deplibs=
16197           wl=$lt_prog_compiler_wl
16198           pic_flag=$lt_prog_compiler_pic
16199           compiler_flags=-v
16200           linker_flags=-v
16201           verstring=
16202           output_objdir=.
16203           libname=conftest
16204           lt_save_allow_undefined_flag=$allow_undefined_flag
16205           allow_undefined_flag=
16206           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16207   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16208   ac_status=$?
16209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16210   test $ac_status = 0; }
16211           then
16212             lt_cv_archive_cmds_need_lc=no
16213           else
16214             lt_cv_archive_cmds_need_lc=yes
16215           fi
16216           allow_undefined_flag=$lt_save_allow_undefined_flag
16217         else
16218           cat conftest.err 1>&5
16219         fi
16220         $RM conftest*
16221
16222 fi
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16224 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16225       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16226       ;;
16227     esac
16228   fi
16229   ;;
16230 esac
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16389 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16390
16391 if test "$GCC" = yes; then
16392   case $host_os in
16393     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16394     *) lt_awk_arg="/^libraries:/" ;;
16395   esac
16396   case $host_os in
16397     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16398     *) lt_sed_strip_eq="s,=/,/,g" ;;
16399   esac
16400   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16401   case $lt_search_path_spec in
16402   *\;*)
16403     # if the path contains ";" then we assume it to be the separator
16404     # otherwise default to the standard path separator (i.e. ":") - it is
16405     # assumed that no part of a normal pathname contains ";" but that should
16406     # okay in the real world where ";" in dirpaths is itself problematic.
16407     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16408     ;;
16409   *)
16410     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16411     ;;
16412   esac
16413   # Ok, now we have the path, separated by spaces, we can step through it
16414   # and add multilib dir if necessary.
16415   lt_tmp_lt_search_path_spec=
16416   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16417   for lt_sys_path in $lt_search_path_spec; do
16418     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16419       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16420     else
16421       test -d "$lt_sys_path" && \
16422         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16423     fi
16424   done
16425   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16426 BEGIN {RS=" "; FS="/|\n";} {
16427   lt_foo="";
16428   lt_count=0;
16429   for (lt_i = NF; lt_i > 0; lt_i--) {
16430     if ($lt_i != "" && $lt_i != ".") {
16431       if ($lt_i == "..") {
16432         lt_count++;
16433       } else {
16434         if (lt_count == 0) {
16435           lt_foo="/" $lt_i lt_foo;
16436         } else {
16437           lt_count--;
16438         }
16439       }
16440     }
16441   }
16442   if (lt_foo != "") { lt_freq[lt_foo]++; }
16443   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16444 }'`
16445   # AWK program above erroneously prepends '/' to C:/dos/paths
16446   # for these hosts.
16447   case $host_os in
16448     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16449       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16450   esac
16451   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16452 else
16453   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16454 fi
16455 library_names_spec=
16456 libname_spec='lib$name'
16457 soname_spec=
16458 shrext_cmds=".so"
16459 postinstall_cmds=
16460 postuninstall_cmds=
16461 finish_cmds=
16462 finish_eval=
16463 shlibpath_var=
16464 shlibpath_overrides_runpath=unknown
16465 version_type=none
16466 dynamic_linker="$host_os ld.so"
16467 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16468 need_lib_prefix=unknown
16469 hardcode_into_libs=no
16470
16471 # when you set need_version to no, make sure it does not cause -set_version
16472 # flags to be left without arguments
16473 need_version=unknown
16474
16475 case $host_os in
16476 aix3*)
16477   version_type=linux
16478   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16479   shlibpath_var=LIBPATH
16480
16481   # AIX 3 has no versioning support, so we append a major version to the name.
16482   soname_spec='${libname}${release}${shared_ext}$major'
16483   ;;
16484
16485 aix[4-9]*)
16486   version_type=linux
16487   need_lib_prefix=no
16488   need_version=no
16489   hardcode_into_libs=yes
16490   if test "$host_cpu" = ia64; then
16491     # AIX 5 supports IA64
16492     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16493     shlibpath_var=LD_LIBRARY_PATH
16494   else
16495     # With GCC up to 2.95.x, collect2 would create an import file
16496     # for dependence libraries.  The import file would start with
16497     # the line `#! .'.  This would cause the generated library to
16498     # depend on `.', always an invalid library.  This was fixed in
16499     # development snapshots of GCC prior to 3.0.
16500     case $host_os in
16501       aix4 | aix4.[01] | aix4.[01].*)
16502       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16503            echo ' yes '
16504            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16505         :
16506       else
16507         can_build_shared=no
16508       fi
16509       ;;
16510     esac
16511     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16512     # soname into executable. Probably we can add versioning support to
16513     # collect2, so additional links can be useful in future.
16514     if test "$aix_use_runtimelinking" = yes; then
16515       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16516       # instead of lib<name>.a to let people know that these are not
16517       # typical AIX shared libraries.
16518       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16519     else
16520       # We preserve .a as extension for shared libraries through AIX4.2
16521       # and later when we are not doing run time linking.
16522       library_names_spec='${libname}${release}.a $libname.a'
16523       soname_spec='${libname}${release}${shared_ext}$major'
16524     fi
16525     shlibpath_var=LIBPATH
16526   fi
16527   ;;
16528
16529 amigaos*)
16530   case $host_cpu in
16531   powerpc)
16532     # Since July 2007 AmigaOS4 officially supports .so libraries.
16533     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16534     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16535     ;;
16536   m68k)
16537     library_names_spec='$libname.ixlibrary $libname.a'
16538     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16539     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'
16540     ;;
16541   esac
16542   ;;
16543
16544 beos*)
16545   library_names_spec='${libname}${shared_ext}'
16546   dynamic_linker="$host_os ld.so"
16547   shlibpath_var=LIBRARY_PATH
16548   ;;
16549
16550 bsdi[45]*)
16551   version_type=linux
16552   need_version=no
16553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16554   soname_spec='${libname}${release}${shared_ext}$major'
16555   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16556   shlibpath_var=LD_LIBRARY_PATH
16557   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16558   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16559   # the default ld.so.conf also contains /usr/contrib/lib and
16560   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16561   # libtool to hard-code these into programs
16562   ;;
16563
16564 cygwin* | mingw* | pw32* | cegcc*)
16565   version_type=windows
16566   shrext_cmds=".dll"
16567   need_version=no
16568   need_lib_prefix=no
16569
16570   case $GCC,$host_os in
16571   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16572     library_names_spec='$libname.dll.a'
16573     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16574     postinstall_cmds='base_file=`basename \${file}`~
16575       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16576       dldir=$destdir/`dirname \$dlpath`~
16577       test -d \$dldir || mkdir -p \$dldir~
16578       $install_prog $dir/$dlname \$dldir/$dlname~
16579       chmod a+x \$dldir/$dlname~
16580       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16581         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16582       fi'
16583     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16584       dlpath=$dir/\$dldll~
16585        $RM \$dlpath'
16586     shlibpath_overrides_runpath=yes
16587
16588     case $host_os in
16589     cygwin*)
16590       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16591       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16592
16593       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16594       ;;
16595     mingw* | cegcc*)
16596       # MinGW DLLs use traditional 'lib' prefix
16597       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16598       ;;
16599     pw32*)
16600       # pw32 DLLs use 'pw' prefix rather than 'lib'
16601       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16602       ;;
16603     esac
16604     ;;
16605
16606   *)
16607     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16608     ;;
16609   esac
16610   dynamic_linker='Win32 ld.exe'
16611   # FIXME: first we should search . and the directory the executable is in
16612   shlibpath_var=PATH
16613   ;;
16614
16615 darwin* | rhapsody*)
16616   dynamic_linker="$host_os dyld"
16617   version_type=darwin
16618   need_lib_prefix=no
16619   need_version=no
16620   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16621   soname_spec='${libname}${release}${major}$shared_ext'
16622   shlibpath_overrides_runpath=yes
16623   shlibpath_var=DYLD_LIBRARY_PATH
16624   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16625
16626   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16627   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16628   ;;
16629
16630 dgux*)
16631   version_type=linux
16632   need_lib_prefix=no
16633   need_version=no
16634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16635   soname_spec='${libname}${release}${shared_ext}$major'
16636   shlibpath_var=LD_LIBRARY_PATH
16637   ;;
16638
16639 freebsd* | dragonfly*)
16640   # DragonFly does not have aout.  When/if they implement a new
16641   # versioning mechanism, adjust this.
16642   if test -x /usr/bin/objformat; then
16643     objformat=`/usr/bin/objformat`
16644   else
16645     case $host_os in
16646     freebsd[23].*) objformat=aout ;;
16647     *) objformat=elf ;;
16648     esac
16649   fi
16650   version_type=freebsd-$objformat
16651   case $version_type in
16652     freebsd-elf*)
16653       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16654       need_version=no
16655       need_lib_prefix=no
16656       ;;
16657     freebsd-*)
16658       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16659       need_version=yes
16660       ;;
16661   esac
16662   shlibpath_var=LD_LIBRARY_PATH
16663   case $host_os in
16664   freebsd2.*)
16665     shlibpath_overrides_runpath=yes
16666     ;;
16667   freebsd3.[01]* | freebsdelf3.[01]*)
16668     shlibpath_overrides_runpath=yes
16669     hardcode_into_libs=yes
16670     ;;
16671   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16672   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16673     shlibpath_overrides_runpath=no
16674     hardcode_into_libs=yes
16675     ;;
16676   *) # from 4.6 on, and DragonFly
16677     shlibpath_overrides_runpath=yes
16678     hardcode_into_libs=yes
16679     ;;
16680   esac
16681   ;;
16682
16683 gnu*)
16684   version_type=linux
16685   need_lib_prefix=no
16686   need_version=no
16687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16688   soname_spec='${libname}${release}${shared_ext}$major'
16689   shlibpath_var=LD_LIBRARY_PATH
16690   hardcode_into_libs=yes
16691   ;;
16692
16693 haiku*)
16694   version_type=linux
16695   need_lib_prefix=no
16696   need_version=no
16697   dynamic_linker="$host_os runtime_loader"
16698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16699   soname_spec='${libname}${release}${shared_ext}$major'
16700   shlibpath_var=LIBRARY_PATH
16701   shlibpath_overrides_runpath=yes
16702   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16703   hardcode_into_libs=yes
16704   ;;
16705
16706 hpux9* | hpux10* | hpux11*)
16707   # Give a soname corresponding to the major version so that dld.sl refuses to
16708   # link against other versions.
16709   version_type=sunos
16710   need_lib_prefix=no
16711   need_version=no
16712   case $host_cpu in
16713   ia64*)
16714     shrext_cmds='.so'
16715     hardcode_into_libs=yes
16716     dynamic_linker="$host_os dld.so"
16717     shlibpath_var=LD_LIBRARY_PATH
16718     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16719     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16720     soname_spec='${libname}${release}${shared_ext}$major'
16721     if test "X$HPUX_IA64_MODE" = X32; then
16722       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16723     else
16724       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16725     fi
16726     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16727     ;;
16728   hppa*64*)
16729     shrext_cmds='.sl'
16730     hardcode_into_libs=yes
16731     dynamic_linker="$host_os dld.sl"
16732     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16733     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16734     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16735     soname_spec='${libname}${release}${shared_ext}$major'
16736     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16737     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16738     ;;
16739   *)
16740     shrext_cmds='.sl'
16741     dynamic_linker="$host_os dld.sl"
16742     shlibpath_var=SHLIB_PATH
16743     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16744     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16745     soname_spec='${libname}${release}${shared_ext}$major'
16746     ;;
16747   esac
16748   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16749   postinstall_cmds='chmod 555 $lib'
16750   # or fails outright, so override atomically:
16751   install_override_mode=555
16752   ;;
16753
16754 interix[3-9]*)
16755   version_type=linux
16756   need_lib_prefix=no
16757   need_version=no
16758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16759   soname_spec='${libname}${release}${shared_ext}$major'
16760   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16761   shlibpath_var=LD_LIBRARY_PATH
16762   shlibpath_overrides_runpath=no
16763   hardcode_into_libs=yes
16764   ;;
16765
16766 irix5* | irix6* | nonstopux*)
16767   case $host_os in
16768     nonstopux*) version_type=nonstopux ;;
16769     *)
16770         if test "$lt_cv_prog_gnu_ld" = yes; then
16771                 version_type=linux
16772         else
16773                 version_type=irix
16774         fi ;;
16775   esac
16776   need_lib_prefix=no
16777   need_version=no
16778   soname_spec='${libname}${release}${shared_ext}$major'
16779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16780   case $host_os in
16781   irix5* | nonstopux*)
16782     libsuff= shlibsuff=
16783     ;;
16784   *)
16785     case $LD in # libtool.m4 will add one of these switches to LD
16786     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16787       libsuff= shlibsuff= libmagic=32-bit;;
16788     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16789       libsuff=32 shlibsuff=N32 libmagic=N32;;
16790     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16791       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16792     *) libsuff= shlibsuff= libmagic=never-match;;
16793     esac
16794     ;;
16795   esac
16796   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16797   shlibpath_overrides_runpath=no
16798   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16799   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16800   hardcode_into_libs=yes
16801   ;;
16802
16803 # No shared lib support for Linux oldld, aout, or coff.
16804 linux*oldld* | linux*aout* | linux*coff*)
16805   dynamic_linker=no
16806   ;;
16807
16808 # This must be Linux ELF.
16809 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16810   version_type=linux
16811   need_lib_prefix=no
16812   need_version=no
16813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16814   soname_spec='${libname}${release}${shared_ext}$major'
16815   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16816   shlibpath_var=LD_LIBRARY_PATH
16817   shlibpath_overrides_runpath=no
16818
16819   # Some binutils ld are patched to set DT_RUNPATH
16820   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16821   $as_echo_n "(cached) " >&6
16822 else
16823   lt_cv_shlibpath_overrides_runpath=no
16824     save_LDFLAGS=$LDFLAGS
16825     save_libdir=$libdir
16826     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16827          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16828     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829 /* end confdefs.h.  */
16830
16831 int
16832 main ()
16833 {
16834
16835   ;
16836   return 0;
16837 }
16838 _ACEOF
16839 if ac_fn_c_try_link "$LINENO"; then :
16840   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16841   lt_cv_shlibpath_overrides_runpath=yes
16842 fi
16843 fi
16844 rm -f core conftest.err conftest.$ac_objext \
16845     conftest$ac_exeext conftest.$ac_ext
16846     LDFLAGS=$save_LDFLAGS
16847     libdir=$save_libdir
16848
16849 fi
16850
16851   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16852
16853   # This implies no fast_install, which is unacceptable.
16854   # Some rework will be needed to allow for fast_install
16855   # before this can be enabled.
16856   hardcode_into_libs=yes
16857
16858   # Append ld.so.conf contents to the search path
16859   if test -f /etc/ld.so.conf; then
16860     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' ' '`
16861     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16862   fi
16863
16864   # We used to test for /lib/ld.so.1 and disable shared libraries on
16865   # powerpc, because MkLinux only supported shared libraries with the
16866   # GNU dynamic linker.  Since this was broken with cross compilers,
16867   # most powerpc-linux boxes support dynamic linking these days and
16868   # people can always --disable-shared, the test was removed, and we
16869   # assume the GNU/Linux dynamic linker is in use.
16870   dynamic_linker='GNU/Linux ld.so'
16871   ;;
16872
16873 netbsd*)
16874   version_type=sunos
16875   need_lib_prefix=no
16876   need_version=no
16877   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16878     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16879     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16880     dynamic_linker='NetBSD (a.out) ld.so'
16881   else
16882     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16883     soname_spec='${libname}${release}${shared_ext}$major'
16884     dynamic_linker='NetBSD ld.elf_so'
16885   fi
16886   shlibpath_var=LD_LIBRARY_PATH
16887   shlibpath_overrides_runpath=yes
16888   hardcode_into_libs=yes
16889   ;;
16890
16891 newsos6)
16892   version_type=linux
16893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894   shlibpath_var=LD_LIBRARY_PATH
16895   shlibpath_overrides_runpath=yes
16896   ;;
16897
16898 *nto* | *qnx*)
16899   version_type=qnx
16900   need_lib_prefix=no
16901   need_version=no
16902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16903   soname_spec='${libname}${release}${shared_ext}$major'
16904   shlibpath_var=LD_LIBRARY_PATH
16905   shlibpath_overrides_runpath=no
16906   hardcode_into_libs=yes
16907   dynamic_linker='ldqnx.so'
16908   ;;
16909
16910 openbsd*)
16911   version_type=sunos
16912   sys_lib_dlsearch_path_spec="/usr/lib"
16913   need_lib_prefix=no
16914   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16915   case $host_os in
16916     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16917     *)                          need_version=no  ;;
16918   esac
16919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16920   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16921   shlibpath_var=LD_LIBRARY_PATH
16922   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16923     case $host_os in
16924       openbsd2.[89] | openbsd2.[89].*)
16925         shlibpath_overrides_runpath=no
16926         ;;
16927       *)
16928         shlibpath_overrides_runpath=yes
16929         ;;
16930       esac
16931   else
16932     shlibpath_overrides_runpath=yes
16933   fi
16934   ;;
16935
16936 os2*)
16937   libname_spec='$name'
16938   shrext_cmds=".dll"
16939   need_lib_prefix=no
16940   library_names_spec='$libname${shared_ext} $libname.a'
16941   dynamic_linker='OS/2 ld.exe'
16942   shlibpath_var=LIBPATH
16943   ;;
16944
16945 osf3* | osf4* | osf5*)
16946   version_type=osf
16947   need_lib_prefix=no
16948   need_version=no
16949   soname_spec='${libname}${release}${shared_ext}$major'
16950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16951   shlibpath_var=LD_LIBRARY_PATH
16952   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16953   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16954   ;;
16955
16956 rdos*)
16957   dynamic_linker=no
16958   ;;
16959
16960 solaris*)
16961   version_type=linux
16962   need_lib_prefix=no
16963   need_version=no
16964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16965   soname_spec='${libname}${release}${shared_ext}$major'
16966   shlibpath_var=LD_LIBRARY_PATH
16967   shlibpath_overrides_runpath=yes
16968   hardcode_into_libs=yes
16969   # ldd complains unless libraries are executable
16970   postinstall_cmds='chmod +x $lib'
16971   ;;
16972
16973 sunos4*)
16974   version_type=sunos
16975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16976   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16977   shlibpath_var=LD_LIBRARY_PATH
16978   shlibpath_overrides_runpath=yes
16979   if test "$with_gnu_ld" = yes; then
16980     need_lib_prefix=no
16981   fi
16982   need_version=yes
16983   ;;
16984
16985 sysv4 | sysv4.3*)
16986   version_type=linux
16987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16988   soname_spec='${libname}${release}${shared_ext}$major'
16989   shlibpath_var=LD_LIBRARY_PATH
16990   case $host_vendor in
16991     sni)
16992       shlibpath_overrides_runpath=no
16993       need_lib_prefix=no
16994       runpath_var=LD_RUN_PATH
16995       ;;
16996     siemens)
16997       need_lib_prefix=no
16998       ;;
16999     motorola)
17000       need_lib_prefix=no
17001       need_version=no
17002       shlibpath_overrides_runpath=no
17003       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17004       ;;
17005   esac
17006   ;;
17007
17008 sysv4*MP*)
17009   if test -d /usr/nec ;then
17010     version_type=linux
17011     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17012     soname_spec='$libname${shared_ext}.$major'
17013     shlibpath_var=LD_LIBRARY_PATH
17014   fi
17015   ;;
17016
17017 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17018   version_type=freebsd-elf
17019   need_lib_prefix=no
17020   need_version=no
17021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17022   soname_spec='${libname}${release}${shared_ext}$major'
17023   shlibpath_var=LD_LIBRARY_PATH
17024   shlibpath_overrides_runpath=yes
17025   hardcode_into_libs=yes
17026   if test "$with_gnu_ld" = yes; then
17027     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17028   else
17029     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17030     case $host_os in
17031       sco3.2v5*)
17032         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17033         ;;
17034     esac
17035   fi
17036   sys_lib_dlsearch_path_spec='/usr/lib'
17037   ;;
17038
17039 tpf*)
17040   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17041   version_type=linux
17042   need_lib_prefix=no
17043   need_version=no
17044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17045   shlibpath_var=LD_LIBRARY_PATH
17046   shlibpath_overrides_runpath=no
17047   hardcode_into_libs=yes
17048   ;;
17049
17050 uts4*)
17051   version_type=linux
17052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17053   soname_spec='${libname}${release}${shared_ext}$major'
17054   shlibpath_var=LD_LIBRARY_PATH
17055   ;;
17056
17057 *)
17058   dynamic_linker=no
17059   ;;
17060 esac
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17062 $as_echo "$dynamic_linker" >&6; }
17063 test "$dynamic_linker" = no && can_build_shared=no
17064
17065 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17066 if test "$GCC" = yes; then
17067   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17068 fi
17069
17070 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17071   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17072 fi
17073 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17074   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17075 fi
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17169 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17170 hardcode_action=
17171 if test -n "$hardcode_libdir_flag_spec" ||
17172    test -n "$runpath_var" ||
17173    test "X$hardcode_automatic" = "Xyes" ; then
17174
17175   # We can hardcode non-existent directories.
17176   if test "$hardcode_direct" != no &&
17177      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17178      # have to relink, otherwise we might link with an installed library
17179      # when we should be linking with a yet-to-be-installed one
17180      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17181      test "$hardcode_minus_L" != no; then
17182     # Linking always hardcodes the temporary library directory.
17183     hardcode_action=relink
17184   else
17185     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17186     hardcode_action=immediate
17187   fi
17188 else
17189   # We cannot hardcode anything, or else we can only hardcode existing
17190   # directories.
17191   hardcode_action=unsupported
17192 fi
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17194 $as_echo "$hardcode_action" >&6; }
17195
17196 if test "$hardcode_action" = relink ||
17197    test "$inherit_rpath" = yes; then
17198   # Fast installation is not supported
17199   enable_fast_install=no
17200 elif test "$shlibpath_overrides_runpath" = yes ||
17201      test "$enable_shared" = no; then
17202   # Fast installation is not necessary
17203   enable_fast_install=needless
17204 fi
17205
17206
17207
17208
17209
17210
17211   if test "x$enable_dlopen" != xyes; then
17212   enable_dlopen=unknown
17213   enable_dlopen_self=unknown
17214   enable_dlopen_self_static=unknown
17215 else
17216   lt_cv_dlopen=no
17217   lt_cv_dlopen_libs=
17218
17219   case $host_os in
17220   beos*)
17221     lt_cv_dlopen="load_add_on"
17222     lt_cv_dlopen_libs=
17223     lt_cv_dlopen_self=yes
17224     ;;
17225
17226   mingw* | pw32* | cegcc*)
17227     lt_cv_dlopen="LoadLibrary"
17228     lt_cv_dlopen_libs=
17229     ;;
17230
17231   cygwin*)
17232     lt_cv_dlopen="dlopen"
17233     lt_cv_dlopen_libs=
17234     ;;
17235
17236   darwin*)
17237   # if libdl is installed we need to link against it
17238     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17239 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17240 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17241   $as_echo_n "(cached) " >&6
17242 else
17243   ac_check_lib_save_LIBS=$LIBS
17244 LIBS="-ldl  $LIBS"
17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h.  */
17247
17248 /* Override any GCC internal prototype to avoid an error.
17249    Use char because int might match the return type of a GCC
17250    builtin and then its argument prototype would still apply.  */
17251 #ifdef __cplusplus
17252 extern "C"
17253 #endif
17254 char dlopen ();
17255 int
17256 main ()
17257 {
17258 return dlopen ();
17259   ;
17260   return 0;
17261 }
17262 _ACEOF
17263 if ac_fn_c_try_link "$LINENO"; then :
17264   ac_cv_lib_dl_dlopen=yes
17265 else
17266   ac_cv_lib_dl_dlopen=no
17267 fi
17268 rm -f core conftest.err conftest.$ac_objext \
17269     conftest$ac_exeext conftest.$ac_ext
17270 LIBS=$ac_check_lib_save_LIBS
17271 fi
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17273 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17274 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17275   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17276 else
17277
17278     lt_cv_dlopen="dyld"
17279     lt_cv_dlopen_libs=
17280     lt_cv_dlopen_self=yes
17281
17282 fi
17283
17284     ;;
17285
17286   *)
17287     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17288 if test "x$ac_cv_func_shl_load" = x""yes; then :
17289   lt_cv_dlopen="shl_load"
17290 else
17291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17292 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17293 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17294   $as_echo_n "(cached) " >&6
17295 else
17296   ac_check_lib_save_LIBS=$LIBS
17297 LIBS="-ldld  $LIBS"
17298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17299 /* end confdefs.h.  */
17300
17301 /* Override any GCC internal prototype to avoid an error.
17302    Use char because int might match the return type of a GCC
17303    builtin and then its argument prototype would still apply.  */
17304 #ifdef __cplusplus
17305 extern "C"
17306 #endif
17307 char shl_load ();
17308 int
17309 main ()
17310 {
17311 return shl_load ();
17312   ;
17313   return 0;
17314 }
17315 _ACEOF
17316 if ac_fn_c_try_link "$LINENO"; then :
17317   ac_cv_lib_dld_shl_load=yes
17318 else
17319   ac_cv_lib_dld_shl_load=no
17320 fi
17321 rm -f core conftest.err conftest.$ac_objext \
17322     conftest$ac_exeext conftest.$ac_ext
17323 LIBS=$ac_check_lib_save_LIBS
17324 fi
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17326 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17327 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17328   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17329 else
17330   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17331 if test "x$ac_cv_func_dlopen" = x""yes; then :
17332   lt_cv_dlopen="dlopen"
17333 else
17334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17335 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17336 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17337   $as_echo_n "(cached) " >&6
17338 else
17339   ac_check_lib_save_LIBS=$LIBS
17340 LIBS="-ldl  $LIBS"
17341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17342 /* end confdefs.h.  */
17343
17344 /* Override any GCC internal prototype to avoid an error.
17345    Use char because int might match the return type of a GCC
17346    builtin and then its argument prototype would still apply.  */
17347 #ifdef __cplusplus
17348 extern "C"
17349 #endif
17350 char dlopen ();
17351 int
17352 main ()
17353 {
17354 return dlopen ();
17355   ;
17356   return 0;
17357 }
17358 _ACEOF
17359 if ac_fn_c_try_link "$LINENO"; then :
17360   ac_cv_lib_dl_dlopen=yes
17361 else
17362   ac_cv_lib_dl_dlopen=no
17363 fi
17364 rm -f core conftest.err conftest.$ac_objext \
17365     conftest$ac_exeext conftest.$ac_ext
17366 LIBS=$ac_check_lib_save_LIBS
17367 fi
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17369 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17370 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17371   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17372 else
17373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17374 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17375 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17376   $as_echo_n "(cached) " >&6
17377 else
17378   ac_check_lib_save_LIBS=$LIBS
17379 LIBS="-lsvld  $LIBS"
17380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17381 /* end confdefs.h.  */
17382
17383 /* Override any GCC internal prototype to avoid an error.
17384    Use char because int might match the return type of a GCC
17385    builtin and then its argument prototype would still apply.  */
17386 #ifdef __cplusplus
17387 extern "C"
17388 #endif
17389 char dlopen ();
17390 int
17391 main ()
17392 {
17393 return dlopen ();
17394   ;
17395   return 0;
17396 }
17397 _ACEOF
17398 if ac_fn_c_try_link "$LINENO"; then :
17399   ac_cv_lib_svld_dlopen=yes
17400 else
17401   ac_cv_lib_svld_dlopen=no
17402 fi
17403 rm -f core conftest.err conftest.$ac_objext \
17404     conftest$ac_exeext conftest.$ac_ext
17405 LIBS=$ac_check_lib_save_LIBS
17406 fi
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17408 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17409 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17410   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17411 else
17412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17413 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17414 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17415   $as_echo_n "(cached) " >&6
17416 else
17417   ac_check_lib_save_LIBS=$LIBS
17418 LIBS="-ldld  $LIBS"
17419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17420 /* end confdefs.h.  */
17421
17422 /* Override any GCC internal prototype to avoid an error.
17423    Use char because int might match the return type of a GCC
17424    builtin and then its argument prototype would still apply.  */
17425 #ifdef __cplusplus
17426 extern "C"
17427 #endif
17428 char dld_link ();
17429 int
17430 main ()
17431 {
17432 return dld_link ();
17433   ;
17434   return 0;
17435 }
17436 _ACEOF
17437 if ac_fn_c_try_link "$LINENO"; then :
17438   ac_cv_lib_dld_dld_link=yes
17439 else
17440   ac_cv_lib_dld_dld_link=no
17441 fi
17442 rm -f core conftest.err conftest.$ac_objext \
17443     conftest$ac_exeext conftest.$ac_ext
17444 LIBS=$ac_check_lib_save_LIBS
17445 fi
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17447 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17448 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17449   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17450 fi
17451
17452
17453 fi
17454
17455
17456 fi
17457
17458
17459 fi
17460
17461
17462 fi
17463
17464
17465 fi
17466
17467     ;;
17468   esac
17469
17470   if test "x$lt_cv_dlopen" != xno; then
17471     enable_dlopen=yes
17472   else
17473     enable_dlopen=no
17474   fi
17475
17476   case $lt_cv_dlopen in
17477   dlopen)
17478     save_CPPFLAGS="$CPPFLAGS"
17479     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17480
17481     save_LDFLAGS="$LDFLAGS"
17482     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17483
17484     save_LIBS="$LIBS"
17485     LIBS="$lt_cv_dlopen_libs $LIBS"
17486
17487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17488 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17489 if test "${lt_cv_dlopen_self+set}" = set; then :
17490   $as_echo_n "(cached) " >&6
17491 else
17492           if test "$cross_compiling" = yes; then :
17493   lt_cv_dlopen_self=cross
17494 else
17495   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17496   lt_status=$lt_dlunknown
17497   cat > conftest.$ac_ext <<_LT_EOF
17498 #line 17498 "configure"
17499 #include "confdefs.h"
17500
17501 #if HAVE_DLFCN_H
17502 #include <dlfcn.h>
17503 #endif
17504
17505 #include <stdio.h>
17506
17507 #ifdef RTLD_GLOBAL
17508 #  define LT_DLGLOBAL           RTLD_GLOBAL
17509 #else
17510 #  ifdef DL_GLOBAL
17511 #    define LT_DLGLOBAL         DL_GLOBAL
17512 #  else
17513 #    define LT_DLGLOBAL         0
17514 #  endif
17515 #endif
17516
17517 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17518    find out it does not work in some platform. */
17519 #ifndef LT_DLLAZY_OR_NOW
17520 #  ifdef RTLD_LAZY
17521 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17522 #  else
17523 #    ifdef DL_LAZY
17524 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17525 #    else
17526 #      ifdef RTLD_NOW
17527 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17528 #      else
17529 #        ifdef DL_NOW
17530 #          define LT_DLLAZY_OR_NOW      DL_NOW
17531 #        else
17532 #          define LT_DLLAZY_OR_NOW      0
17533 #        endif
17534 #      endif
17535 #    endif
17536 #  endif
17537 #endif
17538
17539 /* When -fvisbility=hidden is used, assume the code has been annotated
17540    correspondingly for the symbols needed.  */
17541 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17542 void fnord () __attribute__((visibility("default")));
17543 #endif
17544
17545 void fnord () { int i=42; }
17546 int main ()
17547 {
17548   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17549   int status = $lt_dlunknown;
17550
17551   if (self)
17552     {
17553       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17554       else
17555         {
17556           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17557           else puts (dlerror ());
17558         }
17559       /* dlclose (self); */
17560     }
17561   else
17562     puts (dlerror ());
17563
17564   return status;
17565 }
17566 _LT_EOF
17567   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17568   (eval $ac_link) 2>&5
17569   ac_status=$?
17570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17571   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17572     (./conftest; exit; ) >&5 2>/dev/null
17573     lt_status=$?
17574     case x$lt_status in
17575       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17576       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17577       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17578     esac
17579   else :
17580     # compilation failed
17581     lt_cv_dlopen_self=no
17582   fi
17583 fi
17584 rm -fr conftest*
17585
17586
17587 fi
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17589 $as_echo "$lt_cv_dlopen_self" >&6; }
17590
17591     if test "x$lt_cv_dlopen_self" = xyes; then
17592       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17593       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17594 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17595 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17596   $as_echo_n "(cached) " >&6
17597 else
17598           if test "$cross_compiling" = yes; then :
17599   lt_cv_dlopen_self_static=cross
17600 else
17601   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17602   lt_status=$lt_dlunknown
17603   cat > conftest.$ac_ext <<_LT_EOF
17604 #line 17604 "configure"
17605 #include "confdefs.h"
17606
17607 #if HAVE_DLFCN_H
17608 #include <dlfcn.h>
17609 #endif
17610
17611 #include <stdio.h>
17612
17613 #ifdef RTLD_GLOBAL
17614 #  define LT_DLGLOBAL           RTLD_GLOBAL
17615 #else
17616 #  ifdef DL_GLOBAL
17617 #    define LT_DLGLOBAL         DL_GLOBAL
17618 #  else
17619 #    define LT_DLGLOBAL         0
17620 #  endif
17621 #endif
17622
17623 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17624    find out it does not work in some platform. */
17625 #ifndef LT_DLLAZY_OR_NOW
17626 #  ifdef RTLD_LAZY
17627 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17628 #  else
17629 #    ifdef DL_LAZY
17630 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17631 #    else
17632 #      ifdef RTLD_NOW
17633 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17634 #      else
17635 #        ifdef DL_NOW
17636 #          define LT_DLLAZY_OR_NOW      DL_NOW
17637 #        else
17638 #          define LT_DLLAZY_OR_NOW      0
17639 #        endif
17640 #      endif
17641 #    endif
17642 #  endif
17643 #endif
17644
17645 /* When -fvisbility=hidden is used, assume the code has been annotated
17646    correspondingly for the symbols needed.  */
17647 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17648 void fnord () __attribute__((visibility("default")));
17649 #endif
17650
17651 void fnord () { int i=42; }
17652 int main ()
17653 {
17654   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17655   int status = $lt_dlunknown;
17656
17657   if (self)
17658     {
17659       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17660       else
17661         {
17662           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17663           else puts (dlerror ());
17664         }
17665       /* dlclose (self); */
17666     }
17667   else
17668     puts (dlerror ());
17669
17670   return status;
17671 }
17672 _LT_EOF
17673   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17674   (eval $ac_link) 2>&5
17675   ac_status=$?
17676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17677   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17678     (./conftest; exit; ) >&5 2>/dev/null
17679     lt_status=$?
17680     case x$lt_status in
17681       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17682       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17683       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17684     esac
17685   else :
17686     # compilation failed
17687     lt_cv_dlopen_self_static=no
17688   fi
17689 fi
17690 rm -fr conftest*
17691
17692
17693 fi
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17695 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17696     fi
17697
17698     CPPFLAGS="$save_CPPFLAGS"
17699     LDFLAGS="$save_LDFLAGS"
17700     LIBS="$save_LIBS"
17701     ;;
17702   esac
17703
17704   case $lt_cv_dlopen_self in
17705   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17706   *) enable_dlopen_self=unknown ;;
17707   esac
17708
17709   case $lt_cv_dlopen_self_static in
17710   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17711   *) enable_dlopen_self_static=unknown ;;
17712   esac
17713 fi
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731 striplib=
17732 old_striplib=
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17734 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17735 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17736   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17737   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17739 $as_echo "yes" >&6; }
17740 else
17741 # FIXME - insert some real tests, host_os isn't really good enough
17742   case $host_os in
17743   darwin*)
17744     if test -n "$STRIP" ; then
17745       striplib="$STRIP -x"
17746       old_striplib="$STRIP -S"
17747       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17748 $as_echo "yes" >&6; }
17749     else
17750       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17751 $as_echo "no" >&6; }
17752     fi
17753     ;;
17754   *)
17755     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17756 $as_echo "no" >&6; }
17757     ;;
17758   esac
17759 fi
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772   # Report which library types will actually be built
17773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17774 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17776 $as_echo "$can_build_shared" >&6; }
17777
17778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17779 $as_echo_n "checking whether to build shared libraries... " >&6; }
17780   test "$can_build_shared" = "no" && enable_shared=no
17781
17782   # On AIX, shared libraries and static libraries use the same namespace, and
17783   # are all built from PIC.
17784   case $host_os in
17785   aix3*)
17786     test "$enable_shared" = yes && enable_static=no
17787     if test -n "$RANLIB"; then
17788       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17789       postinstall_cmds='$RANLIB $lib'
17790     fi
17791     ;;
17792
17793   aix[4-9]*)
17794     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17795       test "$enable_shared" = yes && enable_static=no
17796     fi
17797     ;;
17798   esac
17799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17800 $as_echo "$enable_shared" >&6; }
17801
17802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17803 $as_echo_n "checking whether to build static libraries... " >&6; }
17804   # Make sure either enable_shared or enable_static is yes.
17805   test "$enable_shared" = yes || enable_static=yes
17806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17807 $as_echo "$enable_static" >&6; }
17808
17809
17810
17811
17812 fi
17813 ac_ext=c
17814 ac_cpp='$CPP $CPPFLAGS'
17815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17818
17819 CC="$lt_save_CC"
17820
17821       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17822     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17823     (test "X$CXX" != "Xg++"))) ; then
17824   ac_ext=cpp
17825 ac_cpp='$CXXCPP $CPPFLAGS'
17826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17830 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17831 if test -z "$CXXCPP"; then
17832   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17833   $as_echo_n "(cached) " >&6
17834 else
17835       # Double quotes because CXXCPP needs to be expanded
17836     for CXXCPP in "$CXX -E" "/lib/cpp"
17837     do
17838       ac_preproc_ok=false
17839 for ac_cxx_preproc_warn_flag in '' yes
17840 do
17841   # Use a header file that comes with gcc, so configuring glibc
17842   # with a fresh cross-compiler works.
17843   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17844   # <limits.h> exists even on freestanding compilers.
17845   # On the NeXT, cc -E runs the code through the compiler's parser,
17846   # not just through cpp. "Syntax error" is here to catch this case.
17847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17848 /* end confdefs.h.  */
17849 #ifdef __STDC__
17850 # include <limits.h>
17851 #else
17852 # include <assert.h>
17853 #endif
17854                      Syntax error
17855 _ACEOF
17856 if ac_fn_cxx_try_cpp "$LINENO"; then :
17857
17858 else
17859   # Broken: fails on valid input.
17860 continue
17861 fi
17862 rm -f conftest.err conftest.$ac_ext
17863
17864   # OK, works on sane cases.  Now check whether nonexistent headers
17865   # can be detected and how.
17866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17867 /* end confdefs.h.  */
17868 #include <ac_nonexistent.h>
17869 _ACEOF
17870 if ac_fn_cxx_try_cpp "$LINENO"; then :
17871   # Broken: success on invalid input.
17872 continue
17873 else
17874   # Passes both tests.
17875 ac_preproc_ok=:
17876 break
17877 fi
17878 rm -f conftest.err conftest.$ac_ext
17879
17880 done
17881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17882 rm -f conftest.err conftest.$ac_ext
17883 if $ac_preproc_ok; then :
17884   break
17885 fi
17886
17887     done
17888     ac_cv_prog_CXXCPP=$CXXCPP
17889
17890 fi
17891   CXXCPP=$ac_cv_prog_CXXCPP
17892 else
17893   ac_cv_prog_CXXCPP=$CXXCPP
17894 fi
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17896 $as_echo "$CXXCPP" >&6; }
17897 ac_preproc_ok=false
17898 for ac_cxx_preproc_warn_flag in '' yes
17899 do
17900   # Use a header file that comes with gcc, so configuring glibc
17901   # with a fresh cross-compiler works.
17902   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17903   # <limits.h> exists even on freestanding compilers.
17904   # On the NeXT, cc -E runs the code through the compiler's parser,
17905   # not just through cpp. "Syntax error" is here to catch this case.
17906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17907 /* end confdefs.h.  */
17908 #ifdef __STDC__
17909 # include <limits.h>
17910 #else
17911 # include <assert.h>
17912 #endif
17913                      Syntax error
17914 _ACEOF
17915 if ac_fn_cxx_try_cpp "$LINENO"; then :
17916
17917 else
17918   # Broken: fails on valid input.
17919 continue
17920 fi
17921 rm -f conftest.err conftest.$ac_ext
17922
17923   # OK, works on sane cases.  Now check whether nonexistent headers
17924   # can be detected and how.
17925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926 /* end confdefs.h.  */
17927 #include <ac_nonexistent.h>
17928 _ACEOF
17929 if ac_fn_cxx_try_cpp "$LINENO"; then :
17930   # Broken: success on invalid input.
17931 continue
17932 else
17933   # Passes both tests.
17934 ac_preproc_ok=:
17935 break
17936 fi
17937 rm -f conftest.err conftest.$ac_ext
17938
17939 done
17940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17941 rm -f conftest.err conftest.$ac_ext
17942 if $ac_preproc_ok; then :
17943
17944 else
17945   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17947 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17948 See \`config.log' for more details." "$LINENO" 5; }
17949 fi
17950
17951 ac_ext=c
17952 ac_cpp='$CPP $CPPFLAGS'
17953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17956
17957 else
17958   _lt_caught_CXX_error=yes
17959 fi
17960
17961 ac_ext=cpp
17962 ac_cpp='$CXXCPP $CPPFLAGS'
17963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17966
17967 archive_cmds_need_lc_CXX=no
17968 allow_undefined_flag_CXX=
17969 always_export_symbols_CXX=no
17970 archive_expsym_cmds_CXX=
17971 compiler_needs_object_CXX=no
17972 export_dynamic_flag_spec_CXX=
17973 hardcode_direct_CXX=no
17974 hardcode_direct_absolute_CXX=no
17975 hardcode_libdir_flag_spec_CXX=
17976 hardcode_libdir_flag_spec_ld_CXX=
17977 hardcode_libdir_separator_CXX=
17978 hardcode_minus_L_CXX=no
17979 hardcode_shlibpath_var_CXX=unsupported
17980 hardcode_automatic_CXX=no
17981 inherit_rpath_CXX=no
17982 module_cmds_CXX=
17983 module_expsym_cmds_CXX=
17984 link_all_deplibs_CXX=unknown
17985 old_archive_cmds_CXX=$old_archive_cmds
17986 reload_flag_CXX=$reload_flag
17987 reload_cmds_CXX=$reload_cmds
17988 no_undefined_flag_CXX=
17989 whole_archive_flag_spec_CXX=
17990 enable_shared_with_static_runtimes_CXX=no
17991
17992 # Source file extension for C++ test sources.
17993 ac_ext=cpp
17994
17995 # Object file extension for compiled C++ test sources.
17996 objext=o
17997 objext_CXX=$objext
17998
17999 # No sense in running all these tests if we already determined that
18000 # the CXX compiler isn't working.  Some variables (like enable_shared)
18001 # are currently assumed to apply to all compilers on this platform,
18002 # and will be corrupted by setting them based on a non-working compiler.
18003 if test "$_lt_caught_CXX_error" != yes; then
18004   # Code to be used in simple compile tests
18005   lt_simple_compile_test_code="int some_variable = 0;"
18006
18007   # Code to be used in simple link tests
18008   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18009
18010   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18011
18012
18013
18014
18015
18016
18017 # If no C compiler was specified, use CC.
18018 LTCC=${LTCC-"$CC"}
18019
18020 # If no C compiler flags were specified, use CFLAGS.
18021 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18022
18023 # Allow CC to be a program name with arguments.
18024 compiler=$CC
18025
18026
18027   # save warnings/boilerplate of simple test code
18028   ac_outfile=conftest.$ac_objext
18029 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18030 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18031 _lt_compiler_boilerplate=`cat conftest.err`
18032 $RM conftest*
18033
18034   ac_outfile=conftest.$ac_objext
18035 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18036 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18037 _lt_linker_boilerplate=`cat conftest.err`
18038 $RM -r conftest*
18039
18040
18041   # Allow CC to be a program name with arguments.
18042   lt_save_CC=$CC
18043   lt_save_LD=$LD
18044   lt_save_GCC=$GCC
18045   GCC=$GXX
18046   lt_save_with_gnu_ld=$with_gnu_ld
18047   lt_save_path_LD=$lt_cv_path_LD
18048   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18049     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18050   else
18051     $as_unset lt_cv_prog_gnu_ld
18052   fi
18053   if test -n "${lt_cv_path_LDCXX+set}"; then
18054     lt_cv_path_LD=$lt_cv_path_LDCXX
18055   else
18056     $as_unset lt_cv_path_LD
18057   fi
18058   test -z "${LDCXX+set}" || LD=$LDCXX
18059   CC=${CXX-"c++"}
18060   compiler=$CC
18061   compiler_CXX=$CC
18062   for cc_temp in $compiler""; do
18063   case $cc_temp in
18064     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18065     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18066     \-*) ;;
18067     *) break;;
18068   esac
18069 done
18070 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18071
18072
18073   if test -n "$compiler"; then
18074     # We don't want -fno-exception when compiling C++ code, so set the
18075     # no_builtin_flag separately
18076     if test "$GXX" = yes; then
18077       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18078     else
18079       lt_prog_compiler_no_builtin_flag_CXX=
18080     fi
18081
18082     if test "$GXX" = yes; then
18083       # Set up default GNU C++ configuration
18084
18085
18086
18087 # Check whether --with-gnu-ld was given.
18088 if test "${with_gnu_ld+set}" = set; then :
18089   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18090 else
18091   with_gnu_ld=no
18092 fi
18093
18094 ac_prog=ld
18095 if test "$GCC" = yes; then
18096   # Check if gcc -print-prog-name=ld gives a path.
18097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18098 $as_echo_n "checking for ld used by $CC... " >&6; }
18099   case $host in
18100   *-*-mingw*)
18101     # gcc leaves a trailing carriage return which upsets mingw
18102     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18103   *)
18104     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18105   esac
18106   case $ac_prog in
18107     # Accept absolute paths.
18108     [\\/]* | ?:[\\/]*)
18109       re_direlt='/[^/][^/]*/\.\./'
18110       # Canonicalize the pathname of ld
18111       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18112       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18113         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18114       done
18115       test -z "$LD" && LD="$ac_prog"
18116       ;;
18117   "")
18118     # If it fails, then pretend we aren't using GCC.
18119     ac_prog=ld
18120     ;;
18121   *)
18122     # If it is relative, then search for the first ld in PATH.
18123     with_gnu_ld=unknown
18124     ;;
18125   esac
18126 elif test "$with_gnu_ld" = yes; then
18127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18128 $as_echo_n "checking for GNU ld... " >&6; }
18129 else
18130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18131 $as_echo_n "checking for non-GNU ld... " >&6; }
18132 fi
18133 if test "${lt_cv_path_LD+set}" = set; then :
18134   $as_echo_n "(cached) " >&6
18135 else
18136   if test -z "$LD"; then
18137   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18138   for ac_dir in $PATH; do
18139     IFS="$lt_save_ifs"
18140     test -z "$ac_dir" && ac_dir=.
18141     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18142       lt_cv_path_LD="$ac_dir/$ac_prog"
18143       # Check to see if the program is GNU ld.  I'd rather use --version,
18144       # but apparently some variants of GNU ld only accept -v.
18145       # Break only if it was the GNU/non-GNU ld that we prefer.
18146       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18147       *GNU* | *'with BFD'*)
18148         test "$with_gnu_ld" != no && break
18149         ;;
18150       *)
18151         test "$with_gnu_ld" != yes && break
18152         ;;
18153       esac
18154     fi
18155   done
18156   IFS="$lt_save_ifs"
18157 else
18158   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18159 fi
18160 fi
18161
18162 LD="$lt_cv_path_LD"
18163 if test -n "$LD"; then
18164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18165 $as_echo "$LD" >&6; }
18166 else
18167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18168 $as_echo "no" >&6; }
18169 fi
18170 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18172 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18173 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18174   $as_echo_n "(cached) " >&6
18175 else
18176   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18177 case `$LD -v 2>&1 </dev/null` in
18178 *GNU* | *'with BFD'*)
18179   lt_cv_prog_gnu_ld=yes
18180   ;;
18181 *)
18182   lt_cv_prog_gnu_ld=no
18183   ;;
18184 esac
18185 fi
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18187 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18188 with_gnu_ld=$lt_cv_prog_gnu_ld
18189
18190
18191
18192
18193
18194
18195
18196       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18197       # archiving commands below assume that GNU ld is being used.
18198       if test "$with_gnu_ld" = yes; then
18199         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18200         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'
18201
18202         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18203         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18204
18205         # If archive_cmds runs LD, not CC, wlarc should be empty
18206         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18207         #     investigate it a little bit more. (MM)
18208         wlarc='${wl}'
18209
18210         # ancient GNU ld didn't support --whole-archive et. al.
18211         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18212           $GREP 'no-whole-archive' > /dev/null; then
18213           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18214         else
18215           whole_archive_flag_spec_CXX=
18216         fi
18217       else
18218         with_gnu_ld=no
18219         wlarc=
18220
18221         # A generic and very simple default shared library creation
18222         # command for GNU C++ for the case where it uses the native
18223         # linker, instead of GNU ld.  If possible, this setting should
18224         # overridden to take advantage of the native linker features on
18225         # the platform it is being used on.
18226         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18227       fi
18228
18229       # Commands to make compiler produce verbose output that lists
18230       # what "hidden" libraries, object files and flags are used when
18231       # linking a shared library.
18232       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18233
18234     else
18235       GXX=no
18236       with_gnu_ld=no
18237       wlarc=
18238     fi
18239
18240     # PORTME: fill in a description of your system's C++ link characteristics
18241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18242 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18243     ld_shlibs_CXX=yes
18244     case $host_os in
18245       aix3*)
18246         # FIXME: insert proper C++ library support
18247         ld_shlibs_CXX=no
18248         ;;
18249       aix[4-9]*)
18250         if test "$host_cpu" = ia64; then
18251           # On IA64, the linker does run time linking by default, so we don't
18252           # have to do anything special.
18253           aix_use_runtimelinking=no
18254           exp_sym_flag='-Bexport'
18255           no_entry_flag=""
18256         else
18257           aix_use_runtimelinking=no
18258
18259           # Test if we are trying to use run time linking or normal
18260           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18261           # need to do runtime linking.
18262           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18263             for ld_flag in $LDFLAGS; do
18264               case $ld_flag in
18265               *-brtl*)
18266                 aix_use_runtimelinking=yes
18267                 break
18268                 ;;
18269               esac
18270             done
18271             ;;
18272           esac
18273
18274           exp_sym_flag='-bexport'
18275           no_entry_flag='-bnoentry'
18276         fi
18277
18278         # When large executables or shared objects are built, AIX ld can
18279         # have problems creating the table of contents.  If linking a library
18280         # or program results in "error TOC overflow" add -mminimal-toc to
18281         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18282         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18283
18284         archive_cmds_CXX=''
18285         hardcode_direct_CXX=yes
18286         hardcode_direct_absolute_CXX=yes
18287         hardcode_libdir_separator_CXX=':'
18288         link_all_deplibs_CXX=yes
18289         file_list_spec_CXX='${wl}-f,'
18290
18291         if test "$GXX" = yes; then
18292           case $host_os in aix4.[012]|aix4.[012].*)
18293           # We only want to do this on AIX 4.2 and lower, the check
18294           # below for broken collect2 doesn't work under 4.3+
18295           collect2name=`${CC} -print-prog-name=collect2`
18296           if test -f "$collect2name" &&
18297              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18298           then
18299             # We have reworked collect2
18300             :
18301           else
18302             # We have old collect2
18303             hardcode_direct_CXX=unsupported
18304             # It fails to find uninstalled libraries when the uninstalled
18305             # path is not listed in the libpath.  Setting hardcode_minus_L
18306             # to unsupported forces relinking
18307             hardcode_minus_L_CXX=yes
18308             hardcode_libdir_flag_spec_CXX='-L$libdir'
18309             hardcode_libdir_separator_CXX=
18310           fi
18311           esac
18312           shared_flag='-shared'
18313           if test "$aix_use_runtimelinking" = yes; then
18314             shared_flag="$shared_flag "'${wl}-G'
18315           fi
18316         else
18317           # not using gcc
18318           if test "$host_cpu" = ia64; then
18319           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18320           # chokes on -Wl,-G. The following line is correct:
18321           shared_flag='-G'
18322           else
18323             if test "$aix_use_runtimelinking" = yes; then
18324               shared_flag='${wl}-G'
18325             else
18326               shared_flag='${wl}-bM:SRE'
18327             fi
18328           fi
18329         fi
18330
18331         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18332         # It seems that -bexpall does not export symbols beginning with
18333         # underscore (_), so it is better to generate a list of symbols to
18334         # export.
18335         always_export_symbols_CXX=yes
18336         if test "$aix_use_runtimelinking" = yes; then
18337           # Warning - without using the other runtime loading flags (-brtl),
18338           # -berok will link without error, but may produce a broken library.
18339           allow_undefined_flag_CXX='-berok'
18340           # Determine the default libpath from the value encoded in an empty
18341           # executable.
18342           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343 /* end confdefs.h.  */
18344
18345 int
18346 main ()
18347 {
18348
18349   ;
18350   return 0;
18351 }
18352 _ACEOF
18353 if ac_fn_cxx_try_link "$LINENO"; then :
18354
18355 lt_aix_libpath_sed='
18356     /Import File Strings/,/^$/ {
18357         /^0/ {
18358             s/^0  *\(.*\)$/\1/
18359             p
18360         }
18361     }'
18362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18363 # Check for a 64-bit object if we didn't find anything.
18364 if test -z "$aix_libpath"; then
18365   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18366 fi
18367 fi
18368 rm -f core conftest.err conftest.$ac_objext \
18369     conftest$ac_exeext conftest.$ac_ext
18370 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18371
18372           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18373
18374           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"
18375         else
18376           if test "$host_cpu" = ia64; then
18377             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18378             allow_undefined_flag_CXX="-z nodefs"
18379             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"
18380           else
18381             # Determine the default libpath from the value encoded in an
18382             # empty executable.
18383             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18384 /* end confdefs.h.  */
18385
18386 int
18387 main ()
18388 {
18389
18390   ;
18391   return 0;
18392 }
18393 _ACEOF
18394 if ac_fn_cxx_try_link "$LINENO"; then :
18395
18396 lt_aix_libpath_sed='
18397     /Import File Strings/,/^$/ {
18398         /^0/ {
18399             s/^0  *\(.*\)$/\1/
18400             p
18401         }
18402     }'
18403 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18404 # Check for a 64-bit object if we didn't find anything.
18405 if test -z "$aix_libpath"; then
18406   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18407 fi
18408 fi
18409 rm -f core conftest.err conftest.$ac_objext \
18410     conftest$ac_exeext conftest.$ac_ext
18411 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18412
18413             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18414             # Warning - without using the other run time loading flags,
18415             # -berok will link without error, but may produce a broken library.
18416             no_undefined_flag_CXX=' ${wl}-bernotok'
18417             allow_undefined_flag_CXX=' ${wl}-berok'
18418             if test "$with_gnu_ld" = yes; then
18419               # We only use this code for GNU lds that support --whole-archive.
18420               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18421             else
18422               # Exported symbols can be pulled into shared objects from archives
18423               whole_archive_flag_spec_CXX='$convenience'
18424             fi
18425             archive_cmds_need_lc_CXX=yes
18426             # This is similar to how AIX traditionally builds its shared
18427             # libraries.
18428             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'
18429           fi
18430         fi
18431         ;;
18432
18433       beos*)
18434         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18435           allow_undefined_flag_CXX=unsupported
18436           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18437           # support --undefined.  This deserves some investigation.  FIXME
18438           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18439         else
18440           ld_shlibs_CXX=no
18441         fi
18442         ;;
18443
18444       chorus*)
18445         case $cc_basename in
18446           *)
18447           # FIXME: insert proper C++ library support
18448           ld_shlibs_CXX=no
18449           ;;
18450         esac
18451         ;;
18452
18453       cygwin* | mingw* | pw32* | cegcc*)
18454         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18455         # as there is no search path for DLLs.
18456         hardcode_libdir_flag_spec_CXX='-L$libdir'
18457         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18458         allow_undefined_flag_CXX=unsupported
18459         always_export_symbols_CXX=no
18460         enable_shared_with_static_runtimes_CXX=yes
18461
18462         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18463           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'
18464           # If the export-symbols file already is a .def file (1st line
18465           # is EXPORTS), use it as is; otherwise, prepend...
18466           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18467             cp $export_symbols $output_objdir/$soname.def;
18468           else
18469             echo EXPORTS > $output_objdir/$soname.def;
18470             cat $export_symbols >> $output_objdir/$soname.def;
18471           fi~
18472           $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'
18473         else
18474           ld_shlibs_CXX=no
18475         fi
18476         ;;
18477       darwin* | rhapsody*)
18478
18479
18480   archive_cmds_need_lc_CXX=no
18481   hardcode_direct_CXX=no
18482   hardcode_automatic_CXX=yes
18483   hardcode_shlibpath_var_CXX=unsupported
18484   if test "$lt_cv_ld_force_load" = "yes"; then
18485     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\"`'
18486   else
18487     whole_archive_flag_spec_CXX=''
18488   fi
18489   link_all_deplibs_CXX=yes
18490   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18491   case $cc_basename in
18492      ifort*) _lt_dar_can_shared=yes ;;
18493      *) _lt_dar_can_shared=$GCC ;;
18494   esac
18495   if test "$_lt_dar_can_shared" = "yes"; then
18496     output_verbose_link_cmd=func_echo_all
18497     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}"
18498     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18499     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}"
18500     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}"
18501        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18502       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}"
18503       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}"
18504     fi
18505
18506   else
18507   ld_shlibs_CXX=no
18508   fi
18509
18510         ;;
18511
18512       dgux*)
18513         case $cc_basename in
18514           ec++*)
18515             # FIXME: insert proper C++ library support
18516             ld_shlibs_CXX=no
18517             ;;
18518           ghcx*)
18519             # Green Hills C++ Compiler
18520             # FIXME: insert proper C++ library support
18521             ld_shlibs_CXX=no
18522             ;;
18523           *)
18524             # FIXME: insert proper C++ library support
18525             ld_shlibs_CXX=no
18526             ;;
18527         esac
18528         ;;
18529
18530       freebsd2.*)
18531         # C++ shared libraries reported to be fairly broken before
18532         # switch to ELF
18533         ld_shlibs_CXX=no
18534         ;;
18535
18536       freebsd-elf*)
18537         archive_cmds_need_lc_CXX=no
18538         ;;
18539
18540       freebsd* | dragonfly*)
18541         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18542         # conventions
18543         ld_shlibs_CXX=yes
18544         ;;
18545
18546       gnu*)
18547         ;;
18548
18549       haiku*)
18550         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18551         link_all_deplibs_CXX=yes
18552         ;;
18553
18554       hpux9*)
18555         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18556         hardcode_libdir_separator_CXX=:
18557         export_dynamic_flag_spec_CXX='${wl}-E'
18558         hardcode_direct_CXX=yes
18559         hardcode_minus_L_CXX=yes # Not in the search PATH,
18560                                              # but as the default
18561                                              # location of the library.
18562
18563         case $cc_basename in
18564           CC*)
18565             # FIXME: insert proper C++ library support
18566             ld_shlibs_CXX=no
18567             ;;
18568           aCC*)
18569             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'
18570             # Commands to make compiler produce verbose output that lists
18571             # what "hidden" libraries, object files and flags are used when
18572             # linking a shared library.
18573             #
18574             # There doesn't appear to be a way to prevent this compiler from
18575             # explicitly linking system object files so we need to strip them
18576             # from the output so that they don't get included in the library
18577             # dependencies.
18578             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"'
18579             ;;
18580           *)
18581             if test "$GXX" = yes; then
18582               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'
18583             else
18584               # FIXME: insert proper C++ library support
18585               ld_shlibs_CXX=no
18586             fi
18587             ;;
18588         esac
18589         ;;
18590
18591       hpux10*|hpux11*)
18592         if test $with_gnu_ld = no; then
18593           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18594           hardcode_libdir_separator_CXX=:
18595
18596           case $host_cpu in
18597             hppa*64*|ia64*)
18598               ;;
18599             *)
18600               export_dynamic_flag_spec_CXX='${wl}-E'
18601               ;;
18602           esac
18603         fi
18604         case $host_cpu in
18605           hppa*64*|ia64*)
18606             hardcode_direct_CXX=no
18607             hardcode_shlibpath_var_CXX=no
18608             ;;
18609           *)
18610             hardcode_direct_CXX=yes
18611             hardcode_direct_absolute_CXX=yes
18612             hardcode_minus_L_CXX=yes # Not in the search PATH,
18613                                                  # but as the default
18614                                                  # location of the library.
18615             ;;
18616         esac
18617
18618         case $cc_basename in
18619           CC*)
18620             # FIXME: insert proper C++ library support
18621             ld_shlibs_CXX=no
18622             ;;
18623           aCC*)
18624             case $host_cpu in
18625               hppa*64*)
18626                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18627                 ;;
18628               ia64*)
18629                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18630                 ;;
18631               *)
18632                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18633                 ;;
18634             esac
18635             # Commands to make compiler produce verbose output that lists
18636             # what "hidden" libraries, object files and flags are used when
18637             # linking a shared library.
18638             #
18639             # There doesn't appear to be a way to prevent this compiler from
18640             # explicitly linking system object files so we need to strip them
18641             # from the output so that they don't get included in the library
18642             # dependencies.
18643             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"'
18644             ;;
18645           *)
18646             if test "$GXX" = yes; then
18647               if test $with_gnu_ld = no; then
18648                 case $host_cpu in
18649                   hppa*64*)
18650                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18651                     ;;
18652                   ia64*)
18653                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18654                     ;;
18655                   *)
18656                     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'
18657                     ;;
18658                 esac
18659               fi
18660             else
18661               # FIXME: insert proper C++ library support
18662               ld_shlibs_CXX=no
18663             fi
18664             ;;
18665         esac
18666         ;;
18667
18668       interix[3-9]*)
18669         hardcode_direct_CXX=no
18670         hardcode_shlibpath_var_CXX=no
18671         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18672         export_dynamic_flag_spec_CXX='${wl}-E'
18673         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18674         # Instead, shared libraries are loaded at an image base (0x10000000 by
18675         # default) and relocated if they conflict, which is a slow very memory
18676         # consuming and fragmenting process.  To avoid this, we pick a random,
18677         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18678         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18679         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'
18680         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'
18681         ;;
18682       irix5* | irix6*)
18683         case $cc_basename in
18684           CC*)
18685             # SGI C++
18686             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'
18687
18688             # Archives containing C++ object files must be created using
18689             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18690             # necessary to make sure instantiated templates are included
18691             # in the archive.
18692             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18693             ;;
18694           *)
18695             if test "$GXX" = yes; then
18696               if test "$with_gnu_ld" = no; then
18697                 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'
18698               else
18699                 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'
18700               fi
18701             fi
18702             link_all_deplibs_CXX=yes
18703             ;;
18704         esac
18705         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18706         hardcode_libdir_separator_CXX=:
18707         inherit_rpath_CXX=yes
18708         ;;
18709
18710       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18711         case $cc_basename in
18712           KCC*)
18713             # Kuck and Associates, Inc. (KAI) C++ Compiler
18714
18715             # KCC will only create a shared library if the output file
18716             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18717             # to its proper name (with version) after linking.
18718             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'
18719             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'
18720             # Commands to make compiler produce verbose output that lists
18721             # what "hidden" libraries, object files and flags are used when
18722             # linking a shared library.
18723             #
18724             # There doesn't appear to be a way to prevent this compiler from
18725             # explicitly linking system object files so we need to strip them
18726             # from the output so that they don't get included in the library
18727             # dependencies.
18728             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"'
18729
18730             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18731             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18732
18733             # Archives containing C++ object files must be created using
18734             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18735             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18736             ;;
18737           icpc* | ecpc* )
18738             # Intel C++
18739             with_gnu_ld=yes
18740             # version 8.0 and above of icpc choke on multiply defined symbols
18741             # if we add $predep_objects and $postdep_objects, however 7.1 and
18742             # earlier do not add the objects themselves.
18743             case `$CC -V 2>&1` in
18744               *"Version 7."*)
18745                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18746                 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'
18747                 ;;
18748               *)  # Version 8.0 or newer
18749                 tmp_idyn=
18750                 case $host_cpu in
18751                   ia64*) tmp_idyn=' -i_dynamic';;
18752                 esac
18753                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18754                 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'
18755                 ;;
18756             esac
18757             archive_cmds_need_lc_CXX=no
18758             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18759             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18760             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18761             ;;
18762           pgCC* | pgcpp*)
18763             # Portland Group C++ compiler
18764             case `$CC -V` in
18765             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18766               prelink_cmds_CXX='tpldir=Template.dir~
18767                 rm -rf $tpldir~
18768                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18769                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18770               old_archive_cmds_CXX='tpldir=Template.dir~
18771                 rm -rf $tpldir~
18772                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18773                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18774                 $RANLIB $oldlib'
18775               archive_cmds_CXX='tpldir=Template.dir~
18776                 rm -rf $tpldir~
18777                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18778                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18779               archive_expsym_cmds_CXX='tpldir=Template.dir~
18780                 rm -rf $tpldir~
18781                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18782                 $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'
18783               ;;
18784             *) # Version 6 and above use weak symbols
18785               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18786               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'
18787               ;;
18788             esac
18789
18790             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18791             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18792             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'
18793             ;;
18794           cxx*)
18795             # Compaq C++
18796             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18797             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'
18798
18799             runpath_var=LD_RUN_PATH
18800             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18801             hardcode_libdir_separator_CXX=:
18802
18803             # Commands to make compiler produce verbose output that lists
18804             # what "hidden" libraries, object files and flags are used when
18805             # linking a shared library.
18806             #
18807             # There doesn't appear to be a way to prevent this compiler from
18808             # explicitly linking system object files so we need to strip them
18809             # from the output so that they don't get included in the library
18810             # dependencies.
18811             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'
18812             ;;
18813           xl* | mpixl* | bgxl*)
18814             # IBM XL 8.0 on PPC, with GNU ld
18815             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18816             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18817             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18818             if test "x$supports_anon_versioning" = xyes; then
18819               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18820                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18821                 echo "local: *; };" >> $output_objdir/$libname.ver~
18822                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18823             fi
18824             ;;
18825           *)
18826             case `$CC -V 2>&1 | sed 5q` in
18827             *Sun\ C*)
18828               # Sun C++ 5.9
18829               no_undefined_flag_CXX=' -zdefs'
18830               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18831               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'
18832               hardcode_libdir_flag_spec_CXX='-R$libdir'
18833               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'
18834               compiler_needs_object_CXX=yes
18835
18836               # Not sure whether something based on
18837               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18838               # would be better.
18839               output_verbose_link_cmd='func_echo_all'
18840
18841               # Archives containing C++ object files must be created using
18842               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18843               # necessary to make sure instantiated templates are included
18844               # in the archive.
18845               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18846               ;;
18847             esac
18848             ;;
18849         esac
18850         ;;
18851
18852       lynxos*)
18853         # FIXME: insert proper C++ library support
18854         ld_shlibs_CXX=no
18855         ;;
18856
18857       m88k*)
18858         # FIXME: insert proper C++ library support
18859         ld_shlibs_CXX=no
18860         ;;
18861
18862       mvs*)
18863         case $cc_basename in
18864           cxx*)
18865             # FIXME: insert proper C++ library support
18866             ld_shlibs_CXX=no
18867             ;;
18868           *)
18869             # FIXME: insert proper C++ library support
18870             ld_shlibs_CXX=no
18871             ;;
18872         esac
18873         ;;
18874
18875       netbsd*)
18876         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18877           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18878           wlarc=
18879           hardcode_libdir_flag_spec_CXX='-R$libdir'
18880           hardcode_direct_CXX=yes
18881           hardcode_shlibpath_var_CXX=no
18882         fi
18883         # Workaround some broken pre-1.5 toolchains
18884         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18885         ;;
18886
18887       *nto* | *qnx*)
18888         ld_shlibs_CXX=yes
18889         ;;
18890
18891       openbsd2*)
18892         # C++ shared libraries are fairly broken
18893         ld_shlibs_CXX=no
18894         ;;
18895
18896       openbsd*)
18897         if test -f /usr/libexec/ld.so; then
18898           hardcode_direct_CXX=yes
18899           hardcode_shlibpath_var_CXX=no
18900           hardcode_direct_absolute_CXX=yes
18901           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18902           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18903           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18904             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18905             export_dynamic_flag_spec_CXX='${wl}-E'
18906             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18907           fi
18908           output_verbose_link_cmd=func_echo_all
18909         else
18910           ld_shlibs_CXX=no
18911         fi
18912         ;;
18913
18914       osf3* | osf4* | osf5*)
18915         case $cc_basename in
18916           KCC*)
18917             # Kuck and Associates, Inc. (KAI) C++ Compiler
18918
18919             # KCC will only create a shared library if the output file
18920             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18921             # to its proper name (with version) after linking.
18922             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'
18923
18924             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18925             hardcode_libdir_separator_CXX=:
18926
18927             # Archives containing C++ object files must be created using
18928             # the KAI C++ compiler.
18929             case $host in
18930               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18931               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18932             esac
18933             ;;
18934           RCC*)
18935             # Rational C++ 2.4.1
18936             # FIXME: insert proper C++ library support
18937             ld_shlibs_CXX=no
18938             ;;
18939           cxx*)
18940             case $host in
18941               osf3*)
18942                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18943                 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'
18944                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18945                 ;;
18946               *)
18947                 allow_undefined_flag_CXX=' -expect_unresolved \*'
18948                 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'
18949                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18950                   echo "-hidden">> $lib.exp~
18951                   $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~
18952                   $RM $lib.exp'
18953                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18954                 ;;
18955             esac
18956
18957             hardcode_libdir_separator_CXX=:
18958
18959             # Commands to make compiler produce verbose output that lists
18960             # what "hidden" libraries, object files and flags are used when
18961             # linking a shared library.
18962             #
18963             # There doesn't appear to be a way to prevent this compiler from
18964             # explicitly linking system object files so we need to strip them
18965             # from the output so that they don't get included in the library
18966             # dependencies.
18967             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"'
18968             ;;
18969           *)
18970             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18971               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18972               case $host in
18973                 osf3*)
18974                   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'
18975                   ;;
18976                 *)
18977                   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'
18978                   ;;
18979               esac
18980
18981               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18982               hardcode_libdir_separator_CXX=:
18983
18984               # Commands to make compiler produce verbose output that lists
18985               # what "hidden" libraries, object files and flags are used when
18986               # linking a shared library.
18987               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18988
18989             else
18990               # FIXME: insert proper C++ library support
18991               ld_shlibs_CXX=no
18992             fi
18993             ;;
18994         esac
18995         ;;
18996
18997       psos*)
18998         # FIXME: insert proper C++ library support
18999         ld_shlibs_CXX=no
19000         ;;
19001
19002       sunos4*)
19003         case $cc_basename in
19004           CC*)
19005             # Sun C++ 4.x
19006             # FIXME: insert proper C++ library support
19007             ld_shlibs_CXX=no
19008             ;;
19009           lcc*)
19010             # Lucid
19011             # FIXME: insert proper C++ library support
19012             ld_shlibs_CXX=no
19013             ;;
19014           *)
19015             # FIXME: insert proper C++ library support
19016             ld_shlibs_CXX=no
19017             ;;
19018         esac
19019         ;;
19020
19021       solaris*)
19022         case $cc_basename in
19023           CC*)
19024             # Sun C++ 4.2, 5.x and Centerline C++
19025             archive_cmds_need_lc_CXX=yes
19026             no_undefined_flag_CXX=' -zdefs'
19027             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19028             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19029               $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'
19030
19031             hardcode_libdir_flag_spec_CXX='-R$libdir'
19032             hardcode_shlibpath_var_CXX=no
19033             case $host_os in
19034               solaris2.[0-5] | solaris2.[0-5].*) ;;
19035               *)
19036                 # The compiler driver will combine and reorder linker options,
19037                 # but understands `-z linker_flag'.
19038                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19039                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19040                 ;;
19041             esac
19042             link_all_deplibs_CXX=yes
19043
19044             output_verbose_link_cmd='func_echo_all'
19045
19046             # Archives containing C++ object files must be created using
19047             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19048             # necessary to make sure instantiated templates are included
19049             # in the archive.
19050             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19051             ;;
19052           gcx*)
19053             # Green Hills C++ Compiler
19054             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19055
19056             # The C++ compiler must be used to create the archive.
19057             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19058             ;;
19059           *)
19060             # GNU C++ compiler with Solaris linker
19061             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19062               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19063               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19064                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19065                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19066                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19067
19068                 # Commands to make compiler produce verbose output that lists
19069                 # what "hidden" libraries, object files and flags are used when
19070                 # linking a shared library.
19071                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19072               else
19073                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19074                 # platform.
19075                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19076                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19077                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19078
19079                 # Commands to make compiler produce verbose output that lists
19080                 # what "hidden" libraries, object files and flags are used when
19081                 # linking a shared library.
19082                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19083               fi
19084
19085               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19086               case $host_os in
19087                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19088                 *)
19089                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19090                   ;;
19091               esac
19092             fi
19093             ;;
19094         esac
19095         ;;
19096
19097     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19098       no_undefined_flag_CXX='${wl}-z,text'
19099       archive_cmds_need_lc_CXX=no
19100       hardcode_shlibpath_var_CXX=no
19101       runpath_var='LD_RUN_PATH'
19102
19103       case $cc_basename in
19104         CC*)
19105           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19106           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19107           ;;
19108         *)
19109           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19110           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19111           ;;
19112       esac
19113       ;;
19114
19115       sysv5* | sco3.2v5* | sco5v6*)
19116         # Note: We can NOT use -z defs as we might desire, because we do not
19117         # link with -lc, and that would cause any symbols used from libc to
19118         # always be unresolved, which means just about no library would
19119         # ever link correctly.  If we're not using GNU ld we use -z text
19120         # though, which does catch some bad symbols but isn't as heavy-handed
19121         # as -z defs.
19122         no_undefined_flag_CXX='${wl}-z,text'
19123         allow_undefined_flag_CXX='${wl}-z,nodefs'
19124         archive_cmds_need_lc_CXX=no
19125         hardcode_shlibpath_var_CXX=no
19126         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19127         hardcode_libdir_separator_CXX=':'
19128         link_all_deplibs_CXX=yes
19129         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19130         runpath_var='LD_RUN_PATH'
19131
19132         case $cc_basename in
19133           CC*)
19134             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19135             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19136             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19137               '"$old_archive_cmds_CXX"
19138             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19139               '"$reload_cmds_CXX"
19140             ;;
19141           *)
19142             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19143             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19144             ;;
19145         esac
19146       ;;
19147
19148       tandem*)
19149         case $cc_basename in
19150           NCC*)
19151             # NonStop-UX NCC 3.20
19152             # FIXME: insert proper C++ library support
19153             ld_shlibs_CXX=no
19154             ;;
19155           *)
19156             # FIXME: insert proper C++ library support
19157             ld_shlibs_CXX=no
19158             ;;
19159         esac
19160         ;;
19161
19162       vxworks*)
19163         # FIXME: insert proper C++ library support
19164         ld_shlibs_CXX=no
19165         ;;
19166
19167       *)
19168         # FIXME: insert proper C++ library support
19169         ld_shlibs_CXX=no
19170         ;;
19171     esac
19172
19173     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19174 $as_echo "$ld_shlibs_CXX" >&6; }
19175     test "$ld_shlibs_CXX" = no && can_build_shared=no
19176
19177     GCC_CXX="$GXX"
19178     LD_CXX="$LD"
19179
19180     ## CAVEAT EMPTOR:
19181     ## There is no encapsulation within the following macros, do not change
19182     ## the running order or otherwise move them around unless you know exactly
19183     ## what you are doing...
19184     # Dependencies to place before and after the object being linked:
19185 predep_objects_CXX=
19186 postdep_objects_CXX=
19187 predeps_CXX=
19188 postdeps_CXX=
19189 compiler_lib_search_path_CXX=
19190
19191 cat > conftest.$ac_ext <<_LT_EOF
19192 class Foo
19193 {
19194 public:
19195   Foo (void) { a = 0; }
19196 private:
19197   int a;
19198 };
19199 _LT_EOF
19200
19201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19202   (eval $ac_compile) 2>&5
19203   ac_status=$?
19204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19205   test $ac_status = 0; }; then
19206   # Parse the compiler output and extract the necessary
19207   # objects, libraries and library flags.
19208
19209   # Sentinel used to keep track of whether or not we are before
19210   # the conftest object file.
19211   pre_test_object_deps_done=no
19212
19213   for p in `eval "$output_verbose_link_cmd"`; do
19214     case $p in
19215
19216     -L* | -R* | -l*)
19217        # Some compilers place space between "-{L,R}" and the path.
19218        # Remove the space.
19219        if test $p = "-L" ||
19220           test $p = "-R"; then
19221          prev=$p
19222          continue
19223        else
19224          prev=
19225        fi
19226
19227        if test "$pre_test_object_deps_done" = no; then
19228          case $p in
19229          -L* | -R*)
19230            # Internal compiler library paths should come after those
19231            # provided the user.  The postdeps already come after the
19232            # user supplied libs so there is no need to process them.
19233            if test -z "$compiler_lib_search_path_CXX"; then
19234              compiler_lib_search_path_CXX="${prev}${p}"
19235            else
19236              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19237            fi
19238            ;;
19239          # The "-l" case would never come before the object being
19240          # linked, so don't bother handling this case.
19241          esac
19242        else
19243          if test -z "$postdeps_CXX"; then
19244            postdeps_CXX="${prev}${p}"
19245          else
19246            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19247          fi
19248        fi
19249        ;;
19250
19251     *.$objext)
19252        # This assumes that the test object file only shows up
19253        # once in the compiler output.
19254        if test "$p" = "conftest.$objext"; then
19255          pre_test_object_deps_done=yes
19256          continue
19257        fi
19258
19259        if test "$pre_test_object_deps_done" = no; then
19260          if test -z "$predep_objects_CXX"; then
19261            predep_objects_CXX="$p"
19262          else
19263            predep_objects_CXX="$predep_objects_CXX $p"
19264          fi
19265        else
19266          if test -z "$postdep_objects_CXX"; then
19267            postdep_objects_CXX="$p"
19268          else
19269            postdep_objects_CXX="$postdep_objects_CXX $p"
19270          fi
19271        fi
19272        ;;
19273
19274     *) ;; # Ignore the rest.
19275
19276     esac
19277   done
19278
19279   # Clean up.
19280   rm -f a.out a.exe
19281 else
19282   echo "libtool.m4: error: problem compiling CXX test program"
19283 fi
19284
19285 $RM -f confest.$objext
19286
19287 # PORTME: override above test on systems where it is broken
19288 case $host_os in
19289 interix[3-9]*)
19290   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19291   # hack all around it, let's just trust "g++" to DTRT.
19292   predep_objects_CXX=
19293   postdep_objects_CXX=
19294   postdeps_CXX=
19295   ;;
19296
19297 linux*)
19298   case `$CC -V 2>&1 | sed 5q` in
19299   *Sun\ C*)
19300     # Sun C++ 5.9
19301
19302     # The more standards-conforming stlport4 library is
19303     # incompatible with the Cstd library. Avoid specifying
19304     # it if it's in CXXFLAGS. Ignore libCrun as
19305     # -library=stlport4 depends on it.
19306     case " $CXX $CXXFLAGS " in
19307     *" -library=stlport4 "*)
19308       solaris_use_stlport4=yes
19309       ;;
19310     esac
19311
19312     if test "$solaris_use_stlport4" != yes; then
19313       postdeps_CXX='-library=Cstd -library=Crun'
19314     fi
19315     ;;
19316   esac
19317   ;;
19318
19319 solaris*)
19320   case $cc_basename in
19321   CC*)
19322     # The more standards-conforming stlport4 library is
19323     # incompatible with the Cstd library. Avoid specifying
19324     # it if it's in CXXFLAGS. Ignore libCrun as
19325     # -library=stlport4 depends on it.
19326     case " $CXX $CXXFLAGS " in
19327     *" -library=stlport4 "*)
19328       solaris_use_stlport4=yes
19329       ;;
19330     esac
19331
19332     # Adding this requires a known-good setup of shared libraries for
19333     # Sun compiler versions before 5.6, else PIC objects from an old
19334     # archive will be linked into the output, leading to subtle bugs.
19335     if test "$solaris_use_stlport4" != yes; then
19336       postdeps_CXX='-library=Cstd -library=Crun'
19337     fi
19338     ;;
19339   esac
19340   ;;
19341 esac
19342
19343
19344 case " $postdeps_CXX " in
19345 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19346 esac
19347  compiler_lib_search_dirs_CXX=
19348 if test -n "${compiler_lib_search_path_CXX}"; then
19349  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19350 fi
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382     lt_prog_compiler_wl_CXX=
19383 lt_prog_compiler_pic_CXX=
19384 lt_prog_compiler_static_CXX=
19385
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19387 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19388
19389   # C++ specific cases for pic, static, wl, etc.
19390   if test "$GXX" = yes; then
19391     lt_prog_compiler_wl_CXX='-Wl,'
19392     lt_prog_compiler_static_CXX='-static'
19393
19394     case $host_os in
19395     aix*)
19396       # All AIX code is PIC.
19397       if test "$host_cpu" = ia64; then
19398         # AIX 5 now supports IA64 processor
19399         lt_prog_compiler_static_CXX='-Bstatic'
19400       fi
19401       ;;
19402
19403     amigaos*)
19404       case $host_cpu in
19405       powerpc)
19406             # see comment about AmigaOS4 .so support
19407             lt_prog_compiler_pic_CXX='-fPIC'
19408         ;;
19409       m68k)
19410             # FIXME: we need at least 68020 code to build shared libraries, but
19411             # adding the `-m68020' flag to GCC prevents building anything better,
19412             # like `-m68040'.
19413             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19414         ;;
19415       esac
19416       ;;
19417
19418     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19419       # PIC is the default for these OSes.
19420       ;;
19421     mingw* | cygwin* | os2* | pw32* | cegcc*)
19422       # This hack is so that the source file can tell whether it is being
19423       # built for inclusion in a dll (and should export symbols for example).
19424       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19425       # (--disable-auto-import) libraries
19426       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19427       ;;
19428     darwin* | rhapsody*)
19429       # PIC is the default on this platform
19430       # Common symbols not allowed in MH_DYLIB files
19431       lt_prog_compiler_pic_CXX='-fno-common'
19432       ;;
19433     *djgpp*)
19434       # DJGPP does not support shared libraries at all
19435       lt_prog_compiler_pic_CXX=
19436       ;;
19437     haiku*)
19438       # PIC is the default for Haiku.
19439       # The "-static" flag exists, but is broken.
19440       lt_prog_compiler_static_CXX=
19441       ;;
19442     interix[3-9]*)
19443       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19444       # Instead, we relocate shared libraries at runtime.
19445       ;;
19446     sysv4*MP*)
19447       if test -d /usr/nec; then
19448         lt_prog_compiler_pic_CXX=-Kconform_pic
19449       fi
19450       ;;
19451     hpux*)
19452       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19453       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19454       # sets the default TLS model and affects inlining.
19455       case $host_cpu in
19456       hppa*64*)
19457         ;;
19458       *)
19459         lt_prog_compiler_pic_CXX='-fPIC'
19460         ;;
19461       esac
19462       ;;
19463     *qnx* | *nto*)
19464       # QNX uses GNU C++, but need to define -shared option too, otherwise
19465       # it will coredump.
19466       lt_prog_compiler_pic_CXX='-fPIC -shared'
19467       ;;
19468     *)
19469       lt_prog_compiler_pic_CXX='-fPIC'
19470       ;;
19471     esac
19472   else
19473     case $host_os in
19474       aix[4-9]*)
19475         # All AIX code is PIC.
19476         if test "$host_cpu" = ia64; then
19477           # AIX 5 now supports IA64 processor
19478           lt_prog_compiler_static_CXX='-Bstatic'
19479         else
19480           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19481         fi
19482         ;;
19483       chorus*)
19484         case $cc_basename in
19485         cxch68*)
19486           # Green Hills C++ Compiler
19487           # _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"
19488           ;;
19489         esac
19490         ;;
19491       dgux*)
19492         case $cc_basename in
19493           ec++*)
19494             lt_prog_compiler_pic_CXX='-KPIC'
19495             ;;
19496           ghcx*)
19497             # Green Hills C++ Compiler
19498             lt_prog_compiler_pic_CXX='-pic'
19499             ;;
19500           *)
19501             ;;
19502         esac
19503         ;;
19504       freebsd* | dragonfly*)
19505         # FreeBSD uses GNU C++
19506         ;;
19507       hpux9* | hpux10* | hpux11*)
19508         case $cc_basename in
19509           CC*)
19510             lt_prog_compiler_wl_CXX='-Wl,'
19511             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19512             if test "$host_cpu" != ia64; then
19513               lt_prog_compiler_pic_CXX='+Z'
19514             fi
19515             ;;
19516           aCC*)
19517             lt_prog_compiler_wl_CXX='-Wl,'
19518             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19519             case $host_cpu in
19520             hppa*64*|ia64*)
19521               # +Z the default
19522               ;;
19523             *)
19524               lt_prog_compiler_pic_CXX='+Z'
19525               ;;
19526             esac
19527             ;;
19528           *)
19529             ;;
19530         esac
19531         ;;
19532       interix*)
19533         # This is c89, which is MS Visual C++ (no shared libs)
19534         # Anyone wants to do a port?
19535         ;;
19536       irix5* | irix6* | nonstopux*)
19537         case $cc_basename in
19538           CC*)
19539             lt_prog_compiler_wl_CXX='-Wl,'
19540             lt_prog_compiler_static_CXX='-non_shared'
19541             # CC pic flag -KPIC is the default.
19542             ;;
19543           *)
19544             ;;
19545         esac
19546         ;;
19547       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19548         case $cc_basename in
19549           KCC*)
19550             # KAI C++ Compiler
19551             lt_prog_compiler_wl_CXX='--backend -Wl,'
19552             lt_prog_compiler_pic_CXX='-fPIC'
19553             ;;
19554           ecpc* )
19555             # old Intel C++ for x86_64 which still supported -KPIC.
19556             lt_prog_compiler_wl_CXX='-Wl,'
19557             lt_prog_compiler_pic_CXX='-KPIC'
19558             lt_prog_compiler_static_CXX='-static'
19559             ;;
19560           icpc* )
19561             # Intel C++, used to be incompatible with GCC.
19562             # ICC 10 doesn't accept -KPIC any more.
19563             lt_prog_compiler_wl_CXX='-Wl,'
19564             lt_prog_compiler_pic_CXX='-fPIC'
19565             lt_prog_compiler_static_CXX='-static'
19566             ;;
19567           pgCC* | pgcpp*)
19568             # Portland Group C++ compiler
19569             lt_prog_compiler_wl_CXX='-Wl,'
19570             lt_prog_compiler_pic_CXX='-fpic'
19571             lt_prog_compiler_static_CXX='-Bstatic'
19572             ;;
19573           cxx*)
19574             # Compaq C++
19575             # Make sure the PIC flag is empty.  It appears that all Alpha
19576             # Linux and Compaq Tru64 Unix objects are PIC.
19577             lt_prog_compiler_pic_CXX=
19578             lt_prog_compiler_static_CXX='-non_shared'
19579             ;;
19580           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19581             # IBM XL 8.0, 9.0 on PPC and BlueGene
19582             lt_prog_compiler_wl_CXX='-Wl,'
19583             lt_prog_compiler_pic_CXX='-qpic'
19584             lt_prog_compiler_static_CXX='-qstaticlink'
19585             ;;
19586           *)
19587             case `$CC -V 2>&1 | sed 5q` in
19588             *Sun\ C*)
19589               # Sun C++ 5.9
19590               lt_prog_compiler_pic_CXX='-KPIC'
19591               lt_prog_compiler_static_CXX='-Bstatic'
19592               lt_prog_compiler_wl_CXX='-Qoption ld '
19593               ;;
19594             esac
19595             ;;
19596         esac
19597         ;;
19598       lynxos*)
19599         ;;
19600       m88k*)
19601         ;;
19602       mvs*)
19603         case $cc_basename in
19604           cxx*)
19605             lt_prog_compiler_pic_CXX='-W c,exportall'
19606             ;;
19607           *)
19608             ;;
19609         esac
19610         ;;
19611       netbsd*)
19612         ;;
19613       *qnx* | *nto*)
19614         # QNX uses GNU C++, but need to define -shared option too, otherwise
19615         # it will coredump.
19616         lt_prog_compiler_pic_CXX='-fPIC -shared'
19617         ;;
19618       osf3* | osf4* | osf5*)
19619         case $cc_basename in
19620           KCC*)
19621             lt_prog_compiler_wl_CXX='--backend -Wl,'
19622             ;;
19623           RCC*)
19624             # Rational C++ 2.4.1
19625             lt_prog_compiler_pic_CXX='-pic'
19626             ;;
19627           cxx*)
19628             # Digital/Compaq C++
19629             lt_prog_compiler_wl_CXX='-Wl,'
19630             # Make sure the PIC flag is empty.  It appears that all Alpha
19631             # Linux and Compaq Tru64 Unix objects are PIC.
19632             lt_prog_compiler_pic_CXX=
19633             lt_prog_compiler_static_CXX='-non_shared'
19634             ;;
19635           *)
19636             ;;
19637         esac
19638         ;;
19639       psos*)
19640         ;;
19641       solaris*)
19642         case $cc_basename in
19643           CC*)
19644             # Sun C++ 4.2, 5.x and Centerline C++
19645             lt_prog_compiler_pic_CXX='-KPIC'
19646             lt_prog_compiler_static_CXX='-Bstatic'
19647             lt_prog_compiler_wl_CXX='-Qoption ld '
19648             ;;
19649           gcx*)
19650             # Green Hills C++ Compiler
19651             lt_prog_compiler_pic_CXX='-PIC'
19652             ;;
19653           *)
19654             ;;
19655         esac
19656         ;;
19657       sunos4*)
19658         case $cc_basename in
19659           CC*)
19660             # Sun C++ 4.x
19661             lt_prog_compiler_pic_CXX='-pic'
19662             lt_prog_compiler_static_CXX='-Bstatic'
19663             ;;
19664           lcc*)
19665             # Lucid
19666             lt_prog_compiler_pic_CXX='-pic'
19667             ;;
19668           *)
19669             ;;
19670         esac
19671         ;;
19672       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19673         case $cc_basename in
19674           CC*)
19675             lt_prog_compiler_wl_CXX='-Wl,'
19676             lt_prog_compiler_pic_CXX='-KPIC'
19677             lt_prog_compiler_static_CXX='-Bstatic'
19678             ;;
19679         esac
19680         ;;
19681       tandem*)
19682         case $cc_basename in
19683           NCC*)
19684             # NonStop-UX NCC 3.20
19685             lt_prog_compiler_pic_CXX='-KPIC'
19686             ;;
19687           *)
19688             ;;
19689         esac
19690         ;;
19691       vxworks*)
19692         ;;
19693       *)
19694         lt_prog_compiler_can_build_shared_CXX=no
19695         ;;
19696     esac
19697   fi
19698
19699 case $host_os in
19700   # For platforms which do not support PIC, -DPIC is meaningless:
19701   *djgpp*)
19702     lt_prog_compiler_pic_CXX=
19703     ;;
19704   *)
19705     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19706     ;;
19707 esac
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19709 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19710
19711
19712
19713 #
19714 # Check to make sure the PIC flag actually works.
19715 #
19716 if test -n "$lt_prog_compiler_pic_CXX"; then
19717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19718 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19719 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19720   $as_echo_n "(cached) " >&6
19721 else
19722   lt_cv_prog_compiler_pic_works_CXX=no
19723    ac_outfile=conftest.$ac_objext
19724    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19725    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19726    # Insert the option either (1) after the last *FLAGS variable, or
19727    # (2) before a word containing "conftest.", or (3) at the end.
19728    # Note that $ac_compile itself does not contain backslashes and begins
19729    # with a dollar sign (not a hyphen), so the echo should work correctly.
19730    # The option is referenced via a variable to avoid confusing sed.
19731    lt_compile=`echo "$ac_compile" | $SED \
19732    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19733    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19734    -e 's:$: $lt_compiler_flag:'`
19735    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19736    (eval "$lt_compile" 2>conftest.err)
19737    ac_status=$?
19738    cat conftest.err >&5
19739    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740    if (exit $ac_status) && test -s "$ac_outfile"; then
19741      # The compiler can only warn and ignore the option if not recognized
19742      # So say no if there are warnings other than the usual output.
19743      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19744      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19745      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19746        lt_cv_prog_compiler_pic_works_CXX=yes
19747      fi
19748    fi
19749    $RM conftest*
19750
19751 fi
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19753 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19754
19755 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19756     case $lt_prog_compiler_pic_CXX in
19757      "" | " "*) ;;
19758      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19759      esac
19760 else
19761     lt_prog_compiler_pic_CXX=
19762      lt_prog_compiler_can_build_shared_CXX=no
19763 fi
19764
19765 fi
19766
19767
19768
19769 #
19770 # Check to make sure the static flag actually works.
19771 #
19772 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19774 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19775 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19776   $as_echo_n "(cached) " >&6
19777 else
19778   lt_cv_prog_compiler_static_works_CXX=no
19779    save_LDFLAGS="$LDFLAGS"
19780    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19781    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19782    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19783      # The linker can only warn and ignore the option if not recognized
19784      # So say no if there are warnings
19785      if test -s conftest.err; then
19786        # Append any errors to the config.log.
19787        cat conftest.err 1>&5
19788        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19789        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19790        if diff conftest.exp conftest.er2 >/dev/null; then
19791          lt_cv_prog_compiler_static_works_CXX=yes
19792        fi
19793      else
19794        lt_cv_prog_compiler_static_works_CXX=yes
19795      fi
19796    fi
19797    $RM -r conftest*
19798    LDFLAGS="$save_LDFLAGS"
19799
19800 fi
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19802 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19803
19804 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19805     :
19806 else
19807     lt_prog_compiler_static_CXX=
19808 fi
19809
19810
19811
19812
19813     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19814 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19815 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19816   $as_echo_n "(cached) " >&6
19817 else
19818   lt_cv_prog_compiler_c_o_CXX=no
19819    $RM -r conftest 2>/dev/null
19820    mkdir conftest
19821    cd conftest
19822    mkdir out
19823    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19824
19825    lt_compiler_flag="-o out/conftest2.$ac_objext"
19826    # Insert the option either (1) after the last *FLAGS variable, or
19827    # (2) before a word containing "conftest.", or (3) at the end.
19828    # Note that $ac_compile itself does not contain backslashes and begins
19829    # with a dollar sign (not a hyphen), so the echo should work correctly.
19830    lt_compile=`echo "$ac_compile" | $SED \
19831    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19832    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19833    -e 's:$: $lt_compiler_flag:'`
19834    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19835    (eval "$lt_compile" 2>out/conftest.err)
19836    ac_status=$?
19837    cat out/conftest.err >&5
19838    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19840    then
19841      # The compiler can only warn and ignore the option if not recognized
19842      # So say no if there are warnings
19843      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19844      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19845      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19846        lt_cv_prog_compiler_c_o_CXX=yes
19847      fi
19848    fi
19849    chmod u+w . 2>&5
19850    $RM conftest*
19851    # SGI C++ compiler will create directory out/ii_files/ for
19852    # template instantiation
19853    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19854    $RM out/* && rmdir out
19855    cd ..
19856    $RM -r conftest
19857    $RM conftest*
19858
19859 fi
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19861 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19862
19863
19864
19865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19866 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19867 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19868   $as_echo_n "(cached) " >&6
19869 else
19870   lt_cv_prog_compiler_c_o_CXX=no
19871    $RM -r conftest 2>/dev/null
19872    mkdir conftest
19873    cd conftest
19874    mkdir out
19875    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19876
19877    lt_compiler_flag="-o out/conftest2.$ac_objext"
19878    # Insert the option either (1) after the last *FLAGS variable, or
19879    # (2) before a word containing "conftest.", or (3) at the end.
19880    # Note that $ac_compile itself does not contain backslashes and begins
19881    # with a dollar sign (not a hyphen), so the echo should work correctly.
19882    lt_compile=`echo "$ac_compile" | $SED \
19883    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19884    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19885    -e 's:$: $lt_compiler_flag:'`
19886    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19887    (eval "$lt_compile" 2>out/conftest.err)
19888    ac_status=$?
19889    cat out/conftest.err >&5
19890    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19892    then
19893      # The compiler can only warn and ignore the option if not recognized
19894      # So say no if there are warnings
19895      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19896      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19897      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19898        lt_cv_prog_compiler_c_o_CXX=yes
19899      fi
19900    fi
19901    chmod u+w . 2>&5
19902    $RM conftest*
19903    # SGI C++ compiler will create directory out/ii_files/ for
19904    # template instantiation
19905    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19906    $RM out/* && rmdir out
19907    cd ..
19908    $RM -r conftest
19909    $RM conftest*
19910
19911 fi
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19913 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19914
19915
19916
19917
19918 hard_links="nottested"
19919 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19920   # do not overwrite the value of need_locks provided by the user
19921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19922 $as_echo_n "checking if we can lock with hard links... " >&6; }
19923   hard_links=yes
19924   $RM conftest*
19925   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19926   touch conftest.a
19927   ln conftest.a conftest.b 2>&5 || hard_links=no
19928   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19930 $as_echo "$hard_links" >&6; }
19931   if test "$hard_links" = no; then
19932     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19933 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19934     need_locks=warn
19935   fi
19936 else
19937   need_locks=no
19938 fi
19939
19940
19941
19942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19943 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19944
19945   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19946   case $host_os in
19947   aix[4-9]*)
19948     # If we're using GNU nm, then we don't want the "-C" option.
19949     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19950     # Also, AIX nm treats weak defined symbols like other global defined
19951     # symbols, whereas GNU nm marks them as "W".
19952     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19953       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'
19954     else
19955       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'
19956     fi
19957     ;;
19958   pw32*)
19959     export_symbols_cmds_CXX="$ltdll_cmds"
19960   ;;
19961   cygwin* | mingw* | cegcc*)
19962     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'
19963   ;;
19964   *)
19965     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19966   ;;
19967   esac
19968   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19969
19970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19971 $as_echo "$ld_shlibs_CXX" >&6; }
19972 test "$ld_shlibs_CXX" = no && can_build_shared=no
19973
19974 with_gnu_ld_CXX=$with_gnu_ld
19975
19976
19977
19978
19979
19980
19981 #
19982 # Do we need to explicitly link libc?
19983 #
19984 case "x$archive_cmds_need_lc_CXX" in
19985 x|xyes)
19986   # Assume -lc should be added
19987   archive_cmds_need_lc_CXX=yes
19988
19989   if test "$enable_shared" = yes && test "$GCC" = yes; then
19990     case $archive_cmds_CXX in
19991     *'~'*)
19992       # FIXME: we may have to deal with multi-command sequences.
19993       ;;
19994     '$CC '*)
19995       # Test whether the compiler implicitly links with -lc since on some
19996       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19997       # to ld, don't add -lc before -lgcc.
19998       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19999 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20000 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20001   $as_echo_n "(cached) " >&6
20002 else
20003   $RM conftest*
20004         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20005
20006         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20007   (eval $ac_compile) 2>&5
20008   ac_status=$?
20009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20010   test $ac_status = 0; } 2>conftest.err; then
20011           soname=conftest
20012           lib=conftest
20013           libobjs=conftest.$ac_objext
20014           deplibs=
20015           wl=$lt_prog_compiler_wl_CXX
20016           pic_flag=$lt_prog_compiler_pic_CXX
20017           compiler_flags=-v
20018           linker_flags=-v
20019           verstring=
20020           output_objdir=.
20021           libname=conftest
20022           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20023           allow_undefined_flag_CXX=
20024           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20025   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20026   ac_status=$?
20027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20028   test $ac_status = 0; }
20029           then
20030             lt_cv_archive_cmds_need_lc_CXX=no
20031           else
20032             lt_cv_archive_cmds_need_lc_CXX=yes
20033           fi
20034           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20035         else
20036           cat conftest.err 1>&5
20037         fi
20038         $RM conftest*
20039
20040 fi
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20042 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20043       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20044       ;;
20045     esac
20046   fi
20047   ;;
20048 esac
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20114 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20115
20116 library_names_spec=
20117 libname_spec='lib$name'
20118 soname_spec=
20119 shrext_cmds=".so"
20120 postinstall_cmds=
20121 postuninstall_cmds=
20122 finish_cmds=
20123 finish_eval=
20124 shlibpath_var=
20125 shlibpath_overrides_runpath=unknown
20126 version_type=none
20127 dynamic_linker="$host_os ld.so"
20128 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20129 need_lib_prefix=unknown
20130 hardcode_into_libs=no
20131
20132 # when you set need_version to no, make sure it does not cause -set_version
20133 # flags to be left without arguments
20134 need_version=unknown
20135
20136 case $host_os in
20137 aix3*)
20138   version_type=linux
20139   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20140   shlibpath_var=LIBPATH
20141
20142   # AIX 3 has no versioning support, so we append a major version to the name.
20143   soname_spec='${libname}${release}${shared_ext}$major'
20144   ;;
20145
20146 aix[4-9]*)
20147   version_type=linux
20148   need_lib_prefix=no
20149   need_version=no
20150   hardcode_into_libs=yes
20151   if test "$host_cpu" = ia64; then
20152     # AIX 5 supports IA64
20153     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20154     shlibpath_var=LD_LIBRARY_PATH
20155   else
20156     # With GCC up to 2.95.x, collect2 would create an import file
20157     # for dependence libraries.  The import file would start with
20158     # the line `#! .'.  This would cause the generated library to
20159     # depend on `.', always an invalid library.  This was fixed in
20160     # development snapshots of GCC prior to 3.0.
20161     case $host_os in
20162       aix4 | aix4.[01] | aix4.[01].*)
20163       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20164            echo ' yes '
20165            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20166         :
20167       else
20168         can_build_shared=no
20169       fi
20170       ;;
20171     esac
20172     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20173     # soname into executable. Probably we can add versioning support to
20174     # collect2, so additional links can be useful in future.
20175     if test "$aix_use_runtimelinking" = yes; then
20176       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20177       # instead of lib<name>.a to let people know that these are not
20178       # typical AIX shared libraries.
20179       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20180     else
20181       # We preserve .a as extension for shared libraries through AIX4.2
20182       # and later when we are not doing run time linking.
20183       library_names_spec='${libname}${release}.a $libname.a'
20184       soname_spec='${libname}${release}${shared_ext}$major'
20185     fi
20186     shlibpath_var=LIBPATH
20187   fi
20188   ;;
20189
20190 amigaos*)
20191   case $host_cpu in
20192   powerpc)
20193     # Since July 2007 AmigaOS4 officially supports .so libraries.
20194     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20196     ;;
20197   m68k)
20198     library_names_spec='$libname.ixlibrary $libname.a'
20199     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20200     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'
20201     ;;
20202   esac
20203   ;;
20204
20205 beos*)
20206   library_names_spec='${libname}${shared_ext}'
20207   dynamic_linker="$host_os ld.so"
20208   shlibpath_var=LIBRARY_PATH
20209   ;;
20210
20211 bsdi[45]*)
20212   version_type=linux
20213   need_version=no
20214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20215   soname_spec='${libname}${release}${shared_ext}$major'
20216   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20217   shlibpath_var=LD_LIBRARY_PATH
20218   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20219   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20220   # the default ld.so.conf also contains /usr/contrib/lib and
20221   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20222   # libtool to hard-code these into programs
20223   ;;
20224
20225 cygwin* | mingw* | pw32* | cegcc*)
20226   version_type=windows
20227   shrext_cmds=".dll"
20228   need_version=no
20229   need_lib_prefix=no
20230
20231   case $GCC,$host_os in
20232   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20233     library_names_spec='$libname.dll.a'
20234     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20235     postinstall_cmds='base_file=`basename \${file}`~
20236       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20237       dldir=$destdir/`dirname \$dlpath`~
20238       test -d \$dldir || mkdir -p \$dldir~
20239       $install_prog $dir/$dlname \$dldir/$dlname~
20240       chmod a+x \$dldir/$dlname~
20241       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20242         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20243       fi'
20244     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20245       dlpath=$dir/\$dldll~
20246        $RM \$dlpath'
20247     shlibpath_overrides_runpath=yes
20248
20249     case $host_os in
20250     cygwin*)
20251       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20252       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20253
20254       ;;
20255     mingw* | cegcc*)
20256       # MinGW DLLs use traditional 'lib' prefix
20257       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20258       ;;
20259     pw32*)
20260       # pw32 DLLs use 'pw' prefix rather than 'lib'
20261       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20262       ;;
20263     esac
20264     ;;
20265
20266   *)
20267     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20268     ;;
20269   esac
20270   dynamic_linker='Win32 ld.exe'
20271   # FIXME: first we should search . and the directory the executable is in
20272   shlibpath_var=PATH
20273   ;;
20274
20275 darwin* | rhapsody*)
20276   dynamic_linker="$host_os dyld"
20277   version_type=darwin
20278   need_lib_prefix=no
20279   need_version=no
20280   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20281   soname_spec='${libname}${release}${major}$shared_ext'
20282   shlibpath_overrides_runpath=yes
20283   shlibpath_var=DYLD_LIBRARY_PATH
20284   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20285
20286   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20287   ;;
20288
20289 dgux*)
20290   version_type=linux
20291   need_lib_prefix=no
20292   need_version=no
20293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20294   soname_spec='${libname}${release}${shared_ext}$major'
20295   shlibpath_var=LD_LIBRARY_PATH
20296   ;;
20297
20298 freebsd* | dragonfly*)
20299   # DragonFly does not have aout.  When/if they implement a new
20300   # versioning mechanism, adjust this.
20301   if test -x /usr/bin/objformat; then
20302     objformat=`/usr/bin/objformat`
20303   else
20304     case $host_os in
20305     freebsd[23].*) objformat=aout ;;
20306     *) objformat=elf ;;
20307     esac
20308   fi
20309   version_type=freebsd-$objformat
20310   case $version_type in
20311     freebsd-elf*)
20312       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20313       need_version=no
20314       need_lib_prefix=no
20315       ;;
20316     freebsd-*)
20317       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20318       need_version=yes
20319       ;;
20320   esac
20321   shlibpath_var=LD_LIBRARY_PATH
20322   case $host_os in
20323   freebsd2.*)
20324     shlibpath_overrides_runpath=yes
20325     ;;
20326   freebsd3.[01]* | freebsdelf3.[01]*)
20327     shlibpath_overrides_runpath=yes
20328     hardcode_into_libs=yes
20329     ;;
20330   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20331   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20332     shlibpath_overrides_runpath=no
20333     hardcode_into_libs=yes
20334     ;;
20335   *) # from 4.6 on, and DragonFly
20336     shlibpath_overrides_runpath=yes
20337     hardcode_into_libs=yes
20338     ;;
20339   esac
20340   ;;
20341
20342 gnu*)
20343   version_type=linux
20344   need_lib_prefix=no
20345   need_version=no
20346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20347   soname_spec='${libname}${release}${shared_ext}$major'
20348   shlibpath_var=LD_LIBRARY_PATH
20349   hardcode_into_libs=yes
20350   ;;
20351
20352 haiku*)
20353   version_type=linux
20354   need_lib_prefix=no
20355   need_version=no
20356   dynamic_linker="$host_os runtime_loader"
20357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20358   soname_spec='${libname}${release}${shared_ext}$major'
20359   shlibpath_var=LIBRARY_PATH
20360   shlibpath_overrides_runpath=yes
20361   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20362   hardcode_into_libs=yes
20363   ;;
20364
20365 hpux9* | hpux10* | hpux11*)
20366   # Give a soname corresponding to the major version so that dld.sl refuses to
20367   # link against other versions.
20368   version_type=sunos
20369   need_lib_prefix=no
20370   need_version=no
20371   case $host_cpu in
20372   ia64*)
20373     shrext_cmds='.so'
20374     hardcode_into_libs=yes
20375     dynamic_linker="$host_os dld.so"
20376     shlibpath_var=LD_LIBRARY_PATH
20377     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20378     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20379     soname_spec='${libname}${release}${shared_ext}$major'
20380     if test "X$HPUX_IA64_MODE" = X32; then
20381       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20382     else
20383       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20384     fi
20385     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20386     ;;
20387   hppa*64*)
20388     shrext_cmds='.sl'
20389     hardcode_into_libs=yes
20390     dynamic_linker="$host_os dld.sl"
20391     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20392     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20394     soname_spec='${libname}${release}${shared_ext}$major'
20395     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20396     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20397     ;;
20398   *)
20399     shrext_cmds='.sl'
20400     dynamic_linker="$host_os dld.sl"
20401     shlibpath_var=SHLIB_PATH
20402     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20404     soname_spec='${libname}${release}${shared_ext}$major'
20405     ;;
20406   esac
20407   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20408   postinstall_cmds='chmod 555 $lib'
20409   # or fails outright, so override atomically:
20410   install_override_mode=555
20411   ;;
20412
20413 interix[3-9]*)
20414   version_type=linux
20415   need_lib_prefix=no
20416   need_version=no
20417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20418   soname_spec='${libname}${release}${shared_ext}$major'
20419   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20420   shlibpath_var=LD_LIBRARY_PATH
20421   shlibpath_overrides_runpath=no
20422   hardcode_into_libs=yes
20423   ;;
20424
20425 irix5* | irix6* | nonstopux*)
20426   case $host_os in
20427     nonstopux*) version_type=nonstopux ;;
20428     *)
20429         if test "$lt_cv_prog_gnu_ld" = yes; then
20430                 version_type=linux
20431         else
20432                 version_type=irix
20433         fi ;;
20434   esac
20435   need_lib_prefix=no
20436   need_version=no
20437   soname_spec='${libname}${release}${shared_ext}$major'
20438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20439   case $host_os in
20440   irix5* | nonstopux*)
20441     libsuff= shlibsuff=
20442     ;;
20443   *)
20444     case $LD in # libtool.m4 will add one of these switches to LD
20445     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20446       libsuff= shlibsuff= libmagic=32-bit;;
20447     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20448       libsuff=32 shlibsuff=N32 libmagic=N32;;
20449     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20450       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20451     *) libsuff= shlibsuff= libmagic=never-match;;
20452     esac
20453     ;;
20454   esac
20455   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20456   shlibpath_overrides_runpath=no
20457   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20458   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20459   hardcode_into_libs=yes
20460   ;;
20461
20462 # No shared lib support for Linux oldld, aout, or coff.
20463 linux*oldld* | linux*aout* | linux*coff*)
20464   dynamic_linker=no
20465   ;;
20466
20467 # This must be Linux ELF.
20468 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20469   version_type=linux
20470   need_lib_prefix=no
20471   need_version=no
20472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20473   soname_spec='${libname}${release}${shared_ext}$major'
20474   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20475   shlibpath_var=LD_LIBRARY_PATH
20476   shlibpath_overrides_runpath=no
20477
20478   # Some binutils ld are patched to set DT_RUNPATH
20479   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20480   $as_echo_n "(cached) " >&6
20481 else
20482   lt_cv_shlibpath_overrides_runpath=no
20483     save_LDFLAGS=$LDFLAGS
20484     save_libdir=$libdir
20485     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20486          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20487     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20488 /* end confdefs.h.  */
20489
20490 int
20491 main ()
20492 {
20493
20494   ;
20495   return 0;
20496 }
20497 _ACEOF
20498 if ac_fn_cxx_try_link "$LINENO"; then :
20499   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20500   lt_cv_shlibpath_overrides_runpath=yes
20501 fi
20502 fi
20503 rm -f core conftest.err conftest.$ac_objext \
20504     conftest$ac_exeext conftest.$ac_ext
20505     LDFLAGS=$save_LDFLAGS
20506     libdir=$save_libdir
20507
20508 fi
20509
20510   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20511
20512   # This implies no fast_install, which is unacceptable.
20513   # Some rework will be needed to allow for fast_install
20514   # before this can be enabled.
20515   hardcode_into_libs=yes
20516
20517   # Append ld.so.conf contents to the search path
20518   if test -f /etc/ld.so.conf; then
20519     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' ' '`
20520     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20521   fi
20522
20523   # We used to test for /lib/ld.so.1 and disable shared libraries on
20524   # powerpc, because MkLinux only supported shared libraries with the
20525   # GNU dynamic linker.  Since this was broken with cross compilers,
20526   # most powerpc-linux boxes support dynamic linking these days and
20527   # people can always --disable-shared, the test was removed, and we
20528   # assume the GNU/Linux dynamic linker is in use.
20529   dynamic_linker='GNU/Linux ld.so'
20530   ;;
20531
20532 netbsd*)
20533   version_type=sunos
20534   need_lib_prefix=no
20535   need_version=no
20536   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20537     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20538     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20539     dynamic_linker='NetBSD (a.out) ld.so'
20540   else
20541     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20542     soname_spec='${libname}${release}${shared_ext}$major'
20543     dynamic_linker='NetBSD ld.elf_so'
20544   fi
20545   shlibpath_var=LD_LIBRARY_PATH
20546   shlibpath_overrides_runpath=yes
20547   hardcode_into_libs=yes
20548   ;;
20549
20550 newsos6)
20551   version_type=linux
20552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20553   shlibpath_var=LD_LIBRARY_PATH
20554   shlibpath_overrides_runpath=yes
20555   ;;
20556
20557 *nto* | *qnx*)
20558   version_type=qnx
20559   need_lib_prefix=no
20560   need_version=no
20561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20562   soname_spec='${libname}${release}${shared_ext}$major'
20563   shlibpath_var=LD_LIBRARY_PATH
20564   shlibpath_overrides_runpath=no
20565   hardcode_into_libs=yes
20566   dynamic_linker='ldqnx.so'
20567   ;;
20568
20569 openbsd*)
20570   version_type=sunos
20571   sys_lib_dlsearch_path_spec="/usr/lib"
20572   need_lib_prefix=no
20573   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20574   case $host_os in
20575     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20576     *)                          need_version=no  ;;
20577   esac
20578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20579   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20580   shlibpath_var=LD_LIBRARY_PATH
20581   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20582     case $host_os in
20583       openbsd2.[89] | openbsd2.[89].*)
20584         shlibpath_overrides_runpath=no
20585         ;;
20586       *)
20587         shlibpath_overrides_runpath=yes
20588         ;;
20589       esac
20590   else
20591     shlibpath_overrides_runpath=yes
20592   fi
20593   ;;
20594
20595 os2*)
20596   libname_spec='$name'
20597   shrext_cmds=".dll"
20598   need_lib_prefix=no
20599   library_names_spec='$libname${shared_ext} $libname.a'
20600   dynamic_linker='OS/2 ld.exe'
20601   shlibpath_var=LIBPATH
20602   ;;
20603
20604 osf3* | osf4* | osf5*)
20605   version_type=osf
20606   need_lib_prefix=no
20607   need_version=no
20608   soname_spec='${libname}${release}${shared_ext}$major'
20609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20610   shlibpath_var=LD_LIBRARY_PATH
20611   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20612   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20613   ;;
20614
20615 rdos*)
20616   dynamic_linker=no
20617   ;;
20618
20619 solaris*)
20620   version_type=linux
20621   need_lib_prefix=no
20622   need_version=no
20623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20624   soname_spec='${libname}${release}${shared_ext}$major'
20625   shlibpath_var=LD_LIBRARY_PATH
20626   shlibpath_overrides_runpath=yes
20627   hardcode_into_libs=yes
20628   # ldd complains unless libraries are executable
20629   postinstall_cmds='chmod +x $lib'
20630   ;;
20631
20632 sunos4*)
20633   version_type=sunos
20634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20635   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20636   shlibpath_var=LD_LIBRARY_PATH
20637   shlibpath_overrides_runpath=yes
20638   if test "$with_gnu_ld" = yes; then
20639     need_lib_prefix=no
20640   fi
20641   need_version=yes
20642   ;;
20643
20644 sysv4 | sysv4.3*)
20645   version_type=linux
20646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20647   soname_spec='${libname}${release}${shared_ext}$major'
20648   shlibpath_var=LD_LIBRARY_PATH
20649   case $host_vendor in
20650     sni)
20651       shlibpath_overrides_runpath=no
20652       need_lib_prefix=no
20653       runpath_var=LD_RUN_PATH
20654       ;;
20655     siemens)
20656       need_lib_prefix=no
20657       ;;
20658     motorola)
20659       need_lib_prefix=no
20660       need_version=no
20661       shlibpath_overrides_runpath=no
20662       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20663       ;;
20664   esac
20665   ;;
20666
20667 sysv4*MP*)
20668   if test -d /usr/nec ;then
20669     version_type=linux
20670     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20671     soname_spec='$libname${shared_ext}.$major'
20672     shlibpath_var=LD_LIBRARY_PATH
20673   fi
20674   ;;
20675
20676 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20677   version_type=freebsd-elf
20678   need_lib_prefix=no
20679   need_version=no
20680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20681   soname_spec='${libname}${release}${shared_ext}$major'
20682   shlibpath_var=LD_LIBRARY_PATH
20683   shlibpath_overrides_runpath=yes
20684   hardcode_into_libs=yes
20685   if test "$with_gnu_ld" = yes; then
20686     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20687   else
20688     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20689     case $host_os in
20690       sco3.2v5*)
20691         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20692         ;;
20693     esac
20694   fi
20695   sys_lib_dlsearch_path_spec='/usr/lib'
20696   ;;
20697
20698 tpf*)
20699   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20700   version_type=linux
20701   need_lib_prefix=no
20702   need_version=no
20703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20704   shlibpath_var=LD_LIBRARY_PATH
20705   shlibpath_overrides_runpath=no
20706   hardcode_into_libs=yes
20707   ;;
20708
20709 uts4*)
20710   version_type=linux
20711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20712   soname_spec='${libname}${release}${shared_ext}$major'
20713   shlibpath_var=LD_LIBRARY_PATH
20714   ;;
20715
20716 *)
20717   dynamic_linker=no
20718   ;;
20719 esac
20720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20721 $as_echo "$dynamic_linker" >&6; }
20722 test "$dynamic_linker" = no && can_build_shared=no
20723
20724 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20725 if test "$GCC" = yes; then
20726   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20727 fi
20728
20729 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20730   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20731 fi
20732 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20733   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20734 fi
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20774 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20775 hardcode_action_CXX=
20776 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20777    test -n "$runpath_var_CXX" ||
20778    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20779
20780   # We can hardcode non-existent directories.
20781   if test "$hardcode_direct_CXX" != no &&
20782      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20783      # have to relink, otherwise we might link with an installed library
20784      # when we should be linking with a yet-to-be-installed one
20785      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20786      test "$hardcode_minus_L_CXX" != no; then
20787     # Linking always hardcodes the temporary library directory.
20788     hardcode_action_CXX=relink
20789   else
20790     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20791     hardcode_action_CXX=immediate
20792   fi
20793 else
20794   # We cannot hardcode anything, or else we can only hardcode existing
20795   # directories.
20796   hardcode_action_CXX=unsupported
20797 fi
20798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20799 $as_echo "$hardcode_action_CXX" >&6; }
20800
20801 if test "$hardcode_action_CXX" = relink ||
20802    test "$inherit_rpath_CXX" = yes; then
20803   # Fast installation is not supported
20804   enable_fast_install=no
20805 elif test "$shlibpath_overrides_runpath" = yes ||
20806      test "$enable_shared" = no; then
20807   # Fast installation is not necessary
20808   enable_fast_install=needless
20809 fi
20810
20811
20812
20813
20814
20815
20816
20817   fi # test -n "$compiler"
20818
20819   CC=$lt_save_CC
20820   LDCXX=$LD
20821   LD=$lt_save_LD
20822   GCC=$lt_save_GCC
20823   with_gnu_ld=$lt_save_with_gnu_ld
20824   lt_cv_path_LDCXX=$lt_cv_path_LD
20825   lt_cv_path_LD=$lt_save_path_LD
20826   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20827   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20828 fi # test "$_lt_caught_CXX_error" != yes
20829
20830 ac_ext=c
20831 ac_cpp='$CPP $CPPFLAGS'
20832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851 # Only expand once:
20852
20853
20854
20855
20856
20857 # Identify the assembler which will work hand-in-glove with the newly
20858 # built GCC, so that we can examine its features.  This is the assembler
20859 # which will be driven by the driver program.
20860 #
20861 # If build != host, and we aren't building gas in-tree, we identify a
20862 # build->target assembler and hope that it will have the same features
20863 # as the host->target assembler we'll be using.
20864 gcc_cv_gas_major_version=
20865 gcc_cv_gas_minor_version=
20866 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20867
20868 if test "${gcc_cv_as+set}" = set; then :
20869
20870 else
20871
20872 if test -x "$DEFAULT_ASSEMBLER"; then
20873         gcc_cv_as="$DEFAULT_ASSEMBLER"
20874 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20875      && test -f ../gas/Makefile \
20876      && test x$build = x$host; then
20877         gcc_cv_as=../gas/as-new$build_exeext
20878 elif test -x as$build_exeext; then
20879         # Build using assembler in the current directory.
20880         gcc_cv_as=./as$build_exeext
20881 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
20882         gcc_cv_as="$AS_FOR_TARGET"
20883 else
20884         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20885 set dummy $AS_FOR_TARGET; ac_word=$2
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20887 $as_echo_n "checking for $ac_word... " >&6; }
20888 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20889   $as_echo_n "(cached) " >&6
20890 else
20891   case $gcc_cv_as in
20892   [\\/]* | ?:[\\/]*)
20893   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20894   ;;
20895   *)
20896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20897 for as_dir in $PATH
20898 do
20899   IFS=$as_save_IFS
20900   test -z "$as_dir" && as_dir=.
20901     for ac_exec_ext in '' $ac_executable_extensions; do
20902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20903     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20905     break 2
20906   fi
20907 done
20908   done
20909 IFS=$as_save_IFS
20910
20911   ;;
20912 esac
20913 fi
20914 gcc_cv_as=$ac_cv_path_gcc_cv_as
20915 if test -n "$gcc_cv_as"; then
20916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20917 $as_echo "$gcc_cv_as" >&6; }
20918 else
20919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20920 $as_echo "no" >&6; }
20921 fi
20922
20923
20924 fi
20925 fi
20926
20927 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20928
20929 case "$ORIGINAL_AS_FOR_TARGET" in
20930   ./as | ./as$build_exeext) ;;
20931   *) ac_config_files="$ac_config_files as:exec-tool.in"
20932  ;;
20933 esac
20934
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20936 $as_echo_n "checking what assembler to use... " >&6; }
20937 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20938   # Single tree build which includes gas.  We want to prefer it
20939   # over whatever linker top-level may have detected, since
20940   # we'll use what we're building after installation anyway.
20941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20942 $as_echo "newly built gas" >&6; }
20943   in_tree_gas=yes
20944   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20945 for f in $gcc_cv_as_bfd_srcdir/configure \
20946          $gcc_cv_as_gas_srcdir/configure \
20947          $gcc_cv_as_gas_srcdir/configure.in \
20948          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20949   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20950   if test x$gcc_cv_gas_version != x; then
20951     break
20952   fi
20953 done
20954 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20955 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20956 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20957 case $gcc_cv_gas_patch_version in
20958   "") gcc_cv_gas_patch_version="0" ;;
20959 esac
20960 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20961                             + $gcc_cv_gas_minor_version \) \* 1000 \
20962                             + $gcc_cv_gas_patch_version`
20963
20964   in_tree_gas_is_elf=no
20965   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20966      || (grep 'obj_format = multi' ../gas/Makefile \
20967          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20968   then
20969     in_tree_gas_is_elf=yes
20970   fi
20971 else
20972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20973 $as_echo "$gcc_cv_as" >&6; }
20974   in_tree_gas=no
20975 fi
20976
20977 # Identify the linker which will work hand-in-glove with the newly
20978 # built GCC, so that we can examine its features.  This is the linker
20979 # which will be driven by the driver program.
20980 #
20981 # If build != host, and we aren't building gas in-tree, we identify a
20982 # build->target linker and hope that it will have the same features
20983 # as the host->target linker we'll be using.
20984 gcc_cv_gld_major_version=
20985 gcc_cv_gld_minor_version=
20986 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20987 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20988
20989 if test "${gcc_cv_ld+set}" = set; then :
20990
20991 else
20992
20993 if test -x "$DEFAULT_LINKER"; then
20994         gcc_cv_ld="$DEFAULT_LINKER"
20995 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20996      && test -f ../ld/Makefile \
20997      && test x$build = x$host; then
20998         gcc_cv_ld=../ld/ld-new$build_exeext
20999 elif test -x collect-ld$build_exeext; then
21000         # Build using linker in the current directory.
21001         gcc_cv_ld=./collect-ld$build_exeext
21002 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21003         gcc_cv_ld="$LD_FOR_TARGET"
21004 else
21005         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21006 set dummy $LD_FOR_TARGET; ac_word=$2
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21008 $as_echo_n "checking for $ac_word... " >&6; }
21009 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21010   $as_echo_n "(cached) " >&6
21011 else
21012   case $gcc_cv_ld in
21013   [\\/]* | ?:[\\/]*)
21014   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21015   ;;
21016   *)
21017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21018 for as_dir in $PATH
21019 do
21020   IFS=$as_save_IFS
21021   test -z "$as_dir" && as_dir=.
21022     for ac_exec_ext in '' $ac_executable_extensions; do
21023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21024     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21026     break 2
21027   fi
21028 done
21029   done
21030 IFS=$as_save_IFS
21031
21032   ;;
21033 esac
21034 fi
21035 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21036 if test -n "$gcc_cv_ld"; then
21037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21038 $as_echo "$gcc_cv_ld" >&6; }
21039 else
21040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21041 $as_echo "no" >&6; }
21042 fi
21043
21044
21045 fi
21046 fi
21047
21048 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21049 PLUGIN_LD=`basename $gcc_cv_ld`
21050
21051 # Check whether --with-plugin-ld was given.
21052 if test "${with_plugin_ld+set}" = set; then :
21053   withval=$with_plugin_ld; if test x"$withval" != x; then
21054    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21055    PLUGIN_LD="$withval"
21056  fi
21057 fi
21058
21059
21060
21061 cat >>confdefs.h <<_ACEOF
21062 #define PLUGIN_LD "$PLUGIN_LD"
21063 _ACEOF
21064
21065
21066 # Check to see if we are using gold instead of ld
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21068 $as_echo_n "checking whether we are using gold... " >&6; }
21069 ld_is_gold=no
21070 if test x$gcc_cv_ld != x; then
21071   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21072      | grep "GNU gold" > /dev/null; then
21073     ld_is_gold=yes
21074   fi
21075 fi
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21077 $as_echo "$ld_is_gold" >&6; }
21078
21079 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21080
21081 case "$ORIGINAL_LD_FOR_TARGET" in
21082   ./collect-ld | ./collect-ld$build_exeext) ;;
21083   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21084  ;;
21085 esac
21086
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21088 $as_echo_n "checking what linker to use... " >&6; }
21089 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
21090         # Single tree build which includes ld.  We want to prefer it
21091         # over whatever linker top-level may have detected, since
21092         # we'll use what we're building after installation anyway.
21093         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21094 $as_echo "newly built ld" >&6; }
21095         in_tree_ld=yes
21096         in_tree_ld_is_elf=no
21097         if (grep 'EMUL = .*elf' ../ld/Makefile \
21098             || grep 'EMUL = .*linux' ../ld/Makefile \
21099             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21100           in_tree_ld_is_elf=yes
21101         fi
21102         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
21103         do
21104                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21105                 if test x$gcc_cv_gld_version != x; then
21106                         break
21107                 fi
21108         done
21109         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21110         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21111 else
21112         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21113 $as_echo "$gcc_cv_ld" >&6; }
21114         in_tree_ld=no
21115 fi
21116
21117 # Figure out what nm we will be using.
21118 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21119 if test "${gcc_cv_nm+set}" = set; then :
21120
21121 else
21122
21123 if test -f $gcc_cv_binutils_srcdir/configure.in \
21124      && test -f ../binutils/Makefile \
21125      && test x$build = x$host; then
21126         gcc_cv_nm=../binutils/nm-new$build_exeext
21127 elif test -x nm$build_exeext; then
21128         gcc_cv_nm=./nm$build_exeext
21129 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21130         gcc_cv_nm="$NM_FOR_TARGET"
21131 else
21132         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21133 set dummy $NM_FOR_TARGET; ac_word=$2
21134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21135 $as_echo_n "checking for $ac_word... " >&6; }
21136 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21137   $as_echo_n "(cached) " >&6
21138 else
21139   case $gcc_cv_nm in
21140   [\\/]* | ?:[\\/]*)
21141   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21142   ;;
21143   *)
21144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21145 for as_dir in $PATH
21146 do
21147   IFS=$as_save_IFS
21148   test -z "$as_dir" && as_dir=.
21149     for ac_exec_ext in '' $ac_executable_extensions; do
21150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21151     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21153     break 2
21154   fi
21155 done
21156   done
21157 IFS=$as_save_IFS
21158
21159   ;;
21160 esac
21161 fi
21162 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21163 if test -n "$gcc_cv_nm"; then
21164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21165 $as_echo "$gcc_cv_nm" >&6; }
21166 else
21167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21168 $as_echo "no" >&6; }
21169 fi
21170
21171
21172 fi
21173 fi
21174
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21176 $as_echo_n "checking what nm to use... " >&6; }
21177 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21178         # Single tree build which includes binutils.
21179         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21180 $as_echo "newly built nm" >&6; }
21181         in_tree_nm=yes
21182 else
21183         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21184 $as_echo "$gcc_cv_nm" >&6; }
21185         in_tree_nm=no
21186 fi
21187
21188 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21189
21190 case "$ORIGINAL_NM_FOR_TARGET" in
21191   ./nm | ./nm$build_exeext) ;;
21192   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21193  ;;
21194 esac
21195
21196
21197 # Figure out what objdump we will be using.
21198 if test "${gcc_cv_objdump+set}" = set; then :
21199
21200 else
21201
21202 if test -f $gcc_cv_binutils_srcdir/configure.in \
21203      && test -f ../binutils/Makefile \
21204      && test x$build = x$host; then
21205         # Single tree build which includes binutils.
21206         gcc_cv_objdump=../binutils/objdump$build_exeext
21207 elif test -x objdump$build_exeext; then
21208         gcc_cv_objdump=./objdump$build_exeext
21209 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21210         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21211 else
21212         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21213 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21215 $as_echo_n "checking for $ac_word... " >&6; }
21216 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21217   $as_echo_n "(cached) " >&6
21218 else
21219   case $gcc_cv_objdump in
21220   [\\/]* | ?:[\\/]*)
21221   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21222   ;;
21223   *)
21224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21225 for as_dir in $PATH
21226 do
21227   IFS=$as_save_IFS
21228   test -z "$as_dir" && as_dir=.
21229     for ac_exec_ext in '' $ac_executable_extensions; do
21230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21231     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21233     break 2
21234   fi
21235 done
21236   done
21237 IFS=$as_save_IFS
21238
21239   ;;
21240 esac
21241 fi
21242 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21243 if test -n "$gcc_cv_objdump"; then
21244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21245 $as_echo "$gcc_cv_objdump" >&6; }
21246 else
21247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21248 $as_echo "no" >&6; }
21249 fi
21250
21251
21252 fi
21253 fi
21254
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21256 $as_echo_n "checking what objdump to use... " >&6; }
21257 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21258         # Single tree build which includes binutils.
21259         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21260 $as_echo "newly built objdump" >&6; }
21261 elif test x$gcc_cv_objdump = x; then
21262         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21263 $as_echo "not found" >&6; }
21264 else
21265         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21266 $as_echo "$gcc_cv_objdump" >&6; }
21267 fi
21268
21269 # Figure out what readelf we will be using.
21270 if test "${gcc_cv_readelf+set}" = set; then :
21271
21272 else
21273
21274 if test -f $gcc_cv_binutils_srcdir/configure.in \
21275      && test -f ../binutils/Makefile \
21276      && test x$build = x$host; then
21277         # Single tree build which includes binutils.
21278         gcc_cv_readelf=../binutils/readelf$build_exeext
21279 elif test -x readelf$build_exeext; then
21280         gcc_cv_readelf=./readelf$build_exeext
21281 else
21282         # Extract the first word of "readelf", so it can be a program name with args.
21283 set dummy readelf; ac_word=$2
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21285 $as_echo_n "checking for $ac_word... " >&6; }
21286 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21287   $as_echo_n "(cached) " >&6
21288 else
21289   case $gcc_cv_readelf in
21290   [\\/]* | ?:[\\/]*)
21291   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21292   ;;
21293   *)
21294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21295 for as_dir in $PATH
21296 do
21297   IFS=$as_save_IFS
21298   test -z "$as_dir" && as_dir=.
21299     for ac_exec_ext in '' $ac_executable_extensions; do
21300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21301     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21303     break 2
21304   fi
21305 done
21306   done
21307 IFS=$as_save_IFS
21308
21309   ;;
21310 esac
21311 fi
21312 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21313 if test -n "$gcc_cv_readelf"; then
21314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21315 $as_echo "$gcc_cv_readelf" >&6; }
21316 else
21317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21318 $as_echo "no" >&6; }
21319 fi
21320
21321
21322 fi
21323 fi
21324
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21326 $as_echo_n "checking what readelf to use... " >&6; }
21327 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21328         # Single tree build which includes binutils.
21329         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21330 $as_echo "newly built readelf" >&6; }
21331 elif test x$gcc_cv_readelf = x; then
21332         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21333 $as_echo "not found" >&6; }
21334 else
21335         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21336 $as_echo "$gcc_cv_readelf" >&6; }
21337 fi
21338
21339 # Figure out what assembler alignment features are present.
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21341 $as_echo_n "checking assembler flags... " >&6; }
21342 if test "${gcc_cv_as_flags+set}" = set; then :
21343   $as_echo_n "(cached) " >&6
21344 else
21345    case "$target" in
21346   i[34567]86-*-linux*)
21347         gcc_cv_as_flags="--32"
21348     ;;
21349   powerpc*-*-darwin*)
21350         gcc_cv_as_flags="-arch ppc"
21351     ;;
21352   *)
21353     gcc_cv_as_flags=" "
21354     ;;
21355   esac
21356 fi
21357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21358 $as_echo "$gcc_cv_as_flags" >&6; }
21359
21360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21361 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21362 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21363   $as_echo_n "(cached) " >&6
21364 else
21365   gcc_cv_as_balign_and_p2align=no
21366     if test $in_tree_gas = yes; then
21367     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21368   then gcc_cv_as_balign_and_p2align=yes
21369 fi
21370   elif test x$gcc_cv_as != x; then
21371     echo '.balign 4
21372 .p2align 2' > conftest.s
21373     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21374   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21375   (eval $ac_try) 2>&5
21376   ac_status=$?
21377   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21378   test $ac_status = 0; }; }
21379     then
21380         gcc_cv_as_balign_and_p2align=yes
21381     else
21382       echo "configure: failed program was" >&5
21383       cat conftest.s >&5
21384     fi
21385     rm -f conftest.o conftest.s
21386   fi
21387 fi
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21389 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21390 if test $gcc_cv_as_balign_and_p2align = yes; then
21391
21392 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21393
21394 fi
21395
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21397 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21398 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21399   $as_echo_n "(cached) " >&6
21400 else
21401   gcc_cv_as_max_skip_p2align=no
21402     if test $in_tree_gas = yes; then
21403     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21404   then gcc_cv_as_max_skip_p2align=yes
21405 fi
21406   elif test x$gcc_cv_as != x; then
21407     echo '.p2align 4,,7' > conftest.s
21408     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21409   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21410   (eval $ac_try) 2>&5
21411   ac_status=$?
21412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21413   test $ac_status = 0; }; }
21414     then
21415         gcc_cv_as_max_skip_p2align=yes
21416     else
21417       echo "configure: failed program was" >&5
21418       cat conftest.s >&5
21419     fi
21420     rm -f conftest.o conftest.s
21421   fi
21422 fi
21423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21424 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21425 if test $gcc_cv_as_max_skip_p2align = yes; then
21426
21427 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21428
21429 fi
21430
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21432 $as_echo_n "checking assembler for .literal16... " >&6; }
21433 if test "${gcc_cv_as_literal16+set}" = set; then :
21434   $as_echo_n "(cached) " >&6
21435 else
21436   gcc_cv_as_literal16=no
21437     if test $in_tree_gas = yes; then
21438     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21439   then gcc_cv_as_literal16=yes
21440 fi
21441   elif test x$gcc_cv_as != x; then
21442     echo '.literal16' > conftest.s
21443     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21444   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21445   (eval $ac_try) 2>&5
21446   ac_status=$?
21447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21448   test $ac_status = 0; }; }
21449     then
21450         gcc_cv_as_literal16=yes
21451     else
21452       echo "configure: failed program was" >&5
21453       cat conftest.s >&5
21454     fi
21455     rm -f conftest.o conftest.s
21456   fi
21457 fi
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21459 $as_echo "$gcc_cv_as_literal16" >&6; }
21460 if test $gcc_cv_as_literal16 = yes; then
21461
21462 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21463
21464 fi
21465
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21467 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21468 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21469   $as_echo_n "(cached) " >&6
21470 else
21471   gcc_cv_as_subsection_m1=no
21472     if test $in_tree_gas = yes; then
21473     if test $in_tree_gas_is_elf = yes \
21474   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21475   then gcc_cv_as_subsection_m1=yes
21476 fi
21477   elif test x$gcc_cv_as != x; then
21478     echo 'conftest_label1: .word 0
21479 .subsection -1
21480 conftest_label2: .word 0
21481 .previous' > conftest.s
21482     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21483   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21484   (eval $ac_try) 2>&5
21485   ac_status=$?
21486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21487   test $ac_status = 0; }; }
21488     then
21489         if test x$gcc_cv_nm != x; then
21490     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21491     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21492     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21493     then :
21494     else gcc_cv_as_subsection_m1=yes
21495     fi
21496     rm -f conftest.nm1 conftest.nm2
21497   fi
21498     else
21499       echo "configure: failed program was" >&5
21500       cat conftest.s >&5
21501     fi
21502     rm -f conftest.o conftest.s
21503   fi
21504 fi
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21506 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21507 if test $gcc_cv_as_subsection_m1 = yes; then
21508
21509 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21510
21511 fi
21512
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21514 $as_echo_n "checking assembler for .weak... " >&6; }
21515 if test "${gcc_cv_as_weak+set}" = set; then :
21516   $as_echo_n "(cached) " >&6
21517 else
21518   gcc_cv_as_weak=no
21519     if test $in_tree_gas = yes; then
21520     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21521   then gcc_cv_as_weak=yes
21522 fi
21523   elif test x$gcc_cv_as != x; then
21524     echo '      .weak foobar' > conftest.s
21525     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21526   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21527   (eval $ac_try) 2>&5
21528   ac_status=$?
21529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21530   test $ac_status = 0; }; }
21531     then
21532         gcc_cv_as_weak=yes
21533     else
21534       echo "configure: failed program was" >&5
21535       cat conftest.s >&5
21536     fi
21537     rm -f conftest.o conftest.s
21538   fi
21539 fi
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21541 $as_echo "$gcc_cv_as_weak" >&6; }
21542 if test $gcc_cv_as_weak = yes; then
21543
21544 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21545
21546 fi
21547
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21549 $as_echo_n "checking assembler for .weakref... " >&6; }
21550 if test "${gcc_cv_as_weakref+set}" = set; then :
21551   $as_echo_n "(cached) " >&6
21552 else
21553   gcc_cv_as_weakref=no
21554     if test $in_tree_gas = yes; then
21555     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21556   then gcc_cv_as_weakref=yes
21557 fi
21558   elif test x$gcc_cv_as != x; then
21559     echo '      .weakref foobar, barfnot' > conftest.s
21560     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21561   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21562   (eval $ac_try) 2>&5
21563   ac_status=$?
21564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21565   test $ac_status = 0; }; }
21566     then
21567         gcc_cv_as_weakref=yes
21568     else
21569       echo "configure: failed program was" >&5
21570       cat conftest.s >&5
21571     fi
21572     rm -f conftest.o conftest.s
21573   fi
21574 fi
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21576 $as_echo "$gcc_cv_as_weakref" >&6; }
21577 if test $gcc_cv_as_weakref = yes; then
21578
21579 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21580
21581 fi
21582
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21584 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21585 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21586   $as_echo_n "(cached) " >&6
21587 else
21588   gcc_cv_as_nsubspa_comdat=no
21589     if test $in_tree_gas = yes; then
21590     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21591   then gcc_cv_as_nsubspa_comdat=yes
21592 fi
21593   elif test x$gcc_cv_as != x; then
21594     echo '      .SPACE $TEXT$
21595         .NSUBSPA $CODE$,COMDAT' > conftest.s
21596     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21597   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21598   (eval $ac_try) 2>&5
21599   ac_status=$?
21600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21601   test $ac_status = 0; }; }
21602     then
21603         gcc_cv_as_nsubspa_comdat=yes
21604     else
21605       echo "configure: failed program was" >&5
21606       cat conftest.s >&5
21607     fi
21608     rm -f conftest.o conftest.s
21609   fi
21610 fi
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21612 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21613 if test $gcc_cv_as_nsubspa_comdat = yes; then
21614
21615 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21616
21617 fi
21618
21619 # .hidden needs to be supported in both the assembler and the linker,
21620 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21621 # This is irritatingly difficult to feature test for; we have to check the
21622 # date string after the version number.  If we've got an in-tree
21623 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21624 # to be safe.
21625 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21627 $as_echo_n "checking assembler for .hidden... " >&6; }
21628 if test "${gcc_cv_as_hidden+set}" = set; then :
21629   $as_echo_n "(cached) " >&6
21630 else
21631   gcc_cv_as_hidden=no
21632     if test $in_tree_gas = yes; then
21633     if test $in_tree_gas_is_elf = yes \
21634   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21635   then gcc_cv_as_hidden=yes
21636 fi
21637   elif test x$gcc_cv_as != x; then
21638     echo '      .hidden foobar
21639 foobar:' > conftest.s
21640     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21641   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21642   (eval $ac_try) 2>&5
21643   ac_status=$?
21644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21645   test $ac_status = 0; }; }
21646     then
21647
21648 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21649 # STV_HIDDEN, so disable .hidden support if so.
21650 case "${target}" in
21651   i?86-*-solaris2*)
21652     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21653       cat > conftest.s <<EOF
21654 .globl hidden
21655         .hidden hidden
21656 hidden:
21657 .globl default
21658         .set    default,hidden
21659 EOF
21660       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21661         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21662         grep '\.hidden default' > /dev/null; then
21663         gcc_cv_as_hidden=no
21664       else
21665         gcc_cv_as_hidden=yes
21666       fi
21667     else
21668       # Assume bug is present if objdump is missing.
21669       gcc_cv_as_hidden=no
21670     fi
21671     ;;
21672   *)
21673     gcc_cv_as_hidden=yes
21674     ;;
21675 esac
21676     else
21677       echo "configure: failed program was" >&5
21678       cat conftest.s >&5
21679     fi
21680     rm -f conftest.o conftest.s
21681   fi
21682 fi
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21684 $as_echo "$gcc_cv_as_hidden" >&6; }
21685
21686
21687 # gnu_indirect_function type is an extension proposed at
21688 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21689 # selection of function implementation
21690 # Check whether --enable-gnu-indirect-function was given.
21691 if test "${enable_gnu_indirect_function+set}" = set; then :
21692   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21693     yes | no) ;;
21694     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21695 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21696   esac
21697 else
21698   enable_gnu_indirect_function="$default_gnu_indirect_function"
21699 fi
21700
21701 if test x$enable_gnu_indirect_function = xyes; then
21702
21703 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21704
21705 fi
21706
21707 if test $in_tree_ld != yes ; then
21708   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21709   if test x"$ld_is_gold" = xyes; then
21710     gcc_cv_ld_hidden=yes
21711   elif echo "$ld_ver" | grep GNU > /dev/null; then
21712     ld_vers=`echo $ld_ver | sed -n \
21713         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21714     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'`
21715     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21716     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21717     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21718   else
21719     case "${target}" in
21720       *-*-solaris2*)
21721         #
21722         # Solaris 2 ld -V output looks like this for a regular version:
21723         #
21724         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21725         #
21726         # but test versions add stuff at the end:
21727         #
21728         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21729         #
21730         ld_ver=`$gcc_cv_ld -V 2>&1`
21731         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21732           ld_vers=`echo $ld_ver | sed -n \
21733             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21734           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21735           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21736         fi
21737         ;;
21738     esac
21739   fi
21740 fi
21741
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21743 $as_echo_n "checking linker for .hidden support... " >&6; }
21744 if test "${gcc_cv_ld_hidden+set}" = set; then :
21745   $as_echo_n "(cached) " >&6
21746 else
21747   if test $in_tree_ld = yes ; then
21748   gcc_cv_ld_hidden=no
21749   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 \
21750      && test $in_tree_ld_is_elf = yes; then
21751      gcc_cv_ld_hidden=yes
21752   fi
21753 else
21754   gcc_cv_ld_hidden=yes
21755   if echo "$ld_ver" | grep GNU > /dev/null; then
21756     if test 0"$ld_date" -lt 20020404; then
21757       if test -n "$ld_date"; then
21758         # If there was date string, but was earlier than 2002-04-04, fail
21759         gcc_cv_ld_hidden=no
21760       elif test -z "$ld_vers"; then
21761         # If there was no date string nor ld version number, something is wrong
21762         gcc_cv_ld_hidden=no
21763       else
21764         test -z "$ld_vers_patch" && ld_vers_patch=0
21765         if test "$ld_vers_major" -lt 2; then
21766           gcc_cv_ld_hidden=no
21767         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21768           gcc_cv_ld_hidden="no"
21769         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21770           gcc_cv_ld_hidden=no
21771         fi
21772       fi
21773     fi
21774   else
21775     case "${target}" in
21776       hppa64*-*-hpux* | ia64*-*-hpux*)
21777         gcc_cv_ld_hidden=yes
21778         ;;
21779       *-*-solaris2.8*)
21780         # .hidden support was backported to Solaris 8, starting with ld
21781         # version 1.276.
21782         if test "$ld_vers_minor" -ge 276; then
21783           gcc_cv_ld_hidden=yes
21784         else
21785           gcc_cv_ld_hidden=no
21786         fi
21787         ;;
21788       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21789         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21790         # .symbolic was only added in Solaris 9 12/02.
21791         gcc_cv_ld_hidden=yes
21792         ;;
21793       *)
21794         gcc_cv_ld_hidden=no
21795         ;;
21796     esac
21797   fi
21798 fi
21799 fi
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21801 $as_echo "$gcc_cv_ld_hidden" >&6; }
21802 libgcc_visibility=no
21803
21804
21805 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21806   libgcc_visibility=yes
21807
21808 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21809
21810 fi
21811
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21813 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21814 gcc_cv_ld_ro_rw_mix=unknown
21815 if test $in_tree_ld = yes ; then
21816   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 \
21817      && test $in_tree_ld_is_elf = yes; then
21818     gcc_cv_ld_ro_rw_mix=read-write
21819   fi
21820 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21821   echo '.section myfoosect, "a"' > conftest1.s
21822   echo '.section myfoosect, "aw"' > conftest2.s
21823   echo '.byte 1' >> conftest2.s
21824   echo '.section myfoosect, "a"' > conftest3.s
21825   echo '.byte 0' >> conftest3.s
21826   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21827      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21828      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21829      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21830         conftest2.o conftest3.o > /dev/null 2>&1; then
21831     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21832                          | sed -e '/myfoosect/!d' -e N`
21833     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21834       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21835         gcc_cv_ld_ro_rw_mix=read-only
21836       else
21837         gcc_cv_ld_ro_rw_mix=read-write
21838       fi
21839     fi
21840   fi
21841   rm -f conftest.* conftest[123].*
21842 fi
21843 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21844
21845 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21846
21847 fi
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21849 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21850
21851 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21853 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21854 if test "${gcc_cv_as_leb128+set}" = set; then :
21855   $as_echo_n "(cached) " >&6
21856 else
21857   gcc_cv_as_leb128=no
21858     if test $in_tree_gas = yes; then
21859     if test $in_tree_gas_is_elf = yes \
21860   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21861   then gcc_cv_as_leb128=yes
21862 fi
21863   elif test x$gcc_cv_as != x; then
21864     echo '      .data
21865         .uleb128 L2 - L1
21866 L1:
21867         .uleb128 1280
21868         .sleb128 -1010
21869 L2:' > conftest.s
21870     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21871   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21872   (eval $ac_try) 2>&5
21873   ac_status=$?
21874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21875   test $ac_status = 0; }; }
21876     then
21877         # GAS versions before 2.11 do not support uleb128,
21878   # despite appearing to.
21879   # ??? There exists an elf-specific test that will crash
21880   # the assembler.  Perhaps it's better to figure out whether
21881   # arbitrary sections are supported and try the test.
21882   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21883   if echo "$as_ver" | grep GNU > /dev/null; then
21884     as_vers=`echo $as_ver | sed -n \
21885         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21886     as_major=`expr "$as_vers" : '\([0-9]*\)'`
21887     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21888     if test $as_major -eq 2 && test $as_minor -lt 11
21889     then :
21890     else gcc_cv_as_leb128=yes
21891     fi
21892   fi
21893     else
21894       echo "configure: failed program was" >&5
21895       cat conftest.s >&5
21896     fi
21897     rm -f conftest.o conftest.s
21898   fi
21899 fi
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21901 $as_echo "$gcc_cv_as_leb128" >&6; }
21902 if test $gcc_cv_as_leb128 = yes; then
21903
21904 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21905
21906 fi
21907
21908 # Check if we have assembler support for unwind directives.
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21910 $as_echo_n "checking assembler for cfi directives... " >&6; }
21911 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21912   $as_echo_n "(cached) " >&6
21913 else
21914   gcc_cv_as_cfi_directive=no
21915   if test x$gcc_cv_as != x; then
21916     echo '      .text
21917         .cfi_startproc
21918         .cfi_offset 0, 0
21919         .cfi_same_value 1
21920         .cfi_def_cfa 1, 2
21921         .cfi_escape 1, 2, 3, 4, 5
21922         .cfi_endproc' > conftest.s
21923     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21924   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21925   (eval $ac_try) 2>&5
21926   ac_status=$?
21927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21928   test $ac_status = 0; }; }
21929     then
21930         case "$target" in
21931   *-*-solaris*)
21932     # If the linker used on Solaris (like Sun ld) isn't capable of merging
21933     # read-only and read-write sections, we need to make sure that the
21934     # assembler used emits read-write .eh_frame sections.
21935     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21936       if test "x$gcc_cv_objdump" != x; then
21937         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21938                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21939           gcc_cv_as_cfi_directive=no
21940         else
21941           case "$target" in
21942             i?86-*-solaris2.1[0-9]*)
21943               # On Solaris/x86, make sure that GCC and gas agree on using
21944               # read-only .eh_frame sections for 64-bit.
21945               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21946                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21947                         sed -e /.eh_frame/!d -e N | \
21948                         grep READONLY > /dev/null; then
21949                 gcc_cv_as_cfi_directive=yes
21950               else
21951                 gcc_cv_as_cfi_directive=no
21952               fi
21953               ;;
21954             *)
21955               gcc_cv_as_cfi_directive=yes
21956               ;;
21957           esac
21958         fi
21959       else
21960         # no objdump, err on the side of caution
21961         gcc_cv_as_cfi_directive=no
21962       fi
21963     else
21964       gcc_cv_as_cfi_directive=yes
21965     fi
21966     ;;
21967   *-*-*)
21968     gcc_cv_as_cfi_directive=yes
21969     ;;
21970 esac
21971     else
21972       echo "configure: failed program was" >&5
21973       cat conftest.s >&5
21974     fi
21975     rm -f conftest.o conftest.s
21976   fi
21977 fi
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21979 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21980
21981 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21983 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21984 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21985   $as_echo_n "(cached) " >&6
21986 else
21987   gcc_cv_as_cfi_advance_working=no
21988   if test x$gcc_cv_as != x; then
21989     echo '      .text
21990         .cfi_startproc
21991         .cfi_adjust_cfa_offset 64
21992         .skip 75040, 0
21993         .cfi_adjust_cfa_offset 128
21994         .cfi_endproc' > conftest.s
21995     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21996   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21997   (eval $ac_try) 2>&5
21998   ac_status=$?
21999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22000   test $ac_status = 0; }; }
22001     then
22002
22003 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22004     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
22005    gcc_cv_as_cfi_advance_working=yes
22006 fi
22007
22008     else
22009       echo "configure: failed program was" >&5
22010       cat conftest.s >&5
22011     fi
22012     rm -f conftest.o conftest.s
22013   fi
22014 fi
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22016 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22017
22018 else
22019   # no objdump, err on the side of caution
22020   gcc_cv_as_cfi_advance_working=no
22021 fi
22022
22023
22024 cat >>confdefs.h <<_ACEOF
22025 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22026        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22027 _ACEOF
22028
22029
22030
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22032 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22033 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22034   $as_echo_n "(cached) " >&6
22035 else
22036   gcc_cv_as_cfi_personality_directive=no
22037   if test x$gcc_cv_as != x; then
22038     echo '      .text
22039         .cfi_startproc
22040         .cfi_personality 0, symbol
22041         .cfi_endproc' > conftest.s
22042     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22043   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22044   (eval $ac_try) 2>&5
22045   ac_status=$?
22046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22047   test $ac_status = 0; }; }
22048     then
22049         gcc_cv_as_cfi_personality_directive=yes
22050     else
22051       echo "configure: failed program was" >&5
22052       cat conftest.s >&5
22053     fi
22054     rm -f conftest.o conftest.s
22055   fi
22056 fi
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22058 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22059
22060
22061 cat >>confdefs.h <<_ACEOF
22062 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22063     then echo 1; else echo 0; fi`
22064 _ACEOF
22065
22066
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22068 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22069 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22070   $as_echo_n "(cached) " >&6
22071 else
22072   gcc_cv_as_cfi_sections_directive=no
22073   if test x$gcc_cv_as != x; then
22074     echo '      .text
22075         .cfi_sections .debug_frame, .eh_frame
22076         .cfi_startproc
22077         .cfi_endproc' > conftest.s
22078     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22079   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22080   (eval $ac_try) 2>&5
22081   ac_status=$?
22082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22083   test $ac_status = 0; }; }
22084     then
22085         case $target_os in
22086   win32 | pe | cygwin* | mingw32* | uwin*)
22087     # Need to check that we generated the correct relocation for the
22088     # .debug_frame section.  This was fixed for binutils 2.21.
22089     gcc_cv_as_cfi_sections_directive=no
22090     if test "x$gcc_cv_objdump" != x; then
22091      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22092         grep secrel > /dev/null; then
22093       gcc_cv_as_cfi_sections_directive=yes
22094      fi
22095     fi
22096     ;;
22097   *)
22098     gcc_cv_as_cfi_sections_directive=yes
22099     ;;
22100 esac
22101     else
22102       echo "configure: failed program was" >&5
22103       cat conftest.s >&5
22104     fi
22105     rm -f conftest.o conftest.s
22106   fi
22107 fi
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22109 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22110
22111
22112
22113 cat >>confdefs.h <<_ACEOF
22114 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22115     then echo 1; else echo 0; fi`
22116 _ACEOF
22117
22118
22119 # GAS versions up to and including 2.11.0 may mis-optimize
22120 # .eh_frame data.
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22122 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22123 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22124   $as_echo_n "(cached) " >&6
22125 else
22126   gcc_cv_as_eh_frame=no
22127     if test $in_tree_gas = yes; then
22128     if test $in_tree_gas_is_elf = yes \
22129   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22130   then gcc_cv_as_eh_frame=yes
22131 fi
22132   elif test x$gcc_cv_as != x; then
22133     echo '      .text
22134 .LFB1:
22135         .4byte  0
22136 .L1:
22137         .4byte  0
22138 .LFE1:
22139         .section        .eh_frame,"aw",@progbits
22140 __FRAME_BEGIN__:
22141         .4byte  .LECIE1-.LSCIE1
22142 .LSCIE1:
22143         .4byte  0x0
22144         .byte   0x1
22145         .ascii "z\0"
22146         .byte   0x1
22147         .byte   0x78
22148         .byte   0x1a
22149         .byte   0x0
22150         .byte   0x4
22151         .4byte  1
22152         .p2align 1
22153 .LECIE1:
22154 .LSFDE1:
22155         .4byte  .LEFDE1-.LASFDE1
22156 .LASFDE1:
22157         .4byte  .LASFDE1-__FRAME_BEGIN__
22158         .4byte  .LFB1
22159         .4byte  .LFE1-.LFB1
22160         .byte   0x4
22161         .4byte  .LFE1-.LFB1
22162         .byte   0x4
22163         .4byte  .L1-.LFB1
22164 .LEFDE1:' > conftest.s
22165     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22166   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22167   (eval $ac_try) 2>&5
22168   ac_status=$?
22169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22170   test $ac_status = 0; }; }
22171     then
22172           cat > conftest.lit <<EOF
22173  0000 10000000 00000000 017a0001 781a0004  .........z..x...
22174  0010 01000000 12000000 18000000 00000000  ................
22175  0020 08000000 04080000 0044               .........D      
22176 EOF
22177 cat > conftest.big <<EOF
22178  0000 00000010 00000000 017a0001 781a0004  .........z..x...
22179  0010 00000001 00000012 00000018 00000000  ................
22180  0020 00000008 04000000 0844               .........D      
22181 EOF
22182   # If the assembler didn't choke, and we can objdump,
22183   # and we got the correct data, then succeed.
22184   # The text in the here-document typically retains its unix-style line
22185   # endings, while the output of objdump will use host line endings.
22186   # Therefore, use diff -b for the comparisons.
22187   if test x$gcc_cv_objdump != x \
22188   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22189      | tail -3 > conftest.got \
22190   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22191     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22192   then
22193     gcc_cv_as_eh_frame=yes
22194   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22195   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22196   (eval $ac_try) 2>&5
22197   ac_status=$?
22198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22199   test $ac_status = 0; }; }; then
22200     gcc_cv_as_eh_frame=buggy
22201   else
22202     # Uh oh, what do we do now?
22203     gcc_cv_as_eh_frame=no
22204   fi
22205     else
22206       echo "configure: failed program was" >&5
22207       cat conftest.s >&5
22208     fi
22209     rm -f conftest.o conftest.s
22210   fi
22211 fi
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22213 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22214
22215
22216 if test $gcc_cv_as_eh_frame = buggy; then
22217
22218 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22219
22220 fi
22221
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22223 $as_echo_n "checking assembler for section merging support... " >&6; }
22224 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22225   $as_echo_n "(cached) " >&6
22226 else
22227   gcc_cv_as_shf_merge=no
22228     if test $in_tree_gas = yes; then
22229     if test $in_tree_gas_is_elf = yes \
22230   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22231   then gcc_cv_as_shf_merge=yes
22232 fi
22233   elif test x$gcc_cv_as != x; then
22234     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22235     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22236   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22237   (eval $ac_try) 2>&5
22238   ac_status=$?
22239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22240   test $ac_status = 0; }; }
22241     then
22242         gcc_cv_as_shf_merge=yes
22243     else
22244       echo "configure: failed program was" >&5
22245       cat conftest.s >&5
22246     fi
22247     rm -f conftest.o conftest.s
22248   fi
22249 fi
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22251 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22252
22253 if test $gcc_cv_as_shf_merge = no; then
22254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22255 $as_echo_n "checking assembler for section merging support... " >&6; }
22256 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22257   $as_echo_n "(cached) " >&6
22258 else
22259   gcc_cv_as_shf_merge=no
22260     if test $in_tree_gas = yes; then
22261     if test $in_tree_gas_is_elf = yes \
22262   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22263   then gcc_cv_as_shf_merge=yes
22264 fi
22265   elif test x$gcc_cv_as != x; then
22266     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22267     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22268   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22269   (eval $ac_try) 2>&5
22270   ac_status=$?
22271   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22272   test $ac_status = 0; }; }
22273     then
22274         gcc_cv_as_shf_merge=yes
22275     else
22276       echo "configure: failed program was" >&5
22277       cat conftest.s >&5
22278     fi
22279     rm -f conftest.o conftest.s
22280   fi
22281 fi
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22283 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22284
22285 fi
22286
22287 cat >>confdefs.h <<_ACEOF
22288 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22289 _ACEOF
22290
22291
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22293 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22294 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22295   $as_echo_n "(cached) " >&6
22296 else
22297   gcc_cv_as_comdat_group=no
22298     if test $in_tree_gas = yes; then
22299     if test $in_tree_gas_is_elf = yes \
22300   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22301   then gcc_cv_as_comdat_group=yes
22302 fi
22303   elif test x$gcc_cv_as != x; then
22304     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22305     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22306   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22307   (eval $ac_try) 2>&5
22308   ac_status=$?
22309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22310   test $ac_status = 0; }; }
22311     then
22312         gcc_cv_as_comdat_group=yes
22313     else
22314       echo "configure: failed program was" >&5
22315       cat conftest.s >&5
22316     fi
22317     rm -f conftest.o conftest.s
22318   fi
22319 fi
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22321 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22322
22323 if test $gcc_cv_as_comdat_group = yes; then
22324   gcc_cv_as_comdat_group_percent=no
22325 else
22326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22327 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22328 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22329   $as_echo_n "(cached) " >&6
22330 else
22331   gcc_cv_as_comdat_group_percent=no
22332     if test $in_tree_gas = yes; then
22333     if test $in_tree_gas_is_elf = yes \
22334   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22335   then gcc_cv_as_comdat_group_percent=yes
22336 fi
22337   elif test x$gcc_cv_as != x; then
22338     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22339     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22340   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22341   (eval $ac_try) 2>&5
22342   ac_status=$?
22343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22344   test $ac_status = 0; }; }
22345     then
22346         gcc_cv_as_comdat_group_percent=yes
22347     else
22348       echo "configure: failed program was" >&5
22349       cat conftest.s >&5
22350     fi
22351     rm -f conftest.o conftest.s
22352   fi
22353 fi
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22355 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22356
22357 fi
22358 if test x"$ld_is_gold" = xyes; then
22359   comdat_group=yes
22360 elif test $in_tree_ld = yes ; then
22361   comdat_group=no
22362   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 \
22363      && test $in_tree_ld_is_elf = yes; then
22364      comdat_group=yes
22365   fi
22366 elif echo "$ld_ver" | grep GNU > /dev/null; then
22367   comdat_group=yes
22368   if test 0"$ld_date" -lt 20050308; then
22369     if test -n "$ld_date"; then
22370       # If there was date string, but was earlier than 2005-03-08, fail
22371       comdat_group=no
22372     elif test "$ld_vers_major" -lt 2; then
22373       comdat_group=no
22374     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22375       comdat_group=no
22376     fi
22377   fi
22378 else
22379   case "${target}" in
22380     *-*-solaris2.1[1-9]*)
22381       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22382       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22383       # version 1.688.
22384       #
22385       # FIXME: Maybe need to refine later when COMDAT group support with
22386       # Sun as is implemented.
22387       if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
22388         comdat_group=yes
22389       else
22390         comdat_group=no
22391       fi
22392       ;;
22393     *)
22394       # Assume linkers other than GNU ld don't support COMDAT group.
22395       comdat_group=no
22396       ;;
22397   esac
22398 fi
22399 # Allow overriding the automatic COMDAT group tests above.
22400 # Check whether --enable-comdat was given.
22401 if test "${enable_comdat+set}" = set; then :
22402   enableval=$enable_comdat; comdat_group="$enable_comdat"
22403 fi
22404
22405 if test $comdat_group = no; then
22406   gcc_cv_as_comdat_group=no
22407   gcc_cv_as_comdat_group_percent=no
22408 fi
22409
22410 cat >>confdefs.h <<_ACEOF
22411 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
22412 _ACEOF
22413
22414
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22416 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22417 if test "${gcc_cv_as_discriminator+set}" = set; then :
22418   $as_echo_n "(cached) " >&6
22419 else
22420   gcc_cv_as_discriminator=no
22421     if test $in_tree_gas = yes; then
22422     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22423   then gcc_cv_as_discriminator=yes
22424 fi
22425   elif test x$gcc_cv_as != x; then
22426     echo '      .text
22427         .file 1 "conf.c"
22428         .loc 1 1 0 discriminator 1' > 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_discriminator=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_discriminator" >&5
22445 $as_echo "$gcc_cv_as_discriminator" >&6; }
22446 if test $gcc_cv_as_discriminator = yes; then
22447
22448 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22449
22450 fi
22451
22452 # Thread-local storage - the check is heavily parameterized.
22453 conftest_s=
22454 tls_first_major=
22455 tls_first_minor=
22456 tls_as_opt=
22457 case "$target" in
22458   alpha*-*-*)
22459     conftest_s='
22460         .section ".tdata","awT",@progbits
22461 foo:    .long   25
22462         .text
22463         ldq     $27,__tls_get_addr($29)         !literal!1
22464         lda     $16,foo($29)                    !tlsgd!1
22465         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
22466         ldq     $27,__tls_get_addr($29)         !literal!2
22467         lda     $16,foo($29)                    !tlsldm!2
22468         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
22469         ldq     $1,foo($29)                     !gotdtprel
22470         ldah    $2,foo($29)                     !dtprelhi
22471         lda     $3,foo($2)                      !dtprello
22472         lda     $4,foo($29)                     !dtprel
22473         ldq     $1,foo($29)                     !gottprel
22474         ldah    $2,foo($29)                     !tprelhi
22475         lda     $3,foo($2)                      !tprello
22476         lda     $4,foo($29)                     !tprel'
22477         tls_first_major=2
22478         tls_first_minor=13
22479         tls_as_opt=--fatal-warnings
22480         ;;
22481   cris-*-*|crisv32-*-*)
22482     conftest_s='
22483         .section ".tdata","awT",@progbits
22484 x:      .long   25
22485         .text
22486         move.d x:IE,$r10
22487         nop'
22488         tls_first_major=2
22489         tls_first_minor=20
22490         tls_as_opt=--fatal-warnings
22491         ;;
22492   frv*-*-*)
22493     conftest_s='
22494         .section ".tdata","awT",@progbits
22495 x:      .long   25
22496         .text
22497         call    #gettlsoff(x)'
22498         tls_first_major=2
22499         tls_first_minor=14
22500         ;;
22501   hppa*-*-linux*)
22502     conftest_s='
22503 t1:     .reg    %r20
22504 t2:     .reg    %r21
22505 gp:     .reg    %r19
22506         .section ".tdata","awT",@progbits
22507 foo:    .long   25
22508         .text
22509         .align  4
22510         addil LT%foo-$tls_gdidx$,gp
22511         ldo RT%foo-$tls_gdidx$(%r1),%arg0
22512         b __tls_get_addr
22513         nop
22514         addil LT%foo-$tls_ldidx$,gp
22515         b __tls_get_addr
22516         ldo RT%foo-$tls_ldidx$(%r1),%arg0
22517         addil LR%foo-$tls_dtpoff$,%ret0
22518         ldo RR%foo-$tls_dtpoff$(%r1),%t1
22519         mfctl %cr27,%t1
22520         addil LT%foo-$tls_ieoff$,gp
22521         ldw RT%foo-$tls_ieoff$(%r1),%t2
22522         add %t1,%t2,%t3
22523         mfctl %cr27,%t1
22524         addil LR%foo-$tls_leoff$,%t1
22525         ldo RR%foo-$tls_leoff$(%r1),%t2'
22526         tls_first_major=2
22527         tls_first_minor=15
22528         tls_as_opt=--fatal-warnings
22529         ;;
22530   arm*-*-*)
22531     conftest_s='
22532         .section ".tdata","awT",%progbits
22533 foo:    .long   25
22534         .text
22535 .word foo(gottpoff)
22536 .word foo(tpoff)
22537 .word foo(tlsgd)
22538 .word foo(tlsldm)
22539 .word foo(tlsldo)'
22540         tls_first_major=2
22541         tls_first_minor=17
22542         ;;
22543   i[34567]86-*-*)
22544     case "$target" in
22545       i[34567]86-*-solaris2.*)
22546         on_solaris=yes
22547         tga_func=___tls_get_addr
22548         ;;
22549       *)
22550         on_solaris=no
22551         ;;
22552     esac
22553     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22554       conftest_s='
22555         .section .tdata,"awt",@progbits'
22556       tls_first_major=0
22557       tls_first_minor=0
22558
22559 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22560
22561     else
22562       conftest_s='
22563         .section ".tdata","awT",@progbits'
22564       tls_first_major=2
22565       tls_first_minor=14
22566       tls_as_opt="--fatal-warnings"
22567     fi
22568     conftest_s="$conftest_s
22569 foo:    .long   25
22570         .text
22571         movl    %gs:0, %eax
22572         leal    foo@tlsgd(,%ebx,1), %eax
22573         leal    foo@tlsldm(%ebx), %eax
22574         leal    foo@dtpoff(%eax), %edx
22575         movl    foo@gottpoff(%ebx), %eax
22576         subl    foo@gottpoff(%ebx), %eax
22577         addl    foo@gotntpoff(%ebx), %eax
22578         movl    foo@indntpoff, %eax
22579         movl    \$foo@tpoff, %eax
22580         subl    \$foo@tpoff, %eax
22581         leal    foo@ntpoff(%ecx), %eax"
22582     ;;
22583   x86_64-*-*)
22584     conftest_s='
22585         .section ".tdata","awT",@progbits
22586 foo:    .long   25
22587         .text
22588         movq    %fs:0, %rax
22589         leaq    foo@TLSGD(%rip), %rdi
22590         leaq    foo@TLSLD(%rip), %rdi
22591         leaq    foo@DTPOFF(%rax), %rdx
22592         movq    foo@GOTTPOFF(%rip), %rax
22593         movq    $foo@TPOFF, %rax'
22594         tls_first_major=2
22595         tls_first_minor=14
22596         tls_as_opt=--fatal-warnings
22597         ;;
22598   ia64-*-*)
22599     conftest_s='
22600         .section ".tdata","awT",@progbits
22601 foo:    data8   25
22602         .text
22603         addl    r16 = @ltoff(@dtpmod(foo#)), gp
22604         addl    r17 = @ltoff(@dtprel(foo#)), gp
22605         addl    r18 = @ltoff(@tprel(foo#)), gp
22606         addl    r19 = @dtprel(foo#), gp
22607         adds    r21 = @dtprel(foo#), r13
22608         movl    r23 = @dtprel(foo#)
22609         addl    r20 = @tprel(foo#), gp
22610         adds    r22 = @tprel(foo#), r13
22611         movl    r24 = @tprel(foo#)'
22612         tls_first_major=2
22613         tls_first_minor=13
22614         tls_as_opt=--fatal-warnings
22615         ;;
22616   mips*-*-*)
22617     conftest_s='
22618         .section .tdata,"awT",@progbits
22619 x:
22620         .word 2
22621         .text
22622         addiu $4, $28, %tlsgd(x)
22623         addiu $4, $28, %tlsldm(x)
22624         lui $4, %dtprel_hi(x)
22625         addiu $4, $4, %dtprel_lo(x)
22626         lw $4, %gottprel(x)($28)
22627         lui $4, %tprel_hi(x)
22628         addiu $4, $4, %tprel_lo(x)'
22629         tls_first_major=2
22630         tls_first_minor=16
22631         tls_as_opt='-32 --fatal-warnings'
22632         ;;
22633   m68k-*-*)
22634     conftest_s='
22635         .section .tdata,"awT",@progbits
22636 x:
22637         .word 2
22638         .text
22639 foo:
22640         move.l x@TLSGD(%a5),%a0
22641         move.l x@TLSLDM(%a5),%a0
22642         move.l x@TLSLDO(%a5),%a0
22643         move.l x@TLSIE(%a5),%a0
22644         move.l x@TLSLE(%a5),%a0'
22645         tls_first_major=2
22646         tls_first_minor=19
22647         tls_as_opt='--fatal-warnings'
22648         ;;
22649   powerpc-*-*)
22650     conftest_s='
22651         .section ".tdata","awT",@progbits
22652         .align 2
22653 ld0:    .space 4
22654 ld1:    .space 4
22655 x1:     .space 4
22656 x2:     .space 4
22657 x3:     .space 4
22658         .text
22659         addi 3,31,ld0@got@tlsgd
22660         bl __tls_get_addr
22661         addi 3,31,x1@got@tlsld
22662         bl __tls_get_addr
22663         addi 9,3,x1@dtprel
22664         addis 9,3,x2@dtprel@ha
22665         addi 9,9,x2@dtprel@l
22666         lwz 9,x3@got@tprel(31)
22667         add 9,9,x@tls
22668         addi 9,2,x1@tprel
22669         addis 9,2,x2@tprel@ha
22670         addi 9,9,x2@tprel@l'
22671         tls_first_major=2
22672         tls_first_minor=14
22673         tls_as_opt="-a32 --fatal-warnings"
22674         ;;
22675   powerpc64-*-*)
22676     conftest_s='
22677         .section ".tdata","awT",@progbits
22678         .align 3
22679 ld0:    .space 8
22680 ld1:    .space 8
22681 x1:     .space 8
22682 x2:     .space 8
22683 x3:     .space 8
22684         .text
22685         addi 3,2,ld0@got@tlsgd
22686         bl .__tls_get_addr
22687         nop
22688         addi 3,2,ld1@toc
22689         bl .__tls_get_addr
22690         nop
22691         addi 3,2,x1@got@tlsld
22692         bl .__tls_get_addr
22693         nop
22694         addi 9,3,x1@dtprel
22695         bl .__tls_get_addr
22696         nop
22697         addis 9,3,x2@dtprel@ha
22698         addi 9,9,x2@dtprel@l
22699         bl .__tls_get_addr
22700         nop
22701         ld 9,x3@got@dtprel(2)
22702         add 9,9,3
22703         bl .__tls_get_addr
22704         nop'
22705         tls_first_major=2
22706         tls_first_minor=14
22707         tls_as_opt="-a64 --fatal-warnings"
22708         ;;
22709   s390-*-*)
22710     conftest_s='
22711         .section ".tdata","awT",@progbits
22712 foo:    .long   25
22713         .text
22714         .long   foo@TLSGD
22715         .long   foo@TLSLDM
22716         .long   foo@DTPOFF
22717         .long   foo@NTPOFF
22718         .long   foo@GOTNTPOFF
22719         .long   foo@INDNTPOFF
22720         l       %r1,foo@GOTNTPOFF(%r12)
22721         l       %r1,0(%r1):tls_load:foo
22722         bas     %r14,0(%r1,%r13):tls_gdcall:foo
22723         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
22724         tls_first_major=2
22725         tls_first_minor=14
22726         tls_as_opt="-m31 --fatal-warnings"
22727         ;;
22728   s390x-*-*)
22729     conftest_s='
22730         .section ".tdata","awT",@progbits
22731 foo:    .long   25
22732         .text
22733         .quad   foo@TLSGD
22734         .quad   foo@TLSLDM
22735         .quad   foo@DTPOFF
22736         .quad   foo@NTPOFF
22737         .quad   foo@GOTNTPOFF
22738         lg      %r1,foo@GOTNTPOFF(%r12)
22739         larl    %r1,foo@INDNTPOFF
22740         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
22741         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22742         tls_first_major=2
22743         tls_first_minor=14
22744         tls_as_opt="-m64 -Aesame --fatal-warnings"
22745         ;;
22746   sh-*-* | sh[34]-*-*)
22747     conftest_s='
22748         .section ".tdata","awT",@progbits
22749 foo:    .long   25
22750         .text
22751         .long   foo@TLSGD
22752         .long   foo@TLSLDM
22753         .long   foo@DTPOFF
22754         .long   foo@GOTTPOFF
22755         .long   foo@TPOFF'
22756         tls_first_major=2
22757         tls_first_minor=13
22758         tls_as_opt=--fatal-warnings
22759         ;;
22760   sparc*-*-*)
22761     case "$target" in
22762       sparc*-sun-solaris2.*)
22763         on_solaris=yes
22764         tga_func=__tls_get_addr
22765         ;;
22766       *)
22767         on_solaris=no
22768         ;;
22769     esac
22770     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22771       conftest_s='
22772         .section ".tdata",#alloc,#write,#tls'
22773         tls_first_major=0
22774         tls_first_minor=0
22775     else
22776       conftest_s='
22777         .section ".tdata","awT",@progbits'
22778         tls_first_major=2
22779         tls_first_minor=14
22780         tls_as_opt="-32 --fatal-warnings"
22781     fi
22782     conftest_s="$conftest_s
22783 foo:    .long   25
22784         .text
22785         sethi   %tgd_hi22(foo), %o0
22786         add     %o0, %tgd_lo10(foo), %o1
22787         add     %l7, %o1, %o0, %tgd_add(foo)
22788         call    __tls_get_addr, %tgd_call(foo)
22789         sethi   %tldm_hi22(foo), %l1
22790         add     %l1, %tldm_lo10(foo), %l2
22791         add     %l7, %l2, %o0, %tldm_add(foo)
22792         call    __tls_get_addr, %tldm_call(foo)
22793         sethi   %tldo_hix22(foo), %l3
22794         xor     %l3, %tldo_lox10(foo), %l4
22795         add     %o0, %l4, %l5, %tldo_add(foo)
22796         sethi   %tie_hi22(foo), %o3
22797         add     %o3, %tie_lo10(foo), %o3
22798         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22799         add     %g7, %o2, %o4, %tie_add(foo)
22800         sethi   %tle_hix22(foo), %l1
22801         xor     %l1, %tle_lox10(foo), %o5
22802         ld      [%g7 + %o5], %o1"
22803         ;;
22804   xtensa*-*-*)
22805     conftest_s='
22806         .section ".tdata","awT",@progbits
22807 foo:    .long   25
22808         .text
22809         movi    a8, foo@TLSFUNC
22810         movi    a10, foo@TLSARG
22811         callx8.tls a8, foo@TLSCALL'
22812         tls_first_major=2
22813         tls_first_minor=19
22814         ;;
22815 esac
22816 set_have_as_tls=no
22817 if test "x$enable_tls" = xno ; then
22818   : # TLS explicitly disabled.
22819 elif test "x$enable_tls" = xyes ; then
22820   set_have_as_tls=yes # TLS explicitly enabled.
22821 elif test -z "$tls_first_major"; then
22822   : # If we don't have a check, assume no support.
22823 else
22824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22825 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22826 if test "${gcc_cv_as_tls+set}" = set; then :
22827   $as_echo_n "(cached) " >&6
22828 else
22829   gcc_cv_as_tls=no
22830     if test $in_tree_gas = yes; then
22831     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22832   then gcc_cv_as_tls=yes
22833 fi
22834   elif test x$gcc_cv_as != x; then
22835     echo "$conftest_s" > conftest.s
22836     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22837   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22838   (eval $ac_try) 2>&5
22839   ac_status=$?
22840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22841   test $ac_status = 0; }; }
22842     then
22843         gcc_cv_as_tls=yes
22844     else
22845       echo "configure: failed program was" >&5
22846       cat conftest.s >&5
22847     fi
22848     rm -f conftest.o conftest.s
22849   fi
22850 fi
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22852 $as_echo "$gcc_cv_as_tls" >&6; }
22853 if test $gcc_cv_as_tls = yes; then
22854   set_have_as_tls=yes
22855 fi
22856 fi
22857 case "$target" in
22858   *-*-irix6*)
22859     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
22860     # with TLS support are in use, native TLS cannot work.
22861     set_have_as_tls=no
22862     ;;
22863   *-*-osf*)
22864     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
22865     # gld with TLS support are in use, native TLS cannot work.
22866     set_have_as_tls=no
22867     ;;
22868   # TLS was introduced in the Solaris 9 FCS release and backported to
22869   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
22870   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22871   # ld and GCC don't support any longer.
22872   *-*-solaris2.*)
22873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22874 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22875     ld_tls_support=no
22876     # Check ld and ld.so.1 TLS support.
22877     if echo "$ld_ver" | grep GNU > /dev/null; then
22878       # Assume all interesting versions of GNU ld have TLS support.
22879       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22880       ld_tls_support=yes
22881     else
22882       case "$target" in
22883         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22884         i?86-*-solaris2.8)
22885           min_tls_ld_vers_minor=280
22886           ;;
22887         # Solaris 8/SPARC ld has TLS support since version 1.272.
22888         sparc*-*-solaris2.8)
22889           min_tls_ld_vers_minor=272
22890           ;;
22891         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22892         i?86-*-solaris2.9)
22893           min_tls_ld_vers_minor=374
22894           ;;
22895         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22896         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22897           min_tls_ld_vers_minor=343
22898           ;;
22899       esac
22900       if test "$ld_vers_major" -gt 1 || \
22901         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22902         ld_tls_support=yes
22903       else
22904         set_have_as_tls=no
22905       fi
22906     fi
22907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22908 $as_echo "$ld_tls_support" >&6; }
22909
22910     save_LIBS="$LIBS"
22911     save_LDFLAGS="$LDFLAGS"
22912     LIBS=
22913     LDFLAGS=
22914
22915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22916 $as_echo_n "checking alternate thread library... " >&6; }
22917     case "$target" in
22918       # TLS support was backported to Solaris 8 patches, but only lives in
22919       # the alternate thread library which became the default in Solaris 9.
22920       # We want to always use that, irrespective of TLS support.
22921       *-*-solaris2.8)
22922         # Take multilib subdir into account.  There's no spec to handle
22923         # this.  The 64 symlink exists since Solaris 8.
22924         lwp_dir=/usr/lib/lwp
22925         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22926         LDFLAGS="-L$lwp_dir -R$lwp_dir"
22927         ;;
22928       *-*-solaris2*)
22929         lwp_dir="none"
22930         lwp_spec=""
22931         ;;
22932     esac
22933     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22934
22935 cat >>confdefs.h <<_ACEOF
22936 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22937 _ACEOF
22938
22939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22940 $as_echo "$lwp_dir" >&6; }
22941
22942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22943 $as_echo_n "checking library containing $tga_func... " >&6; }
22944     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22945     # (32-bit x86) only lived in libthread, so check for that.  Keep
22946     # set_have_as_tls if found, disable if not.
22947     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22949 $as_echo_n "checking for library containing $tga_func... " >&6; }
22950 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22951   $as_echo_n "(cached) " >&6
22952 else
22953   ac_func_search_save_LIBS=$LIBS
22954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22955 /* end confdefs.h.  */
22956
22957 /* Override any GCC internal prototype to avoid an error.
22958    Use char because int might match the return type of a GCC
22959    builtin and then its argument prototype would still apply.  */
22960 #ifdef __cplusplus
22961 extern "C"
22962 #endif
22963 char $tga_func ();
22964 int
22965 main ()
22966 {
22967 return $tga_func ();
22968   ;
22969   return 0;
22970 }
22971 _ACEOF
22972 for ac_lib in '' thread; do
22973   if test -z "$ac_lib"; then
22974     ac_res="none required"
22975   else
22976     ac_res=-l$ac_lib
22977     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22978   fi
22979   if ac_fn_c_try_link "$LINENO"; then :
22980   eval "$as_ac_Search=\$ac_res"
22981 fi
22982 rm -f core conftest.err conftest.$ac_objext \
22983     conftest$ac_exeext
22984   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22985   break
22986 fi
22987 done
22988 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22989
22990 else
22991   eval "$as_ac_Search=no"
22992 fi
22993 rm conftest.$ac_ext
22994 LIBS=$ac_func_search_save_LIBS
22995 fi
22996 eval ac_res=\$$as_ac_Search
22997                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22998 $as_echo "$ac_res" >&6; }
22999 eval ac_res=\$$as_ac_Search
23000 if test "$ac_res" != no; then :
23001   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23002
23003 else
23004   set_have_as_tls=no
23005 fi
23006
23007     # Clear LIBS if we cannot support TLS.
23008     if test $set_have_as_tls = no; then
23009       LIBS=
23010     fi
23011     # Always define LIB_TLS_SPEC, even without TLS support.
23012
23013 cat >>confdefs.h <<_ACEOF
23014 #define LIB_TLS_SPEC "$LIBS"
23015 _ACEOF
23016
23017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23018 $as_echo "$LIBS" >&6; }
23019
23020     LIBS="$save_LIBS"
23021     LDFLAGS="$save_LDFLAGS"
23022     ;;
23023 esac
23024 if test $set_have_as_tls = yes ; then
23025
23026 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23027
23028 fi
23029
23030 # Target-specific assembler checks.
23031
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23033 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23034 gcc_cv_ld_static_dynamic=no
23035 gcc_cv_ld_static_option='-Bstatic'
23036 gcc_cv_ld_dynamic_option='-Bdynamic'
23037 if test $in_tree_ld = yes ; then
23038   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
23039     gcc_cv_ld_static_dynamic=yes
23040   fi
23041 elif test x$gcc_cv_ld != x; then
23042   # Check if linker supports -Bstatic/-Bdynamic option
23043   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23044      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23045       gcc_cv_ld_static_dynamic=yes
23046   else
23047     case "$target" in
23048       # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23049       alpha*-dec-osf*)
23050         gcc_cv_ld_static_dynamic=yes
23051         gcc_cv_ld_static_option="-noso"
23052         gcc_cv_ld_dynamic_option="-so_archive"
23053         ;;
23054       # HP-UX ld uses -a flags to select between shared and archive.
23055       *-*-hpux*)
23056         if test x"$gnu_ld" = xno; then
23057           gcc_cv_ld_static_dynamic=yes
23058           gcc_cv_ld_static_option="-aarchive_shared"
23059           gcc_cv_ld_dynamic_option="-adefault"
23060         fi
23061         ;;
23062       # IRIX 6 ld supports -Bstatic/-Bdynamic.
23063       mips-sgi-irix6*)
23064         gcc_cv_ld_static_dynamic=yes
23065         ;;
23066       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23067       *-*-solaris2*)
23068         gcc_cv_ld_static_dynamic=yes
23069         ;;
23070     esac
23071   fi
23072 fi
23073 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23074
23075 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23076
23077
23078 cat >>confdefs.h <<_ACEOF
23079 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23080 _ACEOF
23081
23082
23083 cat >>confdefs.h <<_ACEOF
23084 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23085 _ACEOF
23086
23087 fi
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23089 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23090
23091 if test x"$demangler_in_ld" = xyes; then
23092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23093 $as_echo_n "checking linker --demangle support... " >&6; }
23094   gcc_cv_ld_demangle=no
23095   if test $in_tree_ld = yes; then
23096     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 \
23097       gcc_cv_ld_demangle=yes
23098     fi
23099   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23100     # Check if the GNU linker supports --demangle option
23101     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23102       gcc_cv_ld_demangle=yes
23103     fi
23104   fi
23105   if test x"$gcc_cv_ld_demangle" = xyes; then
23106
23107 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23108
23109   fi
23110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23111 $as_echo "$gcc_cv_ld_demangle" >&6; }
23112 fi
23113
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23115 $as_echo_n "checking linker plugin support... " >&6; }
23116 gcc_cv_lto_plugin=no
23117 if test -f liblto_plugin.la; then
23118   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET=" = x"$gcc_cv_ld"; then
23119     if test x"$ld_is_gold" = xyes; then
23120       gcc_cv_lto_plugin=yes
23121     elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then \
23122       gcc_cv_lto_plugin=yes
23123     fi
23124   # Check if the linker supports --plugin-opt option
23125   elif $ORIGINAL_PLUGIN_LD_FOR_TARGET --help 2>/dev/null | grep plugin-opt > /dev/null; then
23126     gcc_cv_lto_plugin=yes
23127   fi
23128 fi
23129 if test x"$gcc_cv_lto_plugin" = xyes; then
23130
23131 $as_echo "#define HAVE_LTO_PLUGIN 1" >>confdefs.h
23132
23133 fi
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23135 $as_echo "$gcc_cv_lto_plugin" >&6; }
23136
23137 case "$target" in
23138   # All TARGET_ABI_OSF targets.
23139   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23141 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23142 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23143   $as_echo_n "(cached) " >&6
23144 else
23145   gcc_cv_as_alpha_explicit_relocs=no
23146     if test $in_tree_gas = yes; then
23147     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23148   then gcc_cv_as_alpha_explicit_relocs=yes
23149 fi
23150   elif test x$gcc_cv_as != x; then
23151     echo '      .set nomacro
23152         .text
23153         extbl   $3, $2, $3      !lituse_bytoff!1
23154         ldq     $2, a($29)      !literal!1
23155         ldq     $4, b($29)      !literal!2
23156         ldq_u   $3, 0($2)       !lituse_base!1
23157         ldq     $27, f($29)     !literal!5
23158         jsr     $26, ($27), f   !lituse_jsr!5
23159         ldah    $29, 0($26)     !gpdisp!3
23160         lda     $0, c($29)      !gprel
23161         ldah    $1, d($29)      !gprelhigh
23162         lda     $1, d($1)       !gprellow
23163         lda     $29, 0($29)     !gpdisp!3' > conftest.s
23164     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23165   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23166   (eval $ac_try) 2>&5
23167   ac_status=$?
23168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23169   test $ac_status = 0; }; }
23170     then
23171         gcc_cv_as_alpha_explicit_relocs=yes
23172     else
23173       echo "configure: failed program was" >&5
23174       cat conftest.s >&5
23175     fi
23176     rm -f conftest.o conftest.s
23177   fi
23178 fi
23179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23180 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23181 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23182
23183 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23184
23185 fi
23186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23187 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23188 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23189   $as_echo_n "(cached) " >&6
23190 else
23191   gcc_cv_as_alpha_jsrdirect_relocs=no
23192     if test $in_tree_gas = yes; then
23193     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23194   then gcc_cv_as_alpha_jsrdirect_relocs=yes
23195 fi
23196   elif test x$gcc_cv_as != x; then
23197     echo '      .set nomacro
23198         .text
23199         ldq     $27, a($29)     !literal!1
23200         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
23201     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23202   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23203   (eval $ac_try) 2>&5
23204   ac_status=$?
23205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23206   test $ac_status = 0; }; }
23207     then
23208         gcc_cv_as_alpha_jsrdirect_relocs=yes
23209     else
23210       echo "configure: failed program was" >&5
23211       cat conftest.s >&5
23212     fi
23213     rm -f conftest.o conftest.s
23214   fi
23215 fi
23216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23217 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23218 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23219
23220 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23221
23222 fi
23223     ;;
23224
23225   cris-*-*)
23226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23227 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23228 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23229   $as_echo_n "(cached) " >&6
23230 else
23231   gcc_cv_as_cris_no_mul_bug=no
23232     if test $in_tree_gas = yes; then
23233     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23234   then gcc_cv_as_cris_no_mul_bug=yes
23235 fi
23236   elif test x$gcc_cv_as != x; then
23237     echo '.text' > conftest.s
23238     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23239   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23240   (eval $ac_try) 2>&5
23241   ac_status=$?
23242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23243   test $ac_status = 0; }; }
23244     then
23245         gcc_cv_as_cris_no_mul_bug=yes
23246     else
23247       echo "configure: failed program was" >&5
23248       cat conftest.s >&5
23249     fi
23250     rm -f conftest.o conftest.s
23251   fi
23252 fi
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23254 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23255 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23256
23257 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23258
23259 fi
23260     ;;
23261
23262   sparc*-*-*)
23263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23264 $as_echo_n "checking assembler for .register... " >&6; }
23265 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23266   $as_echo_n "(cached) " >&6
23267 else
23268   gcc_cv_as_sparc_register_op=no
23269   if test x$gcc_cv_as != x; then
23270     echo '.register %g2, #scratch' > conftest.s
23271     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23272   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23273   (eval $ac_try) 2>&5
23274   ac_status=$?
23275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23276   test $ac_status = 0; }; }
23277     then
23278         gcc_cv_as_sparc_register_op=yes
23279     else
23280       echo "configure: failed program was" >&5
23281       cat conftest.s >&5
23282     fi
23283     rm -f conftest.o conftest.s
23284   fi
23285 fi
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23287 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23288 if test $gcc_cv_as_sparc_register_op = yes; then
23289
23290 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23291
23292 fi
23293
23294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23295 $as_echo_n "checking assembler for -relax option... " >&6; }
23296 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23297   $as_echo_n "(cached) " >&6
23298 else
23299   gcc_cv_as_sparc_relax=no
23300   if test x$gcc_cv_as != x; then
23301     echo '.text' > conftest.s
23302     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -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_sparc_relax=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_sparc_relax" >&5
23318 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23319 if test $gcc_cv_as_sparc_relax = yes; then
23320
23321 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23322
23323 fi
23324
23325     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23326 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23327 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23328   $as_echo_n "(cached) " >&6
23329 else
23330   gcc_cv_as_sparc_gotdata_op=no
23331   if test x$gcc_cv_as != x; then
23332     echo '.text
23333 foo:
23334         nop
23335 bar:
23336         sethi %gdop_hix22(foo), %g1
23337         xor    %g1, %gdop_lox10(foo), %g1
23338         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23339     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -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         if test x$gcc_cv_ld != x \
23347        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23348          if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
23349            if test x$gcc_cv_objdump != x; then
23350              if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23351                 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23352                gcc_cv_as_sparc_gotdata_op=no
23353              else
23354                gcc_cv_as_sparc_gotdata_op=yes
23355              fi
23356            fi
23357          else
23358            gcc_cv_as_sparc_gotdata_op=yes
23359          fi
23360        fi
23361        rm -f conftest
23362     else
23363       echo "configure: failed program was" >&5
23364       cat conftest.s >&5
23365     fi
23366     rm -f conftest.o conftest.s
23367   fi
23368 fi
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23370 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23371 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23372
23373 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23374
23375 fi
23376
23377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23378 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23379 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23380   $as_echo_n "(cached) " >&6
23381 else
23382   gcc_cv_as_sparc_ua_pcrel=no
23383   if test x$gcc_cv_as != x; then
23384     echo '.text
23385 foo:
23386         nop
23387 .data
23388 .align 4
23389 .byte 0
23390 .uaword %r_disp32(foo)' > conftest.s
23391     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23392   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23393   (eval $ac_try) 2>&5
23394   ac_status=$?
23395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23396   test $ac_status = 0; }; }
23397     then
23398         if test x$gcc_cv_ld != x \
23399        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23400          gcc_cv_as_sparc_ua_pcrel=yes
23401        fi
23402        rm -f conftest
23403     else
23404       echo "configure: failed program was" >&5
23405       cat conftest.s >&5
23406     fi
23407     rm -f conftest.o conftest.s
23408   fi
23409 fi
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23411 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23412 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23413
23414 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23415
23416
23417       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23418 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23419 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23420   $as_echo_n "(cached) " >&6
23421 else
23422   gcc_cv_as_sparc_ua_pcrel_hidden=no
23423   if test x$gcc_cv_as != x; then
23424     echo '.data
23425 .align 4
23426 .byte 0x31
23427 .uaword %r_disp32(foo)
23428 .byte 0x32, 0x33, 0x34
23429 .global foo
23430 .hidden foo
23431 foo:
23432 .skip 4' > conftest.s
23433     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23434   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23435   (eval $ac_try) 2>&5
23436   ac_status=$?
23437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23438   test $ac_status = 0; }; }
23439     then
23440         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23441          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23442          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23443             | grep ' 31000000 07323334' > /dev/null 2>&1; then
23444             if $gcc_cv_objdump -R conftest 2> /dev/null \
23445                | grep 'DISP32' > /dev/null 2>&1; then
23446                 :
23447             else
23448                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23449             fi
23450          fi
23451          rm -f conftest
23452     else
23453       echo "configure: failed program was" >&5
23454       cat conftest.s >&5
23455     fi
23456     rm -f conftest.o conftest.s
23457   fi
23458 fi
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23460 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23461 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23462
23463 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23464
23465 fi
23466
23467 fi # unaligned pcrel relocs
23468
23469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23470 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23471 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23472   $as_echo_n "(cached) " >&6
23473 else
23474   gcc_cv_as_sparc_offsetable_lo10=no
23475   if test x$gcc_cv_as != x; then
23476     echo '.text
23477         or %g1, %lo(ab) + 12, %g1
23478         or %g1, %lo(ab + 12), %g1' > conftest.s
23479     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23480   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23481   (eval $ac_try) 2>&5
23482   ac_status=$?
23483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23484   test $ac_status = 0; }; }
23485     then
23486         if test x$gcc_cv_objdump != x \
23487        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23488           | grep ' 82106000 82106000' > /dev/null 2>&1; then
23489          gcc_cv_as_sparc_offsetable_lo10=yes
23490        fi
23491     else
23492       echo "configure: failed program was" >&5
23493       cat conftest.s >&5
23494     fi
23495     rm -f conftest.o conftest.s
23496   fi
23497 fi
23498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23499 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23500 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23501
23502 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23503
23504 fi
23505     ;;
23506
23507   i[34567]86-*-* | x86_64-*-*)
23508     case $target_os in
23509       cygwin*)
23510         # Full C++ conformance when using a shared libstdc++-v3 requires some
23511         # support from the Cygwin DLL, which in more recent versions exports
23512         # wrappers to aid in interposing and redirecting operators new, delete,
23513         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
23514         # are configuring for a version of Cygwin that exports the wrappers.
23515         if test x$host = x$target; then
23516           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23517 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23518   gcc_ac_cygwin_dll_wrappers=yes
23519 else
23520   gcc_ac_cygwin_dll_wrappers=no
23521 fi
23522
23523         else
23524           # Can't check presence of libc functions during cross-compile, so
23525           # we just have to assume we're building for an up-to-date target.
23526           gcc_ac_cygwin_dll_wrappers=yes
23527         fi
23528
23529 cat >>confdefs.h <<_ACEOF
23530 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23531 _ACEOF
23532
23533     esac
23534     case $target_os in
23535       cygwin* | pe | mingw32*)
23536         # Recent binutils allows the three-operand form of ".comm" on PE.  This
23537         # definition is used unconditionally to initialise the default state of
23538         # the target option variable that governs usage of the feature.
23539         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23540 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23541 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23542   $as_echo_n "(cached) " >&6
23543 else
23544   gcc_cv_as_comm_has_align=no
23545     if test $in_tree_gas = yes; then
23546     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23547   then gcc_cv_as_comm_has_align=yes
23548 fi
23549   elif test x$gcc_cv_as != x; then
23550     echo '.comm foo,1,32' > conftest.s
23551     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23552   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23553   (eval $ac_try) 2>&5
23554   ac_status=$?
23555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23556   test $ac_status = 0; }; }
23557     then
23558         gcc_cv_as_comm_has_align=yes
23559     else
23560       echo "configure: failed program was" >&5
23561       cat conftest.s >&5
23562     fi
23563     rm -f conftest.o conftest.s
23564   fi
23565 fi
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23567 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23568
23569
23570 cat >>confdefs.h <<_ACEOF
23571 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23572 _ACEOF
23573
23574         # Used for DWARF 2 in PE
23575         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23576 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23577 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23578   $as_echo_n "(cached) " >&6
23579 else
23580   gcc_cv_as_ix86_pe_secrel32=no
23581     if test $in_tree_gas = yes; then
23582     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23583   then gcc_cv_as_ix86_pe_secrel32=yes
23584 fi
23585   elif test x$gcc_cv_as != x; then
23586     echo '.text
23587 foo:    nop
23588 .data
23589         .secrel32 foo' > conftest.s
23590     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23591   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23592   (eval $ac_try) 2>&5
23593   ac_status=$?
23594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23595   test $ac_status = 0; }; }
23596     then
23597         if test x$gcc_cv_ld != x \
23598            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23599              gcc_cv_as_ix86_pe_secrel32=yes
23600            fi
23601            rm -f conftest
23602     else
23603       echo "configure: failed program was" >&5
23604       cat conftest.s >&5
23605     fi
23606     rm -f conftest.o conftest.s
23607   fi
23608 fi
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23610 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23611 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23612
23613 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23614
23615 fi
23616         # Test if the assembler supports the extended form of the .section
23617         # directive that specifies section alignment.  LTO support uses this,
23618         # but normally only after installation, so we warn but don't fail the
23619         # configure if LTO is enabled but the assembler does not support it.
23620         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23621 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23622 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23623   $as_echo_n "(cached) " >&6
23624 else
23625   gcc_cv_as_section_has_align=no
23626     if test $in_tree_gas = yes; then
23627     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23628   then gcc_cv_as_section_has_align=yes
23629 fi
23630   elif test x$gcc_cv_as != x; then
23631     echo '.section lto_test,"dr0"' > conftest.s
23632     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23633   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23634   (eval $ac_try) 2>&5
23635   ac_status=$?
23636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23637   test $ac_status = 0; }; }
23638     then
23639         gcc_cv_as_section_has_align=yes
23640     else
23641       echo "configure: failed program was" >&5
23642       cat conftest.s >&5
23643     fi
23644     rm -f conftest.o conftest.s
23645   fi
23646 fi
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23648 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23649
23650         if test x$gcc_cv_as_section_has_align != xyes; then
23651           case ",$enable_languages," in
23652             *,lto,*)
23653               { $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
23654 $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;}
23655               ;;
23656           esac
23657         fi
23658         ;;
23659     esac
23660
23661     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23662 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23663 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23664   $as_echo_n "(cached) " >&6
23665 else
23666   gcc_cv_as_ix86_filds=no
23667   if test x$gcc_cv_as != x; then
23668     echo 'filds mem; fists mem' > conftest.s
23669     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23670   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23671   (eval $ac_try) 2>&5
23672   ac_status=$?
23673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23674   test $ac_status = 0; }; }
23675     then
23676         gcc_cv_as_ix86_filds=yes
23677     else
23678       echo "configure: failed program was" >&5
23679       cat conftest.s >&5
23680     fi
23681     rm -f conftest.o conftest.s
23682   fi
23683 fi
23684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23685 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23686 if test $gcc_cv_as_ix86_filds = yes; then
23687
23688 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23689
23690 fi
23691
23692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23693 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23694 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23695   $as_echo_n "(cached) " >&6
23696 else
23697   gcc_cv_as_ix86_fildq=no
23698   if test x$gcc_cv_as != x; then
23699     echo 'fildq mem; fistpq mem' > conftest.s
23700     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23701   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23702   (eval $ac_try) 2>&5
23703   ac_status=$?
23704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23705   test $ac_status = 0; }; }
23706     then
23707         gcc_cv_as_ix86_fildq=yes
23708     else
23709       echo "configure: failed program was" >&5
23710       cat conftest.s >&5
23711     fi
23712     rm -f conftest.o conftest.s
23713   fi
23714 fi
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23716 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23717 if test $gcc_cv_as_ix86_fildq = yes; then
23718
23719 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23720
23721 fi
23722
23723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23724 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23725 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23726   $as_echo_n "(cached) " >&6
23727 else
23728   gcc_cv_as_ix86_cmov_sun_syntax=no
23729   if test x$gcc_cv_as != x; then
23730     echo 'cmovl.l %edx, %eax' > conftest.s
23731     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23732   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23733   (eval $ac_try) 2>&5
23734   ac_status=$?
23735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23736   test $ac_status = 0; }; }
23737     then
23738         gcc_cv_as_ix86_cmov_sun_syntax=yes
23739     else
23740       echo "configure: failed program was" >&5
23741       cat conftest.s >&5
23742     fi
23743     rm -f conftest.o conftest.s
23744   fi
23745 fi
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23747 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23748 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23749
23750 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23751
23752 fi
23753
23754     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23755 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23756 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23757   $as_echo_n "(cached) " >&6
23758 else
23759   gcc_cv_as_ix86_ffreep=no
23760   if test x$gcc_cv_as != x; then
23761     echo 'ffreep %st(1)' > conftest.s
23762     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23763   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23764   (eval $ac_try) 2>&5
23765   ac_status=$?
23766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23767   test $ac_status = 0; }; }
23768     then
23769         gcc_cv_as_ix86_ffreep=yes
23770     else
23771       echo "configure: failed program was" >&5
23772       cat conftest.s >&5
23773     fi
23774     rm -f conftest.o conftest.s
23775   fi
23776 fi
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23778 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23779 if test $gcc_cv_as_ix86_ffreep = yes; then
23780
23781 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23782
23783 fi
23784
23785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23786 $as_echo_n "checking assembler for .quad directive... " >&6; }
23787 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23788   $as_echo_n "(cached) " >&6
23789 else
23790   gcc_cv_as_ix86_quad=no
23791   if test x$gcc_cv_as != x; then
23792     echo '.quad 0' > conftest.s
23793     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23794   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23795   (eval $ac_try) 2>&5
23796   ac_status=$?
23797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23798   test $ac_status = 0; }; }
23799     then
23800         gcc_cv_as_ix86_quad=yes
23801     else
23802       echo "configure: failed program was" >&5
23803       cat conftest.s >&5
23804     fi
23805     rm -f conftest.o conftest.s
23806   fi
23807 fi
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23809 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23810 if test $gcc_cv_as_ix86_quad = yes; then
23811
23812 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23813
23814 fi
23815
23816     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23817 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23818 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23819   $as_echo_n "(cached) " >&6
23820 else
23821   gcc_cv_as_ix86_sahf=no
23822   if test x$gcc_cv_as != x; then
23823     echo '.code64
23824        sahf' > conftest.s
23825     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23826   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23827   (eval $ac_try) 2>&5
23828   ac_status=$?
23829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23830   test $ac_status = 0; }; }
23831     then
23832         gcc_cv_as_ix86_sahf=yes
23833     else
23834       echo "configure: failed program was" >&5
23835       cat conftest.s >&5
23836     fi
23837     rm -f conftest.o conftest.s
23838   fi
23839 fi
23840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23841 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23842 if test $gcc_cv_as_ix86_sahf = yes; then
23843
23844 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23845
23846 fi
23847
23848     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23849 $as_echo_n "checking assembler for swap suffix... " >&6; }
23850 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23851   $as_echo_n "(cached) " >&6
23852 else
23853   gcc_cv_as_ix86_swap=no
23854   if test x$gcc_cv_as != x; then
23855     echo 'movl.s %esp, %ebp' > conftest.s
23856     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23857   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23858   (eval $ac_try) 2>&5
23859   ac_status=$?
23860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23861   test $ac_status = 0; }; }
23862     then
23863         gcc_cv_as_ix86_swap=yes
23864     else
23865       echo "configure: failed program was" >&5
23866       cat conftest.s >&5
23867     fi
23868     rm -f conftest.o conftest.s
23869   fi
23870 fi
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23872 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23873 if test $gcc_cv_as_ix86_swap = yes; then
23874
23875 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23876
23877 fi
23878
23879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23880 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23881 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23882   $as_echo_n "(cached) " >&6
23883 else
23884   gcc_cv_as_ix86_diff_sect_delta=no
23885   if test x$gcc_cv_as != x; then
23886     echo '.section .rodata
23887 .L1:
23888         .long .L2-.L1
23889         .long .L3-.L1
23890         .text
23891 .L3:    nop
23892 .L2:    nop' > conftest.s
23893     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23894   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23895   (eval $ac_try) 2>&5
23896   ac_status=$?
23897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23898   test $ac_status = 0; }; }
23899     then
23900         gcc_cv_as_ix86_diff_sect_delta=yes
23901     else
23902       echo "configure: failed program was" >&5
23903       cat conftest.s >&5
23904     fi
23905     rm -f conftest.o conftest.s
23906   fi
23907 fi
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23909 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23910 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23911
23912 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23913
23914 fi
23915
23916     # These two are used unconditionally by i386.[ch]; it is to be defined
23917     # to 1 if the feature is present, 0 otherwise.
23918     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23919 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23920 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23921   $as_echo_n "(cached) " >&6
23922 else
23923   gcc_cv_as_ix86_gotoff_in_data=no
23924     if test $in_tree_gas = yes; then
23925     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23926   then gcc_cv_as_ix86_gotoff_in_data=yes
23927 fi
23928   elif test x$gcc_cv_as != x; then
23929     echo '      .text
23930 .L0:
23931         nop
23932         .data
23933         .long .L0@GOTOFF' > conftest.s
23934     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23935   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23936   (eval $ac_try) 2>&5
23937   ac_status=$?
23938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23939   test $ac_status = 0; }; }
23940     then
23941         gcc_cv_as_ix86_gotoff_in_data=yes
23942     else
23943       echo "configure: failed program was" >&5
23944       cat conftest.s >&5
23945     fi
23946     rm -f conftest.o conftest.s
23947   fi
23948 fi
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23950 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23951
23952
23953 cat >>confdefs.h <<_ACEOF
23954 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23955 _ACEOF
23956
23957
23958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23959 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23960 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23961   $as_echo_n "(cached) " >&6
23962 else
23963   gcc_cv_as_ix86_rep_lock_prefix=no
23964   if test x$gcc_cv_as != x; then
23965     echo 'rep movsl
23966          lock addl %edi, (%eax,%esi)
23967          lock orl $0, (%esp)' > conftest.s
23968     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23969   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23970   (eval $ac_try) 2>&5
23971   ac_status=$?
23972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23973   test $ac_status = 0; }; }
23974     then
23975         gcc_cv_as_ix86_rep_lock_prefix=yes
23976     else
23977       echo "configure: failed program was" >&5
23978       cat conftest.s >&5
23979     fi
23980     rm -f conftest.o conftest.s
23981   fi
23982 fi
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23984 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23985 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23986
23987 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23988
23989 fi
23990
23991     ;;
23992
23993   ia64*-*-*)
23994     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23995 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23996 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23997   $as_echo_n "(cached) " >&6
23998 else
23999   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24000     if test $in_tree_gas = yes; then
24001     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24002   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24003 fi
24004   elif test x$gcc_cv_as != x; then
24005     echo '      .text
24006         addl r15 = @ltoffx(x#), gp
24007         ;;
24008         ld8.mov r16 = [r15], x#' > conftest.s
24009     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24010   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24011   (eval $ac_try) 2>&5
24012   ac_status=$?
24013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24014   test $ac_status = 0; }; }
24015     then
24016         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24017     else
24018       echo "configure: failed program was" >&5
24019       cat conftest.s >&5
24020     fi
24021     rm -f conftest.o conftest.s
24022   fi
24023 fi
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24025 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24026 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24027
24028 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24029
24030 fi
24031
24032     ;;
24033
24034   powerpc*-*-*)
24035     case $target in
24036       *-*-aix*) conftest_s='    .machine "pwr5"
24037         .csect .text[PR]
24038         mfcr 3,128';;
24039       *-*-darwin*)
24040         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24041 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24042 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24043   $as_echo_n "(cached) " >&6
24044 else
24045   gcc_cv_as_machine_directive=no
24046   if test x$gcc_cv_as != x; then
24047     echo '      .machine ppc7400' > conftest.s
24048     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24049   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24050   (eval $ac_try) 2>&5
24051   ac_status=$?
24052   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24053   test $ac_status = 0; }; }
24054     then
24055         gcc_cv_as_machine_directive=yes
24056     else
24057       echo "configure: failed program was" >&5
24058       cat conftest.s >&5
24059     fi
24060     rm -f conftest.o conftest.s
24061   fi
24062 fi
24063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24064 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24065
24066         if test x$gcc_cv_as_machine_directive != xyes; then
24067           echo "*** This target requires an assembler supporting \".machine\"" >&2
24068           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24069           test x$build = x$target && exit 1
24070         fi
24071         conftest_s='    .text
24072         mfcr r3,128';;
24073       *) conftest_s='   .machine power4
24074         .text
24075         mfcr 3,128';;
24076     esac
24077
24078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24079 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24080 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24081   $as_echo_n "(cached) " >&6
24082 else
24083   gcc_cv_as_powerpc_mfcrf=no
24084     if test $in_tree_gas = yes; then
24085     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24086   then gcc_cv_as_powerpc_mfcrf=yes
24087 fi
24088   elif test x$gcc_cv_as != x; then
24089     echo "$conftest_s" > conftest.s
24090     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24091   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24092   (eval $ac_try) 2>&5
24093   ac_status=$?
24094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24095   test $ac_status = 0; }; }
24096     then
24097         gcc_cv_as_powerpc_mfcrf=yes
24098     else
24099       echo "configure: failed program was" >&5
24100       cat conftest.s >&5
24101     fi
24102     rm -f conftest.o conftest.s
24103   fi
24104 fi
24105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24106 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24107 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24108
24109 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24110
24111 fi
24112
24113     case $target in
24114       *-*-aix*) conftest_s='    .machine "pwr5"
24115         .csect .text[PR]
24116         popcntb 3,3';;
24117       *) conftest_s='   .machine power5
24118         .text
24119         popcntb 3,3';;
24120     esac
24121
24122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24123 $as_echo_n "checking assembler for popcntb support... " >&6; }
24124 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24125   $as_echo_n "(cached) " >&6
24126 else
24127   gcc_cv_as_powerpc_popcntb=no
24128     if test $in_tree_gas = yes; then
24129     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24130   then gcc_cv_as_powerpc_popcntb=yes
24131 fi
24132   elif test x$gcc_cv_as != x; then
24133     echo "$conftest_s" > conftest.s
24134     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24135   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24136   (eval $ac_try) 2>&5
24137   ac_status=$?
24138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24139   test $ac_status = 0; }; }
24140     then
24141         gcc_cv_as_powerpc_popcntb=yes
24142     else
24143       echo "configure: failed program was" >&5
24144       cat conftest.s >&5
24145     fi
24146     rm -f conftest.o conftest.s
24147   fi
24148 fi
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24150 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24151 if test $gcc_cv_as_powerpc_popcntb = yes; then
24152
24153 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24154
24155 fi
24156
24157     case $target in
24158       *-*-aix*) conftest_s='    .machine "pwr5x"
24159         .csect .text[PR]
24160         frin 1,1';;
24161       *) conftest_s='   .machine power5
24162         .text
24163         frin 1,1';;
24164     esac
24165
24166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24167 $as_echo_n "checking assembler for fp round support... " >&6; }
24168 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24169   $as_echo_n "(cached) " >&6
24170 else
24171   gcc_cv_as_powerpc_fprnd=no
24172     if test $in_tree_gas = yes; then
24173     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24174   then gcc_cv_as_powerpc_fprnd=yes
24175 fi
24176   elif test x$gcc_cv_as != x; then
24177     echo "$conftest_s" > conftest.s
24178     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24179   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24180   (eval $ac_try) 2>&5
24181   ac_status=$?
24182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24183   test $ac_status = 0; }; }
24184     then
24185         gcc_cv_as_powerpc_fprnd=yes
24186     else
24187       echo "configure: failed program was" >&5
24188       cat conftest.s >&5
24189     fi
24190     rm -f conftest.o conftest.s
24191   fi
24192 fi
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24194 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24195 if test $gcc_cv_as_powerpc_fprnd = yes; then
24196
24197 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24198
24199 fi
24200
24201     case $target in
24202       *-*-aix*) conftest_s='    .machine "pwr6"
24203         .csect .text[PR]
24204         mffgpr 1,3';;
24205       *) conftest_s='   .machine power6
24206         .text
24207         mffgpr 1,3';;
24208     esac
24209
24210     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24211 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24212 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24213   $as_echo_n "(cached) " >&6
24214 else
24215   gcc_cv_as_powerpc_mfpgpr=no
24216     if test $in_tree_gas = yes; then
24217     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24218   then gcc_cv_as_powerpc_mfpgpr=yes
24219 fi
24220   elif test x$gcc_cv_as != x; then
24221     echo "$conftest_s" > conftest.s
24222     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24223   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24224   (eval $ac_try) 2>&5
24225   ac_status=$?
24226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24227   test $ac_status = 0; }; }
24228     then
24229         gcc_cv_as_powerpc_mfpgpr=yes
24230     else
24231       echo "configure: failed program was" >&5
24232       cat conftest.s >&5
24233     fi
24234     rm -f conftest.o conftest.s
24235   fi
24236 fi
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24238 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24239 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24240
24241 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24242
24243 fi
24244
24245     case $target in
24246       *-*-aix*) conftest_s='    .csect .text[PR]
24247 LCF..0:
24248         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24249       *-*-darwin*)
24250         conftest_s='    .text
24251 LCF0:
24252         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24253       *) conftest_s='   .text
24254 .LCF0:
24255         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24256     esac
24257
24258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24259 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24260 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24261   $as_echo_n "(cached) " >&6
24262 else
24263   gcc_cv_as_powerpc_rel16=no
24264     if test $in_tree_gas = yes; then
24265     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24266   then gcc_cv_as_powerpc_rel16=yes
24267 fi
24268   elif test x$gcc_cv_as != x; then
24269     echo "$conftest_s" > conftest.s
24270     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24271   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24272   (eval $ac_try) 2>&5
24273   ac_status=$?
24274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24275   test $ac_status = 0; }; }
24276     then
24277         gcc_cv_as_powerpc_rel16=yes
24278     else
24279       echo "configure: failed program was" >&5
24280       cat conftest.s >&5
24281     fi
24282     rm -f conftest.o conftest.s
24283   fi
24284 fi
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24286 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24287 if test $gcc_cv_as_powerpc_rel16 = yes; then
24288
24289 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24290
24291 fi
24292
24293     case $target in
24294       *-*-aix*) conftest_s='    .machine "pwr6"
24295         .csect .text[PR]
24296         cmpb 3,4,5';;
24297       *) conftest_s='   .machine power6
24298         .text
24299         cmpb 3,4,5';;
24300     esac
24301
24302     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24303 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24304 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24305   $as_echo_n "(cached) " >&6
24306 else
24307   gcc_cv_as_powerpc_cmpb=no
24308     if test $in_tree_gas = yes; then
24309     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24310   then gcc_cv_as_powerpc_cmpb=yes
24311 fi
24312   elif test x$gcc_cv_as != x; then
24313     echo "$conftest_s" > conftest.s
24314     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24315   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24316   (eval $ac_try) 2>&5
24317   ac_status=$?
24318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24319   test $ac_status = 0; }; }
24320     then
24321         gcc_cv_as_powerpc_cmpb=yes
24322     else
24323       echo "configure: failed program was" >&5
24324       cat conftest.s >&5
24325     fi
24326     rm -f conftest.o conftest.s
24327   fi
24328 fi
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24330 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24331 if test $gcc_cv_as_powerpc_cmpb = yes; then
24332
24333 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24334
24335 fi
24336
24337     case $target in
24338       *-*-aix*) conftest_s='    .machine "pwr6"
24339         .csect .text[PR]
24340         dadd 1,2,3';;
24341       *) conftest_s='   .machine power6
24342         .text
24343         dadd 1,2,3';;
24344     esac
24345
24346     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24347 $as_echo_n "checking assembler for decimal float support... " >&6; }
24348 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24349   $as_echo_n "(cached) " >&6
24350 else
24351   gcc_cv_as_powerpc_dfp=no
24352     if test $in_tree_gas = yes; then
24353     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24354   then gcc_cv_as_powerpc_dfp=yes
24355 fi
24356   elif test x$gcc_cv_as != x; then
24357     echo "$conftest_s" > conftest.s
24358     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24359   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24360   (eval $ac_try) 2>&5
24361   ac_status=$?
24362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24363   test $ac_status = 0; }; }
24364     then
24365         gcc_cv_as_powerpc_dfp=yes
24366     else
24367       echo "configure: failed program was" >&5
24368       cat conftest.s >&5
24369     fi
24370     rm -f conftest.o conftest.s
24371   fi
24372 fi
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24374 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24375 if test $gcc_cv_as_powerpc_dfp = yes; then
24376
24377 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24378
24379 fi
24380
24381     case $target in
24382       *-*-aix*) conftest_s='    .machine "pwr7"
24383         .csect .text[PR]
24384         lxvd2x 1,2,3';;
24385       *) conftest_s='   .machine power7
24386         .text
24387         lxvd2x 1,2,3';;
24388     esac
24389
24390     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24391 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24392 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24393   $as_echo_n "(cached) " >&6
24394 else
24395   gcc_cv_as_powerpc_vsx=no
24396     if test $in_tree_gas = yes; then
24397     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24398   then gcc_cv_as_powerpc_vsx=yes
24399 fi
24400   elif test x$gcc_cv_as != x; then
24401     echo "$conftest_s" > conftest.s
24402     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24403   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24404   (eval $ac_try) 2>&5
24405   ac_status=$?
24406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24407   test $ac_status = 0; }; }
24408     then
24409         gcc_cv_as_powerpc_vsx=yes
24410     else
24411       echo "configure: failed program was" >&5
24412       cat conftest.s >&5
24413     fi
24414     rm -f conftest.o conftest.s
24415   fi
24416 fi
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24418 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24419 if test $gcc_cv_as_powerpc_vsx = yes; then
24420
24421 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24422
24423 fi
24424
24425     case $target in
24426       *-*-aix*) conftest_s='    .machine "pwr7"
24427         .csect .text[PR]
24428         popcntd 3,3';;
24429       *) conftest_s='   .machine power7
24430         .text
24431         popcntd 3,3';;
24432     esac
24433
24434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24435 $as_echo_n "checking assembler for popcntd support... " >&6; }
24436 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24437   $as_echo_n "(cached) " >&6
24438 else
24439   gcc_cv_as_powerpc_popcntd=no
24440     if test $in_tree_gas = yes; then
24441     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24442   then gcc_cv_as_powerpc_popcntd=yes
24443 fi
24444   elif test x$gcc_cv_as != x; then
24445     echo "$conftest_s" > conftest.s
24446     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24447   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24448   (eval $ac_try) 2>&5
24449   ac_status=$?
24450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24451   test $ac_status = 0; }; }
24452     then
24453         gcc_cv_as_powerpc_popcntd=yes
24454     else
24455       echo "configure: failed program was" >&5
24456       cat conftest.s >&5
24457     fi
24458     rm -f conftest.o conftest.s
24459   fi
24460 fi
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24462 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24463 if test $gcc_cv_as_powerpc_popcntd = yes; then
24464
24465 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24466
24467 fi
24468
24469     case $target in
24470       *-*-aix*) conftest_s='    .csect .text[PR]
24471         lwsync';;
24472       *) conftest_s='   .text
24473         lwsync';;
24474     esac
24475
24476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24477 $as_echo_n "checking assembler for lwsync support... " >&6; }
24478 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24479   $as_echo_n "(cached) " >&6
24480 else
24481   gcc_cv_as_powerpc_lwsync=no
24482     if test $in_tree_gas = yes; then
24483     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24484   then gcc_cv_as_powerpc_lwsync=yes
24485 fi
24486   elif test x$gcc_cv_as != x; then
24487     echo "$conftest_s" > conftest.s
24488     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24489   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24490   (eval $ac_try) 2>&5
24491   ac_status=$?
24492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24493   test $ac_status = 0; }; }
24494     then
24495         gcc_cv_as_powerpc_lwsync=yes
24496     else
24497       echo "configure: failed program was" >&5
24498       cat conftest.s >&5
24499     fi
24500     rm -f conftest.o conftest.s
24501   fi
24502 fi
24503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24504 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24505 if test $gcc_cv_as_powerpc_lwsync = yes; then
24506
24507 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24508
24509 fi
24510
24511     case $target in
24512       *-*-aix*) conftest_s='    .machine "476"
24513         .csect .text[PR]
24514         dci 0';;
24515       *) conftest_s='   .machine "476"
24516         .text
24517         dci 0';;
24518     esac
24519
24520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24521 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24522 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24523   $as_echo_n "(cached) " >&6
24524 else
24525   gcc_cv_as_powerpc_dci=no
24526     if test $in_tree_gas = yes; then
24527     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24528   then gcc_cv_as_powerpc_dci=yes
24529 fi
24530   elif test x$gcc_cv_as != x; then
24531     echo "$conftest_s" > conftest.s
24532     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24533   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24534   (eval $ac_try) 2>&5
24535   ac_status=$?
24536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24537   test $ac_status = 0; }; }
24538     then
24539         gcc_cv_as_powerpc_dci=yes
24540     else
24541       echo "configure: failed program was" >&5
24542       cat conftest.s >&5
24543     fi
24544     rm -f conftest.o conftest.s
24545   fi
24546 fi
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24548 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24549 if test $gcc_cv_as_powerpc_dci = yes; then
24550
24551 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24552
24553 fi
24554
24555     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24556 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24557 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24558   $as_echo_n "(cached) " >&6
24559 else
24560   gcc_cv_as_powerpc_gnu_attribute=no
24561     if test $in_tree_gas = yes; then
24562     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24563   then gcc_cv_as_powerpc_gnu_attribute=yes
24564 fi
24565   elif test x$gcc_cv_as != x; then
24566     echo '.gnu_attribute 4,1' > conftest.s
24567     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24568   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24569   (eval $ac_try) 2>&5
24570   ac_status=$?
24571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24572   test $ac_status = 0; }; }
24573     then
24574         gcc_cv_as_powerpc_gnu_attribute=yes
24575     else
24576       echo "configure: failed program was" >&5
24577       cat conftest.s >&5
24578     fi
24579     rm -f conftest.o conftest.s
24580   fi
24581 fi
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24583 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24584 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24585
24586 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24587
24588 fi
24589
24590     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24591 $as_echo_n "checking assembler for tls marker support... " >&6; }
24592 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24593   $as_echo_n "(cached) " >&6
24594 else
24595   gcc_cv_as_powerpc_tls_markers=no
24596     if test $in_tree_gas = yes; then
24597     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24598   then gcc_cv_as_powerpc_tls_markers=yes
24599 fi
24600   elif test x$gcc_cv_as != x; then
24601     echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24602     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24603   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24604   (eval $ac_try) 2>&5
24605   ac_status=$?
24606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24607   test $ac_status = 0; }; }
24608     then
24609         gcc_cv_as_powerpc_tls_markers=yes
24610     else
24611       echo "configure: failed program was" >&5
24612       cat conftest.s >&5
24613     fi
24614     rm -f conftest.o conftest.s
24615   fi
24616 fi
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24618 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24619 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24620
24621 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24622
24623 fi
24624
24625     case $target in
24626       *-*-aix*)
24627         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24628 $as_echo_n "checking assembler for .ref support... " >&6; }
24629 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24630   $as_echo_n "(cached) " >&6
24631 else
24632   gcc_cv_as_aix_ref=no
24633     if test $in_tree_gas = yes; then
24634     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24635   then :
24636 fi
24637   elif test x$gcc_cv_as != x; then
24638     echo '      .csect stuff[rw]
24639              stuff:
24640                 .long 1
24641                 .extern sym
24642                 .ref sym
24643           ' > conftest.s
24644     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24645   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24646   (eval $ac_try) 2>&5
24647   ac_status=$?
24648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24649   test $ac_status = 0; }; }
24650     then
24651         gcc_cv_as_aix_ref=yes
24652     else
24653       echo "configure: failed program was" >&5
24654       cat conftest.s >&5
24655     fi
24656     rm -f conftest.o conftest.s
24657   fi
24658 fi
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24660 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24661 if test $gcc_cv_as_aix_ref = yes; then
24662
24663 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24664
24665 fi
24666         ;;
24667     esac
24668     ;;
24669
24670   mips*-*-*)
24671     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24672 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24673 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24674   $as_echo_n "(cached) " >&6
24675 else
24676   gcc_cv_as_mips_explicit_relocs=no
24677     if test $in_tree_gas = yes; then
24678     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24679   then gcc_cv_as_mips_explicit_relocs=yes
24680 fi
24681   elif test x$gcc_cv_as != x; then
24682     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
24683     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24684   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24685   (eval $ac_try) 2>&5
24686   ac_status=$?
24687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24688   test $ac_status = 0; }; }
24689     then
24690         gcc_cv_as_mips_explicit_relocs=yes
24691     else
24692       echo "configure: failed program was" >&5
24693       cat conftest.s >&5
24694     fi
24695     rm -f conftest.o conftest.s
24696   fi
24697 fi
24698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24699 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24700 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24701   if test x$target_cpu_default = x
24702        then target_cpu_default=MASK_EXPLICIT_RELOCS
24703        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24704        fi
24705 fi
24706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24707 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24708 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24709   $as_echo_n "(cached) " >&6
24710 else
24711   gcc_cv_as_mips_no_shared=no
24712     if test $in_tree_gas = yes; then
24713     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24714   then gcc_cv_as_mips_no_shared=yes
24715 fi
24716   elif test x$gcc_cv_as != x; then
24717     echo 'nop' > conftest.s
24718     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24719   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24720   (eval $ac_try) 2>&5
24721   ac_status=$?
24722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24723   test $ac_status = 0; }; }
24724     then
24725         gcc_cv_as_mips_no_shared=yes
24726     else
24727       echo "configure: failed program was" >&5
24728       cat conftest.s >&5
24729     fi
24730     rm -f conftest.o conftest.s
24731   fi
24732 fi
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24734 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24735 if test $gcc_cv_as_mips_no_shared = yes; then
24736
24737 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24738
24739 fi
24740
24741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24742 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24743 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24744   $as_echo_n "(cached) " >&6
24745 else
24746   gcc_cv_as_mips_gnu_attribute=no
24747     if test $in_tree_gas = yes; then
24748     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24749   then gcc_cv_as_mips_gnu_attribute=yes
24750 fi
24751   elif test x$gcc_cv_as != x; then
24752     echo '.gnu_attribute 4,1' > conftest.s
24753     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24754   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24755   (eval $ac_try) 2>&5
24756   ac_status=$?
24757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24758   test $ac_status = 0; }; }
24759     then
24760         gcc_cv_as_mips_gnu_attribute=yes
24761     else
24762       echo "configure: failed program was" >&5
24763       cat conftest.s >&5
24764     fi
24765     rm -f conftest.o conftest.s
24766   fi
24767 fi
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24769 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24770 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24771
24772 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24773
24774 fi
24775
24776     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24777 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24778 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24779   $as_echo_n "(cached) " >&6
24780 else
24781   gcc_cv_as_mips_dtprelword=no
24782     if test $in_tree_gas = yes; then
24783     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24784   then gcc_cv_as_mips_dtprelword=yes
24785 fi
24786   elif test x$gcc_cv_as != x; then
24787     echo '.section .tdata,"awT",@progbits
24788 x:
24789         .word 2
24790         .text
24791         .dtprelword x+0x8000' > conftest.s
24792     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24793   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24794   (eval $ac_try) 2>&5
24795   ac_status=$?
24796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24797   test $ac_status = 0; }; }
24798     then
24799         gcc_cv_as_mips_dtprelword=yes
24800     else
24801       echo "configure: failed program was" >&5
24802       cat conftest.s >&5
24803     fi
24804     rm -f conftest.o conftest.s
24805   fi
24806 fi
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24808 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24809 if test $gcc_cv_as_mips_dtprelword = yes; then
24810
24811 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24812
24813 fi
24814
24815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
24816 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
24817 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
24818   $as_echo_n "(cached) " >&6
24819 else
24820   gcc_cv_as_mips_dspr1_mult=no
24821   if test x$gcc_cv_as != x; then
24822     echo '      .set    mips32r2
24823         .set    nodspr2
24824         .set    dsp
24825         madd    $ac3,$4,$5
24826         maddu   $ac3,$4,$5
24827         msub    $ac3,$4,$5
24828         msubu   $ac3,$4,$5
24829         mult    $ac3,$4,$5
24830         multu   $ac3,$4,$5' > conftest.s
24831     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24832   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24833   (eval $ac_try) 2>&5
24834   ac_status=$?
24835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24836   test $ac_status = 0; }; }
24837     then
24838         gcc_cv_as_mips_dspr1_mult=yes
24839     else
24840       echo "configure: failed program was" >&5
24841       cat conftest.s >&5
24842     fi
24843     rm -f conftest.o conftest.s
24844   fi
24845 fi
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
24847 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
24848 if test $gcc_cv_as_mips_dspr1_mult = yes; then
24849
24850 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
24851
24852 fi
24853
24854     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24855 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24856     gcc_cv_as_ld_jalr_reloc=no
24857     if test $gcc_cv_as_mips_explicit_relocs = yes; then
24858       if test $in_tree_ld = yes ; then
24859         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 \
24860            && test $in_tree_ld_is_elf = yes; then
24861           gcc_cv_as_ld_jalr_reloc=yes
24862         fi
24863       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24864         echo '  .ent x' > conftest.s
24865         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
24866         echo '  ld $25,%call16(y)($28)' >> conftest.s
24867         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
24868         echo '1:        jalr $25' >> conftest.s
24869         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
24870         echo '1:        jalr $25' >> conftest.s
24871         echo '  .end x' >> conftest.s
24872         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24873            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24874           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24875              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24876             gcc_cv_as_ld_jalr_reloc=yes
24877           fi
24878         fi
24879         rm -f conftest.*
24880       fi
24881     fi
24882     if test $gcc_cv_as_ld_jalr_reloc = yes; then
24883       if test x$target_cpu_default = x; then
24884         target_cpu_default=MASK_RELAX_PIC_CALLS
24885       else
24886         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24887       fi
24888     fi
24889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24890 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24891
24892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24893 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24894 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24895   $as_echo_n "(cached) " >&6
24896 else
24897   gcc_cv_ld_mips_personality_relaxation=no
24898        if test $in_tree_ld = yes ; then
24899          if test "$gcc_cv_gld_major_version" -eq 2 \
24900                  -a "$gcc_cv_gld_minor_version" -ge 21 \
24901                  -o "$gcc_cv_gld_major_version" -gt 2; then
24902            gcc_cv_ld_mips_personality_relaxation=yes
24903          fi
24904        elif test x$gcc_cv_as != x \
24905                  -a x$gcc_cv_ld != x \
24906                  -a x$gcc_cv_readelf != x ; then
24907          cat > conftest.s <<EOF
24908         .cfi_startproc
24909         .cfi_personality 0x80,indirect_ptr
24910         .ent test
24911 test:
24912         nop
24913         .end test
24914         .cfi_endproc
24915
24916         .section .data,"aw",@progbits
24917 indirect_ptr:
24918         .dc.a personality
24919 EOF
24920          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24921             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24922            if $gcc_cv_readelf -d conftest 2>&1 \
24923               | grep TEXTREL > /dev/null 2>&1; then
24924              :
24925            elif $gcc_cv_readelf --relocs conftest 2>&1 \
24926                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24927              :
24928            else
24929              gcc_cv_ld_mips_personality_relaxation=yes
24930            fi
24931          fi
24932        fi
24933        rm -f conftest.s conftest.o conftest
24934 fi
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24936 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24937     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24938
24939 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24940
24941     fi
24942     ;;
24943 esac
24944
24945 # Mips and HP-UX need the GNU assembler.
24946 # Linux on IA64 might be able to use the Intel assembler.
24947
24948 case "$target" in
24949   mips*-*-* | *-*-hpux* )
24950     if test x$gas_flag = xyes \
24951        || test x"$host" != x"$build" \
24952        || test ! -x "$gcc_cv_as" \
24953        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24954       :
24955     else
24956       echo "*** This configuration requires the GNU assembler" >&2
24957       exit 1
24958     fi
24959     ;;
24960 esac
24961
24962 # ??? Not all targets support dwarf2 debug_line, even within a version
24963 # of gas.  Moreover, we need to emit a valid instruction to trigger any
24964 # info to the output file.  So, as supported targets are added to gas 2.11,
24965 # add some instruction here to (also) show we expect this might work.
24966 # ??? Once 2.11 is released, probably need to add first known working
24967 # version to the per-target configury.
24968 case "$cpu_type" in
24969   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
24970   | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
24971     insn="nop"
24972     ;;
24973   ia64 | s390)
24974     insn="nop 0"
24975     ;;
24976   mmix)
24977     insn="swym 0"
24978     ;;
24979 esac
24980 if test x"$insn" != x; then
24981  conftest_s="\
24982         .file 1 \"conftest.s\"
24983         .loc 1 3 0
24984         $insn"
24985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24986 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24987 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24988   $as_echo_n "(cached) " >&6
24989 else
24990   gcc_cv_as_dwarf2_debug_line=no
24991     if test $in_tree_gas = yes; then
24992     if test $in_tree_gas_is_elf = yes \
24993   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24994   then gcc_cv_as_dwarf2_debug_line=yes
24995 fi
24996   elif test x$gcc_cv_as != x; then
24997     echo "$conftest_s" > conftest.s
24998     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24999   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25000   (eval $ac_try) 2>&5
25001   ac_status=$?
25002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25003   test $ac_status = 0; }; }
25004     then
25005         if test x$gcc_cv_objdump != x \
25006    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25007       | grep debug_line > /dev/null 2>&1; then
25008      gcc_cv_as_dwarf2_debug_line=yes
25009    fi
25010     else
25011       echo "configure: failed program was" >&5
25012       cat conftest.s >&5
25013     fi
25014     rm -f conftest.o conftest.s
25015   fi
25016 fi
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25018 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25019
25020
25021 # The .debug_line file table must be in the exact order that
25022 # we specified the files, since these indices are also used
25023 # by DW_AT_decl_file.  Approximate this test by testing if
25024 # the assembler bitches if the same index is assigned twice.
25025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25026 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25027 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25028   $as_echo_n "(cached) " >&6
25029 else
25030   gcc_cv_as_dwarf2_file_buggy=no
25031   if test x$gcc_cv_as != x; then
25032     echo '      .file 1 "foo.s"
25033         .file 1 "bar.s"' > conftest.s
25034     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25035   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25036   (eval $ac_try) 2>&5
25037   ac_status=$?
25038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25039   test $ac_status = 0; }; }
25040     then
25041         gcc_cv_as_dwarf2_file_buggy=yes
25042     else
25043       echo "configure: failed program was" >&5
25044       cat conftest.s >&5
25045     fi
25046     rm -f conftest.o conftest.s
25047   fi
25048 fi
25049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25050 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25051
25052
25053  if test $gcc_cv_as_dwarf2_debug_line = yes \
25054  && test $gcc_cv_as_dwarf2_file_buggy = no; then
25055
25056 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25057
25058  fi
25059
25060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25061 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25062 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25063   $as_echo_n "(cached) " >&6
25064 else
25065   gcc_cv_as_gdwarf2_flag=no
25066     if test $in_tree_gas = yes; then
25067     if test $in_tree_gas_is_elf = yes \
25068   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25069   then gcc_cv_as_gdwarf2_flag=yes
25070 fi
25071   elif test x$gcc_cv_as != x; then
25072     echo "$insn" > conftest.s
25073     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25074   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25075   (eval $ac_try) 2>&5
25076   ac_status=$?
25077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25078   test $ac_status = 0; }; }
25079     then
25080         gcc_cv_as_gdwarf2_flag=yes
25081     else
25082       echo "configure: failed program was" >&5
25083       cat conftest.s >&5
25084     fi
25085     rm -f conftest.o conftest.s
25086   fi
25087 fi
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25089 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25090 if test $gcc_cv_as_gdwarf2_flag = yes; then
25091
25092 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25093
25094 fi
25095
25096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25097 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25098 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25099   $as_echo_n "(cached) " >&6
25100 else
25101   gcc_cv_as_gstabs_flag=no
25102     if test $in_tree_gas = yes; then
25103     if test $in_tree_gas_is_elf = yes \
25104   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25105   then gcc_cv_as_gstabs_flag=yes
25106 fi
25107   elif test x$gcc_cv_as != x; then
25108     echo "$insn" > conftest.s
25109     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25110   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25111   (eval $ac_try) 2>&5
25112   ac_status=$?
25113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25114   test $ac_status = 0; }; }
25115     then
25116         # The native Solaris 9/Intel assembler doesn't understand --gstabs
25117    # and warns about it, but still exits successfully.  So check for
25118    # this.
25119    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25120   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25121   (eval $ac_try) 2>&5
25122   ac_status=$?
25123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25124   test $ac_status = 0; }; }
25125    then :
25126    else gcc_cv_as_gstabs_flag=yes
25127    fi
25128     else
25129       echo "configure: failed program was" >&5
25130       cat conftest.s >&5
25131     fi
25132     rm -f conftest.o conftest.s
25133   fi
25134 fi
25135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25136 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25137 if test $gcc_cv_as_gstabs_flag = yes; then
25138
25139 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25140
25141 fi
25142
25143  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25144 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25145 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25146   $as_echo_n "(cached) " >&6
25147 else
25148   gcc_cv_as_debug_prefix_map_flag=no
25149     if test $in_tree_gas = yes; then
25150     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25151   then gcc_cv_as_debug_prefix_map_flag=yes
25152 fi
25153   elif test x$gcc_cv_as != x; then
25154     echo "$insn" > conftest.s
25155     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25156   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25157   (eval $ac_try) 2>&5
25158   ac_status=$?
25159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25160   test $ac_status = 0; }; }
25161     then
25162         gcc_cv_as_debug_prefix_map_flag=yes
25163     else
25164       echo "configure: failed program was" >&5
25165       cat conftest.s >&5
25166     fi
25167     rm -f conftest.o conftest.s
25168   fi
25169 fi
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25171 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25172 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25173
25174 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25175
25176 fi
25177 fi
25178
25179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25180 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25181 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25182   $as_echo_n "(cached) " >&6
25183 else
25184   gcc_cv_as_lcomm_with_alignment=no
25185   if test x$gcc_cv_as != x; then
25186     echo '.lcomm bar,4,16' > conftest.s
25187     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25188   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25189   (eval $ac_try) 2>&5
25190   ac_status=$?
25191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25192   test $ac_status = 0; }; }
25193     then
25194         gcc_cv_as_lcomm_with_alignment=yes
25195     else
25196       echo "configure: failed program was" >&5
25197       cat conftest.s >&5
25198     fi
25199     rm -f conftest.o conftest.s
25200   fi
25201 fi
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25203 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25204 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25205
25206 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25207
25208 fi
25209
25210 # Check whether --enable-gnu-unique-object was given.
25211 if test "${enable_gnu_unique_object+set}" = set; then :
25212   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25213     yes | no) ;;
25214     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25215 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25216   esac
25217 else
25218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25219 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25220 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25221   $as_echo_n "(cached) " >&6
25222 else
25223   gcc_cv_as_gnu_unique_object=no
25224     if test $in_tree_gas = yes; then
25225     if test $in_tree_gas_is_elf = yes \
25226   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25227   then gcc_cv_as_gnu_unique_object=yes
25228 fi
25229   elif test x$gcc_cv_as != x; then
25230     echo '.type foo, @gnu_unique_object' > conftest.s
25231     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25232   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25233   (eval $ac_try) 2>&5
25234   ac_status=$?
25235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25236   test $ac_status = 0; }; }
25237     then
25238         gcc_cv_as_gnu_unique_object=yes
25239     else
25240       echo "configure: failed program was" >&5
25241       cat conftest.s >&5
25242     fi
25243     rm -f conftest.o conftest.s
25244   fi
25245 fi
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25247 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25248 if test $gcc_cv_as_gnu_unique_object = yes; then
25249   # Also check for ld.so support, i.e. glibc 2.11 or higher.
25250    if test x$host = x$build -a x$host = x$target &&
25251        ldd --version 2>/dev/null &&
25252        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25253       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25254       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25255       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25256       if test "$glibcnum" -ge 2011 ; then
25257         enable_gnu_unique_object=yes
25258       fi
25259     fi
25260 fi
25261 fi
25262
25263 if test x$enable_gnu_unique_object = xyes; then
25264
25265 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25266
25267 fi
25268
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25270 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25271 if test "${gcc_cv_as_line_zero+set}" = set; then :
25272   $as_echo_n "(cached) " >&6
25273 else
25274   gcc_cv_as_line_zero=no
25275   if test $in_tree_gas = yes; then
25276     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25277   then gcc_cv_as_line_zero=yes
25278 fi
25279   elif test "x$gcc_cv_as" != x; then
25280     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25281     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25282   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25283   (eval $ac_try) 2>&5
25284   ac_status=$?
25285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25286   test $ac_status = 0; }; } &&
25287        test "x`cat conftest.out`" = x
25288     then
25289       gcc_cv_as_line_zero=yes
25290     else
25291       echo "configure: failed program was" >&5
25292       cat conftest.s >&5
25293       echo "configure: error output was" >&5
25294       cat conftest.out >&5
25295     fi
25296     rm -f conftest.o conftest.s conftest.out
25297   fi
25298 fi
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25300 $as_echo "$gcc_cv_as_line_zero" >&6; }
25301 if test "x$gcc_cv_as_line_zero" = xyes; then
25302
25303 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25304
25305 fi
25306
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25308 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25309 gcc_cv_ld_eh_frame_hdr=no
25310 if test $in_tree_ld = yes ; then
25311   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 \
25312      && test $in_tree_ld_is_elf = yes; then
25313     gcc_cv_ld_eh_frame_hdr=yes
25314   fi
25315 elif test x$gcc_cv_ld != x; then
25316   if echo "$ld_ver" | grep GNU > /dev/null; then
25317     # Check if linker supports --eh-frame-hdr option
25318     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25319       gcc_cv_ld_eh_frame_hdr=yes
25320     fi
25321   else
25322     case "$target" in
25323       *-*-solaris2*)
25324         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25325         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
25326           gcc_cv_ld_eh_frame_hdr=yes
25327         fi
25328         ;;
25329     esac
25330   fi
25331 fi
25332
25333 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25334
25335 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25336
25337 fi
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25339 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25340
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25342 $as_echo_n "checking linker position independent executable support... " >&6; }
25343 gcc_cv_ld_pie=no
25344 if test $in_tree_ld = yes ; then
25345   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 \
25346      && test $in_tree_ld_is_elf = yes; then
25347     gcc_cv_ld_pie=yes
25348   fi
25349 elif test x$gcc_cv_ld != x; then
25350         # Check if linker supports -pie option
25351         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25352                 gcc_cv_ld_pie=yes
25353         fi
25354 fi
25355 if test x"$gcc_cv_ld_pie" = xyes; then
25356
25357 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25358
25359 fi
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25361 $as_echo "$gcc_cv_ld_pie" >&6; }
25362
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25364 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25365 gcc_cv_ld_eh_gc_sections=no
25366 if test $in_tree_ld = yes ; then
25367   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 \
25368      && test $in_tree_ld_is_elf = yes; then
25369     gcc_cv_ld_eh_gc_sections=yes
25370   fi
25371 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25372   cat > conftest.s <<EOF
25373         .section        .text
25374 .globl _start
25375         .type _start, @function
25376 _start:
25377         .long foo
25378         .size _start, .-_start
25379         .section        .text.foo,"ax",@progbits
25380         .type foo, @function
25381 foo:
25382         .long 0
25383         .size foo, .-foo
25384         .section        .gcc_except_table.foo,"a",@progbits
25385 .L0:
25386         .long 0
25387         .section        .eh_frame,"a",@progbits
25388         .long .L0
25389 EOF
25390   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25391     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25392          | grep "gc-sections option ignored" > /dev/null; then
25393       gcc_cv_ld_eh_gc_sections=no
25394     elif $gcc_cv_objdump -h conftest 2> /dev/null \
25395          | grep gcc_except_table > /dev/null; then
25396       gcc_cv_ld_eh_gc_sections=yes
25397       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25398       if test x$gcc_cv_as_comdat_group != xyes; then
25399         gcc_cv_ld_eh_gc_sections=no
25400         cat > conftest.s <<EOF
25401         .section        .text
25402 .globl _start
25403         .type _start, @function
25404 _start:
25405         .long foo
25406         .size _start, .-_start
25407         .section        .gnu.linkonce.t.foo,"ax",@progbits
25408         .type foo, @function
25409 foo:
25410         .long 0
25411         .size foo, .-foo
25412         .section        .gcc_except_table.foo,"a",@progbits
25413 .L0:
25414         .long 0
25415         .section        .eh_frame,"a",@progbits
25416         .long .L0
25417 EOF
25418         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25419           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25420                | grep "gc-sections option ignored" > /dev/null; then
25421             gcc_cv_ld_eh_gc_sections=no
25422           elif $gcc_cv_objdump -h conftest 2> /dev/null \
25423                | grep gcc_except_table > /dev/null; then
25424             gcc_cv_ld_eh_gc_sections=yes
25425           fi
25426         fi
25427       fi
25428     fi
25429   fi
25430   rm -f conftest.s conftest.o conftest
25431 fi
25432 case "$target" in
25433   hppa*-*-linux*)
25434     # ??? This apparently exposes a binutils bug with PC-relative relocations.
25435     gcc_cv_ld_eh_gc_sections=no
25436     ;;
25437 esac
25438 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25439
25440 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25441
25442 fi
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25444 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25445
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
25447 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
25448 gcc_cv_ld_eh_gc_sections_bug=no
25449 if test $in_tree_ld = yes ; then
25450   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 \
25451      && test $in_tree_ld_is_elf = yes; then
25452     gcc_cv_ld_eh_gc_sections_bug=yes
25453   fi
25454 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
25455   gcc_cv_ld_eh_gc_sections_bug=yes
25456   cat > conftest.s <<EOF
25457         .section        .text
25458 .globl _start
25459         .type _start, @function
25460 _start:
25461         .long foo
25462         .size _start, .-_start
25463         .section        .text.startup.foo,"ax",@progbits
25464         .type foo, @function
25465 foo:
25466         .long 0
25467         .size foo, .-foo
25468         .section        .gcc_except_table.foo,"a",@progbits
25469 .L0:
25470         .long 0
25471         .section        .eh_frame,"a",@progbits
25472         .long .L0
25473 EOF
25474   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25475     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25476          | grep "gc-sections option ignored" > /dev/null; then
25477       :
25478     elif $gcc_cv_objdump -h conftest 2> /dev/null \
25479          | grep gcc_except_table > /dev/null; then
25480       gcc_cv_ld_eh_gc_sections_bug=no
25481     fi
25482   fi
25483   rm -f conftest.s conftest.o conftest
25484 fi
25485 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
25486
25487 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
25488
25489 fi
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
25491 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
25492
25493 # --------
25494 # UNSORTED
25495 # --------
25496
25497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25498 $as_echo_n "checking linker --as-needed support... " >&6; }
25499 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25500   $as_echo_n "(cached) " >&6
25501 else
25502   gcc_cv_ld_as_needed=no
25503 if test $in_tree_ld = yes ; then
25504   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 \
25505      && test $in_tree_ld_is_elf = yes; then
25506     gcc_cv_ld_as_needed=yes
25507   fi
25508 elif test x$gcc_cv_ld != x; then
25509         # Check if linker supports --as-needed and --no-as-needed options
25510         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25511                 gcc_cv_ld_as_needed=yes
25512         fi
25513 fi
25514
25515 fi
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25517 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25518 if test x"$gcc_cv_ld_as_needed" = xyes; then
25519
25520 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25521
25522 fi
25523
25524 case "$target:$tm_file" in
25525   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25527 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25528 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25529   $as_echo_n "(cached) " >&6
25530 else
25531   gcc_cv_ld_no_dot_syms=no
25532     if test x"$ld_is_gold" = xyes; then
25533       gcc_cv_ld_no_dot_syms=yes
25534     elif test $in_tree_ld = yes ; then
25535       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
25536         gcc_cv_ld_no_dot_syms=yes
25537       fi
25538     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25539       cat > conftest1.s <<EOF
25540         .text
25541         bl .foo
25542 EOF
25543       cat > conftest2.s <<EOF
25544         .section ".opd","aw"
25545         .align 3
25546         .globl foo
25547         .type foo,@function
25548 foo:
25549         .quad .LEfoo,.TOC.@tocbase,0
25550         .text
25551 .LEfoo:
25552         blr
25553         .size foo,.-.LEfoo
25554 EOF
25555       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25556          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25557          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25558         gcc_cv_ld_no_dot_syms=yes
25559       fi
25560       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25561     fi
25562
25563 fi
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25565 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25566     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25567
25568 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25569
25570     fi
25571
25572     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25573 $as_echo_n "checking linker large toc support... " >&6; }
25574 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25575   $as_echo_n "(cached) " >&6
25576 else
25577   gcc_cv_ld_large_toc=no
25578     if test x"$ld_is_gold" = xyes; then
25579       gcc_cv_ld_large_toc=yes
25580     elif test $in_tree_ld = yes ; then
25581       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
25582         gcc_cv_ld_large_toc=yes
25583       fi
25584     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25585       cat > conftest.s <<EOF
25586         .section ".tbss","awT",@nobits
25587         .align 3
25588 ie0:    .space 8
25589         .global _start
25590         .text
25591 _start:
25592         addis 9,13,ie0@got@tprel@ha
25593         ld 9,ie0@got@tprel@l(9)
25594 EOF
25595       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25596          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25597         gcc_cv_ld_large_toc=yes
25598       fi
25599       rm -f conftest conftest.o conftest.s
25600     fi
25601
25602 fi
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25604 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25605     if test x"$gcc_cv_ld_large_toc" = xyes; then
25606
25607 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25608
25609     fi
25610     ;;
25611 esac
25612
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25614 $as_echo_n "checking linker --build-id support... " >&6; }
25615 if test "${gcc_cv_ld_buildid+set}" = set; then :
25616   $as_echo_n "(cached) " >&6
25617 else
25618   gcc_cv_ld_buildid=no
25619   if test $in_tree_ld = yes ; then
25620     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25621        "$gcc_cv_gld_minor_version" -ge 18 -o \
25622        "$gcc_cv_gld_major_version" -gt 2 \
25623        && test $in_tree_ld_is_elf = yes; then
25624       gcc_cv_ld_buildid=yes
25625     fi
25626   elif test x$gcc_cv_ld != x; then
25627     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25628       gcc_cv_ld_buildid=yes
25629     fi
25630   fi
25631 fi
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25633 $as_echo "$gcc_cv_ld_buildid" >&6; }
25634 if test x"$gcc_cv_ld_buildid" = xyes; then
25635
25636 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25637
25638 fi
25639
25640 # Check whether --enable-linker-build-id was given.
25641 if test "${enable_linker_build_id+set}" = set; then :
25642   enableval=$enable_linker_build_id;
25643 else
25644   enable_linker_build_id=no
25645 fi
25646
25647
25648 if test x"$enable_linker_build_id" = xyes; then
25649   if test x"$gcc_cv_ld_buildid" = xyes; then
25650
25651 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25652
25653   else
25654     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25655 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25656   fi
25657 fi
25658
25659 # In binutils 2.21, GNU ld gained support for new emulations fully
25660 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25662 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25663 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25664   $as_echo_n "(cached) " >&6
25665 else
25666   gcc_cv_ld_sol2_emulation=no
25667   if test $in_tree_ld = yes ; then
25668     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25669        "$gcc_cv_gld_minor_version" -ge 21 -o \
25670        "$gcc_cv_gld_major_version" -gt 2 \
25671        && test $in_tree_ld_is_elf = yes; then
25672       gcc_cv_ld_sol2_emulation=yes
25673     fi
25674   elif test x$gcc_cv_ld != x; then
25675     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25676        grep _sol2 > /dev/null; then
25677       gcc_cv_ld_sol2_emulation=yes
25678     fi
25679   fi
25680 fi
25681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25682 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25683 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25684
25685 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25686
25687 fi
25688
25689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25690 $as_echo_n "checking linker --sysroot support... " >&6; }
25691 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25692   $as_echo_n "(cached) " >&6
25693 else
25694   gcc_cv_ld_sysroot=no
25695   if test $in_tree_ld = yes ; then
25696       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
25697         gcc_cv_ld_sysroot=yes
25698       fi
25699   elif test x$gcc_cv_ld != x; then
25700     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25701       gcc_cv_ld_sysroot=yes
25702     fi
25703   fi
25704 fi
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25706 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25707 if test x"$gcc_cv_ld_sysroot" = xyes; then
25708
25709 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25710
25711 fi
25712
25713 if test x$with_sysroot = x && test x$host = x$target \
25714    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25715    && test "$prefix" != "NONE"; then
25716
25717 cat >>confdefs.h <<_ACEOF
25718 #define PREFIX_INCLUDE_DIR "$prefix/include"
25719 _ACEOF
25720
25721 fi
25722
25723 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25724   if test "x$with_headers" != x; then
25725     target_header_dir=$with_headers
25726   elif test "x$with_sysroot" = x; then
25727     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25728   elif test "x$with_build_sysroot" != "x"; then
25729     target_header_dir="${with_build_sysroot}/usr/include"
25730   elif test "x$with_sysroot" = xyes; then
25731     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25732   else
25733     target_header_dir="${with_sysroot}/usr/include"
25734   fi
25735 else
25736   target_header_dir=/usr/include
25737 fi
25738
25739 # Test for stack protector support in target C library.
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25741 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25742 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25743   $as_echo_n "(cached) " >&6
25744 else
25745   gcc_cv_libc_provides_ssp=no
25746     case "$target" in
25747        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25748       # glibc 2.4 and later provides __stack_chk_fail and
25749       # either __stack_chk_guard, or TLS access to stack guard canary.
25750       if test -f $target_header_dir/features.h \
25751          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
25752             $target_header_dir/features.h > /dev/null; then
25753         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
25754            $target_header_dir/features.h > /dev/null; then
25755           gcc_cv_libc_provides_ssp=yes
25756         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
25757              $target_header_dir/features.h > /dev/null \
25758              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
25759              $target_header_dir/features.h > /dev/null; then
25760           gcc_cv_libc_provides_ssp=yes
25761         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
25762              $target_header_dir/features.h > /dev/null && \
25763              test -f $target_header_dir/bits/uClibc_config.h && \
25764              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
25765              $target_header_dir/bits/uClibc_config.h > /dev/null; then
25766           gcc_cv_libc_provides_ssp=yes
25767         fi
25768       fi
25769         ;;
25770        *-*-gnu*)
25771          # Avoid complicated tests (see
25772          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25773          # simply assert that glibc does provide this, which is true for all
25774          # realistically usable GNU/Hurd configurations.
25775          gcc_cv_libc_provides_ssp=yes;;
25776        *-*-darwin* | *-*-freebsd*)
25777          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25778 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25779   gcc_cv_libc_provides_ssp=yes
25780 else
25781   echo "no __stack_chk_fail on this target"
25782 fi
25783
25784         ;;
25785   *) gcc_cv_libc_provides_ssp=no ;;
25786     esac
25787 fi
25788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25789 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25790
25791 if test x$gcc_cv_libc_provides_ssp = xyes; then
25792
25793 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25794
25795 fi
25796
25797 # Check if TFmode long double should be used by default or not.
25798 # Some glibc targets used DFmode long double, but with glibc 2.4
25799 # and later they can use TFmode.
25800 case "$target" in
25801   powerpc*-*-linux* | \
25802   powerpc*-*-gnu* | \
25803   sparc*-*-linux* | \
25804   s390*-*-linux* | \
25805   alpha*-*-linux*)
25806
25807 # Check whether --with-long-double-128 was given.
25808 if test "${with_long_double_128+set}" = set; then :
25809   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25810 else
25811   gcc_cv_target_ldbl128=no
25812       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25813         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25814       && gcc_cv_target_ldbl128=yes
25815
25816 fi
25817
25818     ;;
25819 esac
25820 if test x$gcc_cv_target_ldbl128 = xyes; then
25821
25822 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25823
25824 fi
25825
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
25827 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
25828 gcc_cv_target_dl_iterate_phdr=unknown
25829 case "$target" in
25830   *-*-solaris2*)
25831     # <link.h> needs both a dl_iterate_phdr declaration and support for
25832     # compilation with largefile support.
25833     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
25834       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
25835       gcc_cv_target_dl_iterate_phdr=yes
25836     else
25837       gcc_cv_target_dl_iterate_phdr=no
25838     fi
25839     ;;
25840 esac
25841
25842 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
25843
25844 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
25845
25846 fi
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
25848 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
25849
25850 # Find out what GC implementation we want, or may, use.
25851
25852 # Check whether --with-gc was given.
25853 if test "${with_gc+set}" = set; then :
25854   withval=$with_gc; case "$withval" in
25855   page)
25856     GGC=ggc-$withval
25857     ;;
25858   zone)
25859     GGC=ggc-$withval
25860
25861 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25862
25863     ;;
25864   *)
25865     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25866     ;;
25867 esac
25868 else
25869   GGC=ggc-page
25870 fi
25871
25872
25873 echo "Using $GGC for garbage collection."
25874
25875 # Libraries to use on the host.  This will normally be set by the top
25876 # level Makefile.  Here we simply capture the value for our Makefile.
25877 if test -z "${HOST_LIBS+set}"; then
25878   HOST_LIBS=
25879 fi
25880
25881
25882 # Use the system's zlib library.
25883 zlibdir=-L../zlib
25884 zlibinc="-I\$(srcdir)/../zlib"
25885
25886 # Check whether --with-system-zlib was given.
25887 if test "${with_system_zlib+set}" = set; then :
25888   withval=$with_system_zlib; zlibdir=
25889 zlibinc=
25890
25891 fi
25892
25893
25894
25895
25896
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25898 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25899     # Check whether --enable-maintainer-mode was given.
25900 if test "${enable_maintainer_mode+set}" = set; then :
25901   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25902 else
25903   maintainer_mode=no
25904 fi
25905
25906
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25908 $as_echo "$maintainer_mode" >&6; }
25909
25910 if test "$maintainer_mode" = "yes"; then
25911   MAINT=''
25912 else
25913   MAINT='#'
25914 fi
25915
25916 # --------------
25917 # Language hooks
25918 # --------------
25919
25920 # Make empty files to contain the specs and options for each language.
25921 # Then add #include lines to for a compiler that has specs and/or options.
25922
25923 subdirs=
25924 lang_opt_files=
25925 lang_specs_files=
25926 lang_tree_files=
25927 # These (without "all_") are set in each config-lang.in.
25928 # `language' must be a single word so is spelled singularly.
25929 all_languages=
25930 all_compilers=
25931 all_outputs='Makefile'
25932 # List of language makefile fragments.
25933 all_lang_makefrags=
25934 # Additional files for gengtype
25935 all_gtfiles="$target_gtfiles"
25936
25937 # These are the languages that are set in --enable-languages,
25938 # and are available in the GCC tree.
25939 all_selected_languages=
25940
25941 # Add the language fragments.
25942 # Languages are added via two mechanisms.  Some information must be
25943 # recorded in makefile variables, these are defined in config-lang.in.
25944 # We accumulate them and plug them into the main Makefile.
25945 # The other mechanism is a set of hooks for each of the main targets
25946 # like `clean', `install', etc.
25947
25948 language_hooks="Make-hooks"
25949
25950 for lang in ${srcdir}/*/config-lang.in
25951 do
25952         test "$lang" = "${srcdir}/*/config-lang.in" && continue
25953
25954         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
25955         if test "x$lang_alias" = x
25956         then
25957               echo "$lang doesn't set \$language." 1>&2
25958               exit 1
25959         fi
25960         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25961         subdirs="$subdirs $subdir"
25962
25963         # $gcc_subdir is where the gcc integration files are to be found
25964         # for a language, both for internal compiler purposes (compiler
25965         # sources implementing front-end to GCC tree converters), and for
25966         # build infrastructure purposes (Make-lang.in, etc.)
25967         #
25968         # This will be <subdir> (relative to $srcdir) if a line like
25969         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25970         # is found in <langdir>/config-lang.in, and will remain <langdir>
25971         # otherwise.
25972         #
25973         # Except for the language alias (fetched above), the regular
25974         # "config-lang.in" contents are always retrieved from $gcc_subdir,
25975         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25976         # only this and the language alias.
25977
25978         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
25979         if [ "$gcc_subdir" = "" ]; then
25980            gcc_subdir="$subdir"
25981         fi
25982
25983         case ",$enable_languages," in
25984         *,$lang_alias,*)
25985             all_selected_languages="$all_selected_languages $lang_alias"
25986             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25987                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25988             fi
25989             ;;
25990         esac
25991
25992         language=
25993         boot_language=
25994         compilers=
25995         outputs=
25996         gtfiles=
25997         subdir_requires=
25998         . ${srcdir}/$gcc_subdir/config-lang.in
25999         if test "x$language" = x
26000         then
26001                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26002                 exit 1
26003         fi
26004
26005         ok=:
26006         case ",$enable_languages," in
26007                 *,$lang_alias,*) ;;
26008                 *)
26009                         for i in $subdir_requires; do
26010                                 test -f "${srcdir}/$i/config-lang.in" && continue
26011                                 ok=false
26012                                 break
26013                         done
26014                 ;;
26015         esac
26016         $ok || continue
26017
26018         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26019         if test -f $srcdir/$gcc_subdir/lang.opt; then
26020             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26021             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26022         fi
26023         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26024             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26025         fi
26026         all_languages="$all_languages $language"
26027         all_compilers="$all_compilers $compilers"
26028         all_outputs="$all_outputs $outputs"
26029         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26030         case ",$enable_languages," in
26031                 *,lto,*)
26032
26033 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26034
26035                     enable_lto=yes
26036
26037                     ;;
26038                 *) ;;
26039         esac
26040 done
26041
26042 # Pick up gtfiles for c
26043 gtfiles=
26044 . ${srcdir}/c-config-lang.in
26045 all_gtfiles="$all_gtfiles [c] $gtfiles"
26046
26047 check_languages=
26048 for language in $all_selected_languages
26049 do
26050         check_languages="$check_languages check-$language"
26051 done
26052
26053 # We link each language in with a set of hooks, reached indirectly via
26054 # lang.${target}.  Only do so for selected languages.
26055
26056 rm -f Make-hooks
26057 touch Make-hooks
26058 target_list="all.cross start.encap rest.encap tags \
26059         install-common install-man install-info install-pdf install-html dvi \
26060         pdf html uninstall info man srcextra srcman srcinfo \
26061         mostlyclean clean distclean maintainer-clean install-plugin"
26062
26063 for t in $target_list
26064 do
26065         x=
26066         for lang in $all_selected_languages
26067         do
26068                 x="$x $lang.$t"
26069         done
26070         echo "lang.$t: $x" >> Make-hooks
26071 done
26072
26073 # --------
26074 # Option include files
26075 # --------
26076
26077 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26078 option_includes="option-includes.mk"
26079
26080
26081 # --------
26082 # UNSORTED
26083 # --------
26084
26085 # Create .gdbinit.
26086
26087 echo "dir ." > .gdbinit
26088 echo "dir ${srcdir}" >> .gdbinit
26089 if test x$gdb_needs_out_file_path = xyes
26090 then
26091         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26092 fi
26093 if test "x$subdirs" != x; then
26094         for s in $subdirs
26095         do
26096                 echo "dir ${srcdir}/$s" >> .gdbinit
26097         done
26098 fi
26099 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26100
26101 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26102
26103
26104
26105 # Find a directory in which to install a shared libgcc.
26106
26107 # Check whether --enable-version-specific-runtime-libs was given.
26108 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26109   enableval=$enable_version_specific_runtime_libs;
26110 fi
26111
26112
26113
26114 # Check whether --with-slibdir was given.
26115 if test "${with_slibdir+set}" = set; then :
26116   withval=$with_slibdir; slibdir="$with_slibdir"
26117 else
26118   if test "${enable_version_specific_runtime_libs+set}" = set; then
26119   slibdir='$(libsubdir)'
26120 elif test "$host" != "$target"; then
26121   slibdir='$(build_tooldir)/lib'
26122 else
26123   slibdir='$(libdir)'
26124 fi
26125 fi
26126
26127
26128
26129 # Substitute configuration variables
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150
26151
26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164
26165
26166
26167
26168
26169
26170
26171
26172
26173
26174
26175
26176
26177
26178
26179
26180
26181
26182
26183
26184
26185
26186
26187
26188
26189
26190
26191
26192 # Echo link setup.
26193 if test x${build} = x${host} ; then
26194   if test x${host} = x${target} ; then
26195     echo "Links are now set up to build a native compiler for ${target}." 1>&2
26196   else
26197     echo "Links are now set up to build a cross-compiler" 1>&2
26198     echo " from ${host} to ${target}." 1>&2
26199   fi
26200 else
26201   if test x${host} = x${target} ; then
26202     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26203     echo " for ${target}." 1>&2
26204   else
26205     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26206     echo " from ${host} to ${target}." 1>&2
26207   fi
26208 fi
26209
26210
26211
26212
26213
26214
26215
26216
26217
26218 if test "x${CLOOGLIBS}" != "x" ; then
26219
26220 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26221
26222 fi
26223
26224 # Check for plugin support
26225 # Check whether --enable-plugin was given.
26226 if test "${enable_plugin+set}" = set; then :
26227   enableval=$enable_plugin; enable_plugin=$enableval
26228 else
26229   enable_plugin=yes; default_plugin=yes
26230 fi
26231
26232
26233 pluginlibs=
26234
26235 case "${host}" in
26236   *-*-darwin*)
26237     if test x$build = x$host; then
26238       export_sym_check="nm${exeext} -g"
26239     elif test x$host = x$target; then
26240       export_sym_check="$gcc_cv_nm -g"
26241     else
26242       export_sym_check=
26243     fi
26244   ;;
26245   *)
26246     if test x$build = x$host; then
26247       export_sym_check="objdump${exeext} -T"
26248     elif test x$host = x$target; then
26249       export_sym_check="$gcc_cv_objdump -T"
26250     else
26251       export_sym_check=
26252     fi
26253   ;;
26254 esac
26255
26256 if test x"$enable_plugin" = x"yes"; then
26257
26258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26259 $as_echo_n "checking for exported symbols... " >&6; }
26260   if test "x$export_sym_check" != x; then
26261     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26262     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26263     if $export_sym_check conftest | grep foobar > /dev/null; then
26264       : # No need to use a flag
26265       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26266 $as_echo "yes" >&6; }
26267     else
26268       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26269 $as_echo "yes" >&6; }
26270       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26271 $as_echo_n "checking for -rdynamic... " >&6; }
26272       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26273       if $export_sym_check conftest | grep foobar > /dev/null; then
26274         plugin_rdynamic=yes
26275         pluginlibs="-rdynamic"
26276       else
26277         plugin_rdynamic=no
26278         enable_plugin=no
26279       fi
26280       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26281 $as_echo "$plugin_rdynamic" >&6; }
26282     fi
26283   else
26284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26285 $as_echo "unable to check" >&6; }
26286   fi
26287
26288   # Check -ldl
26289   saved_LIBS="$LIBS"
26290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26291 $as_echo_n "checking for library containing dlopen... " >&6; }
26292 if test "${ac_cv_search_dlopen+set}" = set; then :
26293   $as_echo_n "(cached) " >&6
26294 else
26295   ac_func_search_save_LIBS=$LIBS
26296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26297 /* end confdefs.h.  */
26298
26299 /* Override any GCC internal prototype to avoid an error.
26300    Use char because int might match the return type of a GCC
26301    builtin and then its argument prototype would still apply.  */
26302 #ifdef __cplusplus
26303 extern "C"
26304 #endif
26305 char dlopen ();
26306 int
26307 main ()
26308 {
26309 return dlopen ();
26310   ;
26311   return 0;
26312 }
26313 _ACEOF
26314 for ac_lib in '' dl; do
26315   if test -z "$ac_lib"; then
26316     ac_res="none required"
26317   else
26318     ac_res=-l$ac_lib
26319     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26320   fi
26321   if ac_fn_c_try_link "$LINENO"; then :
26322   ac_cv_search_dlopen=$ac_res
26323 fi
26324 rm -f core conftest.err conftest.$ac_objext \
26325     conftest$ac_exeext
26326   if test "${ac_cv_search_dlopen+set}" = set; then :
26327   break
26328 fi
26329 done
26330 if test "${ac_cv_search_dlopen+set}" = set; then :
26331
26332 else
26333   ac_cv_search_dlopen=no
26334 fi
26335 rm conftest.$ac_ext
26336 LIBS=$ac_func_search_save_LIBS
26337 fi
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26339 $as_echo "$ac_cv_search_dlopen" >&6; }
26340 ac_res=$ac_cv_search_dlopen
26341 if test "$ac_res" != no; then :
26342   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26343
26344 fi
26345
26346   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26347     pluginlibs="$pluginlibs -ldl"
26348   fi
26349   LIBS="$saved_LIBS"
26350
26351   # Check that we can build shared objects with -fPIC -shared
26352   saved_LDFLAGS="$LDFLAGS"
26353   saved_CFLAGS="$CFLAGS"
26354   case "${host}" in
26355     *-*-darwin*)
26356       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26357       CFLAGS="$CFLAGS -fPIC"
26358       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26359     ;;
26360     *)
26361       CFLAGS="$CFLAGS -fPIC"
26362       LDFLAGS="$LDFLAGS -fPIC -shared"
26363     ;;
26364   esac
26365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26366 $as_echo_n "checking for -fPIC -shared... " >&6; }
26367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26368 /* end confdefs.h.  */
26369 extern int X;
26370 int
26371 main ()
26372 {
26373 return X == 0;
26374   ;
26375   return 0;
26376 }
26377 _ACEOF
26378 if ac_fn_c_try_link "$LINENO"; then :
26379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26380 $as_echo "yes" >&6; }; have_pic_shared=yes
26381 else
26382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26383 $as_echo "no" >&6; }; have_pic_shared=no
26384 fi
26385 rm -f core conftest.err conftest.$ac_objext \
26386     conftest$ac_exeext conftest.$ac_ext
26387   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26388     pluginlibs=
26389     enable_plugin=no
26390   fi
26391   LDFLAGS="$saved_LDFLAGS"
26392   CFLAGS="$saved_CFLAGS"
26393
26394   # If plugin support had been requested but not available, fail.
26395   if test x"$enable_plugin" = x"no" ; then
26396     if test x"$default_plugin" != x"yes"; then
26397       as_fn_error "
26398 Building GCC with plugin support requires a host that supports
26399 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26400     fi
26401   fi
26402 fi
26403
26404
26405
26406 if test x"$enable_plugin" = x"yes"; then
26407
26408 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26409
26410 fi
26411
26412
26413 # Check whether --enable-libquadmath-support was given.
26414 if test "${enable_libquadmath_support+set}" = set; then :
26415   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
26416 else
26417   ENABLE_LIBQUADMATH_SUPPORT=yes
26418 fi
26419
26420 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
26421
26422 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
26423
26424 fi
26425
26426
26427 # Configure the subdirectories
26428 # AC_CONFIG_SUBDIRS($subdirs)
26429
26430 # Create the Makefile
26431 # and configure language subdirectories
26432 ac_config_files="$ac_config_files $all_outputs"
26433
26434
26435 ac_config_commands="$ac_config_commands default"
26436
26437 cat >confcache <<\_ACEOF
26438 # This file is a shell script that caches the results of configure
26439 # tests run on this system so they can be shared between configure
26440 # scripts and configure runs, see configure's option --config-cache.
26441 # It is not useful on other systems.  If it contains results you don't
26442 # want to keep, you may remove or edit it.
26443 #
26444 # config.status only pays attention to the cache file if you give it
26445 # the --recheck option to rerun configure.
26446 #
26447 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26448 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26449 # following values.
26450
26451 _ACEOF
26452
26453 # The following way of writing the cache mishandles newlines in values,
26454 # but we know of no workaround that is simple, portable, and efficient.
26455 # So, we kill variables containing newlines.
26456 # Ultrix sh set writes to stderr and can't be redirected directly,
26457 # and sets the high bit in the cache file unless we assign to the vars.
26458 (
26459   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26460     eval ac_val=\$$ac_var
26461     case $ac_val in #(
26462     *${as_nl}*)
26463       case $ac_var in #(
26464       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26465 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26466       esac
26467       case $ac_var in #(
26468       _ | IFS | as_nl) ;; #(
26469       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26470       *) { eval $ac_var=; unset $ac_var;} ;;
26471       esac ;;
26472     esac
26473   done
26474
26475   (set) 2>&1 |
26476     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26477     *${as_nl}ac_space=\ *)
26478       # `set' does not quote correctly, so add quotes: double-quote
26479       # substitution turns \\\\ into \\, and sed turns \\ into \.
26480       sed -n \
26481         "s/'/'\\\\''/g;
26482           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26483       ;; #(
26484     *)
26485       # `set' quotes correctly as required by POSIX, so do not add quotes.
26486       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26487       ;;
26488     esac |
26489     sort
26490 ) |
26491   sed '
26492      /^ac_cv_env_/b end
26493      t clear
26494      :clear
26495      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26496      t end
26497      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26498      :end' >>confcache
26499 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26500   if test -w "$cache_file"; then
26501     test "x$cache_file" != "x/dev/null" &&
26502       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26503 $as_echo "$as_me: updating cache $cache_file" >&6;}
26504     cat confcache >$cache_file
26505   else
26506     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26507 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26508   fi
26509 fi
26510 rm -f confcache
26511
26512 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26513 # Let make expand exec_prefix.
26514 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26515
26516 DEFS=-DHAVE_CONFIG_H
26517
26518 ac_libobjs=
26519 ac_ltlibobjs=
26520 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26521   # 1. Remove the extension, and $U if already installed.
26522   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26523   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26524   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26525   #    will be set to the directory where LIBOBJS objects are built.
26526   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26527   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26528 done
26529 LIBOBJS=$ac_libobjs
26530
26531 LTLIBOBJS=$ac_ltlibobjs
26532
26533
26534
26535
26536 : ${CONFIG_STATUS=./config.status}
26537 ac_write_fail=0
26538 ac_clean_files_save=$ac_clean_files
26539 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26541 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26542 as_write_fail=0
26543 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26544 #! $SHELL
26545 # Generated by $as_me.
26546 # Run this file to recreate the current configuration.
26547 # Compiler output produced by configure, useful for debugging
26548 # configure, is in config.log if it exists.
26549
26550 debug=false
26551 ac_cs_recheck=false
26552 ac_cs_silent=false
26553
26554 SHELL=\${CONFIG_SHELL-$SHELL}
26555 export SHELL
26556 _ASEOF
26557 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26558 ## -------------------- ##
26559 ## M4sh Initialization. ##
26560 ## -------------------- ##
26561
26562 # Be more Bourne compatible
26563 DUALCASE=1; export DUALCASE # for MKS sh
26564 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26565   emulate sh
26566   NULLCMD=:
26567   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26568   # is contrary to our usage.  Disable this feature.
26569   alias -g '${1+"$@"}'='"$@"'
26570   setopt NO_GLOB_SUBST
26571 else
26572   case `(set -o) 2>/dev/null` in #(
26573   *posix*) :
26574     set -o posix ;; #(
26575   *) :
26576      ;;
26577 esac
26578 fi
26579
26580
26581 as_nl='
26582 '
26583 export as_nl
26584 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26585 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26586 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26587 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26588 # Prefer a ksh shell builtin over an external printf program on Solaris,
26589 # but without wasting forks for bash or zsh.
26590 if test -z "$BASH_VERSION$ZSH_VERSION" \
26591     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26592   as_echo='print -r --'
26593   as_echo_n='print -rn --'
26594 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26595   as_echo='printf %s\n'
26596   as_echo_n='printf %s'
26597 else
26598   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26599     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26600     as_echo_n='/usr/ucb/echo -n'
26601   else
26602     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26603     as_echo_n_body='eval
26604       arg=$1;
26605       case $arg in #(
26606       *"$as_nl"*)
26607         expr "X$arg" : "X\\(.*\\)$as_nl";
26608         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26609       esac;
26610       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26611     '
26612     export as_echo_n_body
26613     as_echo_n='sh -c $as_echo_n_body as_echo'
26614   fi
26615   export as_echo_body
26616   as_echo='sh -c $as_echo_body as_echo'
26617 fi
26618
26619 # The user is always right.
26620 if test "${PATH_SEPARATOR+set}" != set; then
26621   PATH_SEPARATOR=:
26622   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26623     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26624       PATH_SEPARATOR=';'
26625   }
26626 fi
26627
26628
26629 # IFS
26630 # We need space, tab and new line, in precisely that order.  Quoting is
26631 # there to prevent editors from complaining about space-tab.
26632 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26633 # splitting by setting IFS to empty value.)
26634 IFS=" ""        $as_nl"
26635
26636 # Find who we are.  Look in the path if we contain no directory separator.
26637 case $0 in #((
26638   *[\\/]* ) as_myself=$0 ;;
26639   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26640 for as_dir in $PATH
26641 do
26642   IFS=$as_save_IFS
26643   test -z "$as_dir" && as_dir=.
26644     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26645   done
26646 IFS=$as_save_IFS
26647
26648      ;;
26649 esac
26650 # We did not find ourselves, most probably we were run as `sh COMMAND'
26651 # in which case we are not to be found in the path.
26652 if test "x$as_myself" = x; then
26653   as_myself=$0
26654 fi
26655 if test ! -f "$as_myself"; then
26656   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26657   exit 1
26658 fi
26659
26660 # Unset variables that we do not need and which cause bugs (e.g. in
26661 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26662 # suppresses any "Segmentation fault" message there.  '((' could
26663 # trigger a bug in pdksh 5.2.14.
26664 for as_var in BASH_ENV ENV MAIL MAILPATH
26665 do eval test x\${$as_var+set} = xset \
26666   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26667 done
26668 PS1='$ '
26669 PS2='> '
26670 PS4='+ '
26671
26672 # NLS nuisances.
26673 LC_ALL=C
26674 export LC_ALL
26675 LANGUAGE=C
26676 export LANGUAGE
26677
26678 # CDPATH.
26679 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26680
26681
26682 # as_fn_error ERROR [LINENO LOG_FD]
26683 # ---------------------------------
26684 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26685 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26686 # script with status $?, using 1 if that was 0.
26687 as_fn_error ()
26688 {
26689   as_status=$?; test $as_status -eq 0 && as_status=1
26690   if test "$3"; then
26691     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26692     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26693   fi
26694   $as_echo "$as_me: error: $1" >&2
26695   as_fn_exit $as_status
26696 } # as_fn_error
26697
26698
26699 # as_fn_set_status STATUS
26700 # -----------------------
26701 # Set $? to STATUS, without forking.
26702 as_fn_set_status ()
26703 {
26704   return $1
26705 } # as_fn_set_status
26706
26707 # as_fn_exit STATUS
26708 # -----------------
26709 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26710 as_fn_exit ()
26711 {
26712   set +e
26713   as_fn_set_status $1
26714   exit $1
26715 } # as_fn_exit
26716
26717 # as_fn_unset VAR
26718 # ---------------
26719 # Portably unset VAR.
26720 as_fn_unset ()
26721 {
26722   { eval $1=; unset $1;}
26723 }
26724 as_unset=as_fn_unset
26725 # as_fn_append VAR VALUE
26726 # ----------------------
26727 # Append the text in VALUE to the end of the definition contained in VAR. Take
26728 # advantage of any shell optimizations that allow amortized linear growth over
26729 # repeated appends, instead of the typical quadratic growth present in naive
26730 # implementations.
26731 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26732   eval 'as_fn_append ()
26733   {
26734     eval $1+=\$2
26735   }'
26736 else
26737   as_fn_append ()
26738   {
26739     eval $1=\$$1\$2
26740   }
26741 fi # as_fn_append
26742
26743 # as_fn_arith ARG...
26744 # ------------------
26745 # Perform arithmetic evaluation on the ARGs, and store the result in the
26746 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26747 # must be portable across $(()) and expr.
26748 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26749   eval 'as_fn_arith ()
26750   {
26751     as_val=$(( $* ))
26752   }'
26753 else
26754   as_fn_arith ()
26755   {
26756     as_val=`expr "$@" || test $? -eq 1`
26757   }
26758 fi # as_fn_arith
26759
26760
26761 if expr a : '\(a\)' >/dev/null 2>&1 &&
26762    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26763   as_expr=expr
26764 else
26765   as_expr=false
26766 fi
26767
26768 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26769   as_basename=basename
26770 else
26771   as_basename=false
26772 fi
26773
26774 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26775   as_dirname=dirname
26776 else
26777   as_dirname=false
26778 fi
26779
26780 as_me=`$as_basename -- "$0" ||
26781 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26782          X"$0" : 'X\(//\)$' \| \
26783          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26784 $as_echo X/"$0" |
26785     sed '/^.*\/\([^/][^/]*\)\/*$/{
26786             s//\1/
26787             q
26788           }
26789           /^X\/\(\/\/\)$/{
26790             s//\1/
26791             q
26792           }
26793           /^X\/\(\/\).*/{
26794             s//\1/
26795             q
26796           }
26797           s/.*/./; q'`
26798
26799 # Avoid depending upon Character Ranges.
26800 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26801 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26802 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26803 as_cr_digits='0123456789'
26804 as_cr_alnum=$as_cr_Letters$as_cr_digits
26805
26806 ECHO_C= ECHO_N= ECHO_T=
26807 case `echo -n x` in #(((((
26808 -n*)
26809   case `echo 'xy\c'` in
26810   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26811   xy)  ECHO_C='\c';;
26812   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26813        ECHO_T=' ';;
26814   esac;;
26815 *)
26816   ECHO_N='-n';;
26817 esac
26818
26819 rm -f conf$$ conf$$.exe conf$$.file
26820 if test -d conf$$.dir; then
26821   rm -f conf$$.dir/conf$$.file
26822 else
26823   rm -f conf$$.dir
26824   mkdir conf$$.dir 2>/dev/null
26825 fi
26826 if (echo >conf$$.file) 2>/dev/null; then
26827   if ln -s conf$$.file conf$$ 2>/dev/null; then
26828     as_ln_s='ln -s'
26829     # ... but there are two gotchas:
26830     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26831     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26832     # In both cases, we have to default to `cp -p'.
26833     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26834       as_ln_s='cp -p'
26835   elif ln conf$$.file conf$$ 2>/dev/null; then
26836     as_ln_s=ln
26837   else
26838     as_ln_s='cp -p'
26839   fi
26840 else
26841   as_ln_s='cp -p'
26842 fi
26843 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26844 rmdir conf$$.dir 2>/dev/null
26845
26846
26847 # as_fn_mkdir_p
26848 # -------------
26849 # Create "$as_dir" as a directory, including parents if necessary.
26850 as_fn_mkdir_p ()
26851 {
26852
26853   case $as_dir in #(
26854   -*) as_dir=./$as_dir;;
26855   esac
26856   test -d "$as_dir" || eval $as_mkdir_p || {
26857     as_dirs=
26858     while :; do
26859       case $as_dir in #(
26860       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26861       *) as_qdir=$as_dir;;
26862       esac
26863       as_dirs="'$as_qdir' $as_dirs"
26864       as_dir=`$as_dirname -- "$as_dir" ||
26865 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26866          X"$as_dir" : 'X\(//\)[^/]' \| \
26867          X"$as_dir" : 'X\(//\)$' \| \
26868          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26869 $as_echo X"$as_dir" |
26870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26871             s//\1/
26872             q
26873           }
26874           /^X\(\/\/\)[^/].*/{
26875             s//\1/
26876             q
26877           }
26878           /^X\(\/\/\)$/{
26879             s//\1/
26880             q
26881           }
26882           /^X\(\/\).*/{
26883             s//\1/
26884             q
26885           }
26886           s/.*/./; q'`
26887       test -d "$as_dir" && break
26888     done
26889     test -z "$as_dirs" || eval "mkdir $as_dirs"
26890   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26891
26892
26893 } # as_fn_mkdir_p
26894 if mkdir -p . 2>/dev/null; then
26895   as_mkdir_p='mkdir -p "$as_dir"'
26896 else
26897   test -d ./-p && rmdir ./-p
26898   as_mkdir_p=false
26899 fi
26900
26901 if test -x / >/dev/null 2>&1; then
26902   as_test_x='test -x'
26903 else
26904   if ls -dL / >/dev/null 2>&1; then
26905     as_ls_L_option=L
26906   else
26907     as_ls_L_option=
26908   fi
26909   as_test_x='
26910     eval sh -c '\''
26911       if test -d "$1"; then
26912         test -d "$1/.";
26913       else
26914         case $1 in #(
26915         -*)set "./$1";;
26916         esac;
26917         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26918         ???[sx]*):;;*)false;;esac;fi
26919     '\'' sh
26920   '
26921 fi
26922 as_executable_p=$as_test_x
26923
26924 # Sed expression to map a string onto a valid CPP name.
26925 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26926
26927 # Sed expression to map a string onto a valid variable name.
26928 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26929
26930
26931 exec 6>&1
26932 ## ----------------------------------- ##
26933 ## Main body of $CONFIG_STATUS script. ##
26934 ## ----------------------------------- ##
26935 _ASEOF
26936 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26937
26938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26939 # Save the log message, to keep $0 and so on meaningful, and to
26940 # report actual input values of CONFIG_FILES etc. instead of their
26941 # values after options handling.
26942 ac_log="
26943 This file was extended by $as_me, which was
26944 generated by GNU Autoconf 2.64.  Invocation command line was
26945
26946   CONFIG_FILES    = $CONFIG_FILES
26947   CONFIG_HEADERS  = $CONFIG_HEADERS
26948   CONFIG_LINKS    = $CONFIG_LINKS
26949   CONFIG_COMMANDS = $CONFIG_COMMANDS
26950   $ $0 $@
26951
26952 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26953 "
26954
26955 _ACEOF
26956
26957 case $ac_config_files in *"
26958 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26959 esac
26960
26961 case $ac_config_headers in *"
26962 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26963 esac
26964
26965
26966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26967 # Files that config.status was made for.
26968 config_files="$ac_config_files"
26969 config_headers="$ac_config_headers"
26970 config_commands="$ac_config_commands"
26971
26972 _ACEOF
26973
26974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26975 ac_cs_usage="\
26976 \`$as_me' instantiates files and other configuration actions
26977 from templates according to the current configuration.  Unless the files
26978 and actions are specified as TAGs, all are instantiated by default.
26979
26980 Usage: $0 [OPTION]... [TAG]...
26981
26982   -h, --help       print this help, then exit
26983   -V, --version    print version number and configuration settings, then exit
26984   -q, --quiet, --silent
26985                    do not print progress messages
26986   -d, --debug      don't remove temporary files
26987       --recheck    update $as_me by reconfiguring in the same conditions
26988       --file=FILE[:TEMPLATE]
26989                    instantiate the configuration file FILE
26990       --header=FILE[:TEMPLATE]
26991                    instantiate the configuration header FILE
26992
26993 Configuration files:
26994 $config_files
26995
26996 Configuration headers:
26997 $config_headers
26998
26999 Configuration commands:
27000 $config_commands
27001
27002 Report bugs to the package provider."
27003
27004 _ACEOF
27005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27006 ac_cs_version="\\
27007 config.status
27008 configured by $0, generated by GNU Autoconf 2.64,
27009   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27010
27011 Copyright (C) 2009 Free Software Foundation, Inc.
27012 This config.status script is free software; the Free Software Foundation
27013 gives unlimited permission to copy, distribute and modify it."
27014
27015 ac_pwd='$ac_pwd'
27016 srcdir='$srcdir'
27017 AWK='$AWK'
27018 test -n "\$AWK" || AWK=awk
27019 _ACEOF
27020
27021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27022 # The default lists apply if the user does not specify any file.
27023 ac_need_defaults=:
27024 while test $# != 0
27025 do
27026   case $1 in
27027   --*=*)
27028     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27029     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27030     ac_shift=:
27031     ;;
27032   *)
27033     ac_option=$1
27034     ac_optarg=$2
27035     ac_shift=shift
27036     ;;
27037   esac
27038
27039   case $ac_option in
27040   # Handling of the options.
27041   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27042     ac_cs_recheck=: ;;
27043   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27044     $as_echo "$ac_cs_version"; exit ;;
27045   --debug | --debu | --deb | --de | --d | -d )
27046     debug=: ;;
27047   --file | --fil | --fi | --f )
27048     $ac_shift
27049     case $ac_optarg in
27050     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27051     esac
27052     as_fn_append CONFIG_FILES " '$ac_optarg'"
27053     ac_need_defaults=false;;
27054   --header | --heade | --head | --hea )
27055     $ac_shift
27056     case $ac_optarg in
27057     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27058     esac
27059     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27060     ac_need_defaults=false;;
27061   --he | --h)
27062     # Conflict between --help and --header
27063     as_fn_error "ambiguous option: \`$1'
27064 Try \`$0 --help' for more information.";;
27065   --help | --hel | -h )
27066     $as_echo "$ac_cs_usage"; exit ;;
27067   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27068   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27069     ac_cs_silent=: ;;
27070
27071   # This is an error.
27072   -*) as_fn_error "unrecognized option: \`$1'
27073 Try \`$0 --help' for more information." ;;
27074
27075   *) as_fn_append ac_config_targets " $1"
27076      ac_need_defaults=false ;;
27077
27078   esac
27079   shift
27080 done
27081
27082 ac_configure_extra_args=
27083
27084 if $ac_cs_silent; then
27085   exec 6>/dev/null
27086   ac_configure_extra_args="$ac_configure_extra_args --silent"
27087 fi
27088
27089 _ACEOF
27090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27091 if \$ac_cs_recheck; then
27092   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27093   shift
27094   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27095   CONFIG_SHELL='$SHELL'
27096   export CONFIG_SHELL
27097   exec "\$@"
27098 fi
27099
27100 _ACEOF
27101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27102 exec 5>>config.log
27103 {
27104   echo
27105   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27106 ## Running $as_me. ##
27107 _ASBOX
27108   $as_echo "$ac_log"
27109 } >&5
27110
27111 _ACEOF
27112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27113 #
27114 # INIT-COMMANDS
27115 #
27116 subdirs='$subdirs'
27117
27118 _ACEOF
27119
27120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27121
27122 # Handling of arguments.
27123 for ac_config_target in $ac_config_targets
27124 do
27125   case $ac_config_target in
27126     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27127     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27128     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27129     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27130     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27131     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27132
27133   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27134   esac
27135 done
27136
27137
27138 # If the user did not use the arguments to specify the items to instantiate,
27139 # then the envvar interface is used.  Set only those that are not.
27140 # We use the long form for the default assignment because of an extremely
27141 # bizarre bug on SunOS 4.1.3.
27142 if $ac_need_defaults; then
27143   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27144   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27145   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27146 fi
27147
27148 # Have a temporary directory for convenience.  Make it in the build tree
27149 # simply because there is no reason against having it here, and in addition,
27150 # creating and moving files from /tmp can sometimes cause problems.
27151 # Hook for its removal unless debugging.
27152 # Note that there is a small window in which the directory will not be cleaned:
27153 # after its creation but before its name has been assigned to `$tmp'.
27154 $debug ||
27155 {
27156   tmp=
27157   trap 'exit_status=$?
27158   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27159 ' 0
27160   trap 'as_fn_exit 1' 1 2 13 15
27161 }
27162 # Create a (secure) tmp directory for tmp files.
27163
27164 {
27165   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27166   test -n "$tmp" && test -d "$tmp"
27167 }  ||
27168 {
27169   tmp=./conf$$-$RANDOM
27170   (umask 077 && mkdir "$tmp")
27171 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27172
27173 # Set up the scripts for CONFIG_FILES section.
27174 # No need to generate them if there are no CONFIG_FILES.
27175 # This happens for instance with `./config.status config.h'.
27176 if test -n "$CONFIG_FILES"; then
27177
27178 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27179   ac_cs_awk_getline=:
27180   ac_cs_awk_pipe_init=
27181   ac_cs_awk_read_file='
27182       while ((getline aline < (F[key])) > 0)
27183         print(aline)
27184       close(F[key])'
27185   ac_cs_awk_pipe_fini=
27186 else
27187   ac_cs_awk_getline=false
27188   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27189   ac_cs_awk_read_file='
27190       print "|#_!!_#|"
27191       print "cat " F[key] " &&"
27192       '$ac_cs_awk_pipe_init
27193   # The final `:' finishes the AND list.
27194   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27195 fi
27196 ac_cr=`echo X | tr X '\015'`
27197 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27198 # But we know of no other shell where ac_cr would be empty at this
27199 # point, so we can use a bashism as a fallback.
27200 if test "x$ac_cr" = x; then
27201   eval ac_cr=\$\'\\r\'
27202 fi
27203 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27204 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27205   ac_cs_awk_cr='\r'
27206 else
27207   ac_cs_awk_cr=$ac_cr
27208 fi
27209
27210 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27211 _ACEOF
27212
27213 # Create commands to substitute file output variables.
27214 {
27215   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27216   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27217   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27218   echo "_ACAWK" &&
27219   echo "_ACEOF"
27220 } >conf$$files.sh &&
27221 . ./conf$$files.sh ||
27222   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27223 rm -f conf$$files.sh
27224
27225 {
27226   echo "cat >conf$$subs.awk <<_ACEOF" &&
27227   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27228   echo "_ACEOF"
27229 } >conf$$subs.sh ||
27230   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27231 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27232 ac_delim='%!_!# '
27233 for ac_last_try in false false false false false :; do
27234   . ./conf$$subs.sh ||
27235     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27236
27237   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27238   if test $ac_delim_n = $ac_delim_num; then
27239     break
27240   elif $ac_last_try; then
27241     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27242   else
27243     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27244   fi
27245 done
27246 rm -f conf$$subs.sh
27247
27248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27249 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27250 _ACEOF
27251 sed -n '
27252 h
27253 s/^/S["/; s/!.*/"]=/
27254 p
27255 g
27256 s/^[^!]*!//
27257 :repl
27258 t repl
27259 s/'"$ac_delim"'$//
27260 t delim
27261 :nl
27262 h
27263 s/\(.\{148\}\).*/\1/
27264 t more1
27265 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27266 p
27267 n
27268 b repl
27269 :more1
27270 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27271 p
27272 g
27273 s/.\{148\}//
27274 t nl
27275 :delim
27276 h
27277 s/\(.\{148\}\).*/\1/
27278 t more2
27279 s/["\\]/\\&/g; s/^/"/; s/$/"/
27280 p
27281 b
27282 :more2
27283 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27284 p
27285 g
27286 s/.\{148\}//
27287 t delim
27288 ' <conf$$subs.awk | sed '
27289 /^[^""]/{
27290   N
27291   s/\n//
27292 }
27293 ' >>$CONFIG_STATUS || ac_write_fail=1
27294 rm -f conf$$subs.awk
27295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27296 _ACAWK
27297 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27298   for (key in S) S_is_set[key] = 1
27299   FS = "\a"
27300   \$ac_cs_awk_pipe_init
27301 }
27302 {
27303   line = $ 0
27304   nfields = split(line, field, "@")
27305   substed = 0
27306   len = length(field[1])
27307   for (i = 2; i < nfields; i++) {
27308     key = field[i]
27309     keylen = length(key)
27310     if (S_is_set[key]) {
27311       value = S[key]
27312       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27313       len += length(value) + length(field[++i])
27314       substed = 1
27315     } else
27316       len += 1 + keylen
27317   }
27318   if (nfields == 3 && !substed) {
27319     key = field[2]
27320     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
27321       \$ac_cs_awk_read_file
27322       next
27323     }
27324   }
27325   print line
27326 }
27327 \$ac_cs_awk_pipe_fini
27328 _ACAWK
27329 _ACEOF
27330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27331 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27332   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27333 else
27334   cat
27335 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27336   || as_fn_error "could not setup config files machinery" "$LINENO" 5
27337 _ACEOF
27338
27339 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27340 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27341 # trailing colons and then remove the whole line if VPATH becomes empty
27342 # (actually we leave an empty line to preserve line numbers).
27343 if test "x$srcdir" = x.; then
27344   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27345 s/:*\$(srcdir):*/:/
27346 s/:*\${srcdir}:*/:/
27347 s/:*@srcdir@:*/:/
27348 s/^\([^=]*=[     ]*\):*/\1/
27349 s/:*$//
27350 s/^[^=]*=[       ]*$//
27351 }'
27352 fi
27353
27354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27355 fi # test -n "$CONFIG_FILES"
27356
27357 # Set up the scripts for CONFIG_HEADERS section.
27358 # No need to generate them if there are no CONFIG_HEADERS.
27359 # This happens for instance with `./config.status Makefile'.
27360 if test -n "$CONFIG_HEADERS"; then
27361 cat >"$tmp/defines.awk" <<\_ACAWK ||
27362 BEGIN {
27363 _ACEOF
27364
27365 # Transform confdefs.h into an awk script `defines.awk', embedded as
27366 # here-document in config.status, that substitutes the proper values into
27367 # config.h.in to produce config.h.
27368
27369 # Create a delimiter string that does not exist in confdefs.h, to ease
27370 # handling of long lines.
27371 ac_delim='%!_!# '
27372 for ac_last_try in false false :; do
27373   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27374   if test -z "$ac_t"; then
27375     break
27376   elif $ac_last_try; then
27377     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27378   else
27379     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27380   fi
27381 done
27382
27383 # For the awk script, D is an array of macro values keyed by name,
27384 # likewise P contains macro parameters if any.  Preserve backslash
27385 # newline sequences.
27386
27387 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27388 sed -n '
27389 s/.\{148\}/&'"$ac_delim"'/g
27390 t rset
27391 :rset
27392 s/^[     ]*#[    ]*define[       ][      ]*/ /
27393 t def
27394 d
27395 :def
27396 s/\\$//
27397 t bsnl
27398 s/["\\]/\\&/g
27399 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27400 D["\1"]=" \3"/p
27401 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27402 d
27403 :bsnl
27404 s/["\\]/\\&/g
27405 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27406 D["\1"]=" \3\\\\\\n"\\/p
27407 t cont
27408 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27409 t cont
27410 d
27411 :cont
27412 n
27413 s/.\{148\}/&'"$ac_delim"'/g
27414 t clear
27415 :clear
27416 s/\\$//
27417 t bsnlc
27418 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27419 d
27420 :bsnlc
27421 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27422 b cont
27423 ' <confdefs.h | sed '
27424 s/'"$ac_delim"'/"\\\
27425 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27426
27427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27428   for (key in D) D_is_set[key] = 1
27429   FS = "\a"
27430 }
27431 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27432   line = \$ 0
27433   split(line, arg, " ")
27434   if (arg[1] == "#") {
27435     defundef = arg[2]
27436     mac1 = arg[3]
27437   } else {
27438     defundef = substr(arg[1], 2)
27439     mac1 = arg[2]
27440   }
27441   split(mac1, mac2, "(") #)
27442   macro = mac2[1]
27443   prefix = substr(line, 1, index(line, defundef) - 1)
27444   if (D_is_set[macro]) {
27445     # Preserve the white space surrounding the "#".
27446     print prefix "define", macro P[macro] D[macro]
27447     next
27448   } else {
27449     # Replace #undef with comments.  This is necessary, for example,
27450     # in the case of _POSIX_SOURCE, which is predefined and required
27451     # on some systems where configure will not decide to define it.
27452     if (defundef == "undef") {
27453       print "/*", prefix defundef, macro, "*/"
27454       next
27455     }
27456   }
27457 }
27458 { print }
27459 _ACAWK
27460 _ACEOF
27461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27462   as_fn_error "could not setup config headers machinery" "$LINENO" 5
27463 fi # test -n "$CONFIG_HEADERS"
27464
27465
27466 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27467 shift
27468 for ac_tag
27469 do
27470   case $ac_tag in
27471   :[FHLC]) ac_mode=$ac_tag; continue;;
27472   esac
27473   case $ac_mode$ac_tag in
27474   :[FHL]*:*);;
27475   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27476   :[FH]-) ac_tag=-:-;;
27477   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27478   esac
27479   ac_save_IFS=$IFS
27480   IFS=:
27481   set x $ac_tag
27482   IFS=$ac_save_IFS
27483   shift
27484   ac_file=$1
27485   shift
27486
27487   case $ac_mode in
27488   :L) ac_source=$1;;
27489   :[FH])
27490     ac_file_inputs=
27491     for ac_f
27492     do
27493       case $ac_f in
27494       -) ac_f="$tmp/stdin";;
27495       *) # Look for the file first in the build tree, then in the source tree
27496          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27497          # because $ac_f cannot contain `:'.
27498          test -f "$ac_f" ||
27499            case $ac_f in
27500            [\\/$]*) false;;
27501            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27502            esac ||
27503            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27504       esac
27505       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27506       as_fn_append ac_file_inputs " '$ac_f'"
27507     done
27508
27509     # Let's still pretend it is `configure' which instantiates (i.e., don't
27510     # use $as_me), people would be surprised to read:
27511     #    /* config.h.  Generated by config.status.  */
27512     configure_input='Generated from '`
27513           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27514         `' by configure.'
27515     if test x"$ac_file" != x-; then
27516       configure_input="$ac_file.  $configure_input"
27517       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27518 $as_echo "$as_me: creating $ac_file" >&6;}
27519     fi
27520     # Neutralize special characters interpreted by sed in replacement strings.
27521     case $configure_input in #(
27522     *\&* | *\|* | *\\* )
27523        ac_sed_conf_input=`$as_echo "$configure_input" |
27524        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27525     *) ac_sed_conf_input=$configure_input;;
27526     esac
27527
27528     case $ac_tag in
27529     *:-:* | *:-) cat >"$tmp/stdin" \
27530       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27531     esac
27532     ;;
27533   esac
27534
27535   ac_dir=`$as_dirname -- "$ac_file" ||
27536 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27537          X"$ac_file" : 'X\(//\)[^/]' \| \
27538          X"$ac_file" : 'X\(//\)$' \| \
27539          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27540 $as_echo X"$ac_file" |
27541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27542             s//\1/
27543             q
27544           }
27545           /^X\(\/\/\)[^/].*/{
27546             s//\1/
27547             q
27548           }
27549           /^X\(\/\/\)$/{
27550             s//\1/
27551             q
27552           }
27553           /^X\(\/\).*/{
27554             s//\1/
27555             q
27556           }
27557           s/.*/./; q'`
27558   as_dir="$ac_dir"; as_fn_mkdir_p
27559   ac_builddir=.
27560
27561 case "$ac_dir" in
27562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27563 *)
27564   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27565   # A ".." for each directory in $ac_dir_suffix.
27566   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27567   case $ac_top_builddir_sub in
27568   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27569   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27570   esac ;;
27571 esac
27572 ac_abs_top_builddir=$ac_pwd
27573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27574 # for backward compatibility:
27575 ac_top_builddir=$ac_top_build_prefix
27576
27577 case $srcdir in
27578   .)  # We are building in place.
27579     ac_srcdir=.
27580     ac_top_srcdir=$ac_top_builddir_sub
27581     ac_abs_top_srcdir=$ac_pwd ;;
27582   [\\/]* | ?:[\\/]* )  # Absolute name.
27583     ac_srcdir=$srcdir$ac_dir_suffix;
27584     ac_top_srcdir=$srcdir
27585     ac_abs_top_srcdir=$srcdir ;;
27586   *) # Relative name.
27587     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27588     ac_top_srcdir=$ac_top_build_prefix$srcdir
27589     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27590 esac
27591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27592
27593
27594   case $ac_mode in
27595   :F)
27596   #
27597   # CONFIG_FILE
27598   #
27599
27600 _ACEOF
27601
27602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27603 # If the template does not know about datarootdir, expand it.
27604 # FIXME: This hack should be removed a few years after 2.60.
27605 ac_datarootdir_hack=; ac_datarootdir_seen=
27606 ac_sed_dataroot='
27607 /datarootdir/ {
27608   p
27609   q
27610 }
27611 /@datadir@/p
27612 /@docdir@/p
27613 /@infodir@/p
27614 /@localedir@/p
27615 /@mandir@/p'
27616 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27617 *datarootdir*) ac_datarootdir_seen=yes;;
27618 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27619   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27620 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27621 _ACEOF
27622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27623   ac_datarootdir_hack='
27624   s&@datadir@&$datadir&g
27625   s&@docdir@&$docdir&g
27626   s&@infodir@&$infodir&g
27627   s&@localedir@&$localedir&g
27628   s&@mandir@&$mandir&g
27629   s&\\\${datarootdir}&$datarootdir&g' ;;
27630 esac
27631 _ACEOF
27632
27633 # Neutralize VPATH when `$srcdir' = `.'.
27634 # Shell code in configure.ac might set extrasub.
27635 # FIXME: do we really want to maintain this feature?
27636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27637 ac_sed_extra="$ac_vpsub
27638 $extrasub
27639 _ACEOF
27640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27641 :t
27642 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27643 s|@configure_input@|$ac_sed_conf_input|;t t
27644 s&@top_builddir@&$ac_top_builddir_sub&;t t
27645 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27646 s&@srcdir@&$ac_srcdir&;t t
27647 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27648 s&@top_srcdir@&$ac_top_srcdir&;t t
27649 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27650 s&@builddir@&$ac_builddir&;t t
27651 s&@abs_builddir@&$ac_abs_builddir&;t t
27652 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27653 $ac_datarootdir_hack
27654 "
27655 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27656 if $ac_cs_awk_getline; then
27657   $AWK -f "$tmp/subs.awk"
27658 else
27659   $AWK -f "$tmp/subs.awk" | $SHELL
27660 fi >$tmp/out \
27661   || as_fn_error "could not create $ac_file" "$LINENO" 5
27662
27663 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27664   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27665   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27666   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27667 which seems to be undefined.  Please make sure it is defined." >&5
27668 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27669 which seems to be undefined.  Please make sure it is defined." >&2;}
27670
27671   rm -f "$tmp/stdin"
27672   case $ac_file in
27673   -) cat "$tmp/out" && rm -f "$tmp/out";;
27674   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27675   esac \
27676   || as_fn_error "could not create $ac_file" "$LINENO" 5
27677  ;;
27678   :H)
27679   #
27680   # CONFIG_HEADER
27681   #
27682   if test x"$ac_file" != x-; then
27683     {
27684       $as_echo "/* $configure_input  */" \
27685       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27686     } >"$tmp/config.h" \
27687       || as_fn_error "could not create $ac_file" "$LINENO" 5
27688     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27689       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27690 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27691     else
27692       rm -f "$ac_file"
27693       mv "$tmp/config.h" "$ac_file" \
27694         || as_fn_error "could not create $ac_file" "$LINENO" 5
27695     fi
27696   else
27697     $as_echo "/* $configure_input  */" \
27698       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27699       || as_fn_error "could not create -" "$LINENO" 5
27700   fi
27701  ;;
27702
27703   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27704 $as_echo "$as_me: executing $ac_file commands" >&6;}
27705  ;;
27706   esac
27707
27708
27709   case $ac_file$ac_mode in
27710     "as":F) chmod +x as ;;
27711     "collect-ld":F) chmod +x collect-ld ;;
27712     "nm":F) chmod +x nm ;;
27713     "default":C)
27714 case ${CONFIG_HEADERS} in
27715   *auto-host.h:config.in*)
27716   echo > cstamp-h ;;
27717 esac
27718 # Make sure all the subdirs exist.
27719 for d in $subdirs doc build c-family
27720 do
27721     test -d $d || mkdir $d
27722 done
27723  ;;
27724
27725   esac
27726 done # for ac_tag
27727
27728
27729 as_fn_exit 0
27730 _ACEOF
27731 ac_clean_files=$ac_clean_files_save
27732
27733 test $ac_write_fail = 0 ||
27734   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27735
27736
27737 # configure is writing to config.log, and then calls config.status.
27738 # config.status does its own redirection, appending to config.log.
27739 # Unfortunately, on DOS this fails, as config.log is still kept open
27740 # by configure, so config.status won't be able to write to it; its
27741 # output is simply discarded.  So we exec the FD to /dev/null,
27742 # effectively closing config.log, so it can be properly (re)opened and
27743 # appended to by config.status.  When coming back to configure, we
27744 # need to make the FD available again.
27745 if test "$no_create" != yes; then
27746   ac_cs_success=:
27747   ac_config_status_args=
27748   test "$silent" = yes &&
27749     ac_config_status_args="$ac_config_status_args --quiet"
27750   exec 5>/dev/null
27751   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27752   exec 5>>config.log
27753   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27754   # would make configure fail if this is the last instruction.
27755   $ac_cs_success || as_fn_exit $?
27756 fi
27757 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27758   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27759 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27760 fi
27761
27762