configure.ac (demangler_in_ld): Default to yes.
[platform/upstream/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 libgcc_tm_include_list
622 libgcc_tm_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_passes
648 extra_parts
649 extra_objs
650 extra_headers_list
651 user_headers_inc_next_post
652 user_headers_inc_next_pre
653 extra_gcc_objs
654 TM_MULTILIB_EXCEPTIONS_CONFIG
655 TM_MULTILIB_CONFIG
656 TM_ENDIAN_CONFIG
657 tmake_file
658 xmake_file
659 cpp_install_dir
660 check_languages
661 build_file_translate
662 build_xm_defines
663 build_xm_include_list
664 build_xm_file_list
665 build_install_headers_dir
666 build_exeext
667 all_selected_languages
668 all_languages
669 all_lang_makefrags
670 all_gtfiles
671 all_compilers
672 srcdir
673 subdirs
674 slibdir
675 dollar
676 gcc_tooldir
677 enable_lto
678 MAINT
679 zlibinc
680 zlibdir
681 HOST_LIBS
682 GGC
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 gcc_cv_ld
691 ORIGINAL_AS_FOR_TARGET
692 gcc_cv_as
693 enable_fast_install
694 objdir
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 STRIP
701 OBJDUMP
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 SED
707 LIBTOOL
708 collect2
709 STMP_FIXINC
710 BUILD_LDFLAGS
711 BUILD_CFLAGS
712 CC_FOR_BUILD
713 inhibit_libc
714 SYSTEM_HEADER_DIR
715 ALL
716 CROSS
717 CATOBJEXT
718 GENCAT
719 INSTOBJEXT
720 DATADIRNAME
721 CATALOGS
722 POSUB
723 GMSGFMT
724 XGETTEXT
725 INCINTL
726 LIBINTL_DEP
727 LIBINTL
728 USE_NLS
729 extra_opt_files
730 extra_modes_file
731 gthread_flags
732 objext
733 manext
734 LIBICONV_DEP
735 LTLIBICONV
736 LIBICONV
737 LDEXP_LIB
738 GNAT_LIBEXC
739 COLLECT2_LIBS
740 CXXCPP
741 AR
742 NM
743 BISON
744 FLEX
745 GENERATED_MANPAGES
746 BUILD_INFO
747 MAKEINFO
748 have_mktemp_command
749 make_compare_target
750 INSTALL_DATA
751 INSTALL_PROGRAM
752 INSTALL
753 ranlib_flags
754 RANLIB
755 LN
756 LN_S
757 AWK
758 SET_MAKE
759 REPORT_BUGS_TEXI
760 REPORT_BUGS_TO
761 PKGVERSION
762 CONFIGURE_SPECS
763 CROSS_SYSTEM_HEADER_DIR
764 TARGET_SYSTEM_ROOT_DEFINE
765 TARGET_SYSTEM_ROOT
766 enable_shared
767 enable_fixed_point
768 enable_decimal_float
769 enable_multilib
770 ENABLE_BUILD_WITH_CXX
771 coverage_flags
772 valgrind_command
773 valgrind_path_defines
774 valgrind_path
775 TREEBROWSER
776 nocommon_flag
777 warn_cxxflags
778 warn_cflags
779 c_strict_warn
780 strict_warn
781 c_loose_warn
782 loose_warn
783 EGREP
784 GREP
785 CPP
786 OUTPUT_OPTION
787 NO_MINUS_C_MINUS_O
788 GNATMAKE
789 GNATBIND
790 ac_ct_CXX
791 CXXFLAGS
792 CXX
793 OBJEXT
794 EXEEXT
795 ac_ct_CC
796 CPPFLAGS
797 LDFLAGS
798 CFLAGS
799 CC
800 GENINSRC
801 target_subdir
802 host_subdir
803 build_subdir
804 build_libsubdir
805 target_noncanonical
806 target_os
807 target_vendor
808 target_cpu
809 target
810 host_os
811 host_vendor
812 host_cpu
813 host
814 build_os
815 build_vendor
816 build_cpu
817 build
818 target_alias
819 host_alias
820 build_alias
821 LIBS
822 ECHO_T
823 ECHO_N
824 ECHO_C
825 DEFS
826 mandir
827 localedir
828 libdir
829 psdir
830 pdfdir
831 dvidir
832 htmldir
833 infodir
834 docdir
835 oldincludedir
836 includedir
837 localstatedir
838 sharedstatedir
839 sysconfdir
840 datadir
841 datarootdir
842 libexecdir
843 sbindir
844 bindir
845 program_transform_name
846 prefix
847 exec_prefix
848 PACKAGE_URL
849 PACKAGE_BUGREPORT
850 PACKAGE_STRING
851 PACKAGE_VERSION
852 PACKAGE_TARNAME
853 PACKAGE_NAME
854 PATH_SEPARATOR
855 SHELL'
856 ac_subst_files='option_includes
857 language_hooks'
858 ac_user_opts='
859 enable_option_checking
860 with_build_libsubdir
861 with_local_prefix
862 with_gxx_include_dir
863 with_cpp_install_dir
864 enable_generated_files_in_srcdir
865 with_gnu_ld
866 with_ld
867 with_demangler_in_ld
868 with_gnu_as
869 with_as
870 enable_largefile
871 enable_werror_always
872 enable_checking
873 enable_coverage
874 enable_gather_detailed_mem_stats
875 enable_build_with_cxx
876 with_stabs
877 enable_multilib
878 enable___cxa_atexit
879 enable_decimal_float
880 enable_fixed_point
881 enable_threads
882 enable_tls
883 enable_objc_gc
884 with_dwarf2
885 enable_shared
886 with_build_sysroot
887 with_sysroot
888 with_specs
889 with_pkgversion
890 with_bugurl
891 enable_languages
892 with_multilib_list
893 enable_rpath
894 with_libiconv_prefix
895 enable_initfini_array
896 enable_sjlj_exceptions
897 with_system_libunwind
898 enable_secureplt
899 enable_leading_mingw64_underscores
900 enable_cld
901 enable_frame_pointer
902 enable_win32_registry
903 enable_static
904 with_pic
905 enable_fast_install
906 enable_libtool_lock
907 with_plugin_ld
908 enable_gnu_indirect_function
909 enable_comdat
910 enable_gnu_unique_object
911 enable_linker_build_id
912 with_long_double_128
913 with_gc
914 with_system_zlib
915 enable_maintainer_mode
916 enable_version_specific_runtime_libs
917 with_slibdir
918 enable_plugin
919 enable_libquadmath_support
920 with_linker_hash_style
921 '
922       ac_precious_vars='build_alias
923 host_alias
924 target_alias
925 CC
926 CFLAGS
927 LDFLAGS
928 LIBS
929 CPPFLAGS
930 CXX
931 CXXFLAGS
932 CCC
933 CPP
934 CXXCPP
935 GMPLIBS
936 GMPINC
937 PPLLIBS
938 PPLINC
939 CLOOGLIBS
940 CLOOGINC'
941
942
943 # Initialize some variables set by options.
944 ac_init_help=
945 ac_init_version=false
946 ac_unrecognized_opts=
947 ac_unrecognized_sep=
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
950 cache_file=/dev/null
951 exec_prefix=NONE
952 no_create=
953 no_recursion=
954 prefix=NONE
955 program_prefix=NONE
956 program_suffix=NONE
957 program_transform_name=s,x,x,
958 silent=
959 site=
960 srcdir=
961 verbose=
962 x_includes=NONE
963 x_libraries=NONE
964
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE}'
982 infodir='${datarootdir}/info'
983 htmldir='${docdir}'
984 dvidir='${docdir}'
985 pdfdir='${docdir}'
986 psdir='${docdir}'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
990
991 ac_prev=
992 ac_dashdash=
993 for ac_option
994 do
995   # If the previous option needs an argument, assign it.
996   if test -n "$ac_prev"; then
997     eval $ac_prev=\$ac_option
998     ac_prev=
999     continue
1000   fi
1001
1002   case $ac_option in
1003   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004   *)    ac_optarg=yes ;;
1005   esac
1006
1007   # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009   case $ac_dashdash$ac_option in
1010   --)
1011     ac_dashdash=yes ;;
1012
1013   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014     ac_prev=bindir ;;
1015   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016     bindir=$ac_optarg ;;
1017
1018   -build | --build | --buil | --bui | --bu)
1019     ac_prev=build_alias ;;
1020   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021     build_alias=$ac_optarg ;;
1022
1023   -cache-file | --cache-file | --cache-fil | --cache-fi \
1024   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025     ac_prev=cache_file ;;
1026   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028     cache_file=$ac_optarg ;;
1029
1030   --config-cache | -C)
1031     cache_file=config.cache ;;
1032
1033   -datadir | --datadir | --datadi | --datad)
1034     ac_prev=datadir ;;
1035   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036     datadir=$ac_optarg ;;
1037
1038   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039   | --dataroo | --dataro | --datar)
1040     ac_prev=datarootdir ;;
1041   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043     datarootdir=$ac_optarg ;;
1044
1045   -disable-* | --disable-*)
1046     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047     # Reject names that are not valid shell variable names.
1048     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049       as_fn_error "invalid feature name: $ac_useropt"
1050     ac_useropt_orig=$ac_useropt
1051     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052     case $ac_user_opts in
1053       *"
1054 "enable_$ac_useropt"
1055 "*) ;;
1056       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057          ac_unrecognized_sep=', ';;
1058     esac
1059     eval enable_$ac_useropt=no ;;
1060
1061   -docdir | --docdir | --docdi | --doc | --do)
1062     ac_prev=docdir ;;
1063   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064     docdir=$ac_optarg ;;
1065
1066   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067     ac_prev=dvidir ;;
1068   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069     dvidir=$ac_optarg ;;
1070
1071   -enable-* | --enable-*)
1072     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073     # Reject names that are not valid shell variable names.
1074     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075       as_fn_error "invalid feature name: $ac_useropt"
1076     ac_useropt_orig=$ac_useropt
1077     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078     case $ac_user_opts in
1079       *"
1080 "enable_$ac_useropt"
1081 "*) ;;
1082       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083          ac_unrecognized_sep=', ';;
1084     esac
1085     eval enable_$ac_useropt=\$ac_optarg ;;
1086
1087   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089   | --exec | --exe | --ex)
1090     ac_prev=exec_prefix ;;
1091   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093   | --exec=* | --exe=* | --ex=*)
1094     exec_prefix=$ac_optarg ;;
1095
1096   -gas | --gas | --ga | --g)
1097     # Obsolete; use --with-gas.
1098     with_gas=yes ;;
1099
1100   -help | --help | --hel | --he | -h)
1101     ac_init_help=long ;;
1102   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103     ac_init_help=recursive ;;
1104   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105     ac_init_help=short ;;
1106
1107   -host | --host | --hos | --ho)
1108     ac_prev=host_alias ;;
1109   -host=* | --host=* | --hos=* | --ho=*)
1110     host_alias=$ac_optarg ;;
1111
1112   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113     ac_prev=htmldir ;;
1114   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115   | --ht=*)
1116     htmldir=$ac_optarg ;;
1117
1118   -includedir | --includedir | --includedi | --included | --include \
1119   | --includ | --inclu | --incl | --inc)
1120     ac_prev=includedir ;;
1121   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122   | --includ=* | --inclu=* | --incl=* | --inc=*)
1123     includedir=$ac_optarg ;;
1124
1125   -infodir | --infodir | --infodi | --infod | --info | --inf)
1126     ac_prev=infodir ;;
1127   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128     infodir=$ac_optarg ;;
1129
1130   -libdir | --libdir | --libdi | --libd)
1131     ac_prev=libdir ;;
1132   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133     libdir=$ac_optarg ;;
1134
1135   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136   | --libexe | --libex | --libe)
1137     ac_prev=libexecdir ;;
1138   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139   | --libexe=* | --libex=* | --libe=*)
1140     libexecdir=$ac_optarg ;;
1141
1142   -localedir | --localedir | --localedi | --localed | --locale)
1143     ac_prev=localedir ;;
1144   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145     localedir=$ac_optarg ;;
1146
1147   -localstatedir | --localstatedir | --localstatedi | --localstated \
1148   | --localstate | --localstat | --localsta | --localst | --locals)
1149     ac_prev=localstatedir ;;
1150   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152     localstatedir=$ac_optarg ;;
1153
1154   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155     ac_prev=mandir ;;
1156   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157     mandir=$ac_optarg ;;
1158
1159   -nfp | --nfp | --nf)
1160     # Obsolete; use --without-fp.
1161     with_fp=no ;;
1162
1163   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164   | --no-cr | --no-c | -n)
1165     no_create=yes ;;
1166
1167   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169     no_recursion=yes ;;
1170
1171   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173   | --oldin | --oldi | --old | --ol | --o)
1174     ac_prev=oldincludedir ;;
1175   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178     oldincludedir=$ac_optarg ;;
1179
1180   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181     ac_prev=prefix ;;
1182   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183     prefix=$ac_optarg ;;
1184
1185   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186   | --program-pre | --program-pr | --program-p)
1187     ac_prev=program_prefix ;;
1188   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190     program_prefix=$ac_optarg ;;
1191
1192   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193   | --program-suf | --program-su | --program-s)
1194     ac_prev=program_suffix ;;
1195   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197     program_suffix=$ac_optarg ;;
1198
1199   -program-transform-name | --program-transform-name \
1200   | --program-transform-nam | --program-transform-na \
1201   | --program-transform-n | --program-transform- \
1202   | --program-transform | --program-transfor \
1203   | --program-transfo | --program-transf \
1204   | --program-trans | --program-tran \
1205   | --progr-tra | --program-tr | --program-t)
1206     ac_prev=program_transform_name ;;
1207   -program-transform-name=* | --program-transform-name=* \
1208   | --program-transform-nam=* | --program-transform-na=* \
1209   | --program-transform-n=* | --program-transform-=* \
1210   | --program-transform=* | --program-transfor=* \
1211   | --program-transfo=* | --program-transf=* \
1212   | --program-trans=* | --program-tran=* \
1213   | --progr-tra=* | --program-tr=* | --program-t=*)
1214     program_transform_name=$ac_optarg ;;
1215
1216   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217     ac_prev=pdfdir ;;
1218   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219     pdfdir=$ac_optarg ;;
1220
1221   -psdir | --psdir | --psdi | --psd | --ps)
1222     ac_prev=psdir ;;
1223   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224     psdir=$ac_optarg ;;
1225
1226   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227   | -silent | --silent | --silen | --sile | --sil)
1228     silent=yes ;;
1229
1230   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231     ac_prev=sbindir ;;
1232   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233   | --sbi=* | --sb=*)
1234     sbindir=$ac_optarg ;;
1235
1236   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238   | --sharedst | --shareds | --shared | --share | --shar \
1239   | --sha | --sh)
1240     ac_prev=sharedstatedir ;;
1241   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244   | --sha=* | --sh=*)
1245     sharedstatedir=$ac_optarg ;;
1246
1247   -site | --site | --sit)
1248     ac_prev=site ;;
1249   -site=* | --site=* | --sit=*)
1250     site=$ac_optarg ;;
1251
1252   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253     ac_prev=srcdir ;;
1254   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255     srcdir=$ac_optarg ;;
1256
1257   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258   | --syscon | --sysco | --sysc | --sys | --sy)
1259     ac_prev=sysconfdir ;;
1260   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262     sysconfdir=$ac_optarg ;;
1263
1264   -target | --target | --targe | --targ | --tar | --ta | --t)
1265     ac_prev=target_alias ;;
1266   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267     target_alias=$ac_optarg ;;
1268
1269   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270     verbose=yes ;;
1271
1272   -version | --version | --versio | --versi | --vers | -V)
1273     ac_init_version=: ;;
1274
1275   -with-* | --with-*)
1276     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277     # Reject names that are not valid shell variable names.
1278     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279       as_fn_error "invalid package name: $ac_useropt"
1280     ac_useropt_orig=$ac_useropt
1281     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282     case $ac_user_opts in
1283       *"
1284 "with_$ac_useropt"
1285 "*) ;;
1286       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287          ac_unrecognized_sep=', ';;
1288     esac
1289     eval with_$ac_useropt=\$ac_optarg ;;
1290
1291   -without-* | --without-*)
1292     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293     # Reject names that are not valid shell variable names.
1294     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295       as_fn_error "invalid package name: $ac_useropt"
1296     ac_useropt_orig=$ac_useropt
1297     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298     case $ac_user_opts in
1299       *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303          ac_unrecognized_sep=', ';;
1304     esac
1305     eval with_$ac_useropt=no ;;
1306
1307   --x)
1308     # Obsolete; use --with-x.
1309     with_x=yes ;;
1310
1311   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312   | --x-incl | --x-inc | --x-in | --x-i)
1313     ac_prev=x_includes ;;
1314   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316     x_includes=$ac_optarg ;;
1317
1318   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320     ac_prev=x_libraries ;;
1321   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323     x_libraries=$ac_optarg ;;
1324
1325   -*) as_fn_error "unrecognized option: \`$ac_option'
1326 Try \`$0 --help' for more information."
1327     ;;
1328
1329   *=*)
1330     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331     # Reject names that are not valid shell variable names.
1332     case $ac_envvar in #(
1333       '' | [0-9]* | *[!_$as_cr_alnum]* )
1334       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1335     esac
1336     eval $ac_envvar=\$ac_optarg
1337     export $ac_envvar ;;
1338
1339   *)
1340     # FIXME: should be removed in autoconf 3.0.
1341     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345     ;;
1346
1347   esac
1348 done
1349
1350 if test -n "$ac_prev"; then
1351   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352   as_fn_error "missing argument to $ac_option"
1353 fi
1354
1355 if test -n "$ac_unrecognized_opts"; then
1356   case $enable_option_checking in
1357     no) ;;
1358     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1359     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360   esac
1361 fi
1362
1363 # Check all directory arguments for consistency.
1364 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365                 datadir sysconfdir sharedstatedir localstatedir includedir \
1366                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367                 libdir localedir mandir
1368 do
1369   eval ac_val=\$$ac_var
1370   # Remove trailing slashes.
1371   case $ac_val in
1372     */ )
1373       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374       eval $ac_var=\$ac_val;;
1375   esac
1376   # Be sure to have absolute directory names.
1377   case $ac_val in
1378     [\\/$]* | ?:[\\/]* )  continue;;
1379     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380   esac
1381   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1382 done
1383
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1387 build=$build_alias
1388 host=$host_alias
1389 target=$target_alias
1390
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393   if test "x$build_alias" = x; then
1394     cross_compiling=maybe
1395     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396     If a cross compiler is detected then cross compile mode will be used." >&2
1397   elif test "x$build_alias" != "x$host_alias"; then
1398     cross_compiling=yes
1399   fi
1400 fi
1401
1402 ac_tool_prefix=
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405 test "$silent" = yes && exec 6>/dev/null
1406
1407
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411   as_fn_error "working directory cannot be determined"
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413   as_fn_error "pwd does not report name of working directory"
1414
1415
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418   ac_srcdir_defaulted=yes
1419   # Try the directory containing this script, then the parent directory.
1420   ac_confdir=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422          X"$as_myself" : 'X\(//\)[^/]' \| \
1423          X"$as_myself" : 'X\(//\)$' \| \
1424          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427             s//\1/
1428             q
1429           }
1430           /^X\(\/\/\)[^/].*/{
1431             s//\1/
1432             q
1433           }
1434           /^X\(\/\/\)$/{
1435             s//\1/
1436             q
1437           }
1438           /^X\(\/\).*/{
1439             s//\1/
1440             q
1441           }
1442           s/.*/./; q'`
1443   srcdir=$ac_confdir
1444   if test ! -r "$srcdir/$ac_unique_file"; then
1445     srcdir=..
1446   fi
1447 else
1448   ac_srcdir_defaulted=no
1449 fi
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1453 fi
1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 ac_abs_confdir=`(
1456         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1457         pwd)`
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460   srcdir=.
1461 fi
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1465 case $srcdir in
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 esac
1468 for ac_var in $ac_precious_vars; do
1469   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470   eval ac_env_${ac_var}_value=\$${ac_var}
1471   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 done
1474
1475 #
1476 # Report the --help message.
1477 #
1478 if test "$ac_init_help" = "long"; then
1479   # Omit some internal or obsolete options to make the list less imposing.
1480   # This message is too long to be a string in the A/UX 3.1 sh.
1481   cat <<_ACEOF
1482 \`configure' configures this package to adapt to many kinds of systems.
1483
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1485
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE.  See below for descriptions of some of the useful variables.
1488
1489 Defaults for the options are specified in brackets.
1490
1491 Configuration:
1492   -h, --help              display this help and exit
1493       --help=short        display options specific to this package
1494       --help=recursive    display the short help of all the included packages
1495   -V, --version           display version information and exit
1496   -q, --quiet, --silent   do not print \`checking...' messages
1497       --cache-file=FILE   cache test results in FILE [disabled]
1498   -C, --config-cache      alias for \`--cache-file=config.cache'
1499   -n, --no-create         do not create output files
1500       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1501
1502 Installation directories:
1503   --prefix=PREFIX         install architecture-independent files in PREFIX
1504                           [$ac_default_prefix]
1505   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1506                           [PREFIX]
1507
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1512
1513 For better control, use the options below.
1514
1515 Fine tuning of the installation directories:
1516   --bindir=DIR            user executables [EPREFIX/bin]
1517   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1518   --libexecdir=DIR        program executables [EPREFIX/libexec]
1519   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1520   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1521   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1522   --libdir=DIR            object code libraries [EPREFIX/lib]
1523   --includedir=DIR        C header files [PREFIX/include]
1524   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1525   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1526   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1527   --infodir=DIR           info documentation [DATAROOTDIR/info]
1528   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1529   --mandir=DIR            man documentation [DATAROOTDIR/man]
1530   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1531   --htmldir=DIR           html documentation [DOCDIR]
1532   --dvidir=DIR            dvi documentation [DOCDIR]
1533   --pdfdir=DIR            pdf documentation [DOCDIR]
1534   --psdir=DIR             ps documentation [DOCDIR]
1535 _ACEOF
1536
1537   cat <<\_ACEOF
1538
1539 Program names:
1540   --program-prefix=PREFIX            prepend PREFIX to installed program names
1541   --program-suffix=SUFFIX            append SUFFIX to installed program names
1542   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1543
1544 System types:
1545   --build=BUILD     configure for building on BUILD [guessed]
1546   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1547   --target=TARGET   configure for building compilers for TARGET [HOST]
1548 _ACEOF
1549 fi
1550
1551 if test -n "$ac_init_help"; then
1552
1553   cat <<\_ACEOF
1554
1555 Optional Features:
1556   --disable-option-checking  ignore unrecognized --enable/--with options
1557   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1558   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1559   --enable-generated-files-in-srcdir
1560                           put copies of generated files in source dir intended
1561                           for creating source tarballs for users without
1562                           texinfo bison or flex
1563   --disable-largefile     omit support for large files
1564   --enable-werror-always  enable -Werror despite compiler version
1565   --enable-checking[=LIST]
1566                           enable expensive run-time checks. With LIST, enable
1567                           only specific categories of checks. Categories are:
1568                           yes,no,all,none,release. Flags are:
1569                           assert,df,fold,gc,gcac,gimple,misc,
1570                           rtlflag,rtl,runtime,tree,valgrind,types
1571   --enable-coverage[=LEVEL]
1572                           enable compiler's code coverage collection. Use to
1573                           measure compiler performance and locate unused parts
1574                           of the compiler. With LEVEL, specify optimization.
1575                           Values are opt, noopt, default is noopt
1576   --enable-gather-detailed-mem-stats
1577                           enable detailed memory allocation stats gathering
1578   --enable-build-with-cxx build with C++ compiler instead of C compiler
1579   --enable-multilib       enable library support for multiple ABIs
1580   --enable-__cxa_atexit   enable __cxa_atexit for C++
1581   --enable-decimal-float={no,yes,bid,dpd}
1582                         enable decimal float extension to C.  Selecting 'bid'
1583                         or 'dpd' choses which decimal floating point format
1584                         to use
1585   --enable-fixed-point    enable fixed-point arithmetic extension to C
1586   --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1587                           package
1588   --enable-tls            enable or disable generation of tls code overriding
1589                           the assembler check for tls support
1590   --enable-objc-gc        enable the use of Boehm's garbage collector with the
1591                           GNU Objective-C runtime
1592   --disable-shared        don't provide a shared libgcc
1593   --enable-languages=LIST specify which front-ends to build
1594   --disable-rpath         do not hardcode runtime library paths
1595   --enable-initfini-array       use .init_array/.fini_array sections
1596   --enable-sjlj-exceptions
1597                           arrange to use setjmp/longjmp exception handling
1598   --enable-secureplt      enable -msecure-plt by default for PowerPC
1599   --enable-leading-mingw64-underscores
1600                           enable leading underscores on 64 bit mingw targets
1601   --enable-cld            enable -mcld by default for 32bit x86
1602   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1603                           x86
1604   --disable-win32-registry
1605                           disable lookup of installation paths in the Registry
1606                           on Windows hosts
1607   --enable-win32-registry enable registry lookup (default)
1608   --enable-win32-registry=KEY
1609                           use KEY instead of GCC version as the last portion
1610                           of the registry key
1611   --enable-shared[=PKGS]  build shared libraries [default=yes]
1612   --enable-static[=PKGS]  build static libraries [default=yes]
1613   --enable-fast-install[=PKGS]
1614                           optimize for fast installation [default=yes]
1615   --disable-libtool-lock  avoid locking (might break parallel builds)
1616   --enable-gnu-indirect-function
1617                           enable the use of the @gnu_indirect_function to
1618                           glibc systems
1619   --enable-comdat         enable COMDAT group support
1620   --enable-gnu-unique-object
1621                           enable the use of the @gnu_unique_object ELF
1622                           extension on glibc systems
1623   --enable-linker-build-id
1624                           compiler will always pass --build-id to linker
1625   --enable-maintainer-mode
1626                           enable make rules and dependencies not useful (and
1627                           sometimes confusing) to the casual installer
1628   --enable-version-specific-runtime-libs
1629                           specify that runtime libraries should be installed
1630                           in a compiler-specific directory
1631   --enable-plugin         enable plugin support
1632   --disable-libquadmath-support
1633                           disable libquadmath support for Fortran
1634
1635 Optional Packages:
1636   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1637   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1638   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1639   --with-local-prefix=DIR specifies directory to put local include
1640   --with-gxx-include-dir=DIR
1641                           specifies directory to put g++ header files
1642   --with-cpp-install-dir=DIR
1643                           install the user visible C preprocessor in DIR
1644                           (relative to PREFIX) as well as PREFIX/bin
1645   --with-gnu-ld           arrange to work with GNU ld
1646   --with-ld               arrange to use the specified ld (full pathname)
1647   --with-demangler-in-ld  try to use demangler in GNU ld
1648   --with-gnu-as           arrange to work with GNU as
1649   --with-as               arrange to use the specified as (full pathname)
1650   --with-stabs            arrange to use stabs instead of host debug format
1651   --with-dwarf2           force the default debug format to be DWARF 2
1652   --with-build-sysroot=sysroot
1653                           use sysroot as the system root during the build
1654   --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1655   --with-specs=SPECS      add SPECS to driver command-line processing
1656   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1657   --with-bugurl=URL       Direct users to URL to report a bug
1658   --with-multilib-list    select multilibs (SH and x86-64 only)
1659   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1660   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1661   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1662   --with-system-libunwind use installed libunwind
1663   --with-pic              try to use only PIC/non-PIC objects [default=use
1664                           both]
1665   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1666   --with-plugin-ld=[ARG]  specify the plugin linker
1667   --with-long-double-128  use 128-bit long double by default
1668   --with-gc={page,zone}   choose the garbage collection mechanism to use with
1669                           the compiler
1670   --with-system-zlib      use installed libz
1671   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1672   --with-linker-hash-style={sysv,gnu,both}
1673                           specify the linker hash style
1674
1675 Some influential environment variables:
1676   CC          C compiler command
1677   CFLAGS      C compiler flags
1678   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1679               nonstandard directory <lib dir>
1680   LIBS        libraries to pass to the linker, e.g. -l<library>
1681   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1682               you have headers in a nonstandard directory <include dir>
1683   CXX         C++ compiler command
1684   CXXFLAGS    C++ compiler flags
1685   CPP         C preprocessor
1686   CXXCPP      C++ preprocessor
1687   GMPLIBS     How to link GMP
1688   GMPINC      How to find GMP include files
1689   PPLLIBS     How to link PPL
1690   PPLINC      How to find PPL include files
1691   CLOOGLIBS   How to link CLOOG
1692   CLOOGINC    How to find CLOOG include files
1693
1694 Use these variables to override the choices made by `configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1696
1697 Report bugs to the package provider.
1698 _ACEOF
1699 ac_status=$?
1700 fi
1701
1702 if test "$ac_init_help" = "recursive"; then
1703   # If there are subdirs, report their specific --help.
1704   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705     test -d "$ac_dir" ||
1706       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1707       continue
1708     ac_builddir=.
1709
1710 case "$ac_dir" in
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *)
1713   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714   # A ".." for each directory in $ac_dir_suffix.
1715   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716   case $ac_top_builddir_sub in
1717   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719   esac ;;
1720 esac
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1725
1726 case $srcdir in
1727   .)  # We are building in place.
1728     ac_srcdir=.
1729     ac_top_srcdir=$ac_top_builddir_sub
1730     ac_abs_top_srcdir=$ac_pwd ;;
1731   [\\/]* | ?:[\\/]* )  # Absolute name.
1732     ac_srcdir=$srcdir$ac_dir_suffix;
1733     ac_top_srcdir=$srcdir
1734     ac_abs_top_srcdir=$srcdir ;;
1735   *) # Relative name.
1736     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737     ac_top_srcdir=$ac_top_build_prefix$srcdir
1738     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 esac
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1741
1742     cd "$ac_dir" || { ac_status=$?; continue; }
1743     # Check for guested configure.
1744     if test -f "$ac_srcdir/configure.gnu"; then
1745       echo &&
1746       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747     elif test -f "$ac_srcdir/configure"; then
1748       echo &&
1749       $SHELL "$ac_srcdir/configure" --help=recursive
1750     else
1751       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752     fi || ac_status=$?
1753     cd "$ac_pwd" || { ac_status=$?; break; }
1754   done
1755 fi
1756
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1759   cat <<\_ACEOF
1760 configure
1761 generated by GNU Autoconf 2.64
1762
1763 Copyright (C) 2009 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1766 _ACEOF
1767   exit
1768 fi
1769
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1773
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1778 {
1779   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780   rm -f conftest.$ac_objext
1781   if { { ac_try="$ac_compile"
1782 case "(($ac_try" in
1783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784   *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788   (eval "$ac_compile") 2>conftest.err
1789   ac_status=$?
1790   if test -s conftest.err; then
1791     grep -v '^ *+' conftest.err >conftest.er1
1792     cat conftest.er1 >&5
1793     mv -f conftest.er1 conftest.err
1794   fi
1795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796   test $ac_status = 0; } && {
1797          test -z "$ac_c_werror_flag" ||
1798          test ! -s conftest.err
1799        } && test -s conftest.$ac_objext; then :
1800   ac_retval=0
1801 else
1802   $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805         ac_retval=1
1806 fi
1807   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808   return $ac_retval
1809
1810 } # ac_fn_c_try_compile
1811
1812 # ac_fn_cxx_try_compile LINENO
1813 # ----------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_cxx_try_compile ()
1816 {
1817   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818   rm -f conftest.$ac_objext
1819   if { { ac_try="$ac_compile"
1820 case "(($ac_try" in
1821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822   *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826   (eval "$ac_compile") 2>conftest.err
1827   ac_status=$?
1828   if test -s conftest.err; then
1829     grep -v '^ *+' conftest.err >conftest.er1
1830     cat conftest.er1 >&5
1831     mv -f conftest.er1 conftest.err
1832   fi
1833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834   test $ac_status = 0; } && {
1835          test -z "$ac_cxx_werror_flag" ||
1836          test ! -s conftest.err
1837        } && test -s conftest.$ac_objext; then :
1838   ac_retval=0
1839 else
1840   $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843         ac_retval=1
1844 fi
1845   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846   return $ac_retval
1847
1848 } # ac_fn_cxx_try_compile
1849
1850 # ac_fn_c_try_cpp LINENO
1851 # ----------------------
1852 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_cpp ()
1854 {
1855   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856   if { { ac_try="$ac_cpp conftest.$ac_ext"
1857 case "(($ac_try" in
1858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859   *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1864   ac_status=$?
1865   if test -s conftest.err; then
1866     grep -v '^ *+' conftest.err >conftest.er1
1867     cat conftest.er1 >&5
1868     mv -f conftest.er1 conftest.err
1869   fi
1870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871   test $ac_status = 0; } >/dev/null && {
1872          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1873          test ! -s conftest.err
1874        }; then :
1875   ac_retval=0
1876 else
1877   $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880     ac_retval=1
1881 fi
1882   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883   return $ac_retval
1884
1885 } # ac_fn_c_try_cpp
1886
1887 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1888 # -------------------------------------------------------
1889 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1890 # the include files in INCLUDES and setting the cache variable VAR
1891 # accordingly.
1892 ac_fn_c_check_header_mongrel ()
1893 {
1894   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899   $as_echo_n "(cached) " >&6
1900 fi
1901 eval ac_res=\$$3
1902                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 else
1905   # Is the header compilable?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1907 $as_echo_n "checking $2 usability... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h.  */
1910 $4
1911 #include <$2>
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914   ac_header_compiler=yes
1915 else
1916   ac_header_compiler=no
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1920 $as_echo "$ac_header_compiler" >&6; }
1921
1922 # Is the header present?
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1924 $as_echo_n "checking $2 presence... " >&6; }
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h.  */
1927 #include <$2>
1928 _ACEOF
1929 if ac_fn_c_try_cpp "$LINENO"; then :
1930   ac_header_preproc=yes
1931 else
1932   ac_header_preproc=no
1933 fi
1934 rm -f conftest.err conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1936 $as_echo "$ac_header_preproc" >&6; }
1937
1938 # So?  What about this header?
1939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1940   yes:no: )
1941     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1942 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1943     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945     ;;
1946   no:yes:* )
1947     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1948 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1949     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1950 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1951     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1952 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1953     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1954 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1955     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957     ;;
1958 esac
1959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962   $as_echo_n "(cached) " >&6
1963 else
1964   eval "$3=\$ac_header_compiler"
1965 fi
1966 eval ac_res=\$$3
1967                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 fi
1970   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971
1972 } # ac_fn_c_check_header_mongrel
1973
1974 # ac_fn_c_try_run LINENO
1975 # ----------------------
1976 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1977 # that executables *can* be run.
1978 ac_fn_c_try_run ()
1979 {
1980   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981   if { { ac_try="$ac_link"
1982 case "(($ac_try" in
1983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984   *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988   (eval "$ac_link") 2>&5
1989   ac_status=$?
1990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1992   { { case "(($ac_try" in
1993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994   *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998   (eval "$ac_try") 2>&5
1999   ac_status=$?
2000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001   test $ac_status = 0; }; }; then :
2002   ac_retval=0
2003 else
2004   $as_echo "$as_me: program exited with status $ac_status" >&5
2005        $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2007
2008        ac_retval=$ac_status
2009 fi
2010   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012   return $ac_retval
2013
2014 } # ac_fn_c_try_run
2015
2016 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2017 # -------------------------------------------------------
2018 # Tests whether HEADER exists and can be compiled using the include files in
2019 # INCLUDES, setting the cache variable VAR accordingly.
2020 ac_fn_c_check_header_compile ()
2021 {
2022   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026   $as_echo_n "(cached) " >&6
2027 else
2028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h.  */
2030 $4
2031 #include <$2>
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034   eval "$3=yes"
2035 else
2036   eval "$3=no"
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 fi
2040 eval ac_res=\$$3
2041                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044
2045 } # ac_fn_c_check_header_compile
2046
2047 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2048 # --------------------------------------------
2049 # Tries to find the compile-time value of EXPR in a program that includes
2050 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2051 # computed
2052 ac_fn_c_compute_int ()
2053 {
2054   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055   if test "$cross_compiling" = yes; then
2056     # Depending upon the size, compute the lo and hi bounds.
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h.  */
2059 $4
2060 int
2061 main ()
2062 {
2063 static int test_array [1 - 2 * !(($2) >= 0)];
2064 test_array [0] = 0
2065
2066   ;
2067   return 0;
2068 }
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071   ac_lo=0 ac_mid=0
2072   while :; do
2073     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h.  */
2075 $4
2076 int
2077 main ()
2078 {
2079 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2080 test_array [0] = 0
2081
2082   ;
2083   return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087   ac_hi=$ac_mid; break
2088 else
2089   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2090                         if test $ac_lo -le $ac_mid; then
2091                           ac_lo= ac_hi=
2092                           break
2093                         fi
2094                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097   done
2098 else
2099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h.  */
2101 $4
2102 int
2103 main ()
2104 {
2105 static int test_array [1 - 2 * !(($2) < 0)];
2106 test_array [0] = 0
2107
2108   ;
2109   return 0;
2110 }
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113   ac_hi=-1 ac_mid=-1
2114   while :; do
2115     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h.  */
2117 $4
2118 int
2119 main ()
2120 {
2121 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2122 test_array [0] = 0
2123
2124   ;
2125   return 0;
2126 }
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129   ac_lo=$ac_mid; break
2130 else
2131   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2132                         if test $ac_mid -le $ac_hi; then
2133                           ac_lo= ac_hi=
2134                           break
2135                         fi
2136                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139   done
2140 else
2141   ac_lo= ac_hi=
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 # Binary search between lo and hi bounds.
2147 while test "x$ac_lo" != "x$ac_hi"; do
2148   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h.  */
2151 $4
2152 int
2153 main ()
2154 {
2155 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2156 test_array [0] = 0
2157
2158   ;
2159   return 0;
2160 }
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163   ac_hi=$ac_mid
2164 else
2165   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2166 fi
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 done
2169 case $ac_lo in #((
2170 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2171 '') ac_retval=1 ;;
2172 esac
2173   else
2174     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h.  */
2176 $4
2177 static long int longval () { return $2; }
2178 static unsigned long int ulongval () { return $2; }
2179 #include <stdio.h>
2180 #include <stdlib.h>
2181 int
2182 main ()
2183 {
2184
2185   FILE *f = fopen ("conftest.val", "w");
2186   if (! f)
2187     return 1;
2188   if (($2) < 0)
2189     {
2190       long int i = longval ();
2191       if (i != ($2))
2192         return 1;
2193       fprintf (f, "%ld", i);
2194     }
2195   else
2196     {
2197       unsigned long int i = ulongval ();
2198       if (i != ($2))
2199         return 1;
2200       fprintf (f, "%lu", i);
2201     }
2202   /* Do not output a trailing newline, as this causes \r\n confusion
2203      on some platforms.  */
2204   return ferror (f) || fclose (f) != 0;
2205
2206   ;
2207   return 0;
2208 }
2209 _ACEOF
2210 if ac_fn_c_try_run "$LINENO"; then :
2211   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2212 else
2213   ac_retval=1
2214 fi
2215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2216   conftest.$ac_objext conftest.beam conftest.$ac_ext
2217 rm -f conftest.val
2218
2219   fi
2220   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2221   return $ac_retval
2222
2223 } # ac_fn_c_compute_int
2224
2225 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2226 # -------------------------------------------
2227 # Tests whether TYPE exists after having included INCLUDES, setting cache
2228 # variable VAR accordingly.
2229 ac_fn_c_check_type ()
2230 {
2231   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2235   $as_echo_n "(cached) " >&6
2236 else
2237   eval "$3=no"
2238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h.  */
2240 $4
2241 int
2242 main ()
2243 {
2244 if (sizeof ($2))
2245          return 0;
2246   ;
2247   return 0;
2248 }
2249 _ACEOF
2250 if ac_fn_c_try_compile "$LINENO"; then :
2251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h.  */
2253 $4
2254 int
2255 main ()
2256 {
2257 if (sizeof (($2)))
2258             return 0;
2259   ;
2260   return 0;
2261 }
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264
2265 else
2266   eval "$3=yes"
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 fi
2272 eval ac_res=\$$3
2273                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2276
2277 } # ac_fn_c_check_type
2278
2279 # ac_fn_c_find_intX_t LINENO BITS VAR
2280 # -----------------------------------
2281 # Finds a signed integer type with width BITS, setting cache variable VAR
2282 # accordingly.
2283 ac_fn_c_find_intX_t ()
2284 {
2285   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2287 $as_echo_n "checking for int$2_t... " >&6; }
2288 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2289   $as_echo_n "(cached) " >&6
2290 else
2291   eval "$3=no"
2292      for ac_type in int$2_t 'int' 'long int' \
2293          'long long int' 'short int' 'signed char'; do
2294        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h.  */
2296 $ac_includes_default
2297 int
2298 main ()
2299 {
2300 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2301 test_array [0] = 0
2302
2303   ;
2304   return 0;
2305 }
2306 _ACEOF
2307 if ac_fn_c_try_compile "$LINENO"; then :
2308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h.  */
2310 $ac_includes_default
2311 int
2312 main ()
2313 {
2314 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2315                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2316 test_array [0] = 0
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323
2324 else
2325   case $ac_type in #(
2326   int$2_t) :
2327     eval "$3=yes" ;; #(
2328   *) :
2329     eval "$3=\$ac_type" ;;
2330 esac
2331 fi
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 fi
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335        eval as_val=\$$3
2336    if test "x$as_val" = x""no; then :
2337
2338 else
2339   break
2340 fi
2341      done
2342 fi
2343 eval ac_res=\$$3
2344                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2346   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2347
2348 } # ac_fn_c_find_intX_t
2349
2350 # ac_fn_c_try_link LINENO
2351 # -----------------------
2352 # Try to link conftest.$ac_ext, and return whether this succeeded.
2353 ac_fn_c_try_link ()
2354 {
2355   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356   rm -f conftest.$ac_objext conftest$ac_exeext
2357   if { { ac_try="$ac_link"
2358 case "(($ac_try" in
2359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360   *) ac_try_echo=$ac_try;;
2361 esac
2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363 $as_echo "$ac_try_echo"; } >&5
2364   (eval "$ac_link") 2>conftest.err
2365   ac_status=$?
2366   if test -s conftest.err; then
2367     grep -v '^ *+' conftest.err >conftest.er1
2368     cat conftest.er1 >&5
2369     mv -f conftest.er1 conftest.err
2370   fi
2371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372   test $ac_status = 0; } && {
2373          test -z "$ac_c_werror_flag" ||
2374          test ! -s conftest.err
2375        } && test -s conftest$ac_exeext && {
2376          test "$cross_compiling" = yes ||
2377          $as_test_x conftest$ac_exeext
2378        }; then :
2379   ac_retval=0
2380 else
2381   $as_echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2383
2384         ac_retval=1
2385 fi
2386   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2387   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2388   # interfere with the next link command; also delete a directory that is
2389   # left behind by Apple's compiler.  We do this before executing the actions.
2390   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2391   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392   return $ac_retval
2393
2394 } # ac_fn_c_try_link
2395
2396 # ac_fn_c_find_uintX_t LINENO BITS VAR
2397 # ------------------------------------
2398 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2399 # accordingly.
2400 ac_fn_c_find_uintX_t ()
2401 {
2402   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2404 $as_echo_n "checking for uint$2_t... " >&6; }
2405 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2406   $as_echo_n "(cached) " >&6
2407 else
2408   eval "$3=no"
2409      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2410          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2411        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h.  */
2413 $ac_includes_default
2414 int
2415 main ()
2416 {
2417 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2418 test_array [0] = 0
2419
2420   ;
2421   return 0;
2422 }
2423 _ACEOF
2424 if ac_fn_c_try_compile "$LINENO"; then :
2425   case $ac_type in #(
2426   uint$2_t) :
2427     eval "$3=yes" ;; #(
2428   *) :
2429     eval "$3=\$ac_type" ;;
2430 esac
2431 fi
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433        eval as_val=\$$3
2434    if test "x$as_val" = x""no; then :
2435
2436 else
2437   break
2438 fi
2439      done
2440 fi
2441 eval ac_res=\$$3
2442                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2444   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445
2446 } # ac_fn_c_find_uintX_t
2447
2448 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2449 # ----------------------------------------------
2450 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2451 ac_fn_c_check_header_preproc ()
2452 {
2453   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2455 $as_echo_n "checking for $2... " >&6; }
2456 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2457   $as_echo_n "(cached) " >&6
2458 else
2459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h.  */
2461 #include <$2>
2462 _ACEOF
2463 if ac_fn_c_try_cpp "$LINENO"; then :
2464   eval "$3=yes"
2465 else
2466   eval "$3=no"
2467 fi
2468 rm -f conftest.err conftest.$ac_ext
2469 fi
2470 eval ac_res=\$$3
2471                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2473   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474
2475 } # ac_fn_c_check_header_preproc
2476
2477 # ac_fn_cxx_try_cpp LINENO
2478 # ------------------------
2479 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2480 ac_fn_cxx_try_cpp ()
2481 {
2482   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483   if { { ac_try="$ac_cpp conftest.$ac_ext"
2484 case "(($ac_try" in
2485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486   *) ac_try_echo=$ac_try;;
2487 esac
2488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2491   ac_status=$?
2492   if test -s conftest.err; then
2493     grep -v '^ *+' conftest.err >conftest.er1
2494     cat conftest.er1 >&5
2495     mv -f conftest.er1 conftest.err
2496   fi
2497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2498   test $ac_status = 0; } >/dev/null && {
2499          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2500          test ! -s conftest.err
2501        }; then :
2502   ac_retval=0
2503 else
2504   $as_echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2506
2507     ac_retval=1
2508 fi
2509   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2510   return $ac_retval
2511
2512 } # ac_fn_cxx_try_cpp
2513
2514 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2515 # ------------------------------------------------
2516 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2517 ac_fn_cxx_check_header_preproc ()
2518 {
2519   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523   $as_echo_n "(cached) " >&6
2524 else
2525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h.  */
2527 #include <$2>
2528 _ACEOF
2529 if ac_fn_cxx_try_cpp "$LINENO"; then :
2530   eval "$3=yes"
2531 else
2532   eval "$3=no"
2533 fi
2534 rm -f conftest.err conftest.$ac_ext
2535 fi
2536 eval ac_res=\$$3
2537                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2540
2541 } # ac_fn_cxx_check_header_preproc
2542
2543 # ac_fn_c_check_func LINENO FUNC VAR
2544 # ----------------------------------
2545 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2546 ac_fn_c_check_func ()
2547 {
2548   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552   $as_echo_n "(cached) " >&6
2553 else
2554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h.  */
2556 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2558 #define $2 innocuous_$2
2559
2560 /* System header to define __stub macros and hopefully few prototypes,
2561     which can conflict with char $2 (); below.
2562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2563     <limits.h> exists even on freestanding compilers.  */
2564
2565 #ifdef __STDC__
2566 # include <limits.h>
2567 #else
2568 # include <assert.h>
2569 #endif
2570
2571 #undef $2
2572
2573 /* Override any GCC internal prototype to avoid an error.
2574    Use char because int might match the return type of a GCC
2575    builtin and then its argument prototype would still apply.  */
2576 #ifdef __cplusplus
2577 extern "C"
2578 #endif
2579 char $2 ();
2580 /* The GNU C library defines this for functions which it implements
2581     to always fail with ENOSYS.  Some functions are actually named
2582     something starting with __ and the normal name is an alias.  */
2583 #if defined __stub_$2 || defined __stub___$2
2584 choke me
2585 #endif
2586
2587 int
2588 main ()
2589 {
2590 return $2 ();
2591   ;
2592   return 0;
2593 }
2594 _ACEOF
2595 if ac_fn_c_try_link "$LINENO"; then :
2596   eval "$3=yes"
2597 else
2598   eval "$3=no"
2599 fi
2600 rm -f core conftest.err conftest.$ac_objext \
2601     conftest$ac_exeext conftest.$ac_ext
2602 fi
2603 eval ac_res=\$$3
2604                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2607
2608 } # ac_fn_c_check_func
2609
2610 # ac_fn_cxx_try_link LINENO
2611 # -------------------------
2612 # Try to link conftest.$ac_ext, and return whether this succeeded.
2613 ac_fn_cxx_try_link ()
2614 {
2615   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2616   rm -f conftest.$ac_objext conftest$ac_exeext
2617   if { { ac_try="$ac_link"
2618 case "(($ac_try" in
2619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620   *) ac_try_echo=$ac_try;;
2621 esac
2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623 $as_echo "$ac_try_echo"; } >&5
2624   (eval "$ac_link") 2>conftest.err
2625   ac_status=$?
2626   if test -s conftest.err; then
2627     grep -v '^ *+' conftest.err >conftest.er1
2628     cat conftest.er1 >&5
2629     mv -f conftest.er1 conftest.err
2630   fi
2631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632   test $ac_status = 0; } && {
2633          test -z "$ac_cxx_werror_flag" ||
2634          test ! -s conftest.err
2635        } && test -s conftest$ac_exeext && {
2636          test "$cross_compiling" = yes ||
2637          $as_test_x conftest$ac_exeext
2638        }; then :
2639   ac_retval=0
2640 else
2641   $as_echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644         ac_retval=1
2645 fi
2646   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2647   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2648   # interfere with the next link command; also delete a directory that is
2649   # left behind by Apple's compiler.  We do this before executing the actions.
2650   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2651   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2652   return $ac_retval
2653
2654 } # ac_fn_cxx_try_link
2655 cat >config.log <<_ACEOF
2656 This file contains any messages produced by compilers while
2657 running configure, to aid debugging if configure makes a mistake.
2658
2659 It was created by $as_me, which was
2660 generated by GNU Autoconf 2.64.  Invocation command line was
2661
2662   $ $0 $@
2663
2664 _ACEOF
2665 exec 5>>config.log
2666 {
2667 cat <<_ASUNAME
2668 ## --------- ##
2669 ## Platform. ##
2670 ## --------- ##
2671
2672 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2673 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2674 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2675 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2676 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2677
2678 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2679 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2680
2681 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2682 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2683 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2684 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2685 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2686 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2687 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2688
2689 _ASUNAME
2690
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694   IFS=$as_save_IFS
2695   test -z "$as_dir" && as_dir=.
2696     $as_echo "PATH: $as_dir"
2697   done
2698 IFS=$as_save_IFS
2699
2700 } >&5
2701
2702 cat >&5 <<_ACEOF
2703
2704
2705 ## ----------- ##
2706 ## Core tests. ##
2707 ## ----------- ##
2708
2709 _ACEOF
2710
2711
2712 # Keep a trace of the command line.
2713 # Strip out --no-create and --no-recursion so they do not pile up.
2714 # Strip out --silent because we don't want to record it for future runs.
2715 # Also quote any args containing shell meta-characters.
2716 # Make two passes to allow for proper duplicate-argument suppression.
2717 ac_configure_args=
2718 ac_configure_args0=
2719 ac_configure_args1=
2720 ac_must_keep_next=false
2721 for ac_pass in 1 2
2722 do
2723   for ac_arg
2724   do
2725     case $ac_arg in
2726     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2727     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2728     | -silent | --silent | --silen | --sile | --sil)
2729       continue ;;
2730     *\'*)
2731       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2732     esac
2733     case $ac_pass in
2734     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2735     2)
2736       as_fn_append ac_configure_args1 " '$ac_arg'"
2737       if test $ac_must_keep_next = true; then
2738         ac_must_keep_next=false # Got value, back to normal.
2739       else
2740         case $ac_arg in
2741           *=* | --config-cache | -C | -disable-* | --disable-* \
2742           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2743           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2744           | -with-* | --with-* | -without-* | --without-* | --x)
2745             case "$ac_configure_args0 " in
2746               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2747             esac
2748             ;;
2749           -* ) ac_must_keep_next=true ;;
2750         esac
2751       fi
2752       as_fn_append ac_configure_args " '$ac_arg'"
2753       ;;
2754     esac
2755   done
2756 done
2757 { ac_configure_args0=; unset ac_configure_args0;}
2758 { ac_configure_args1=; unset ac_configure_args1;}
2759
2760 # When interrupted or exit'd, cleanup temporary files, and complete
2761 # config.log.  We remove comments because anyway the quotes in there
2762 # would cause problems or look ugly.
2763 # WARNING: Use '\'' to represent an apostrophe within the trap.
2764 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2765 trap 'exit_status=$?
2766   # Save into config.log some information that might help in debugging.
2767   {
2768     echo
2769
2770     cat <<\_ASBOX
2771 ## ---------------- ##
2772 ## Cache variables. ##
2773 ## ---------------- ##
2774 _ASBOX
2775     echo
2776     # The following way of writing the cache mishandles newlines in values,
2777 (
2778   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2779     eval ac_val=\$$ac_var
2780     case $ac_val in #(
2781     *${as_nl}*)
2782       case $ac_var in #(
2783       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2785       esac
2786       case $ac_var in #(
2787       _ | IFS | as_nl) ;; #(
2788       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2789       *) { eval $ac_var=; unset $ac_var;} ;;
2790       esac ;;
2791     esac
2792   done
2793   (set) 2>&1 |
2794     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2795     *${as_nl}ac_space=\ *)
2796       sed -n \
2797         "s/'\''/'\''\\\\'\'''\''/g;
2798           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2799       ;; #(
2800     *)
2801       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2802       ;;
2803     esac |
2804     sort
2805 )
2806     echo
2807
2808     cat <<\_ASBOX
2809 ## ----------------- ##
2810 ## Output variables. ##
2811 ## ----------------- ##
2812 _ASBOX
2813     echo
2814     for ac_var in $ac_subst_vars
2815     do
2816       eval ac_val=\$$ac_var
2817       case $ac_val in
2818       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2819       esac
2820       $as_echo "$ac_var='\''$ac_val'\''"
2821     done | sort
2822     echo
2823
2824     if test -n "$ac_subst_files"; then
2825       cat <<\_ASBOX
2826 ## ------------------- ##
2827 ## File substitutions. ##
2828 ## ------------------- ##
2829 _ASBOX
2830       echo
2831       for ac_var in $ac_subst_files
2832       do
2833         eval ac_val=\$$ac_var
2834         case $ac_val in
2835         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2836         esac
2837         $as_echo "$ac_var='\''$ac_val'\''"
2838       done | sort
2839       echo
2840     fi
2841
2842     if test -s confdefs.h; then
2843       cat <<\_ASBOX
2844 ## ----------- ##
2845 ## confdefs.h. ##
2846 ## ----------- ##
2847 _ASBOX
2848       echo
2849       cat confdefs.h
2850       echo
2851     fi
2852     test "$ac_signal" != 0 &&
2853       $as_echo "$as_me: caught signal $ac_signal"
2854     $as_echo "$as_me: exit $exit_status"
2855   } >&5
2856   rm -f core *.core core.conftest.* &&
2857     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2858     exit $exit_status
2859 ' 0
2860 for ac_signal in 1 2 13 15; do
2861   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2862 done
2863 ac_signal=0
2864
2865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2866 rm -f -r conftest* confdefs.h
2867
2868 $as_echo "/* confdefs.h */" > confdefs.h
2869
2870 # Predefined preprocessor variables.
2871
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_NAME "$PACKAGE_NAME"
2874 _ACEOF
2875
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2878 _ACEOF
2879
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2882 _ACEOF
2883
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_STRING "$PACKAGE_STRING"
2886 _ACEOF
2887
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2890 _ACEOF
2891
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_URL "$PACKAGE_URL"
2894 _ACEOF
2895
2896
2897 # Let the site file select an alternate cache file if it wants to.
2898 # Prefer an explicitly selected file to automatically selected ones.
2899 ac_site_file1=NONE
2900 ac_site_file2=NONE
2901 if test -n "$CONFIG_SITE"; then
2902   ac_site_file1=$CONFIG_SITE
2903 elif test "x$prefix" != xNONE; then
2904   ac_site_file1=$prefix/share/config.site
2905   ac_site_file2=$prefix/etc/config.site
2906 else
2907   ac_site_file1=$ac_default_prefix/share/config.site
2908   ac_site_file2=$ac_default_prefix/etc/config.site
2909 fi
2910 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2911 do
2912   test "x$ac_site_file" = xNONE && continue
2913   if test -r "$ac_site_file"; then
2914     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2915 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2916     sed 's/^/| /' "$ac_site_file" >&5
2917     . "$ac_site_file"
2918   fi
2919 done
2920
2921 if test -r "$cache_file"; then
2922   # Some versions of bash will fail to source /dev/null (special
2923   # files actually), so we avoid doing that.
2924   if test -f "$cache_file"; then
2925     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2926 $as_echo "$as_me: loading cache $cache_file" >&6;}
2927     case $cache_file in
2928       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2929       *)                      . "./$cache_file";;
2930     esac
2931   fi
2932 else
2933   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2934 $as_echo "$as_me: creating cache $cache_file" >&6;}
2935   >$cache_file
2936 fi
2937
2938 # Check that the precious variables saved in the cache have kept the same
2939 # value.
2940 ac_cache_corrupted=false
2941 for ac_var in $ac_precious_vars; do
2942   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2943   eval ac_new_set=\$ac_env_${ac_var}_set
2944   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2945   eval ac_new_val=\$ac_env_${ac_var}_value
2946   case $ac_old_set,$ac_new_set in
2947     set,)
2948       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2949 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2950       ac_cache_corrupted=: ;;
2951     ,set)
2952       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2953 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2954       ac_cache_corrupted=: ;;
2955     ,);;
2956     *)
2957       if test "x$ac_old_val" != "x$ac_new_val"; then
2958         # differences in whitespace do not lead to failure.
2959         ac_old_val_w=`echo x $ac_old_val`
2960         ac_new_val_w=`echo x $ac_new_val`
2961         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2962           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2963 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2964           ac_cache_corrupted=:
2965         else
2966           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2967 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2968           eval $ac_var=\$ac_old_val
2969         fi
2970         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2971 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2972         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2973 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2974       fi;;
2975   esac
2976   # Pass precious variables to config.status.
2977   if test "$ac_new_set" = set; then
2978     case $ac_new_val in
2979     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2980     *) ac_arg=$ac_var=$ac_new_val ;;
2981     esac
2982     case " $ac_configure_args " in
2983       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2984       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2985     esac
2986   fi
2987 done
2988 if $ac_cache_corrupted; then
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2992 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2993   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2994 fi
2995 ## -------------------- ##
2996 ## Main body of script. ##
2997 ## -------------------- ##
2998
2999 ac_ext=c
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004
3005
3006
3007
3008
3009
3010 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3011
3012
3013 gcc_version=`cat $srcdir/BASE-VER`
3014
3015 # Determine the host, build, and target systems
3016 ac_aux_dir=
3017 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3018   for ac_t in install-sh install.sh shtool; do
3019     if test -f "$ac_dir/$ac_t"; then
3020       ac_aux_dir=$ac_dir
3021       ac_install_sh="$ac_aux_dir/$ac_t -c"
3022       break 2
3023     fi
3024   done
3025 done
3026 if test -z "$ac_aux_dir"; then
3027   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3028 fi
3029
3030 # These three variables are undocumented and unsupported,
3031 # and are intended to be withdrawn in a future Autoconf release.
3032 # They can cause serious problems if a builder's source tree is in a directory
3033 # whose full name contains unusual characters.
3034 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3035 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3036 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3037
3038
3039 # Make sure we can run config.sub.
3040 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3041   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3042
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3044 $as_echo_n "checking build system type... " >&6; }
3045 if test "${ac_cv_build+set}" = set; then :
3046   $as_echo_n "(cached) " >&6
3047 else
3048   ac_build_alias=$build_alias
3049 test "x$ac_build_alias" = x &&
3050   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3051 test "x$ac_build_alias" = x &&
3052   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3054   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3055
3056 fi
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3058 $as_echo "$ac_cv_build" >&6; }
3059 case $ac_cv_build in
3060 *-*-*) ;;
3061 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3062 esac
3063 build=$ac_cv_build
3064 ac_save_IFS=$IFS; IFS='-'
3065 set x $ac_cv_build
3066 shift
3067 build_cpu=$1
3068 build_vendor=$2
3069 shift; shift
3070 # Remember, the first character of IFS is used to create $*,
3071 # except with old shells:
3072 build_os=$*
3073 IFS=$ac_save_IFS
3074 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3075
3076
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3078 $as_echo_n "checking host system type... " >&6; }
3079 if test "${ac_cv_host+set}" = set; then :
3080   $as_echo_n "(cached) " >&6
3081 else
3082   if test "x$host_alias" = x; then
3083   ac_cv_host=$ac_cv_build
3084 else
3085   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3086     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3087 fi
3088
3089 fi
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3091 $as_echo "$ac_cv_host" >&6; }
3092 case $ac_cv_host in
3093 *-*-*) ;;
3094 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3095 esac
3096 host=$ac_cv_host
3097 ac_save_IFS=$IFS; IFS='-'
3098 set x $ac_cv_host
3099 shift
3100 host_cpu=$1
3101 host_vendor=$2
3102 shift; shift
3103 # Remember, the first character of IFS is used to create $*,
3104 # except with old shells:
3105 host_os=$*
3106 IFS=$ac_save_IFS
3107 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3108
3109
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3111 $as_echo_n "checking target system type... " >&6; }
3112 if test "${ac_cv_target+set}" = set; then :
3113   $as_echo_n "(cached) " >&6
3114 else
3115   if test "x$target_alias" = x; then
3116   ac_cv_target=$ac_cv_host
3117 else
3118   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3119     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3120 fi
3121
3122 fi
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3124 $as_echo "$ac_cv_target" >&6; }
3125 case $ac_cv_target in
3126 *-*-*) ;;
3127 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3128 esac
3129 target=$ac_cv_target
3130 ac_save_IFS=$IFS; IFS='-'
3131 set x $ac_cv_target
3132 shift
3133 target_cpu=$1
3134 target_vendor=$2
3135 shift; shift
3136 # Remember, the first character of IFS is used to create $*,
3137 # except with old shells:
3138 target_os=$*
3139 IFS=$ac_save_IFS
3140 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3141
3142
3143 # The aliases save the names the user supplied, while $host etc.
3144 # will get canonicalized.
3145 test -n "$target_alias" &&
3146   test "$program_prefix$program_suffix$program_transform_name" = \
3147     NONENONEs,x,x, &&
3148   program_prefix=${target_alias}-
3149
3150 # Determine the noncanonical target name, for directory use.
3151  case ${build_alias} in
3152   "") build_noncanonical=${build} ;;
3153   *) build_noncanonical=${build_alias} ;;
3154 esac
3155
3156  case ${host_alias} in
3157   "") host_noncanonical=${build_noncanonical} ;;
3158   *) host_noncanonical=${host_alias} ;;
3159 esac
3160
3161  case ${target_alias} in
3162   "") target_noncanonical=${host_noncanonical} ;;
3163   *) target_noncanonical=${target_alias} ;;
3164 esac
3165
3166
3167
3168
3169 # Determine the target- and build-specific subdirectories
3170
3171 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3172 # have matching libraries, they should use host libraries: Makefile.tpl
3173 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3174 # However, they still use the build modules, because the corresponding
3175 # host modules (e.g. bison) are only built for the host when bootstrap
3176 # finishes. So:
3177 # - build_subdir is where we find build modules, and never changes.
3178 # - build_libsubdir is where we find build libraries, and can be overridden.
3179
3180 # Prefix 'build-' so this never conflicts with target_subdir.
3181 build_subdir="build-${build_noncanonical}"
3182
3183 # Check whether --with-build-libsubdir was given.
3184 if test "${with_build_libsubdir+set}" = set; then :
3185   withval=$with_build_libsubdir; build_libsubdir="$withval"
3186 else
3187   build_libsubdir="$build_subdir"
3188 fi
3189
3190 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3191 if ( test $srcdir = . && test -d gcc ) \
3192    || test -d $srcdir/../host-${host_noncanonical}; then
3193   host_subdir="host-${host_noncanonical}"
3194 else
3195   host_subdir=.
3196 fi
3197 # No prefix.
3198 target_subdir=${target_noncanonical}
3199
3200
3201 # Set program_transform_name
3202 test "$program_prefix" != NONE &&
3203   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3204 # Use a double $ so make ignores it.
3205 test "$program_suffix" != NONE &&
3206   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3207 # Double any \ or $.
3208 # By default was `s,x,x', remove it if useless.
3209 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3210 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3211
3212
3213 # Check for bogus environment variables.
3214 # Test if LIBRARY_PATH contains the notation for the current directory
3215 # since this would lead to problems installing/building glibc.
3216 # LIBRARY_PATH contains the current directory if one of the following
3217 # is true:
3218 # - one of the terminals (":" and ";") is the first or last sign
3219 # - two terminals occur directly after each other
3220 # - the path contains an element with a dot in it
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3222 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3223 case ${LIBRARY_PATH} in
3224   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3225     library_path_setting="contains current directory"
3226     ;;
3227   *)
3228     library_path_setting="ok"
3229     ;;
3230 esac
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3232 $as_echo "$library_path_setting" >&6; }
3233 if test "$library_path_setting" != "ok"; then
3234 as_fn_error "
3235 *** LIBRARY_PATH shouldn't contain the current directory when
3236 *** building gcc. Please change the environment variable
3237 *** and run configure again." "$LINENO" 5
3238 fi
3239
3240 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3241 # since this would lead to problems installing/building glibc.
3242 # GCC_EXEC_PREFIX contains the current directory if one of the following
3243 # is true:
3244 # - one of the terminals (":" and ";") is the first or last sign
3245 # - two terminals occur directly after each other
3246 # - the path contains an element with a dot in it
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3248 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3249 case ${GCC_EXEC_PREFIX} in
3250   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3251     gcc_exec_prefix_setting="contains current directory"
3252     ;;
3253   *)
3254     gcc_exec_prefix_setting="ok"
3255     ;;
3256 esac
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3258 $as_echo "$gcc_exec_prefix_setting" >&6; }
3259 if test "$gcc_exec_prefix_setting" != "ok"; then
3260 as_fn_error "
3261 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3262 *** building gcc. Please change the environment variable
3263 *** and run configure again." "$LINENO" 5
3264 fi
3265
3266 # -----------
3267 # Directories
3268 # -----------
3269
3270 # Specify the local prefix
3271 local_prefix=
3272
3273 # Check whether --with-local-prefix was given.
3274 if test "${with_local_prefix+set}" = set; then :
3275   withval=$with_local_prefix; case "${withval}" in
3276 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3277 no)     ;;
3278 *)      local_prefix=$with_local_prefix ;;
3279 esac
3280 fi
3281
3282
3283 # Default local prefix if it is empty
3284 if test x$local_prefix = x; then
3285         local_prefix=/usr/local
3286 fi
3287
3288 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3289 # passed in by the toplevel make and thus we'd get different behavior
3290 # depending on where we built the sources.
3291 gcc_gxx_include_dir=
3292 # Specify the g++ header file directory
3293
3294 # Check whether --with-gxx-include-dir was given.
3295 if test "${with_gxx_include_dir+set}" = set; then :
3296   withval=$with_gxx_include_dir; case "${withval}" in
3297 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3298 no)     ;;
3299 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3300 esac
3301 fi
3302
3303
3304 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3305 if test x${gcc_gxx_include_dir} = x; then
3306   if test x${enable_version_specific_runtime_libs} = xyes; then
3307     gcc_gxx_include_dir='${libsubdir}/include/c++'
3308   else
3309     libstdcxx_incdir='include/c++/$(version)'
3310     if test x$host != x$target; then
3311        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3312     fi
3313     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3314   fi
3315 fi
3316
3317
3318 # Check whether --with-cpp_install_dir was given.
3319 if test "${with_cpp_install_dir+set}" = set; then :
3320   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3321   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3322 elif test x$withval != xno; then
3323   cpp_install_dir=$withval
3324 fi
3325 fi
3326
3327
3328 # We would like to our source tree to be readonly.  However when releases or
3329 # pre-releases are generated, the flex/bison generated files as well as the
3330 # various formats of manuals need to be included along with the rest of the
3331 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3332 # just that.
3333
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3335 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3336     # Check whether --enable-generated-files-in-srcdir was given.
3337 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3338   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3339 else
3340   generated_files_in_srcdir=no
3341 fi
3342
3343
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3345 $as_echo "$generated_files_in_srcdir" >&6; }
3346
3347 if test "$generated_files_in_srcdir" = "yes"; then
3348   GENINSRC=''
3349 else
3350   GENINSRC='#'
3351 fi
3352
3353
3354 # -------------------
3355 # Find default linker
3356 # -------------------
3357
3358 # With GNU ld
3359
3360 # Check whether --with-gnu-ld was given.
3361 if test "${with_gnu_ld+set}" = set; then :
3362   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3363 else
3364   gnu_ld_flag=no
3365 fi
3366
3367
3368 # With pre-defined ld
3369
3370 # Check whether --with-ld was given.
3371 if test "${with_ld+set}" = set; then :
3372   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3373 fi
3374
3375 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3376   if test ! -x "$DEFAULT_LINKER"; then
3377     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3378   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3379     gnu_ld_flag=yes
3380   fi
3381
3382 cat >>confdefs.h <<_ACEOF
3383 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3384 _ACEOF
3385
3386 fi
3387
3388 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3389
3390 cat >>confdefs.h <<_ACEOF
3391 #define HAVE_GNU_LD $gnu_ld
3392 _ACEOF
3393
3394
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3396 $as_echo_n "checking whether a default linker was specified... " >&6; }
3397 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3398   if test x"$gnu_ld_flag" = x"no"; then
3399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3400 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3401   else
3402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3403 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3404   fi
3405 else
3406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 fi
3409
3410 # With demangler in GNU ld
3411
3412 # Check whether --with-demangler-in-ld was given.
3413 if test "${with_demangler_in_ld+set}" = set; then :
3414   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3415 else
3416   demangler_in_ld=yes
3417 fi
3418
3419
3420 # ----------------------
3421 # Find default assembler
3422 # ----------------------
3423
3424 # With GNU as
3425
3426 # Check whether --with-gnu-as was given.
3427 if test "${with_gnu_as+set}" = set; then :
3428   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3429 else
3430   gas_flag=no
3431 fi
3432
3433
3434
3435 # Check whether --with-as was given.
3436 if test "${with_as+set}" = set; then :
3437   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3438 fi
3439
3440 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3441   if test ! -x "$DEFAULT_ASSEMBLER"; then
3442     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3443   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3444     gas_flag=yes
3445   fi
3446
3447 cat >>confdefs.h <<_ACEOF
3448 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3449 _ACEOF
3450
3451 fi
3452
3453 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3454
3455 cat >>confdefs.h <<_ACEOF
3456 #define HAVE_GNU_AS $gnu_as
3457 _ACEOF
3458
3459
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3461 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3462 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3463   if test x"$gas_flag" = x"no"; then
3464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3465 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3466   else
3467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3468 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3469   fi
3470 else
3471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3473 fi
3474
3475 # ---------------
3476 # Find C compiler
3477 # ---------------
3478
3479 # If a non-executable a.out is present (e.g. created by GNU as above even if
3480 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3481 # file, even when creating an executable, so an execution test fails.
3482 # Remove possible default executable files to avoid this.
3483 #
3484 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3485 # Autoconf includes it.
3486 rm -f a.out a.exe b.out
3487
3488 # Find the native compiler
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500   $as_echo_n "(cached) " >&6
3501 else
3502   if test -n "$CC"; then
3503   ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508   IFS=$as_save_IFS
3509   test -z "$as_dir" && as_dir=.
3510     for ac_exec_ext in '' $ac_executable_extensions; do
3511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514     break 2
3515   fi
3516 done
3517   done
3518 IFS=$as_save_IFS
3519
3520 fi
3521 fi
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 fi
3530
3531
3532 fi
3533 if test -z "$ac_cv_prog_CC"; then
3534   ac_ct_CC=$CC
3535   # Extract the first word of "gcc", so it can be a program name with args.
3536 set dummy gcc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3540   $as_echo_n "(cached) " >&6
3541 else
3542   if test -n "$ac_ct_CC"; then
3543   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548   IFS=$as_save_IFS
3549   test -z "$as_dir" && as_dir=.
3550     for ac_exec_ext in '' $ac_executable_extensions; do
3551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552     ac_cv_prog_ac_ct_CC="gcc"
3553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554     break 2
3555   fi
3556 done
3557   done
3558 IFS=$as_save_IFS
3559
3560 fi
3561 fi
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3566 else
3567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 fi
3570
3571   if test "x$ac_ct_CC" = x; then
3572     CC=""
3573   else
3574     case $cross_compiling:$ac_tool_warned in
3575 yes:)
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned=yes ;;
3579 esac
3580     CC=$ac_ct_CC
3581   fi
3582 else
3583   CC="$ac_cv_prog_CC"
3584 fi
3585
3586 if test -z "$CC"; then
3587           if test -n "$ac_tool_prefix"; then
3588     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3589 set dummy ${ac_tool_prefix}cc; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593   $as_echo_n "(cached) " >&6
3594 else
3595   if test -n "$CC"; then
3596   ac_cv_prog_CC="$CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601   IFS=$as_save_IFS
3602   test -z "$as_dir" && as_dir=.
3603     for ac_exec_ext in '' $ac_executable_extensions; do
3604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605     ac_cv_prog_CC="${ac_tool_prefix}cc"
3606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607     break 2
3608   fi
3609 done
3610   done
3611 IFS=$as_save_IFS
3612
3613 fi
3614 fi
3615 CC=$ac_cv_prog_CC
3616 if test -n "$CC"; then
3617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3619 else
3620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3622 fi
3623
3624
3625   fi
3626 fi
3627 if test -z "$CC"; then
3628   # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633   $as_echo_n "(cached) " >&6
3634 else
3635   if test -n "$CC"; then
3636   ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638   ac_prog_rejected=no
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3641 do
3642   IFS=$as_save_IFS
3643   test -z "$as_dir" && as_dir=.
3644     for ac_exec_ext in '' $ac_executable_extensions; do
3645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3647        ac_prog_rejected=yes
3648        continue
3649      fi
3650     ac_cv_prog_CC="cc"
3651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652     break 2
3653   fi
3654 done
3655   done
3656 IFS=$as_save_IFS
3657
3658 if test $ac_prog_rejected = yes; then
3659   # We found a bogon in the path, so make sure we never use it.
3660   set dummy $ac_cv_prog_CC
3661   shift
3662   if test $# != 0; then
3663     # We chose a different compiler from the bogus one.
3664     # However, it has the same basename, so the bogon will be chosen
3665     # first if we set CC to just the basename; use the full file name.
3666     shift
3667     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3668   fi
3669 fi
3670 fi
3671 fi
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3676 else
3677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3679 fi
3680
3681
3682 fi
3683 if test -z "$CC"; then
3684   if test -n "$ac_tool_prefix"; then
3685   for ac_prog in cl.exe
3686   do
3687     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if test "${ac_cv_prog_CC+set}" = set; then :
3692   $as_echo_n "(cached) " >&6
3693 else
3694   if test -n "$CC"; then
3695   ac_cv_prog_CC="$CC" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3699 do
3700   IFS=$as_save_IFS
3701   test -z "$as_dir" && as_dir=.
3702     for ac_exec_ext in '' $ac_executable_extensions; do
3703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706     break 2
3707   fi
3708 done
3709   done
3710 IFS=$as_save_IFS
3711
3712 fi
3713 fi
3714 CC=$ac_cv_prog_CC
3715 if test -n "$CC"; then
3716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3718 else
3719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3721 fi
3722
3723
3724     test -n "$CC" && break
3725   done
3726 fi
3727 if test -z "$CC"; then
3728   ac_ct_CC=$CC
3729   for ac_prog in cl.exe
3730 do
3731   # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3736   $as_echo_n "(cached) " >&6
3737 else
3738   if test -n "$ac_ct_CC"; then
3739   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746     for ac_exec_ext in '' $ac_executable_extensions; do
3747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748     ac_cv_prog_ac_ct_CC="$ac_prog"
3749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750     break 2
3751   fi
3752 done
3753   done
3754 IFS=$as_save_IFS
3755
3756 fi
3757 fi
3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3762 else
3763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3765 fi
3766
3767
3768   test -n "$ac_ct_CC" && break
3769 done
3770
3771   if test "x$ac_ct_CC" = x; then
3772     CC=""
3773   else
3774     case $cross_compiling:$ac_tool_warned in
3775 yes:)
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3779 esac
3780     CC=$ac_ct_CC
3781   fi
3782 fi
3783
3784 fi
3785
3786
3787 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error "no acceptable C compiler found in \$PATH
3790 See \`config.log' for more details." "$LINENO" 5; }
3791
3792 # Provide some information about the compiler.
3793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3794 set X $ac_compile
3795 ac_compiler=$2
3796 for ac_option in --version -v -V -qversion; do
3797   { { ac_try="$ac_compiler $ac_option >&5"
3798 case "(($ac_try" in
3799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800   *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3805   ac_status=$?
3806   if test -s conftest.err; then
3807     sed '10a\
3808 ... rest of stderr output deleted ...
3809          10q' conftest.err >conftest.er1
3810     cat conftest.er1 >&5
3811     rm -f conftest.er1 conftest.err
3812   fi
3813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814   test $ac_status = 0; }
3815 done
3816
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h.  */
3819
3820 int
3821 main ()
3822 {
3823
3824   ;
3825   return 0;
3826 }
3827 _ACEOF
3828 ac_clean_files_save=$ac_clean_files
3829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3830 # Try to create an executable without -o first, disregard a.out.
3831 # It will help us diagnose broken compilers, and finding out an intuition
3832 # of exeext.
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3834 $as_echo_n "checking for C compiler default output file name... " >&6; }
3835 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3836
3837 # The possible output files:
3838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3839
3840 ac_rmfiles=
3841 for ac_file in $ac_files
3842 do
3843   case $ac_file in
3844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3846   esac
3847 done
3848 rm -f $ac_rmfiles
3849
3850 if { { ac_try="$ac_link_default"
3851 case "(($ac_try" in
3852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853   *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857   (eval "$ac_link_default") 2>&5
3858   ac_status=$?
3859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860   test $ac_status = 0; }; then :
3861   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3863 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3864 # so that the user can short-circuit this test for compilers unknown to
3865 # Autoconf.
3866 for ac_file in $ac_files ''
3867 do
3868   test -f "$ac_file" || continue
3869   case $ac_file in
3870     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3871         ;;
3872     [ab].out )
3873         # We found the default executable, but exeext='' is most
3874         # certainly right.
3875         break;;
3876     *.* )
3877         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3878         then :; else
3879            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3880         fi
3881         # We set ac_cv_exeext here because the later test for it is not
3882         # safe: cross compilers may not add the suffix if given an `-o'
3883         # argument, so we may need to know it at that point already.
3884         # Even if this section looks crufty: it has the advantage of
3885         # actually working.
3886         break;;
3887     * )
3888         break;;
3889   esac
3890 done
3891 test "$ac_cv_exeext" = no && ac_cv_exeext=
3892
3893 else
3894   ac_file=''
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3897 $as_echo "$ac_file" >&6; }
3898 if test -z "$ac_file"; then :
3899   $as_echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3901
3902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904 { as_fn_set_status 77
3905 as_fn_error "C compiler cannot create executables
3906 See \`config.log' for more details." "$LINENO" 5; }; }
3907 fi
3908 ac_exeext=$ac_cv_exeext
3909
3910 # Check that the compiler produces executables we can run.  If not, either
3911 # the compiler is broken, or we cross compile.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 $as_echo_n "checking whether the C compiler works... " >&6; }
3914 # If not cross compiling, check that we can run a simple program.
3915 if test "$cross_compiling" != yes; then
3916   if { ac_try='./$ac_file'
3917   { { case "(($ac_try" in
3918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919   *) ac_try_echo=$ac_try;;
3920 esac
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923   (eval "$ac_try") 2>&5
3924   ac_status=$?
3925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926   test $ac_status = 0; }; }; then
3927     cross_compiling=no
3928   else
3929     if test "$cross_compiling" = maybe; then
3930         cross_compiling=yes
3931     else
3932         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934 as_fn_error "cannot run C compiled programs.
3935 If you meant to cross compile, use \`--host'.
3936 See \`config.log' for more details." "$LINENO" 5; }
3937     fi
3938   fi
3939 fi
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3941 $as_echo "yes" >&6; }
3942
3943 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3944 ac_clean_files=$ac_clean_files_save
3945 # Check that the compiler produces executables we can run.  If not, either
3946 # the compiler is broken, or we cross compile.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3948 $as_echo_n "checking whether we are cross compiling... " >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3950 $as_echo "$cross_compiling" >&6; }
3951
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3953 $as_echo_n "checking for suffix of executables... " >&6; }
3954 if { { ac_try="$ac_link"
3955 case "(($ac_try" in
3956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957   *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961   (eval "$ac_link") 2>&5
3962   ac_status=$?
3963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964   test $ac_status = 0; }; then :
3965   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3966 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3967 # work properly (i.e., refer to `conftest.exe'), while it won't with
3968 # `rm'.
3969 for ac_file in conftest.exe conftest conftest.*; do
3970   test -f "$ac_file" || continue
3971   case $ac_file in
3972     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3973     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3974           break;;
3975     * ) break;;
3976   esac
3977 done
3978 else
3979   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3981 as_fn_error "cannot compute suffix of executables: cannot compile and link
3982 See \`config.log' for more details." "$LINENO" 5; }
3983 fi
3984 rm -f conftest$ac_cv_exeext
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3986 $as_echo "$ac_cv_exeext" >&6; }
3987
3988 rm -f conftest.$ac_ext
3989 EXEEXT=$ac_cv_exeext
3990 ac_exeext=$EXEEXT
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3992 $as_echo_n "checking for suffix of object files... " >&6; }
3993 if test "${ac_cv_objext+set}" = set; then :
3994   $as_echo_n "(cached) " >&6
3995 else
3996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h.  */
3998
3999 int
4000 main ()
4001 {
4002
4003   ;
4004   return 0;
4005 }
4006 _ACEOF
4007 rm -f conftest.o conftest.obj
4008 if { { ac_try="$ac_compile"
4009 case "(($ac_try" in
4010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011   *) ac_try_echo=$ac_try;;
4012 esac
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015   (eval "$ac_compile") 2>&5
4016   ac_status=$?
4017   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018   test $ac_status = 0; }; then :
4019   for ac_file in conftest.o conftest.obj conftest.*; do
4020   test -f "$ac_file" || continue;
4021   case $ac_file in
4022     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4023     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4024        break;;
4025   esac
4026 done
4027 else
4028   $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033 as_fn_error "cannot compute suffix of object files: cannot compile
4034 See \`config.log' for more details." "$LINENO" 5; }
4035 fi
4036 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4039 $as_echo "$ac_cv_objext" >&6; }
4040 OBJEXT=$ac_cv_objext
4041 ac_objext=$OBJEXT
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4043 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4044 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4045   $as_echo_n "(cached) " >&6
4046 else
4047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h.  */
4049
4050 int
4051 main ()
4052 {
4053 #ifndef __GNUC__
4054        choke me
4055 #endif
4056
4057   ;
4058   return 0;
4059 }
4060 _ACEOF
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062   ac_compiler_gnu=yes
4063 else
4064   ac_compiler_gnu=no
4065 fi
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4068
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4071 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4072 if test $ac_compiler_gnu = yes; then
4073   GCC=yes
4074 else
4075   GCC=
4076 fi
4077 ac_test_CFLAGS=${CFLAGS+set}
4078 ac_save_CFLAGS=$CFLAGS
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4080 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4081 if test "${ac_cv_prog_cc_g+set}" = set; then :
4082   $as_echo_n "(cached) " >&6
4083 else
4084   ac_save_c_werror_flag=$ac_c_werror_flag
4085    ac_c_werror_flag=yes
4086    ac_cv_prog_cc_g=no
4087    CFLAGS="-g"
4088    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h.  */
4090
4091 int
4092 main ()
4093 {
4094
4095   ;
4096   return 0;
4097 }
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100   ac_cv_prog_cc_g=yes
4101 else
4102   CFLAGS=""
4103       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h.  */
4105
4106 int
4107 main ()
4108 {
4109
4110   ;
4111   return 0;
4112 }
4113 _ACEOF
4114 if ac_fn_c_try_compile "$LINENO"; then :
4115
4116 else
4117   ac_c_werror_flag=$ac_save_c_werror_flag
4118          CFLAGS="-g"
4119          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h.  */
4121
4122 int
4123 main ()
4124 {
4125
4126   ;
4127   return 0;
4128 }
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131   ac_cv_prog_cc_g=yes
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 fi
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138    ac_c_werror_flag=$ac_save_c_werror_flag
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4141 $as_echo "$ac_cv_prog_cc_g" >&6; }
4142 if test "$ac_test_CFLAGS" = set; then
4143   CFLAGS=$ac_save_CFLAGS
4144 elif test $ac_cv_prog_cc_g = yes; then
4145   if test "$GCC" = yes; then
4146     CFLAGS="-g -O2"
4147   else
4148     CFLAGS="-g"
4149   fi
4150 else
4151   if test "$GCC" = yes; then
4152     CFLAGS="-O2"
4153   else
4154     CFLAGS=
4155   fi
4156 fi
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4158 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4159 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4160   $as_echo_n "(cached) " >&6
4161 else
4162   ac_cv_prog_cc_c89=no
4163 ac_save_CC=$CC
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h.  */
4166 #include <stdarg.h>
4167 #include <stdio.h>
4168 #include <sys/types.h>
4169 #include <sys/stat.h>
4170 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4171 struct buf { int x; };
4172 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4173 static char *e (p, i)
4174      char **p;
4175      int i;
4176 {
4177   return p[i];
4178 }
4179 static char *f (char * (*g) (char **, int), char **p, ...)
4180 {
4181   char *s;
4182   va_list v;
4183   va_start (v,p);
4184   s = g (p, va_arg (v,int));
4185   va_end (v);
4186   return s;
4187 }
4188
4189 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4190    function prototypes and stuff, but not '\xHH' hex character constants.
4191    These don't provoke an error unfortunately, instead are silently treated
4192    as 'x'.  The following induces an error, until -std is added to get
4193    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4194    array size at least.  It's necessary to write '\x00'==0 to get something
4195    that's true only with -std.  */
4196 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4197
4198 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4199    inside strings and character constants.  */
4200 #define FOO(x) 'x'
4201 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4202
4203 int test (int i, double x);
4204 struct s1 {int (*f) (int a);};
4205 struct s2 {int (*f) (double a);};
4206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4207 int argc;
4208 char **argv;
4209 int
4210 main ()
4211 {
4212 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4213   ;
4214   return 0;
4215 }
4216 _ACEOF
4217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4218         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4219 do
4220   CC="$ac_save_CC $ac_arg"
4221   if ac_fn_c_try_compile "$LINENO"; then :
4222   ac_cv_prog_cc_c89=$ac_arg
4223 fi
4224 rm -f core conftest.err conftest.$ac_objext
4225   test "x$ac_cv_prog_cc_c89" != "xno" && break
4226 done
4227 rm -f conftest.$ac_ext
4228 CC=$ac_save_CC
4229
4230 fi
4231 # AC_CACHE_VAL
4232 case "x$ac_cv_prog_cc_c89" in
4233   x)
4234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4235 $as_echo "none needed" >&6; } ;;
4236   xno)
4237     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4238 $as_echo "unsupported" >&6; } ;;
4239   *)
4240     CC="$CC $ac_cv_prog_cc_c89"
4241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4242 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4243 esac
4244 if test "x$ac_cv_prog_cc_c89" != xno; then :
4245
4246 fi
4247
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253
4254 if test "x$CC" != xcc; then
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4256 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4257 else
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4259 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4260 fi
4261 set dummy $CC; ac_cc=`$as_echo "$2" |
4262                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4263 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h.  */
4268
4269 int
4270 main ()
4271 {
4272
4273   ;
4274   return 0;
4275 }
4276 _ACEOF
4277 # Make sure it works both with $CC and with simple cc.
4278 # We do the test twice because some compilers refuse to overwrite an
4279 # existing .o file with -o, though they will create one.
4280 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4281 rm -f conftest2.*
4282 if { { case "(($ac_try" in
4283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284   *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288   (eval "$ac_try") 2>&5
4289   ac_status=$?
4290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291   test $ac_status = 0; } &&
4292    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294   *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298   (eval "$ac_try") 2>&5
4299   ac_status=$?
4300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301   test $ac_status = 0; };
4302 then
4303   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4304   if test "x$CC" != xcc; then
4305     # Test first that cc exists at all.
4306     if { ac_try='cc -c conftest.$ac_ext >&5'
4307   { { case "(($ac_try" in
4308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309   *) ac_try_echo=$ac_try;;
4310 esac
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313   (eval "$ac_try") 2>&5
4314   ac_status=$?
4315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316   test $ac_status = 0; }; }; then
4317       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4318       rm -f conftest2.*
4319       if { { case "(($ac_try" in
4320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321   *) ac_try_echo=$ac_try;;
4322 esac
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325   (eval "$ac_try") 2>&5
4326   ac_status=$?
4327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328   test $ac_status = 0; } &&
4329          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331   *) ac_try_echo=$ac_try;;
4332 esac
4333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335   (eval "$ac_try") 2>&5
4336   ac_status=$?
4337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4338   test $ac_status = 0; };
4339       then
4340         # cc works too.
4341         :
4342       else
4343         # cc exists but doesn't like -o.
4344         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4345       fi
4346     fi
4347   fi
4348 else
4349   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4350 fi
4351 rm -f core conftest*
4352
4353 fi
4354 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356 $as_echo "yes" >&6; }
4357 else
4358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4360
4361 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4362
4363 fi
4364
4365 # expand $ac_aux_dir to an absolute path
4366 am_aux_dir=`cd $ac_aux_dir && pwd`
4367
4368 # FIXME: we rely on the cache variable name because
4369 # there is no other way.
4370 set dummy $CC
4371 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4372 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4373 if test "$am_t" != yes; then
4374    # Losing compiler, so override with the script.
4375    # FIXME: It is wrong to rewrite CC.
4376    # But if we don't then we get into trouble of one sort or another.
4377    # A longer-term fix would be to have automake use am__CC in this case,
4378    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4379    CC="$am_aux_dir/compile $CC"
4380 fi
4381
4382
4383 ac_ext=cpp
4384 ac_cpp='$CXXCPP $CPPFLAGS'
4385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4388 if test -z "$CXX"; then
4389   if test -n "$CCC"; then
4390     CXX=$CCC
4391   else
4392     if test -n "$ac_tool_prefix"; then
4393   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4394   do
4395     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if test "${ac_cv_prog_CXX+set}" = set; then :
4400   $as_echo_n "(cached) " >&6
4401 else
4402   if test -n "$CXX"; then
4403   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408   IFS=$as_save_IFS
4409   test -z "$as_dir" && as_dir=.
4410     for ac_exec_ext in '' $ac_executable_extensions; do
4411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414     break 2
4415   fi
4416 done
4417   done
4418 IFS=$as_save_IFS
4419
4420 fi
4421 fi
4422 CXX=$ac_cv_prog_CXX
4423 if test -n "$CXX"; then
4424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4425 $as_echo "$CXX" >&6; }
4426 else
4427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4429 fi
4430
4431
4432     test -n "$CXX" && break
4433   done
4434 fi
4435 if test -z "$CXX"; then
4436   ac_ct_CXX=$CXX
4437   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4438 do
4439   # Extract the first word of "$ac_prog", so it can be a program name with args.
4440 set dummy $ac_prog; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4444   $as_echo_n "(cached) " >&6
4445 else
4446   if test -n "$ac_ct_CXX"; then
4447   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4451 do
4452   IFS=$as_save_IFS
4453   test -z "$as_dir" && as_dir=.
4454     for ac_exec_ext in '' $ac_executable_extensions; do
4455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456     ac_cv_prog_ac_ct_CXX="$ac_prog"
4457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458     break 2
4459   fi
4460 done
4461   done
4462 IFS=$as_save_IFS
4463
4464 fi
4465 fi
4466 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4467 if test -n "$ac_ct_CXX"; then
4468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4469 $as_echo "$ac_ct_CXX" >&6; }
4470 else
4471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473 fi
4474
4475
4476   test -n "$ac_ct_CXX" && break
4477 done
4478
4479   if test "x$ac_ct_CXX" = x; then
4480     CXX="g++"
4481   else
4482     case $cross_compiling:$ac_tool_warned in
4483 yes:)
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4486 ac_tool_warned=yes ;;
4487 esac
4488     CXX=$ac_ct_CXX
4489   fi
4490 fi
4491
4492   fi
4493 fi
4494 # Provide some information about the compiler.
4495 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4496 set X $ac_compile
4497 ac_compiler=$2
4498 for ac_option in --version -v -V -qversion; do
4499   { { ac_try="$ac_compiler $ac_option >&5"
4500 case "(($ac_try" in
4501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502   *) ac_try_echo=$ac_try;;
4503 esac
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 $as_echo "$ac_try_echo"; } >&5
4506   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4507   ac_status=$?
4508   if test -s conftest.err; then
4509     sed '10a\
4510 ... rest of stderr output deleted ...
4511          10q' conftest.err >conftest.er1
4512     cat conftest.er1 >&5
4513     rm -f conftest.er1 conftest.err
4514   fi
4515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516   test $ac_status = 0; }
4517 done
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4520 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4521 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4522   $as_echo_n "(cached) " >&6
4523 else
4524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h.  */
4526
4527 int
4528 main ()
4529 {
4530 #ifndef __GNUC__
4531        choke me
4532 #endif
4533
4534   ;
4535   return 0;
4536 }
4537 _ACEOF
4538 if ac_fn_cxx_try_compile "$LINENO"; then :
4539   ac_compiler_gnu=yes
4540 else
4541   ac_compiler_gnu=no
4542 fi
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4545
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4548 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4549 if test $ac_compiler_gnu = yes; then
4550   GXX=yes
4551 else
4552   GXX=
4553 fi
4554 ac_test_CXXFLAGS=${CXXFLAGS+set}
4555 ac_save_CXXFLAGS=$CXXFLAGS
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4557 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4558 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4559   $as_echo_n "(cached) " >&6
4560 else
4561   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4562    ac_cxx_werror_flag=yes
4563    ac_cv_prog_cxx_g=no
4564    CXXFLAGS="-g"
4565    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h.  */
4567
4568 int
4569 main ()
4570 {
4571
4572   ;
4573   return 0;
4574 }
4575 _ACEOF
4576 if ac_fn_cxx_try_compile "$LINENO"; then :
4577   ac_cv_prog_cxx_g=yes
4578 else
4579   CXXFLAGS=""
4580       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h.  */
4582
4583 int
4584 main ()
4585 {
4586
4587   ;
4588   return 0;
4589 }
4590 _ACEOF
4591 if ac_fn_cxx_try_compile "$LINENO"; then :
4592
4593 else
4594   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4595          CXXFLAGS="-g"
4596          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h.  */
4598
4599 int
4600 main ()
4601 {
4602
4603   ;
4604   return 0;
4605 }
4606 _ACEOF
4607 if ac_fn_cxx_try_compile "$LINENO"; then :
4608   ac_cv_prog_cxx_g=yes
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 fi
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4618 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4619 if test "$ac_test_CXXFLAGS" = set; then
4620   CXXFLAGS=$ac_save_CXXFLAGS
4621 elif test $ac_cv_prog_cxx_g = yes; then
4622   if test "$GXX" = yes; then
4623     CXXFLAGS="-g -O2"
4624   else
4625     CXXFLAGS="-g"
4626   fi
4627 else
4628   if test "$GXX" = yes; then
4629     CXXFLAGS="-O2"
4630   else
4631     CXXFLAGS=
4632   fi
4633 fi
4634 ac_ext=c
4635 ac_cpp='$CPP $CPPFLAGS'
4636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4639
4640
4641
4642
4643 if test -n "$ac_tool_prefix"; then
4644   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4645 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4649   $as_echo_n "(cached) " >&6
4650 else
4651   if test -n "$GNATBIND"; then
4652   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657   IFS=$as_save_IFS
4658   test -z "$as_dir" && as_dir=.
4659     for ac_exec_ext in '' $ac_executable_extensions; do
4660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663     break 2
4664   fi
4665 done
4666   done
4667 IFS=$as_save_IFS
4668
4669 fi
4670 fi
4671 GNATBIND=$ac_cv_prog_GNATBIND
4672 if test -n "$GNATBIND"; then
4673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4674 $as_echo "$GNATBIND" >&6; }
4675 else
4676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4678 fi
4679
4680
4681 fi
4682 if test -z "$ac_cv_prog_GNATBIND"; then
4683   ac_ct_GNATBIND=$GNATBIND
4684   # Extract the first word of "gnatbind", so it can be a program name with args.
4685 set dummy gnatbind; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4689   $as_echo_n "(cached) " >&6
4690 else
4691   if test -n "$ac_ct_GNATBIND"; then
4692   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699     for ac_exec_ext in '' $ac_executable_extensions; do
4700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706   done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4712 if test -n "$ac_ct_GNATBIND"; then
4713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4714 $as_echo "$ac_ct_GNATBIND" >&6; }
4715 else
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720   if test "x$ac_ct_GNATBIND" = x; then
4721     GNATBIND="no"
4722   else
4723     case $cross_compiling:$ac_tool_warned in
4724 yes:)
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727 ac_tool_warned=yes ;;
4728 esac
4729     GNATBIND=$ac_ct_GNATBIND
4730   fi
4731 else
4732   GNATBIND="$ac_cv_prog_GNATBIND"
4733 fi
4734
4735 if test -n "$ac_tool_prefix"; then
4736   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4737 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4741   $as_echo_n "(cached) " >&6
4742 else
4743   if test -n "$GNATMAKE"; then
4744   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751     for ac_exec_ext in '' $ac_executable_extensions; do
4752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758   done
4759 IFS=$as_save_IFS
4760
4761 fi
4762 fi
4763 GNATMAKE=$ac_cv_prog_GNATMAKE
4764 if test -n "$GNATMAKE"; then
4765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4766 $as_echo "$GNATMAKE" >&6; }
4767 else
4768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4770 fi
4771
4772
4773 fi
4774 if test -z "$ac_cv_prog_GNATMAKE"; then
4775   ac_ct_GNATMAKE=$GNATMAKE
4776   # Extract the first word of "gnatmake", so it can be a program name with args.
4777 set dummy gnatmake; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4781   $as_echo_n "(cached) " >&6
4782 else
4783   if test -n "$ac_ct_GNATMAKE"; then
4784   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789   IFS=$as_save_IFS
4790   test -z "$as_dir" && as_dir=.
4791     for ac_exec_ext in '' $ac_executable_extensions; do
4792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795     break 2
4796   fi
4797 done
4798   done
4799 IFS=$as_save_IFS
4800
4801 fi
4802 fi
4803 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4804 if test -n "$ac_ct_GNATMAKE"; then
4805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4806 $as_echo "$ac_ct_GNATMAKE" >&6; }
4807 else
4808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4810 fi
4811
4812   if test "x$ac_ct_GNATMAKE" = x; then
4813     GNATMAKE="no"
4814   else
4815     case $cross_compiling:$ac_tool_warned in
4816 yes:)
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4819 ac_tool_warned=yes ;;
4820 esac
4821     GNATMAKE=$ac_ct_GNATMAKE
4822   fi
4823 else
4824   GNATMAKE="$ac_cv_prog_GNATMAKE"
4825 fi
4826
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4828 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4829 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4830   $as_echo_n "(cached) " >&6
4831 else
4832   cat >conftest.adb <<EOF
4833 procedure conftest is begin null; end conftest;
4834 EOF
4835 acx_cv_cc_gcc_supports_ada=no
4836 # There is a bug in old released versions of GCC which causes the
4837 # driver to exit successfully when the appropriate language module
4838 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4839 # Therefore we must check for the error message as well as an
4840 # unsuccessful exit.
4841 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4842 # given a .adb file, but produce no object file.  So we must check
4843 # if an object file was really produced to guard against this.
4844 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4845 if test x"$errors" = x && test -f conftest.$ac_objext; then
4846   acx_cv_cc_gcc_supports_ada=yes
4847 fi
4848 rm -f conftest.*
4849 fi
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4851 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4852
4853 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4854   have_gnat=yes
4855 else
4856   have_gnat=no
4857 fi
4858
4859
4860 # autoconf is lame and doesn't give us any substitution variable for this.
4861 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4862   NO_MINUS_C_MINUS_O=yes
4863 else
4864   OUTPUT_OPTION='-o $@'
4865 fi
4866
4867
4868
4869 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4870 # optimizations to be activated explicitly by the toplevel.
4871 case "$CC" in
4872   */prev-gcc/xgcc*) ;;
4873   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4874 esac
4875
4876
4877 # -------------------------
4878 # Check C compiler features
4879 # -------------------------
4880
4881
4882 ac_ext=c
4883 ac_cpp='$CPP $CPPFLAGS'
4884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4888 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4889 # On Suns, sometimes $CPP names a directory.
4890 if test -n "$CPP" && test -d "$CPP"; then
4891   CPP=
4892 fi
4893 if test -z "$CPP"; then
4894   if test "${ac_cv_prog_CPP+set}" = set; then :
4895   $as_echo_n "(cached) " >&6
4896 else
4897       # Double quotes because CPP needs to be expanded
4898     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4899     do
4900       ac_preproc_ok=false
4901 for ac_c_preproc_warn_flag in '' yes
4902 do
4903   # Use a header file that comes with gcc, so configuring glibc
4904   # with a fresh cross-compiler works.
4905   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4906   # <limits.h> exists even on freestanding compilers.
4907   # On the NeXT, cc -E runs the code through the compiler's parser,
4908   # not just through cpp. "Syntax error" is here to catch this case.
4909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h.  */
4911 #ifdef __STDC__
4912 # include <limits.h>
4913 #else
4914 # include <assert.h>
4915 #endif
4916                      Syntax error
4917 _ACEOF
4918 if ac_fn_c_try_cpp "$LINENO"; then :
4919
4920 else
4921   # Broken: fails on valid input.
4922 continue
4923 fi
4924 rm -f conftest.err conftest.$ac_ext
4925
4926   # OK, works on sane cases.  Now check whether nonexistent headers
4927   # can be detected and how.
4928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h.  */
4930 #include <ac_nonexistent.h>
4931 _ACEOF
4932 if ac_fn_c_try_cpp "$LINENO"; then :
4933   # Broken: success on invalid input.
4934 continue
4935 else
4936   # Passes both tests.
4937 ac_preproc_ok=:
4938 break
4939 fi
4940 rm -f conftest.err conftest.$ac_ext
4941
4942 done
4943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4944 rm -f conftest.err conftest.$ac_ext
4945 if $ac_preproc_ok; then :
4946   break
4947 fi
4948
4949     done
4950     ac_cv_prog_CPP=$CPP
4951
4952 fi
4953   CPP=$ac_cv_prog_CPP
4954 else
4955   ac_cv_prog_CPP=$CPP
4956 fi
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4958 $as_echo "$CPP" >&6; }
4959 ac_preproc_ok=false
4960 for ac_c_preproc_warn_flag in '' yes
4961 do
4962   # Use a header file that comes with gcc, so configuring glibc
4963   # with a fresh cross-compiler works.
4964   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4965   # <limits.h> exists even on freestanding compilers.
4966   # On the NeXT, cc -E runs the code through the compiler's parser,
4967   # not just through cpp. "Syntax error" is here to catch this case.
4968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h.  */
4970 #ifdef __STDC__
4971 # include <limits.h>
4972 #else
4973 # include <assert.h>
4974 #endif
4975                      Syntax error
4976 _ACEOF
4977 if ac_fn_c_try_cpp "$LINENO"; then :
4978
4979 else
4980   # Broken: fails on valid input.
4981 continue
4982 fi
4983 rm -f conftest.err conftest.$ac_ext
4984
4985   # OK, works on sane cases.  Now check whether nonexistent headers
4986   # can be detected and how.
4987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h.  */
4989 #include <ac_nonexistent.h>
4990 _ACEOF
4991 if ac_fn_c_try_cpp "$LINENO"; then :
4992   # Broken: success on invalid input.
4993 continue
4994 else
4995   # Passes both tests.
4996 ac_preproc_ok=:
4997 break
4998 fi
4999 rm -f conftest.err conftest.$ac_ext
5000
5001 done
5002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5003 rm -f conftest.err conftest.$ac_ext
5004 if $ac_preproc_ok; then :
5005
5006 else
5007   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5009 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5010 See \`config.log' for more details." "$LINENO" 5; }
5011 fi
5012
5013 ac_ext=c
5014 ac_cpp='$CPP $CPPFLAGS'
5015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5018
5019
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5021 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5022 if test "${ac_cv_path_GREP+set}" = set; then :
5023   $as_echo_n "(cached) " >&6
5024 else
5025   if test -z "$GREP"; then
5026   ac_path_GREP_found=false
5027   # Loop through the user's path and test for each of PROGNAME-LIST
5028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5030 do
5031   IFS=$as_save_IFS
5032   test -z "$as_dir" && as_dir=.
5033     for ac_prog in grep ggrep; do
5034     for ac_exec_ext in '' $ac_executable_extensions; do
5035       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5036       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5037 # Check for GNU ac_path_GREP and select it if it is found.
5038   # Check for GNU $ac_path_GREP
5039 case `"$ac_path_GREP" --version 2>&1` in
5040 *GNU*)
5041   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5042 *)
5043   ac_count=0
5044   $as_echo_n 0123456789 >"conftest.in"
5045   while :
5046   do
5047     cat "conftest.in" "conftest.in" >"conftest.tmp"
5048     mv "conftest.tmp" "conftest.in"
5049     cp "conftest.in" "conftest.nl"
5050     $as_echo 'GREP' >> "conftest.nl"
5051     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5052     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5053     as_fn_arith $ac_count + 1 && ac_count=$as_val
5054     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5055       # Best one so far, save it but keep looking for a better one
5056       ac_cv_path_GREP="$ac_path_GREP"
5057       ac_path_GREP_max=$ac_count
5058     fi
5059     # 10*(2^10) chars as input seems more than enough
5060     test $ac_count -gt 10 && break
5061   done
5062   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5063 esac
5064
5065       $ac_path_GREP_found && break 3
5066     done
5067   done
5068   done
5069 IFS=$as_save_IFS
5070   if test -z "$ac_cv_path_GREP"; then
5071     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5072   fi
5073 else
5074   ac_cv_path_GREP=$GREP
5075 fi
5076
5077 fi
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5079 $as_echo "$ac_cv_path_GREP" >&6; }
5080  GREP="$ac_cv_path_GREP"
5081
5082
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5084 $as_echo_n "checking for egrep... " >&6; }
5085 if test "${ac_cv_path_EGREP+set}" = set; then :
5086   $as_echo_n "(cached) " >&6
5087 else
5088   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5089    then ac_cv_path_EGREP="$GREP -E"
5090    else
5091      if test -z "$EGREP"; then
5092   ac_path_EGREP_found=false
5093   # Loop through the user's path and test for each of PROGNAME-LIST
5094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5096 do
5097   IFS=$as_save_IFS
5098   test -z "$as_dir" && as_dir=.
5099     for ac_prog in egrep; do
5100     for ac_exec_ext in '' $ac_executable_extensions; do
5101       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5102       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5103 # Check for GNU ac_path_EGREP and select it if it is found.
5104   # Check for GNU $ac_path_EGREP
5105 case `"$ac_path_EGREP" --version 2>&1` in
5106 *GNU*)
5107   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5108 *)
5109   ac_count=0
5110   $as_echo_n 0123456789 >"conftest.in"
5111   while :
5112   do
5113     cat "conftest.in" "conftest.in" >"conftest.tmp"
5114     mv "conftest.tmp" "conftest.in"
5115     cp "conftest.in" "conftest.nl"
5116     $as_echo 'EGREP' >> "conftest.nl"
5117     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5118     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5119     as_fn_arith $ac_count + 1 && ac_count=$as_val
5120     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5121       # Best one so far, save it but keep looking for a better one
5122       ac_cv_path_EGREP="$ac_path_EGREP"
5123       ac_path_EGREP_max=$ac_count
5124     fi
5125     # 10*(2^10) chars as input seems more than enough
5126     test $ac_count -gt 10 && break
5127   done
5128   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5129 esac
5130
5131       $ac_path_EGREP_found && break 3
5132     done
5133   done
5134   done
5135 IFS=$as_save_IFS
5136   if test -z "$ac_cv_path_EGREP"; then
5137     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5138   fi
5139 else
5140   ac_cv_path_EGREP=$EGREP
5141 fi
5142
5143    fi
5144 fi
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5146 $as_echo "$ac_cv_path_EGREP" >&6; }
5147  EGREP="$ac_cv_path_EGREP"
5148
5149
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5151 $as_echo_n "checking for ANSI C header files... " >&6; }
5152 if test "${ac_cv_header_stdc+set}" = set; then :
5153   $as_echo_n "(cached) " >&6
5154 else
5155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h.  */
5157 #include <stdlib.h>
5158 #include <stdarg.h>
5159 #include <string.h>
5160 #include <float.h>
5161
5162 int
5163 main ()
5164 {
5165
5166   ;
5167   return 0;
5168 }
5169 _ACEOF
5170 if ac_fn_c_try_compile "$LINENO"; then :
5171   ac_cv_header_stdc=yes
5172 else
5173   ac_cv_header_stdc=no
5174 fi
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176
5177 if test $ac_cv_header_stdc = yes; then
5178   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h.  */
5181 #include <string.h>
5182
5183 _ACEOF
5184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5185   $EGREP "memchr" >/dev/null 2>&1; then :
5186
5187 else
5188   ac_cv_header_stdc=no
5189 fi
5190 rm -f conftest*
5191
5192 fi
5193
5194 if test $ac_cv_header_stdc = yes; then
5195   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h.  */
5198 #include <stdlib.h>
5199
5200 _ACEOF
5201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5202   $EGREP "free" >/dev/null 2>&1; then :
5203
5204 else
5205   ac_cv_header_stdc=no
5206 fi
5207 rm -f conftest*
5208
5209 fi
5210
5211 if test $ac_cv_header_stdc = yes; then
5212   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213   if test "$cross_compiling" = yes; then :
5214   :
5215 else
5216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h.  */
5218 #include <ctype.h>
5219 #include <stdlib.h>
5220 #if ((' ' & 0x0FF) == 0x020)
5221 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5222 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5223 #else
5224 # define ISLOWER(c) \
5225                    (('a' <= (c) && (c) <= 'i') \
5226                      || ('j' <= (c) && (c) <= 'r') \
5227                      || ('s' <= (c) && (c) <= 'z'))
5228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5229 #endif
5230
5231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5232 int
5233 main ()
5234 {
5235   int i;
5236   for (i = 0; i < 256; i++)
5237     if (XOR (islower (i), ISLOWER (i))
5238         || toupper (i) != TOUPPER (i))
5239       return 2;
5240   return 0;
5241 }
5242 _ACEOF
5243 if ac_fn_c_try_run "$LINENO"; then :
5244
5245 else
5246   ac_cv_header_stdc=no
5247 fi
5248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5249   conftest.$ac_objext conftest.beam conftest.$ac_ext
5250 fi
5251
5252 fi
5253 fi
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5255 $as_echo "$ac_cv_header_stdc" >&6; }
5256 if test $ac_cv_header_stdc = yes; then
5257
5258 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5259
5260 fi
5261
5262 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5263 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5264                   inttypes.h stdint.h unistd.h
5265 do :
5266   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5267 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5268 "
5269 eval as_val=\$$as_ac_Header
5270    if test "x$as_val" = x""yes; then :
5271   cat >>confdefs.h <<_ACEOF
5272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5273 _ACEOF
5274
5275 fi
5276
5277 done
5278
5279
5280
5281   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5282 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5283   MINIX=yes
5284 else
5285   MINIX=
5286 fi
5287
5288
5289   if test "$MINIX" = yes; then
5290
5291 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5292
5293
5294 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5295
5296
5297 $as_echo "#define _MINIX 1" >>confdefs.h
5298
5299   fi
5300
5301
5302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5303 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5304 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5305   $as_echo_n "(cached) " >&6
5306 else
5307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h.  */
5309
5310 #         define __EXTENSIONS__ 1
5311           $ac_includes_default
5312 int
5313 main ()
5314 {
5315
5316   ;
5317   return 0;
5318 }
5319 _ACEOF
5320 if ac_fn_c_try_compile "$LINENO"; then :
5321   ac_cv_safe_to_define___extensions__=yes
5322 else
5323   ac_cv_safe_to_define___extensions__=no
5324 fi
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 fi
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5328 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5329   test $ac_cv_safe_to_define___extensions__ = yes &&
5330     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5331
5332   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5333
5334   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5335
5336   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5337
5338   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5339
5340
5341 ac_ext=c
5342 ac_cpp='$CPP $CPPFLAGS'
5343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5347 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5348 # On Suns, sometimes $CPP names a directory.
5349 if test -n "$CPP" && test -d "$CPP"; then
5350   CPP=
5351 fi
5352 if test -z "$CPP"; then
5353   if test "${ac_cv_prog_CPP+set}" = set; then :
5354   $as_echo_n "(cached) " >&6
5355 else
5356       # Double quotes because CPP needs to be expanded
5357     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5358     do
5359       ac_preproc_ok=false
5360 for ac_c_preproc_warn_flag in '' yes
5361 do
5362   # Use a header file that comes with gcc, so configuring glibc
5363   # with a fresh cross-compiler works.
5364   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5365   # <limits.h> exists even on freestanding compilers.
5366   # On the NeXT, cc -E runs the code through the compiler's parser,
5367   # not just through cpp. "Syntax error" is here to catch this case.
5368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h.  */
5370 #ifdef __STDC__
5371 # include <limits.h>
5372 #else
5373 # include <assert.h>
5374 #endif
5375                      Syntax error
5376 _ACEOF
5377 if ac_fn_c_try_cpp "$LINENO"; then :
5378
5379 else
5380   # Broken: fails on valid input.
5381 continue
5382 fi
5383 rm -f conftest.err conftest.$ac_ext
5384
5385   # OK, works on sane cases.  Now check whether nonexistent headers
5386   # can be detected and how.
5387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h.  */
5389 #include <ac_nonexistent.h>
5390 _ACEOF
5391 if ac_fn_c_try_cpp "$LINENO"; then :
5392   # Broken: success on invalid input.
5393 continue
5394 else
5395   # Passes both tests.
5396 ac_preproc_ok=:
5397 break
5398 fi
5399 rm -f conftest.err conftest.$ac_ext
5400
5401 done
5402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5403 rm -f conftest.err conftest.$ac_ext
5404 if $ac_preproc_ok; then :
5405   break
5406 fi
5407
5408     done
5409     ac_cv_prog_CPP=$CPP
5410
5411 fi
5412   CPP=$ac_cv_prog_CPP
5413 else
5414   ac_cv_prog_CPP=$CPP
5415 fi
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5417 $as_echo "$CPP" >&6; }
5418 ac_preproc_ok=false
5419 for ac_c_preproc_warn_flag in '' yes
5420 do
5421   # Use a header file that comes with gcc, so configuring glibc
5422   # with a fresh cross-compiler works.
5423   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5424   # <limits.h> exists even on freestanding compilers.
5425   # On the NeXT, cc -E runs the code through the compiler's parser,
5426   # not just through cpp. "Syntax error" is here to catch this case.
5427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h.  */
5429 #ifdef __STDC__
5430 # include <limits.h>
5431 #else
5432 # include <assert.h>
5433 #endif
5434                      Syntax error
5435 _ACEOF
5436 if ac_fn_c_try_cpp "$LINENO"; then :
5437
5438 else
5439   # Broken: fails on valid input.
5440 continue
5441 fi
5442 rm -f conftest.err conftest.$ac_ext
5443
5444   # OK, works on sane cases.  Now check whether nonexistent headers
5445   # can be detected and how.
5446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h.  */
5448 #include <ac_nonexistent.h>
5449 _ACEOF
5450 if ac_fn_c_try_cpp "$LINENO"; then :
5451   # Broken: success on invalid input.
5452 continue
5453 else
5454   # Passes both tests.
5455 ac_preproc_ok=:
5456 break
5457 fi
5458 rm -f conftest.err conftest.$ac_ext
5459
5460 done
5461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5462 rm -f conftest.err conftest.$ac_ext
5463 if $ac_preproc_ok; then :
5464
5465 else
5466   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5468 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5469 See \`config.log' for more details." "$LINENO" 5; }
5470 fi
5471
5472 ac_ext=c
5473 ac_cpp='$CPP $CPPFLAGS'
5474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5477
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5479 $as_echo_n "checking for inline... " >&6; }
5480 if test "${ac_cv_c_inline+set}" = set; then :
5481   $as_echo_n "(cached) " >&6
5482 else
5483   ac_cv_c_inline=no
5484 for ac_kw in inline __inline__ __inline; do
5485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h.  */
5487 #ifndef __cplusplus
5488 typedef int foo_t;
5489 static $ac_kw foo_t static_foo () {return 0; }
5490 $ac_kw foo_t foo () {return 0; }
5491 #endif
5492
5493 _ACEOF
5494 if ac_fn_c_try_compile "$LINENO"; then :
5495   ac_cv_c_inline=$ac_kw
5496 fi
5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498   test "$ac_cv_c_inline" != no && break
5499 done
5500
5501 fi
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5503 $as_echo "$ac_cv_c_inline" >&6; }
5504
5505 case $ac_cv_c_inline in
5506   inline | yes) ;;
5507   *)
5508     case $ac_cv_c_inline in
5509       no) ac_val=;;
5510       *) ac_val=$ac_cv_c_inline;;
5511     esac
5512     cat >>confdefs.h <<_ACEOF
5513 #ifndef __cplusplus
5514 #define inline $ac_val
5515 #endif
5516 _ACEOF
5517     ;;
5518 esac
5519
5520
5521 # Check whether --enable-largefile was given.
5522 if test "${enable_largefile+set}" = set; then :
5523   enableval=$enable_largefile;
5524 fi
5525
5526 if test "$enable_largefile" != no; then
5527
5528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5529 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5530 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5531   $as_echo_n "(cached) " >&6
5532 else
5533   ac_cv_sys_largefile_CC=no
5534      if test "$GCC" != yes; then
5535        ac_save_CC=$CC
5536        while :; do
5537          # IRIX 6.2 and later do not support large files by default,
5538          # so use the C compiler's -n32 option if that helps.
5539          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h.  */
5541 #include <sys/types.h>
5542  /* Check that off_t can represent 2**63 - 1 correctly.
5543     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5544     since some C++ compilers masquerading as C compilers
5545     incorrectly reject 9223372036854775807.  */
5546 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5547   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5548                        && LARGE_OFF_T % 2147483647 == 1)
5549                       ? 1 : -1];
5550 int
5551 main ()
5552 {
5553
5554   ;
5555   return 0;
5556 }
5557 _ACEOF
5558          if ac_fn_c_try_compile "$LINENO"; then :
5559   break
5560 fi
5561 rm -f core conftest.err conftest.$ac_objext
5562          CC="$CC -n32"
5563          if ac_fn_c_try_compile "$LINENO"; then :
5564   ac_cv_sys_largefile_CC=' -n32'; break
5565 fi
5566 rm -f core conftest.err conftest.$ac_objext
5567          break
5568        done
5569        CC=$ac_save_CC
5570        rm -f conftest.$ac_ext
5571     fi
5572 fi
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5574 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5575   if test "$ac_cv_sys_largefile_CC" != no; then
5576     CC=$CC$ac_cv_sys_largefile_CC
5577   fi
5578
5579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5580 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5581 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5582   $as_echo_n "(cached) " >&6
5583 else
5584   while :; do
5585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h.  */
5587 #include <sys/types.h>
5588  /* Check that off_t can represent 2**63 - 1 correctly.
5589     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5590     since some C++ compilers masquerading as C compilers
5591     incorrectly reject 9223372036854775807.  */
5592 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5593   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5594                        && LARGE_OFF_T % 2147483647 == 1)
5595                       ? 1 : -1];
5596 int
5597 main ()
5598 {
5599
5600   ;
5601   return 0;
5602 }
5603 _ACEOF
5604 if ac_fn_c_try_compile "$LINENO"; then :
5605   ac_cv_sys_file_offset_bits=no; break
5606 fi
5607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h.  */
5610 #define _FILE_OFFSET_BITS 64
5611 #include <sys/types.h>
5612  /* Check that off_t can represent 2**63 - 1 correctly.
5613     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5614     since some C++ compilers masquerading as C compilers
5615     incorrectly reject 9223372036854775807.  */
5616 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5617   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5618                        && LARGE_OFF_T % 2147483647 == 1)
5619                       ? 1 : -1];
5620 int
5621 main ()
5622 {
5623
5624   ;
5625   return 0;
5626 }
5627 _ACEOF
5628 if ac_fn_c_try_compile "$LINENO"; then :
5629   ac_cv_sys_file_offset_bits=64; break
5630 fi
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632   ac_cv_sys_file_offset_bits=unknown
5633   break
5634 done
5635 fi
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5637 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5638 case $ac_cv_sys_file_offset_bits in #(
5639   no | unknown) ;;
5640   *)
5641 cat >>confdefs.h <<_ACEOF
5642 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5643 _ACEOF
5644 ;;
5645 esac
5646 rm -rf conftest*
5647   if test $ac_cv_sys_file_offset_bits = unknown; then
5648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5649 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5650 if test "${ac_cv_sys_large_files+set}" = set; then :
5651   $as_echo_n "(cached) " >&6
5652 else
5653   while :; do
5654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h.  */
5656 #include <sys/types.h>
5657  /* Check that off_t can represent 2**63 - 1 correctly.
5658     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5659     since some C++ compilers masquerading as C compilers
5660     incorrectly reject 9223372036854775807.  */
5661 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5662   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5663                        && LARGE_OFF_T % 2147483647 == 1)
5664                       ? 1 : -1];
5665 int
5666 main ()
5667 {
5668
5669   ;
5670   return 0;
5671 }
5672 _ACEOF
5673 if ac_fn_c_try_compile "$LINENO"; then :
5674   ac_cv_sys_large_files=no; break
5675 fi
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h.  */
5679 #define _LARGE_FILES 1
5680 #include <sys/types.h>
5681  /* Check that off_t can represent 2**63 - 1 correctly.
5682     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5683     since some C++ compilers masquerading as C compilers
5684     incorrectly reject 9223372036854775807.  */
5685 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5686   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5687                        && LARGE_OFF_T % 2147483647 == 1)
5688                       ? 1 : -1];
5689 int
5690 main ()
5691 {
5692
5693   ;
5694   return 0;
5695 }
5696 _ACEOF
5697 if ac_fn_c_try_compile "$LINENO"; then :
5698   ac_cv_sys_large_files=1; break
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701   ac_cv_sys_large_files=unknown
5702   break
5703 done
5704 fi
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5706 $as_echo "$ac_cv_sys_large_files" >&6; }
5707 case $ac_cv_sys_large_files in #(
5708   no | unknown) ;;
5709   *)
5710 cat >>confdefs.h <<_ACEOF
5711 #define _LARGE_FILES $ac_cv_sys_large_files
5712 _ACEOF
5713 ;;
5714 esac
5715 rm -rf conftest*
5716   fi
5717 fi
5718
5719
5720 # sizeof(char) is 1 by definition.
5721 # The cast to long int works around a bug in the HP C Compiler
5722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5724 # This bug is HP SR number 8606223364.
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5726 $as_echo_n "checking size of void *... " >&6; }
5727 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5728   $as_echo_n "(cached) " >&6
5729 else
5730   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5731
5732 else
5733   if test "$ac_cv_type_void_p" = yes; then
5734      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5736 { as_fn_set_status 77
5737 as_fn_error "cannot compute sizeof (void *)
5738 See \`config.log' for more details." "$LINENO" 5; }; }
5739    else
5740      ac_cv_sizeof_void_p=0
5741    fi
5742 fi
5743
5744 fi
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5746 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5747
5748
5749
5750 cat >>confdefs.h <<_ACEOF
5751 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5752 _ACEOF
5753
5754
5755 # The cast to long int works around a bug in the HP C Compiler
5756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5758 # This bug is HP SR number 8606223364.
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5760 $as_echo_n "checking size of short... " >&6; }
5761 if test "${ac_cv_sizeof_short+set}" = set; then :
5762   $as_echo_n "(cached) " >&6
5763 else
5764   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5765
5766 else
5767   if test "$ac_cv_type_short" = yes; then
5768      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5770 { as_fn_set_status 77
5771 as_fn_error "cannot compute sizeof (short)
5772 See \`config.log' for more details." "$LINENO" 5; }; }
5773    else
5774      ac_cv_sizeof_short=0
5775    fi
5776 fi
5777
5778 fi
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5780 $as_echo "$ac_cv_sizeof_short" >&6; }
5781
5782
5783
5784 cat >>confdefs.h <<_ACEOF
5785 #define SIZEOF_SHORT $ac_cv_sizeof_short
5786 _ACEOF
5787
5788
5789 # The cast to long int works around a bug in the HP C Compiler
5790 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5791 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5792 # This bug is HP SR number 8606223364.
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5794 $as_echo_n "checking size of int... " >&6; }
5795 if test "${ac_cv_sizeof_int+set}" = set; then :
5796   $as_echo_n "(cached) " >&6
5797 else
5798   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5799
5800 else
5801   if test "$ac_cv_type_int" = yes; then
5802      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5804 { as_fn_set_status 77
5805 as_fn_error "cannot compute sizeof (int)
5806 See \`config.log' for more details." "$LINENO" 5; }; }
5807    else
5808      ac_cv_sizeof_int=0
5809    fi
5810 fi
5811
5812 fi
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5814 $as_echo "$ac_cv_sizeof_int" >&6; }
5815
5816
5817
5818 cat >>confdefs.h <<_ACEOF
5819 #define SIZEOF_INT $ac_cv_sizeof_int
5820 _ACEOF
5821
5822
5823 # The cast to long int works around a bug in the HP C Compiler
5824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5826 # This bug is HP SR number 8606223364.
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5828 $as_echo_n "checking size of long... " >&6; }
5829 if test "${ac_cv_sizeof_long+set}" = set; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5833
5834 else
5835   if test "$ac_cv_type_long" = yes; then
5836      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5838 { as_fn_set_status 77
5839 as_fn_error "cannot compute sizeof (long)
5840 See \`config.log' for more details." "$LINENO" 5; }; }
5841    else
5842      ac_cv_sizeof_long=0
5843    fi
5844 fi
5845
5846 fi
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5848 $as_echo "$ac_cv_sizeof_long" >&6; }
5849
5850
5851
5852 cat >>confdefs.h <<_ACEOF
5853 #define SIZEOF_LONG $ac_cv_sizeof_long
5854 _ACEOF
5855
5856
5857 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5858 if test "x$ac_cv_type_long_long" = x""yes; then :
5859
5860 cat >>confdefs.h <<_ACEOF
5861 #define HAVE_LONG_LONG 1
5862 _ACEOF
5863
5864 # The cast to long int works around a bug in the HP C Compiler
5865 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5866 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5867 # This bug is HP SR number 8606223364.
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5869 $as_echo_n "checking size of long long... " >&6; }
5870 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5871   $as_echo_n "(cached) " >&6
5872 else
5873   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5874
5875 else
5876   if test "$ac_cv_type_long_long" = yes; then
5877      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5879 { as_fn_set_status 77
5880 as_fn_error "cannot compute sizeof (long long)
5881 See \`config.log' for more details." "$LINENO" 5; }; }
5882    else
5883      ac_cv_sizeof_long_long=0
5884    fi
5885 fi
5886
5887 fi
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5889 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5890
5891
5892
5893 cat >>confdefs.h <<_ACEOF
5894 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5895 _ACEOF
5896
5897
5898 fi
5899
5900 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5901 if test "x$ac_cv_type___int64" = x""yes; then :
5902
5903 cat >>confdefs.h <<_ACEOF
5904 #define HAVE___INT64 1
5905 _ACEOF
5906
5907 # The cast to long int works around a bug in the HP C Compiler
5908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5910 # This bug is HP SR number 8606223364.
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5912 $as_echo_n "checking size of __int64... " >&6; }
5913 if test "${ac_cv_sizeof___int64+set}" = set; then :
5914   $as_echo_n "(cached) " >&6
5915 else
5916   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5917
5918 else
5919   if test "$ac_cv_type___int64" = yes; then
5920      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5922 { as_fn_set_status 77
5923 as_fn_error "cannot compute sizeof (__int64)
5924 See \`config.log' for more details." "$LINENO" 5; }; }
5925    else
5926      ac_cv_sizeof___int64=0
5927    fi
5928 fi
5929
5930 fi
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5932 $as_echo "$ac_cv_sizeof___int64" >&6; }
5933
5934
5935
5936 cat >>confdefs.h <<_ACEOF
5937 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5938 _ACEOF
5939
5940
5941 fi
5942
5943 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5944 case $ac_cv_c_int8_t in #(
5945   no|yes) ;; #(
5946   *)
5947
5948 cat >>confdefs.h <<_ACEOF
5949 #define int8_t $ac_cv_c_int8_t
5950 _ACEOF
5951 ;;
5952 esac
5953
5954 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5955 case $ac_cv_c_int16_t in #(
5956   no|yes) ;; #(
5957   *)
5958
5959 cat >>confdefs.h <<_ACEOF
5960 #define int16_t $ac_cv_c_int16_t
5961 _ACEOF
5962 ;;
5963 esac
5964
5965 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5966 case $ac_cv_c_int32_t in #(
5967   no|yes) ;; #(
5968   *)
5969
5970 cat >>confdefs.h <<_ACEOF
5971 #define int32_t $ac_cv_c_int32_t
5972 _ACEOF
5973 ;;
5974 esac
5975
5976 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5977 case $ac_cv_c_int64_t in #(
5978   no|yes) ;; #(
5979   *)
5980
5981 cat >>confdefs.h <<_ACEOF
5982 #define int64_t $ac_cv_c_int64_t
5983 _ACEOF
5984 ;;
5985 esac
5986
5987
5988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5989 $as_echo_n "checking for long long int... " >&6; }
5990 if test "${ac_cv_type_long_long_int+set}" = set; then :
5991   $as_echo_n "(cached) " >&6
5992 else
5993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h.  */
5995
5996   /* For now, do not test the preprocessor; as of 2007 there are too many
5997          implementations with broken preprocessors.  Perhaps this can
5998          be revisited in 2012.  In the meantime, code should not expect
5999          #if to work with literals wider than 32 bits.  */
6000       /* Test literals.  */
6001       long long int ll = 9223372036854775807ll;
6002       long long int nll = -9223372036854775807LL;
6003       unsigned long long int ull = 18446744073709551615ULL;
6004       /* Test constant expressions.   */
6005       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6006                      ? 1 : -1)];
6007       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6008                      ? 1 : -1)];
6009       int i = 63;
6010 int
6011 main ()
6012 {
6013 /* Test availability of runtime routines for shift and division.  */
6014       long long int llmax = 9223372036854775807ll;
6015       unsigned long long int ullmax = 18446744073709551615ull;
6016       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6017               | (llmax / ll) | (llmax % ll)
6018               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6019               | (ullmax / ull) | (ullmax % ull));
6020   ;
6021   return 0;
6022 }
6023
6024 _ACEOF
6025 if ac_fn_c_try_link "$LINENO"; then :
6026                         if test "$cross_compiling" = yes; then :
6027   ac_cv_type_long_long_int=yes
6028 else
6029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h.  */
6031 #include <limits.h>
6032                #ifndef LLONG_MAX
6033                # define HALF \
6034                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6035                # define LLONG_MAX (HALF - 1 + HALF)
6036                #endif
6037 int
6038 main ()
6039 {
6040 long long int n = 1;
6041                int i;
6042                for (i = 0; ; i++)
6043                  {
6044                    long long int m = n << i;
6045                    if (m >> i != n)
6046                      return 1;
6047                    if (LLONG_MAX / 2 < m)
6048                      break;
6049                  }
6050                return 0;
6051   ;
6052   return 0;
6053 }
6054 _ACEOF
6055 if ac_fn_c_try_run "$LINENO"; then :
6056   ac_cv_type_long_long_int=yes
6057 else
6058   ac_cv_type_long_long_int=no
6059 fi
6060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6061   conftest.$ac_objext conftest.beam conftest.$ac_ext
6062 fi
6063
6064 else
6065   ac_cv_type_long_long_int=no
6066 fi
6067 rm -f core conftest.err conftest.$ac_objext \
6068     conftest$ac_exeext conftest.$ac_ext
6069 fi
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6071 $as_echo "$ac_cv_type_long_long_int" >&6; }
6072   if test $ac_cv_type_long_long_int = yes; then
6073
6074 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6075
6076   fi
6077
6078
6079
6080   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6081 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6082
6083 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6084
6085 else
6086   test $ac_cv_type_long_long_int = yes \
6087        && ac_type='long long int' \
6088        || ac_type='long int'
6089
6090 cat >>confdefs.h <<_ACEOF
6091 #define intmax_t $ac_type
6092 _ACEOF
6093
6094 fi
6095
6096
6097
6098   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6099 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6100
6101 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6102
6103 else
6104   for ac_type in 'int' 'long int' 'long long int'; do
6105        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h.  */
6107 $ac_includes_default
6108 int
6109 main ()
6110 {
6111 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6112 test_array [0] = 0
6113
6114   ;
6115   return 0;
6116 }
6117 _ACEOF
6118 if ac_fn_c_try_compile "$LINENO"; then :
6119
6120 cat >>confdefs.h <<_ACEOF
6121 #define intptr_t $ac_type
6122 _ACEOF
6123
6124           ac_type=
6125 fi
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127        test -z "$ac_type" && break
6128      done
6129 fi
6130
6131
6132 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6133 case $ac_cv_c_uint8_t in #(
6134   no|yes) ;; #(
6135   *)
6136
6137 $as_echo "#define _UINT8_T 1" >>confdefs.h
6138
6139
6140 cat >>confdefs.h <<_ACEOF
6141 #define uint8_t $ac_cv_c_uint8_t
6142 _ACEOF
6143 ;;
6144   esac
6145
6146 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6147 case $ac_cv_c_uint16_t in #(
6148   no|yes) ;; #(
6149   *)
6150
6151
6152 cat >>confdefs.h <<_ACEOF
6153 #define uint16_t $ac_cv_c_uint16_t
6154 _ACEOF
6155 ;;
6156   esac
6157
6158 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6159 case $ac_cv_c_uint32_t in #(
6160   no|yes) ;; #(
6161   *)
6162
6163 $as_echo "#define _UINT32_T 1" >>confdefs.h
6164
6165
6166 cat >>confdefs.h <<_ACEOF
6167 #define uint32_t $ac_cv_c_uint32_t
6168 _ACEOF
6169 ;;
6170   esac
6171
6172 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6173 case $ac_cv_c_uint64_t in #(
6174   no|yes) ;; #(
6175   *)
6176
6177 $as_echo "#define _UINT64_T 1" >>confdefs.h
6178
6179
6180 cat >>confdefs.h <<_ACEOF
6181 #define uint64_t $ac_cv_c_uint64_t
6182 _ACEOF
6183 ;;
6184   esac
6185
6186
6187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6188 $as_echo_n "checking for unsigned long long int... " >&6; }
6189 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6190   $as_echo_n "(cached) " >&6
6191 else
6192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h.  */
6194
6195   /* For now, do not test the preprocessor; as of 2007 there are too many
6196          implementations with broken preprocessors.  Perhaps this can
6197          be revisited in 2012.  In the meantime, code should not expect
6198          #if to work with literals wider than 32 bits.  */
6199       /* Test literals.  */
6200       long long int ll = 9223372036854775807ll;
6201       long long int nll = -9223372036854775807LL;
6202       unsigned long long int ull = 18446744073709551615ULL;
6203       /* Test constant expressions.   */
6204       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6205                      ? 1 : -1)];
6206       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6207                      ? 1 : -1)];
6208       int i = 63;
6209 int
6210 main ()
6211 {
6212 /* Test availability of runtime routines for shift and division.  */
6213       long long int llmax = 9223372036854775807ll;
6214       unsigned long long int ullmax = 18446744073709551615ull;
6215       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6216               | (llmax / ll) | (llmax % ll)
6217               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6218               | (ullmax / ull) | (ullmax % ull));
6219   ;
6220   return 0;
6221 }
6222
6223 _ACEOF
6224 if ac_fn_c_try_link "$LINENO"; then :
6225   ac_cv_type_unsigned_long_long_int=yes
6226 else
6227   ac_cv_type_unsigned_long_long_int=no
6228 fi
6229 rm -f core conftest.err conftest.$ac_objext \
6230     conftest$ac_exeext conftest.$ac_ext
6231 fi
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6233 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6234   if test $ac_cv_type_unsigned_long_long_int = yes; then
6235
6236 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6237
6238   fi
6239
6240
6241
6242   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6243 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6244
6245 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6246
6247 else
6248   test $ac_cv_type_unsigned_long_long_int = yes \
6249        && ac_type='unsigned long long int' \
6250        || ac_type='unsigned long int'
6251
6252 cat >>confdefs.h <<_ACEOF
6253 #define uintmax_t $ac_type
6254 _ACEOF
6255
6256 fi
6257
6258
6259
6260   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6261 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6262
6263 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6264
6265 else
6266   for ac_type in 'unsigned int' 'unsigned long int' \
6267         'unsigned long long int'; do
6268        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h.  */
6270 $ac_includes_default
6271 int
6272 main ()
6273 {
6274 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6275 test_array [0] = 0
6276
6277   ;
6278   return 0;
6279 }
6280 _ACEOF
6281 if ac_fn_c_try_compile "$LINENO"; then :
6282
6283 cat >>confdefs.h <<_ACEOF
6284 #define uintptr_t $ac_type
6285 _ACEOF
6286
6287           ac_type=
6288 fi
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290        test -z "$ac_type" && break
6291      done
6292 fi
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308 # ---------------------
6309 # Warnings and checking
6310 # ---------------------
6311
6312 # Check $CC warning features (if it's GCC).
6313 # We want to use -pedantic, but we don't want warnings about
6314 # * 'long long'
6315 # * variadic macros
6316 # * overlong strings
6317 # So, we only use -pedantic if we can disable those warnings.
6318
6319 loose_warn=
6320 save_CFLAGS="$CFLAGS"
6321 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6322   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6323
6324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6325 $as_echo_n "checking whether $CC supports $option... " >&6; }
6326 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6327   $as_echo_n "(cached) " >&6
6328 else
6329   CFLAGS="$option"
6330     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h.  */
6332
6333 int
6334 main ()
6335 {
6336
6337   ;
6338   return 0;
6339 }
6340 _ACEOF
6341 if ac_fn_c_try_compile "$LINENO"; then :
6342   eval "$as_acx_Woption=yes"
6343 else
6344   eval "$as_acx_Woption=no"
6345 fi
6346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6347
6348 fi
6349 eval ac_res=\$$as_acx_Woption
6350                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6351 $as_echo "$ac_res" >&6; }
6352   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6353   loose_warn="$loose_warn${loose_warn:+ }$option"
6354 fi
6355   done
6356 CFLAGS="$save_CFLAGS"
6357
6358 c_loose_warn=
6359 save_CFLAGS="$CFLAGS"
6360 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6361   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6362
6363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6364 $as_echo_n "checking whether $CC supports $option... " >&6; }
6365 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6366   $as_echo_n "(cached) " >&6
6367 else
6368   CFLAGS="$option"
6369     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h.  */
6371
6372 int
6373 main ()
6374 {
6375
6376   ;
6377   return 0;
6378 }
6379 _ACEOF
6380 if ac_fn_c_try_compile "$LINENO"; then :
6381   eval "$as_acx_Woption=yes"
6382 else
6383   eval "$as_acx_Woption=no"
6384 fi
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386
6387 fi
6388 eval ac_res=\$$as_acx_Woption
6389                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6390 $as_echo "$ac_res" >&6; }
6391   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6392   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6393 fi
6394   done
6395 CFLAGS="$save_CFLAGS"
6396
6397 strict_warn=
6398 save_CFLAGS="$CFLAGS"
6399 for option in -Wmissing-format-attribute; do
6400   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6401
6402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6403 $as_echo_n "checking whether $CC supports $option... " >&6; }
6404 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6405   $as_echo_n "(cached) " >&6
6406 else
6407   CFLAGS="$option"
6408     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h.  */
6410
6411 int
6412 main ()
6413 {
6414
6415   ;
6416   return 0;
6417 }
6418 _ACEOF
6419 if ac_fn_c_try_compile "$LINENO"; then :
6420   eval "$as_acx_Woption=yes"
6421 else
6422   eval "$as_acx_Woption=no"
6423 fi
6424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425
6426 fi
6427 eval ac_res=\$$as_acx_Woption
6428                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6429 $as_echo "$ac_res" >&6; }
6430   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6431   strict_warn="$strict_warn${strict_warn:+ }$option"
6432 fi
6433   done
6434 CFLAGS="$save_CFLAGS"
6435
6436 c_strict_warn=
6437 save_CFLAGS="$CFLAGS"
6438 for option in -Wold-style-definition -Wc++-compat; do
6439   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6440
6441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6442 $as_echo_n "checking whether $CC supports $option... " >&6; }
6443 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6444   $as_echo_n "(cached) " >&6
6445 else
6446   CFLAGS="$option"
6447     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h.  */
6449
6450 int
6451 main ()
6452 {
6453
6454   ;
6455   return 0;
6456 }
6457 _ACEOF
6458 if ac_fn_c_try_compile "$LINENO"; then :
6459   eval "$as_acx_Woption=yes"
6460 else
6461   eval "$as_acx_Woption=no"
6462 fi
6463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464
6465 fi
6466 eval ac_res=\$$as_acx_Woption
6467                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6468 $as_echo "$ac_res" >&6; }
6469   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6470   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6471 fi
6472   done
6473 CFLAGS="$save_CFLAGS"
6474
6475 if test "$GCC" = yes; then :
6476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6477 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6478 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6479   $as_echo_n "(cached) " >&6
6480 else
6481   save_CFLAGS="$CFLAGS"
6482 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h.  */
6485
6486 int
6487 main ()
6488 {
6489
6490   ;
6491   return 0;
6492 }
6493 _ACEOF
6494 if ac_fn_c_try_compile "$LINENO"; then :
6495   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6496 else
6497   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6498 fi
6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500 CFLAGS="$save_CFLAGS"
6501 fi
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6503 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6504 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6505   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6506 fi
6507
6508 fi
6509
6510 # Check whether --enable-werror-always was given.
6511 if test "${enable_werror_always+set}" = set; then :
6512   enableval=$enable_werror_always;
6513 else
6514   enable_werror_always=no
6515 fi
6516
6517 if test $enable_werror_always = yes; then :
6518   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6519 fi
6520
6521
6522
6523 # The above macros do nothing if the compiler is not GCC.  However, the
6524 # Makefile has more goo to add other flags, so these variables are used
6525 # to enable warnings only for GCC.
6526 warn_cflags=
6527 warn_cxxflags=
6528 if test "x$GCC" = "xyes"; then
6529   warn_cflags='$(GCC_WARN_CFLAGS)'
6530   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6531 fi
6532
6533
6534
6535 # Enable expensive internal checks
6536 is_release=
6537 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6538   is_release=yes
6539 fi
6540
6541 # Check whether --enable-checking was given.
6542 if test "${enable_checking+set}" = set; then :
6543   enableval=$enable_checking; ac_checking_flags="${enableval}"
6544 else
6545
6546 # Determine the default checks.
6547 if test x$is_release = x ; then
6548   ac_checking_flags=yes
6549 else
6550   ac_checking_flags=release
6551 fi
6552 fi
6553
6554 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6555 for check in release $ac_checking_flags
6556 do
6557         case $check in
6558         # these set all the flags to specific states
6559         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6560                         ac_fold_checking= ; ac_gc_checking=1 ;
6561                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6562                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6563                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6564                         ac_types_checking=1 ;;
6565         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6566                         ac_fold_checking= ; ac_gc_checking= ;
6567                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6568                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6569                         ac_tree_checking= ; ac_valgrind_checking= ;
6570                         ac_types_checking= ;;
6571         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6572                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6573                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6574                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6575                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6576                         ac_types_checking=1 ;;
6577         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6578                         ac_fold_checking= ; ac_gc_checking= ;
6579                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6580                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6581                         ac_tree_checking= ; ac_valgrind_checking= ;
6582                         ac_types_checking= ;;
6583         # these enable particular checks
6584         assert)         ac_assert_checking=1 ;;
6585         df)             ac_df_checking=1 ;;
6586         fold)           ac_fold_checking=1 ;;
6587         gc)             ac_gc_checking=1 ;;
6588         gcac)           ac_gc_always_collect=1 ;;
6589         gimple)         ac_gimple_checking=1 ;;
6590         misc)           ac_checking=1 ;;
6591         rtl)            ac_rtl_checking=1 ;;
6592         rtlflag)        ac_rtlflag_checking=1 ;;
6593         runtime)        ac_runtime_checking=1 ;;
6594         tree)           ac_tree_checking=1 ;;
6595         types)          ac_types_checking=1 ;;
6596         valgrind)       ac_valgrind_checking=1 ;;
6597         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6598         esac
6599 done
6600 IFS="$ac_save_IFS"
6601
6602 nocommon_flag=""
6603 if test x$ac_checking != x ; then
6604
6605 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6606
6607   nocommon_flag=-fno-common
6608 fi
6609
6610 if test x$ac_df_checking != x ; then
6611
6612 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6613
6614 fi
6615 if test x$ac_assert_checking != x ; then
6616
6617 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6618
6619 fi
6620 if test x$ac_gimple_checking != x ; then
6621
6622 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6623
6624 fi
6625
6626 if test x$ac_runtime_checking != x ; then
6627
6628 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6629
6630 fi
6631 if test x$ac_tree_checking != x ; then
6632
6633 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6634
6635   TREEBROWSER=tree-browser.o
6636 fi
6637 if test x$ac_types_checking != x ; then
6638
6639 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6640
6641 fi
6642
6643 if test x$ac_rtl_checking != x ; then
6644
6645 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6646
6647 fi
6648 if test x$ac_rtlflag_checking != x ; then
6649
6650 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6651
6652 fi
6653 if test x$ac_gc_checking != x ; then
6654
6655 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6656
6657 fi
6658 if test x$ac_gc_always_collect != x ; then
6659
6660 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6661
6662 fi
6663 if test x$ac_fold_checking != x ; then
6664
6665 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6666
6667 fi
6668 valgrind_path_defines=
6669 valgrind_command=
6670
6671 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6672 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6673   have_valgrind_h=yes
6674 else
6675   have_valgrind_h=no
6676 fi
6677
6678
6679
6680 if test x$ac_valgrind_checking != x ; then
6681   # It is certainly possible that there's valgrind but no valgrind.h.
6682   # GCC relies on making annotations so we must have both.
6683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6684 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h.  */
6687 #include <valgrind/memcheck.h>
6688 #ifndef VALGRIND_DISCARD
6689 #error VALGRIND_DISCARD not defined
6690 #endif
6691 _ACEOF
6692 if ac_fn_c_try_cpp "$LINENO"; then :
6693   gcc_cv_header_valgrind_memcheck_h=yes
6694 else
6695   gcc_cv_header_valgrind_memcheck_h=no
6696 fi
6697 rm -f conftest.err conftest.$ac_ext
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6699 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6701 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h.  */
6704 #include <memcheck.h>
6705 #ifndef VALGRIND_DISCARD
6706 #error VALGRIND_DISCARD not defined
6707 #endif
6708 _ACEOF
6709 if ac_fn_c_try_cpp "$LINENO"; then :
6710   gcc_cv_header_memcheck_h=yes
6711 else
6712   gcc_cv_header_memcheck_h=no
6713 fi
6714 rm -f conftest.err conftest.$ac_ext
6715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6716 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6717
6718 # Prepare PATH_SEPARATOR.
6719 # The user is always right.
6720 if test "${PATH_SEPARATOR+set}" != set; then
6721   echo "#! /bin/sh" >conf$$.sh
6722   echo  "exit 0"   >>conf$$.sh
6723   chmod +x conf$$.sh
6724   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6725     PATH_SEPARATOR=';'
6726   else
6727     PATH_SEPARATOR=:
6728   fi
6729   rm -f conf$$.sh
6730 fi
6731
6732 # Find out how to test for executable files. Don't use a zero-byte file,
6733 # as systems may use methods other than mode bits to determine executability.
6734 cat >conf$$.file <<_ASEOF
6735 #! /bin/sh
6736 exit 0
6737 _ASEOF
6738 chmod +x conf$$.file
6739 if test -x conf$$.file >/dev/null 2>&1; then
6740   ac_executable_p="test -x"
6741 else
6742   ac_executable_p="test -f"
6743 fi
6744 rm -f conf$$.file
6745
6746 # Extract the first word of "valgrind", so it can be a program name with args.
6747 set dummy valgrind; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6751   $as_echo_n "(cached) " >&6
6752 else
6753   case "$valgrind_path" in
6754   [\\/]* | ?:[\\/]*)
6755     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6756     ;;
6757   *)
6758     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6759     for ac_dir in $PATH; do
6760       IFS="$ac_save_IFS"
6761       test -z "$ac_dir" && ac_dir=.
6762       for ac_exec_ext in '' $ac_executable_extensions; do
6763         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6764           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6765             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6766             break 2
6767           fi
6768         fi
6769       done
6770     done
6771     IFS="$ac_save_IFS"
6772     ;;
6773 esac
6774 fi
6775 valgrind_path="$ac_cv_path_valgrind_path"
6776 if test -n "$valgrind_path"; then
6777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6778 $as_echo "$valgrind_path" >&6; }
6779 else
6780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6782 fi
6783
6784   if test "x$valgrind_path" = "x" \
6785     || (test $have_valgrind_h = no \
6786         && test $gcc_cv_header_memcheck_h = no \
6787         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6788         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6789   fi
6790   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6791   valgrind_command="$valgrind_path -q"
6792
6793 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6794
6795   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6796
6797 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6798
6799   fi
6800   if test $gcc_cv_header_memcheck_h = yes; then
6801
6802 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6803
6804   fi
6805 fi
6806
6807
6808
6809 # Enable code coverage collection
6810 # Check whether --enable-coverage was given.
6811 if test "${enable_coverage+set}" = set; then :
6812   enableval=$enable_coverage; case "${enableval}" in
6813   yes|noopt)
6814     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6815     ;;
6816   opt)
6817     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6818     ;;
6819   no)
6820     # a.k.a. --disable-coverage
6821     coverage_flags=""
6822     ;;
6823   *)
6824     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6825     ;;
6826 esac
6827 else
6828   coverage_flags=""
6829 fi
6830
6831
6832
6833 # Check whether --enable-gather-detailed-mem-stats was given.
6834 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6835   enableval=$enable_gather_detailed_mem_stats;
6836 else
6837   enable_gather_detailed_mem_stats=no
6838 fi
6839
6840 if test x$enable_gather_detailed_mem_stats = xyes ; then
6841
6842 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6843
6844 fi
6845
6846 # -------------------------------
6847 # Miscenalleous configure options
6848 # -------------------------------
6849
6850 # See if we are building gcc with C++.
6851 # Check whether --enable-build-with-cxx was given.
6852 if test "${enable_build_with_cxx+set}" = set; then :
6853   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6854 else
6855   ENABLE_BUILD_WITH_CXX=no
6856 fi
6857
6858
6859 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6860
6861 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6862
6863 fi
6864
6865 # With stabs
6866
6867 # Check whether --with-stabs was given.
6868 if test "${with_stabs+set}" = set; then :
6869   withval=$with_stabs; stabs="$with_stabs"
6870 else
6871   stabs=no
6872 fi
6873
6874
6875 # Determine whether or not multilibs are enabled.
6876 # Check whether --enable-multilib was given.
6877 if test "${enable_multilib+set}" = set; then :
6878   enableval=$enable_multilib;
6879 else
6880   enable_multilib=yes
6881 fi
6882
6883
6884
6885 # Enable __cxa_atexit for C++.
6886 # Check whether --enable-__cxa_atexit was given.
6887 if test "${enable___cxa_atexit+set}" = set; then :
6888   enableval=$enable___cxa_atexit;
6889 fi
6890
6891
6892 # Enable C extension for decimal float if target supports it.
6893
6894 # Check whether --enable-decimal-float was given.
6895 if test "${enable_decimal_float+set}" = set; then :
6896   enableval=$enable_decimal_float;
6897   case $enable_decimal_float in
6898     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6899     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6900 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6901   esac
6902
6903 else
6904
6905   case $target in
6906     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6907     i?86*-*-mingw* | x86_64*-*-mingw* | \
6908     i?86*-*-cygwin*)
6909       enable_decimal_float=yes
6910       ;;
6911     *)
6912       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6913 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6914       enable_decimal_float=no
6915       ;;
6916   esac
6917
6918 fi
6919
6920
6921 # x86's use BID format instead of DPD
6922 case x$enable_decimal_float in
6923   xyes)
6924     case $target in
6925       i?86*-*-* | x86_64*-*-*)
6926         enable_decimal_float=bid
6927         ;;
6928       *)
6929         enable_decimal_float=dpd
6930         ;;
6931     esac
6932     default_decimal_float=$enable_decimal_float
6933     ;;
6934   xno)
6935     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6936     # dependency on libdecnumber.
6937     default_decimal_float=dpd
6938     ;;
6939 esac
6940
6941
6942
6943
6944 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6945
6946 cat >>confdefs.h <<_ACEOF
6947 #define ENABLE_DECIMAL_FLOAT $dfp
6948 _ACEOF
6949
6950
6951 # Use default_decimal_float for dependency.
6952 enable_decimal_float=$default_decimal_float
6953
6954 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6955
6956 cat >>confdefs.h <<_ACEOF
6957 #define ENABLE_DECIMAL_BID_FORMAT $bid
6958 _ACEOF
6959
6960
6961 # Enable C extension for fixed-point arithmetic.
6962 # Check whether --enable-fixed-point was given.
6963 if test "${enable_fixed_point+set}" = set; then :
6964   enableval=$enable_fixed_point;
6965 else
6966
6967   case $target in
6968     mips*-*-*)
6969       case $host in
6970         mips*-sgi-irix*)
6971           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6972 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6973           enable_fixed_point=no
6974           ;;
6975         *)
6976           enable_fixed_point=yes
6977           ;;
6978       esac
6979       ;;
6980     *)
6981       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6982 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6983       enable_fixed_point=no
6984       ;;
6985   esac
6986
6987 fi
6988
6989
6990
6991 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6992
6993 cat >>confdefs.h <<_ACEOF
6994 #define ENABLE_FIXED_POINT $fixedpoint
6995 _ACEOF
6996
6997
6998 # Enable threads
6999 # Pass with no value to take the default
7000 # Pass with a value to specify a thread package
7001 # Check whether --enable-threads was given.
7002 if test "${enable_threads+set}" = set; then :
7003   enableval=$enable_threads;
7004 else
7005   enable_threads=''
7006 fi
7007
7008
7009 # Check whether --enable-tls was given.
7010 if test "${enable_tls+set}" = set; then :
7011   enableval=$enable_tls;
7012   case $enable_tls in
7013     yes | no) ;;
7014     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7015 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7016   esac
7017
7018 else
7019   enable_tls=''
7020 fi
7021
7022
7023 # Check whether --enable-objc-gc was given.
7024 if test "${enable_objc_gc+set}" = set; then :
7025   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7026         objc_boehm_gc=''
7027 else
7028         objc_boehm_gc=1
7029 fi
7030 else
7031   objc_boehm_gc=''
7032 fi
7033
7034
7035
7036 # Check whether --with-dwarf2 was given.
7037 if test "${with_dwarf2+set}" = set; then :
7038   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7039 else
7040   dwarf2=no
7041 fi
7042
7043
7044 # Check whether --enable-shared was given.
7045 if test "${enable_shared+set}" = set; then :
7046   enableval=$enable_shared;
7047   case $enable_shared in
7048   yes | no) ;;
7049   *)
7050     enable_shared=no
7051     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7052     for pkg in $enableval; do
7053       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7054         enable_shared=yes
7055       fi
7056     done
7057     IFS="$ac_save_ifs"
7058     ;;
7059   esac
7060
7061 else
7062   enable_shared=yes
7063 fi
7064
7065
7066
7067
7068 # Check whether --with-build-sysroot was given.
7069 if test "${with_build_sysroot+set}" = set; then :
7070   withval=$with_build_sysroot;
7071 fi
7072
7073
7074
7075 # Check whether --with-sysroot was given.
7076 if test "${with_sysroot+set}" = set; then :
7077   withval=$with_sysroot;
7078  case ${with_sysroot} in
7079  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7080  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7081  esac
7082
7083  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7084  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7085
7086  if test "x$prefix" = xNONE; then
7087   test_prefix=/usr/local
7088  else
7089   test_prefix=$prefix
7090  fi
7091  if test "x$exec_prefix" = xNONE; then
7092   test_exec_prefix=$test_prefix
7093  else
7094   test_exec_prefix=$exec_prefix
7095  fi
7096  case ${TARGET_SYSTEM_ROOT} in
7097  "${test_prefix}"|"${test_prefix}/"*|\
7098  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7099  '${prefix}'|'${prefix}/'*|\
7100  '${exec_prefix}'|'${exec_prefix}/'*)
7101    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7102    TARGET_SYSTEM_ROOT_DEFINE="$t"
7103    ;;
7104  esac
7105
7106 else
7107
7108  TARGET_SYSTEM_ROOT=
7109  TARGET_SYSTEM_ROOT_DEFINE=
7110  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7111
7112 fi
7113
7114
7115
7116
7117
7118
7119 # Check whether --with-specs was given.
7120 if test "${with_specs+set}" = set; then :
7121   withval=$with_specs; CONFIGURE_SPECS=$withval
7122 else
7123   CONFIGURE_SPECS=
7124
7125 fi
7126
7127
7128
7129
7130
7131 # Check whether --with-pkgversion was given.
7132 if test "${with_pkgversion+set}" = set; then :
7133   withval=$with_pkgversion; case "$withval" in
7134       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7135       no)  PKGVERSION= ;;
7136       *)   PKGVERSION="($withval) " ;;
7137      esac
7138 else
7139   PKGVERSION="(GCC) "
7140
7141 fi
7142
7143
7144
7145
7146
7147 # Check whether --with-bugurl was given.
7148 if test "${with_bugurl+set}" = set; then :
7149   withval=$with_bugurl; case "$withval" in
7150       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7151       no)  BUGURL=
7152            ;;
7153       *)   BUGURL="$withval"
7154            ;;
7155      esac
7156 else
7157   BUGURL="http://gcc.gnu.org/bugs.html"
7158
7159 fi
7160
7161   case ${BUGURL} in
7162   "")
7163     REPORT_BUGS_TO=
7164     REPORT_BUGS_TEXI=
7165     ;;
7166   *)
7167     REPORT_BUGS_TO="<$BUGURL>"
7168     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7169     ;;
7170   esac;
7171
7172
7173
7174
7175 # Sanity check enable_languages in case someone does not run the toplevel
7176 # configure # script.
7177 # Check whether --enable-languages was given.
7178 if test "${enable_languages+set}" = set; then :
7179   enableval=$enable_languages; case ,${enable_languages}, in
7180        ,,|,yes,)
7181                 # go safe -- we cannot be much sure without the toplevel
7182                 # configure's
7183                 # analysis of which target libs are present and usable
7184                 enable_languages=c
7185                 ;;
7186          *,all,*)
7187                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7188                 ;;
7189         *,c,*)
7190                 ;;
7191         *)
7192                 enable_languages=c,${enable_languages}
7193                 ;;
7194 esac
7195 else
7196   enable_languages=c
7197 fi
7198
7199
7200
7201 # Check whether --with-multilib-list was given.
7202 if test "${with_multilib_list+set}" = set; then :
7203   withval=$with_multilib_list; :
7204 else
7205   with_multilib_list=default
7206 fi
7207
7208
7209 # -------------------------
7210 # Checks for other programs
7211 # -------------------------
7212
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7214 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7215 set x ${MAKE-make}
7216 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7217 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7218   $as_echo_n "(cached) " >&6
7219 else
7220   cat >conftest.make <<\_ACEOF
7221 SHELL = /bin/sh
7222 all:
7223         @echo '@@@%%%=$(MAKE)=@@@%%%'
7224 _ACEOF
7225 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7226 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7227   *@@@%%%=?*=@@@%%%*)
7228     eval ac_cv_prog_make_${ac_make}_set=yes;;
7229   *)
7230     eval ac_cv_prog_make_${ac_make}_set=no;;
7231 esac
7232 rm -f conftest.make
7233 fi
7234 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7236 $as_echo "yes" >&6; }
7237   SET_MAKE=
7238 else
7239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7241   SET_MAKE="MAKE=${MAKE-make}"
7242 fi
7243
7244
7245 # Find some useful tools
7246 for ac_prog in gawk mawk nawk awk
7247 do
7248   # Extract the first word of "$ac_prog", so it can be a program name with args.
7249 set dummy $ac_prog; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if test "${ac_cv_prog_AWK+set}" = set; then :
7253   $as_echo_n "(cached) " >&6
7254 else
7255   if test -n "$AWK"; then
7256   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7257 else
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7260 do
7261   IFS=$as_save_IFS
7262   test -z "$as_dir" && as_dir=.
7263     for ac_exec_ext in '' $ac_executable_extensions; do
7264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7265     ac_cv_prog_AWK="$ac_prog"
7266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267     break 2
7268   fi
7269 done
7270   done
7271 IFS=$as_save_IFS
7272
7273 fi
7274 fi
7275 AWK=$ac_cv_prog_AWK
7276 if test -n "$AWK"; then
7277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7278 $as_echo "$AWK" >&6; }
7279 else
7280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7282 fi
7283
7284
7285   test -n "$AWK" && break
7286 done
7287
7288 # We need awk to create options.c and options.h.
7289 # Bail out if it's missing.
7290 case ${AWK} in
7291   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7292 esac
7293
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7295 $as_echo_n "checking whether ln -s works... " >&6; }
7296 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7297   $as_echo_n "(cached) " >&6
7298 else
7299   rm -f conftestdata_t
7300 echo >conftestdata_f
7301 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7302 then
7303   gcc_cv_prog_LN_S="ln -s"
7304 else
7305   if ln conftestdata_f conftestdata_t 2>/dev/null
7306   then
7307     gcc_cv_prog_LN_S=ln
7308   else
7309     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7310     then
7311       gcc_cv_prog_LN_S="cp -p"
7312     else
7313       gcc_cv_prog_LN_S=cp
7314     fi
7315   fi
7316 fi
7317 rm -f conftestdata_f conftestdata_t
7318
7319 fi
7320 LN_S="$gcc_cv_prog_LN_S"
7321 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7323 $as_echo "yes" >&6; }
7324 else
7325   if test "$gcc_cv_prog_LN_S" = "ln"; then
7326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7327 $as_echo "no, using ln" >&6; }
7328   else
7329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7330 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7331   fi
7332 fi
7333
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7335 $as_echo_n "checking whether ln works... " >&6; }
7336 if test "${acx_cv_prog_LN+set}" = set; then :
7337   $as_echo_n "(cached) " >&6
7338 else
7339   rm -f conftestdata_t
7340 echo >conftestdata_f
7341 if ln conftestdata_f conftestdata_t 2>/dev/null
7342 then
7343   acx_cv_prog_LN=ln
7344 else
7345   acx_cv_prog_LN=no
7346 fi
7347 rm -f conftestdata_f conftestdata_t
7348
7349 fi
7350 if test $acx_cv_prog_LN = no; then
7351   LN="$LN_S"
7352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7353 $as_echo "no, using $LN" >&6; }
7354 else
7355   LN="$acx_cv_prog_LN"
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7357 $as_echo "yes" >&6; }
7358 fi
7359
7360 if test -n "$ac_tool_prefix"; then
7361   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7362 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7366   $as_echo_n "(cached) " >&6
7367 else
7368   if test -n "$RANLIB"; then
7369   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374   IFS=$as_save_IFS
7375   test -z "$as_dir" && as_dir=.
7376     for ac_exec_ext in '' $ac_executable_extensions; do
7377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380     break 2
7381   fi
7382 done
7383   done
7384 IFS=$as_save_IFS
7385
7386 fi
7387 fi
7388 RANLIB=$ac_cv_prog_RANLIB
7389 if test -n "$RANLIB"; then
7390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7391 $as_echo "$RANLIB" >&6; }
7392 else
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7395 fi
7396
7397
7398 fi
7399 if test -z "$ac_cv_prog_RANLIB"; then
7400   ac_ct_RANLIB=$RANLIB
7401   # Extract the first word of "ranlib", so it can be a program name with args.
7402 set dummy ranlib; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7406   $as_echo_n "(cached) " >&6
7407 else
7408   if test -n "$ac_ct_RANLIB"; then
7409   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414   IFS=$as_save_IFS
7415   test -z "$as_dir" && as_dir=.
7416     for ac_exec_ext in '' $ac_executable_extensions; do
7417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7418     ac_cv_prog_ac_ct_RANLIB="ranlib"
7419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420     break 2
7421   fi
7422 done
7423   done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7429 if test -n "$ac_ct_RANLIB"; then
7430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7431 $as_echo "$ac_ct_RANLIB" >&6; }
7432 else
7433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437   if test "x$ac_ct_RANLIB" = x; then
7438     RANLIB=":"
7439   else
7440     case $cross_compiling:$ac_tool_warned in
7441 yes:)
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7444 ac_tool_warned=yes ;;
7445 esac
7446     RANLIB=$ac_ct_RANLIB
7447   fi
7448 else
7449   RANLIB="$ac_cv_prog_RANLIB"
7450 fi
7451
7452 case "${host}" in
7453 *-*-darwin*)
7454   # By default, the Darwin ranlib will not treat common symbols as
7455   # definitions when  building the archive table of contents.  Other
7456   # ranlibs do that; pass an option to the Darwin ranlib that makes
7457   # it behave similarly.
7458   ranlib_flags="-c"
7459   ;;
7460 *)
7461   ranlib_flags=""
7462 esac
7463
7464
7465 # Find a good install program.  We prefer a C program (faster),
7466 # so one script is as good as another.  But avoid the broken or
7467 # incompatible versions:
7468 # SysV /etc/install, /usr/sbin/install
7469 # SunOS /usr/etc/install
7470 # IRIX /sbin/install
7471 # AIX /bin/install
7472 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7473 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7474 # ./install, which can be erroneously created by make from ./install.sh.
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7476 $as_echo_n "checking for a BSD compatible install... " >&6; }
7477 if test -z "$INSTALL"; then
7478 if test "${ac_cv_path_install+set}" = set; then :
7479   $as_echo_n "(cached) " >&6
7480 else
7481     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7482   for ac_dir in $PATH; do
7483     # Account for people who put trailing slashes in PATH elements.
7484     case "$ac_dir/" in
7485     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7486     *)
7487       # OSF1 and SCO ODT 3.0 have their own names for install.
7488       for ac_prog in ginstall scoinst install; do
7489         if test -f $ac_dir/$ac_prog; then
7490           if test $ac_prog = install &&
7491             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7492             # AIX install.  It has an incompatible calling convention.
7493             # OSF/1 installbsd also uses dspmsg, but is usable.
7494             :
7495           else
7496             ac_cv_path_install="$ac_dir/$ac_prog -c"
7497             break 2
7498           fi
7499         fi
7500       done
7501       ;;
7502     esac
7503   done
7504   IFS="$ac_save_IFS"
7505
7506 fi
7507   if test "${ac_cv_path_install+set}" = set; then
7508     INSTALL="$ac_cv_path_install"
7509   else
7510     # As a last resort, use the slow shell script.  We don't cache a
7511     # path for INSTALL within a source directory, because that will
7512     # break other packages using the cache if that directory is
7513     # removed, or if the path is relative.
7514     INSTALL="$ac_install_sh"
7515   fi
7516 fi
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7518 $as_echo "$INSTALL" >&6; }
7519
7520 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7521 # It thinks the first close brace ends the variable substitution.
7522 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7523
7524 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7525
7526
7527 # See if cmp has --ignore-initial.
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7529 $as_echo_n "checking for cmp's capabilities... " >&6; }
7530 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7531   $as_echo_n "(cached) " >&6
7532 else
7533    echo abfoo >t1
7534   echo cdfoo >t2
7535   gcc_cv_prog_cmp_skip=slowcompare
7536   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7537     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7538       :
7539     else
7540       gcc_cv_prog_cmp_skip=gnucompare
7541     fi
7542   fi
7543   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7544     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7545       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7546         :
7547       else
7548         gcc_cv_prog_cmp_skip=fastcompare
7549       fi
7550     fi
7551   fi
7552   rm t1 t2
7553
7554 fi
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7556 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7557 make_compare_target=$gcc_cv_prog_cmp_skip
7558
7559
7560
7561 # See if we have the mktemp command.
7562 # Extract the first word of "mktemp", so it can be a program name with args.
7563 set dummy mktemp; ac_word=$2
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 $as_echo_n "checking for $ac_word... " >&6; }
7566 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7567   $as_echo_n "(cached) " >&6
7568 else
7569   if test -n "$have_mktemp_command"; then
7570   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7571 else
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 for as_dir in $PATH
7574 do
7575   IFS=$as_save_IFS
7576   test -z "$as_dir" && as_dir=.
7577     for ac_exec_ext in '' $ac_executable_extensions; do
7578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7579     ac_cv_prog_have_mktemp_command="yes"
7580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581     break 2
7582   fi
7583 done
7584   done
7585 IFS=$as_save_IFS
7586
7587   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7588 fi
7589 fi
7590 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7591 if test -n "$have_mktemp_command"; then
7592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7593 $as_echo "$have_mktemp_command" >&6; }
7594 else
7595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7597 fi
7598
7599
7600
7601 # See if makeinfo has been installed and is modern enough
7602 # that we can use it.
7603
7604   # Extract the first word of "makeinfo", so it can be a program name with args.
7605 set dummy makeinfo; ac_word=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7609   $as_echo_n "(cached) " >&6
7610 else
7611   if test -n "$MAKEINFO"; then
7612   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7613 else
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7616 do
7617   IFS=$as_save_IFS
7618   test -z "$as_dir" && as_dir=.
7619     for ac_exec_ext in '' $ac_executable_extensions; do
7620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621     ac_cv_prog_MAKEINFO="makeinfo"
7622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623     break 2
7624   fi
7625 done
7626   done
7627 IFS=$as_save_IFS
7628
7629 fi
7630 fi
7631 MAKEINFO=$ac_cv_prog_MAKEINFO
7632 if test -n "$MAKEINFO"; then
7633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7634 $as_echo "$MAKEINFO" >&6; }
7635 else
7636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7638 fi
7639
7640
7641   if test -n "$MAKEINFO"; then
7642     # Found it, now check the version.
7643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7644 $as_echo_n "checking for modern makeinfo... " >&6; }
7645 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7646   $as_echo_n "(cached) " >&6
7647 else
7648   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7649                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7650
7651                     case $ac_prog_version in
7652                       '')  gcc_cv_prog_makeinfo_modern=no;;
7653                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7654                       *)   gcc_cv_prog_makeinfo_modern=no;;
7655                     esac
7656
7657 fi
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7659 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7660   else
7661     gcc_cv_prog_makeinfo_modern=no
7662   fi
7663   if test $gcc_cv_prog_makeinfo_modern = no; then
7664     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7665   fi
7666
7667 if test $gcc_cv_prog_makeinfo_modern = no; then
7668   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7669 *** Makeinfo is missing or too old.
7670 *** Info documentation will not be built." >&5
7671 $as_echo "$as_me: WARNING:
7672 *** Makeinfo is missing or too old.
7673 *** Info documentation will not be built." >&2;}
7674   BUILD_INFO=
7675 else
7676   BUILD_INFO=info
7677 fi
7678
7679
7680 # Is pod2man recent enough to regenerate manpages?
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7682 $as_echo_n "checking for recent Pod::Man... " >&6; }
7683 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7685 $as_echo "yes" >&6; }
7686   GENERATED_MANPAGES=generated-manpages
7687 else
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690   GENERATED_MANPAGES=
7691 fi
7692
7693
7694 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7695
7696 # How about lex?
7697 for ac_prog in flex
7698 do
7699   # Extract the first word of "$ac_prog", so it can be a program name with args.
7700 set dummy $ac_prog; ac_word=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 $as_echo_n "checking for $ac_word... " >&6; }
7703 if test "${ac_cv_prog_FLEX+set}" = set; then :
7704   $as_echo_n "(cached) " >&6
7705 else
7706   if test -n "$FLEX"; then
7707   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7708 else
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $PATH
7711 do
7712   IFS=$as_save_IFS
7713   test -z "$as_dir" && as_dir=.
7714     for ac_exec_ext in '' $ac_executable_extensions; do
7715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7716     ac_cv_prog_FLEX="$ac_prog"
7717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7718     break 2
7719   fi
7720 done
7721   done
7722 IFS=$as_save_IFS
7723
7724 fi
7725 fi
7726 FLEX=$ac_cv_prog_FLEX
7727 if test -n "$FLEX"; then
7728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7729 $as_echo "$FLEX" >&6; }
7730 else
7731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7733 fi
7734
7735
7736   test -n "$FLEX" && break
7737 done
7738 test -n "$FLEX" || FLEX="$MISSING flex"
7739
7740
7741 # Bison?
7742 for ac_prog in bison
7743 do
7744   # Extract the first word of "$ac_prog", so it can be a program name with args.
7745 set dummy $ac_prog; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if test "${ac_cv_prog_BISON+set}" = set; then :
7749   $as_echo_n "(cached) " >&6
7750 else
7751   if test -n "$BISON"; then
7752   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7753 else
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757   IFS=$as_save_IFS
7758   test -z "$as_dir" && as_dir=.
7759     for ac_exec_ext in '' $ac_executable_extensions; do
7760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761     ac_cv_prog_BISON="$ac_prog"
7762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763     break 2
7764   fi
7765 done
7766   done
7767 IFS=$as_save_IFS
7768
7769 fi
7770 fi
7771 BISON=$ac_cv_prog_BISON
7772 if test -n "$BISON"; then
7773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7774 $as_echo "$BISON" >&6; }
7775 else
7776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7778 fi
7779
7780
7781   test -n "$BISON" && break
7782 done
7783 test -n "$BISON" || BISON="$MISSING bison"
7784
7785
7786 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7787 # check for build == host before using them.
7788
7789 # NM
7790 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7791   && test -d ../binutils ; then
7792   NM='${objdir}/../binutils/nm-new'
7793 else
7794   # Extract the first word of "nm", so it can be a program name with args.
7795 set dummy nm; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if test "${ac_cv_prog_NM+set}" = set; then :
7799   $as_echo_n "(cached) " >&6
7800 else
7801   if test -n "$NM"; then
7802   ac_cv_prog_NM="$NM" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7806 do
7807   IFS=$as_save_IFS
7808   test -z "$as_dir" && as_dir=.
7809     for ac_exec_ext in '' $ac_executable_extensions; do
7810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811     ac_cv_prog_NM="nm"
7812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813     break 2
7814   fi
7815 done
7816   done
7817 IFS=$as_save_IFS
7818
7819   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7820 fi
7821 fi
7822 NM=$ac_cv_prog_NM
7823 if test -n "$NM"; then
7824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7825 $as_echo "$NM" >&6; }
7826 else
7827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7829 fi
7830
7831
7832 fi
7833
7834 # AR
7835 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7836   && test -d ../binutils ; then
7837   AR='${objdir}/../binutils/ar'
7838 else
7839   # Extract the first word of "ar", so it can be a program name with args.
7840 set dummy ar; ac_word=$2
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842 $as_echo_n "checking for $ac_word... " >&6; }
7843 if test "${ac_cv_prog_AR+set}" = set; then :
7844   $as_echo_n "(cached) " >&6
7845 else
7846   if test -n "$AR"; then
7847   ac_cv_prog_AR="$AR" # Let the user override the test.
7848 else
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH
7851 do
7852   IFS=$as_save_IFS
7853   test -z "$as_dir" && as_dir=.
7854     for ac_exec_ext in '' $ac_executable_extensions; do
7855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7856     ac_cv_prog_AR="ar"
7857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858     break 2
7859   fi
7860 done
7861   done
7862 IFS=$as_save_IFS
7863
7864   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7865 fi
7866 fi
7867 AR=$ac_cv_prog_AR
7868 if test -n "$AR"; then
7869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7870 $as_echo "$AR" >&6; }
7871 else
7872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 fi
7875
7876
7877 fi
7878
7879
7880 # --------------------
7881 # Checks for C headers
7882 # --------------------
7883
7884 # Need to reject headers which give warnings, so that the -Werror bootstrap
7885 # works later. *sigh*  This needs to come before all header checks.
7886
7887 ac_c_preproc_warn_flag=yes
7888
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7890 $as_echo_n "checking for ANSI C header files... " >&6; }
7891 if test "${ac_cv_header_stdc+set}" = set; then :
7892   $as_echo_n "(cached) " >&6
7893 else
7894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h.  */
7896 #include <stdlib.h>
7897 #include <stdarg.h>
7898 #include <string.h>
7899 #include <float.h>
7900
7901 int
7902 main ()
7903 {
7904
7905   ;
7906   return 0;
7907 }
7908 _ACEOF
7909 if ac_fn_c_try_compile "$LINENO"; then :
7910   ac_cv_header_stdc=yes
7911 else
7912   ac_cv_header_stdc=no
7913 fi
7914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7915
7916 if test $ac_cv_header_stdc = yes; then
7917   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h.  */
7920 #include <string.h>
7921
7922 _ACEOF
7923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7924   $EGREP "memchr" >/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   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h.  */
7937 #include <stdlib.h>
7938
7939 _ACEOF
7940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7941   $EGREP "free" >/dev/null 2>&1; then :
7942
7943 else
7944   ac_cv_header_stdc=no
7945 fi
7946 rm -f conftest*
7947
7948 fi
7949
7950 if test $ac_cv_header_stdc = yes; then
7951   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7952   if test "$cross_compiling" = yes; then :
7953   :
7954 else
7955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h.  */
7957 #include <ctype.h>
7958 #include <stdlib.h>
7959 #if ((' ' & 0x0FF) == 0x020)
7960 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7961 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7962 #else
7963 # define ISLOWER(c) \
7964                    (('a' <= (c) && (c) <= 'i') \
7965                      || ('j' <= (c) && (c) <= 'r') \
7966                      || ('s' <= (c) && (c) <= 'z'))
7967 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7968 #endif
7969
7970 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7971 int
7972 main ()
7973 {
7974   int i;
7975   for (i = 0; i < 256; i++)
7976     if (XOR (islower (i), ISLOWER (i))
7977         || toupper (i) != TOUPPER (i))
7978       return 2;
7979   return 0;
7980 }
7981 _ACEOF
7982 if ac_fn_c_try_run "$LINENO"; then :
7983
7984 else
7985   ac_cv_header_stdc=no
7986 fi
7987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7988   conftest.$ac_objext conftest.beam conftest.$ac_ext
7989 fi
7990
7991 fi
7992 fi
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7994 $as_echo "$ac_cv_header_stdc" >&6; }
7995 if test $ac_cv_header_stdc = yes; then
7996
7997 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7998
7999 fi
8000
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8002 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8003 if test "${ac_cv_header_time+set}" = set; then :
8004   $as_echo_n "(cached) " >&6
8005 else
8006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h.  */
8008 #include <sys/types.h>
8009 #include <sys/time.h>
8010 #include <time.h>
8011
8012 int
8013 main ()
8014 {
8015 if ((struct tm *) 0)
8016 return 0;
8017   ;
8018   return 0;
8019 }
8020 _ACEOF
8021 if ac_fn_c_try_compile "$LINENO"; then :
8022   ac_cv_header_time=yes
8023 else
8024   ac_cv_header_time=no
8025 fi
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027 fi
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8029 $as_echo "$ac_cv_header_time" >&6; }
8030 if test $ac_cv_header_time = yes; then
8031
8032 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8033
8034 fi
8035
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8037 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8038 if test "${gcc_cv_header_string+set}" = set; then :
8039   $as_echo_n "(cached) " >&6
8040 else
8041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h.  */
8043 #include <string.h>
8044 #include <strings.h>
8045 int
8046 main ()
8047 {
8048
8049   ;
8050   return 0;
8051 }
8052 _ACEOF
8053 if ac_fn_c_try_compile "$LINENO"; then :
8054   gcc_cv_header_string=yes
8055 else
8056   gcc_cv_header_string=no
8057 fi
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059 fi
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8061 $as_echo "$gcc_cv_header_string" >&6; }
8062 if test $gcc_cv_header_string = yes; then
8063
8064 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8065
8066 fi
8067
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8069 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8070 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8071   $as_echo_n "(cached) " >&6
8072 else
8073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h.  */
8075 #include <sys/types.h>
8076 #include <sys/wait.h>
8077 #ifndef WEXITSTATUS
8078 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8079 #endif
8080 #ifndef WIFEXITED
8081 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8082 #endif
8083
8084 int
8085 main ()
8086 {
8087   int s;
8088   wait (&s);
8089   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8090   ;
8091   return 0;
8092 }
8093 _ACEOF
8094 if ac_fn_c_try_compile "$LINENO"; then :
8095   ac_cv_header_sys_wait_h=yes
8096 else
8097   ac_cv_header_sys_wait_h=no
8098 fi
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 fi
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8102 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8103 if test $ac_cv_header_sys_wait_h = yes; then
8104
8105 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8106
8107 fi
8108
8109 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8110                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8111                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8112                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8113 do :
8114   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8115 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8116 eval as_val=\$$as_ac_Header
8117    if test "x$as_val" = x""yes; then :
8118   cat >>confdefs.h <<_ACEOF
8119 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8120 _ACEOF
8121
8122 fi
8123 done
8124
8125
8126 # Check for thread headers.
8127 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8128 if test "x$ac_cv_header_thread_h" = x""yes; then :
8129   have_thread_h=yes
8130 else
8131   have_thread_h=
8132 fi
8133
8134 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8135 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8136   have_pthread_h=yes
8137 else
8138   have_pthread_h=
8139 fi
8140
8141
8142 # These tests can't be done till we know if we have limits.h.
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8144 $as_echo_n "checking for CHAR_BIT... " >&6; }
8145 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8146   $as_echo_n "(cached) " >&6
8147 else
8148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h.  */
8150 #ifdef HAVE_LIMITS_H
8151 #include <limits.h>
8152 #endif
8153 #ifdef CHAR_BIT
8154 found
8155 #endif
8156 _ACEOF
8157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8158   $EGREP "found" >/dev/null 2>&1; then :
8159   gcc_cv_decl_char_bit=yes
8160 else
8161   gcc_cv_decl_char_bit=no
8162 fi
8163 rm -f conftest*
8164
8165
8166 fi
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8168 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8169 if test $gcc_cv_decl_char_bit = no; then
8170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8171 $as_echo_n "checking number of bits in a byte... " >&6; }
8172 if test "${gcc_cv_c_nbby+set}" = set; then :
8173   $as_echo_n "(cached) " >&6
8174 else
8175   i=8
8176  gcc_cv_c_nbby=
8177  while test $i -lt 65; do
8178    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h.  */
8180
8181 int
8182 main ()
8183 {
8184 switch(0) {
8185   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8186   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8187   ; }
8188   ;
8189   return 0;
8190 }
8191 _ACEOF
8192 if ac_fn_c_try_compile "$LINENO"; then :
8193   gcc_cv_c_nbby=$i; break
8194 fi
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196    i=`expr $i + 1`
8197  done
8198  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8199
8200 fi
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8202 $as_echo "$gcc_cv_c_nbby" >&6; }
8203 if test $gcc_cv_c_nbby = failed; then
8204   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8205 else
8206
8207 cat >>confdefs.h <<_ACEOF
8208 #define CHAR_BIT $gcc_cv_c_nbby
8209 _ACEOF
8210
8211 fi
8212 fi
8213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8214 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8215 if test "${ac_cv_c_bigendian+set}" = set; then :
8216   $as_echo_n "(cached) " >&6
8217 else
8218   ac_cv_c_bigendian=unknown
8219     # See if we're dealing with a universal compiler.
8220     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8221 /* end confdefs.h.  */
8222 #ifndef __APPLE_CC__
8223                not a universal capable compiler
8224              #endif
8225              typedef int dummy;
8226
8227 _ACEOF
8228 if ac_fn_c_try_compile "$LINENO"; then :
8229
8230         # Check for potential -arch flags.  It is not universal unless
8231         # there are at least two -arch flags with different values.
8232         ac_arch=
8233         ac_prev=
8234         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8235          if test -n "$ac_prev"; then
8236            case $ac_word in
8237              i?86 | x86_64 | ppc | ppc64)
8238                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8239                  ac_arch=$ac_word
8240                else
8241                  ac_cv_c_bigendian=universal
8242                  break
8243                fi
8244                ;;
8245            esac
8246            ac_prev=
8247          elif test "x$ac_word" = "x-arch"; then
8248            ac_prev=arch
8249          fi
8250        done
8251 fi
8252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253     if test $ac_cv_c_bigendian = unknown; then
8254       # See if sys/param.h defines the BYTE_ORDER macro.
8255       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h.  */
8257 #include <sys/types.h>
8258              #include <sys/param.h>
8259
8260 int
8261 main ()
8262 {
8263 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8264                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8265                      && LITTLE_ENDIAN)
8266               bogus endian macros
8267              #endif
8268
8269   ;
8270   return 0;
8271 }
8272 _ACEOF
8273 if ac_fn_c_try_compile "$LINENO"; then :
8274   # It does; now see whether it defined to BIG_ENDIAN or not.
8275          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h.  */
8277 #include <sys/types.h>
8278                 #include <sys/param.h>
8279
8280 int
8281 main ()
8282 {
8283 #if BYTE_ORDER != BIG_ENDIAN
8284                  not big endian
8285                 #endif
8286
8287   ;
8288   return 0;
8289 }
8290 _ACEOF
8291 if ac_fn_c_try_compile "$LINENO"; then :
8292   ac_cv_c_bigendian=yes
8293 else
8294   ac_cv_c_bigendian=no
8295 fi
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 fi
8298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299     fi
8300     if test $ac_cv_c_bigendian = unknown; then
8301       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8302       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h.  */
8304 #include <limits.h>
8305
8306 int
8307 main ()
8308 {
8309 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8310               bogus endian macros
8311              #endif
8312
8313   ;
8314   return 0;
8315 }
8316 _ACEOF
8317 if ac_fn_c_try_compile "$LINENO"; then :
8318   # It does; now see whether it defined to _BIG_ENDIAN or not.
8319          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h.  */
8321 #include <limits.h>
8322
8323 int
8324 main ()
8325 {
8326 #ifndef _BIG_ENDIAN
8327                  not big endian
8328                 #endif
8329
8330   ;
8331   return 0;
8332 }
8333 _ACEOF
8334 if ac_fn_c_try_compile "$LINENO"; then :
8335   ac_cv_c_bigendian=yes
8336 else
8337   ac_cv_c_bigendian=no
8338 fi
8339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8340 fi
8341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8342     fi
8343     if test $ac_cv_c_bigendian = unknown; then
8344       # Compile a test program.
8345       if test "$cross_compiling" = yes; then :
8346   # Try to guess by grepping values from an object file.
8347          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h.  */
8349 short int ascii_mm[] =
8350                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8351                 short int ascii_ii[] =
8352                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8353                 int use_ascii (int i) {
8354                   return ascii_mm[i] + ascii_ii[i];
8355                 }
8356                 short int ebcdic_ii[] =
8357                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8358                 short int ebcdic_mm[] =
8359                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8360                 int use_ebcdic (int i) {
8361                   return ebcdic_mm[i] + ebcdic_ii[i];
8362                 }
8363                 extern int foo;
8364
8365 int
8366 main ()
8367 {
8368 return use_ascii (foo) == use_ebcdic (foo);
8369   ;
8370   return 0;
8371 }
8372 _ACEOF
8373 if ac_fn_c_try_compile "$LINENO"; then :
8374   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8375               ac_cv_c_bigendian=yes
8376             fi
8377             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8378               if test "$ac_cv_c_bigendian" = unknown; then
8379                 ac_cv_c_bigendian=no
8380               else
8381                 # finding both strings is unlikely to happen, but who knows?
8382                 ac_cv_c_bigendian=unknown
8383               fi
8384             fi
8385 fi
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 else
8388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h.  */
8390 $ac_includes_default
8391 int
8392 main ()
8393 {
8394
8395              /* Are we little or big endian?  From Harbison&Steele.  */
8396              union
8397              {
8398                long int l;
8399                char c[sizeof (long int)];
8400              } u;
8401              u.l = 1;
8402              return u.c[sizeof (long int) - 1] == 1;
8403
8404   ;
8405   return 0;
8406 }
8407 _ACEOF
8408 if ac_fn_c_try_run "$LINENO"; then :
8409   ac_cv_c_bigendian=no
8410 else
8411   ac_cv_c_bigendian=yes
8412 fi
8413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8414   conftest.$ac_objext conftest.beam conftest.$ac_ext
8415 fi
8416
8417     fi
8418 fi
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8420 $as_echo "$ac_cv_c_bigendian" >&6; }
8421  case $ac_cv_c_bigendian in #(
8422    yes)
8423      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8424 ;; #(
8425    no)
8426       ;; #(
8427    universal)
8428
8429 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8430
8431      ;; #(
8432    *)
8433      as_fn_error "unknown endianness
8434  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8435  esac
8436
8437
8438 # ----------------------
8439 # Checks for C++ headers
8440 # ----------------------
8441
8442 ac_ext=cpp
8443 ac_cpp='$CXXCPP $CPPFLAGS'
8444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8448 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8449 if test -z "$CXXCPP"; then
8450   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8451   $as_echo_n "(cached) " >&6
8452 else
8453       # Double quotes because CXXCPP needs to be expanded
8454     for CXXCPP in "$CXX -E" "/lib/cpp"
8455     do
8456       ac_preproc_ok=false
8457 for ac_cxx_preproc_warn_flag in '' yes
8458 do
8459   # Use a header file that comes with gcc, so configuring glibc
8460   # with a fresh cross-compiler works.
8461   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8462   # <limits.h> exists even on freestanding compilers.
8463   # On the NeXT, cc -E runs the code through the compiler's parser,
8464   # not just through cpp. "Syntax error" is here to catch this case.
8465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h.  */
8467 #ifdef __STDC__
8468 # include <limits.h>
8469 #else
8470 # include <assert.h>
8471 #endif
8472                      Syntax error
8473 _ACEOF
8474 if ac_fn_cxx_try_cpp "$LINENO"; then :
8475
8476 else
8477   # Broken: fails on valid input.
8478 continue
8479 fi
8480 rm -f conftest.err conftest.$ac_ext
8481
8482   # OK, works on sane cases.  Now check whether nonexistent headers
8483   # can be detected and how.
8484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h.  */
8486 #include <ac_nonexistent.h>
8487 _ACEOF
8488 if ac_fn_cxx_try_cpp "$LINENO"; then :
8489   # Broken: success on invalid input.
8490 continue
8491 else
8492   # Passes both tests.
8493 ac_preproc_ok=:
8494 break
8495 fi
8496 rm -f conftest.err conftest.$ac_ext
8497
8498 done
8499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8500 rm -f conftest.err conftest.$ac_ext
8501 if $ac_preproc_ok; then :
8502   break
8503 fi
8504
8505     done
8506     ac_cv_prog_CXXCPP=$CXXCPP
8507
8508 fi
8509   CXXCPP=$ac_cv_prog_CXXCPP
8510 else
8511   ac_cv_prog_CXXCPP=$CXXCPP
8512 fi
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8514 $as_echo "$CXXCPP" >&6; }
8515 ac_preproc_ok=false
8516 for ac_cxx_preproc_warn_flag in '' yes
8517 do
8518   # Use a header file that comes with gcc, so configuring glibc
8519   # with a fresh cross-compiler works.
8520   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8521   # <limits.h> exists even on freestanding compilers.
8522   # On the NeXT, cc -E runs the code through the compiler's parser,
8523   # not just through cpp. "Syntax error" is here to catch this case.
8524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h.  */
8526 #ifdef __STDC__
8527 # include <limits.h>
8528 #else
8529 # include <assert.h>
8530 #endif
8531                      Syntax error
8532 _ACEOF
8533 if ac_fn_cxx_try_cpp "$LINENO"; then :
8534
8535 else
8536   # Broken: fails on valid input.
8537 continue
8538 fi
8539 rm -f conftest.err conftest.$ac_ext
8540
8541   # OK, works on sane cases.  Now check whether nonexistent headers
8542   # can be detected and how.
8543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h.  */
8545 #include <ac_nonexistent.h>
8546 _ACEOF
8547 if ac_fn_cxx_try_cpp "$LINENO"; then :
8548   # Broken: success on invalid input.
8549 continue
8550 else
8551   # Passes both tests.
8552 ac_preproc_ok=:
8553 break
8554 fi
8555 rm -f conftest.err conftest.$ac_ext
8556
8557 done
8558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8559 rm -f conftest.err conftest.$ac_ext
8560 if $ac_preproc_ok; then :
8561
8562 else
8563   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8566 See \`config.log' for more details." >&5
8567 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8568 See \`config.log' for more details." >&2;}; }
8569 fi
8570
8571 ac_ext=c
8572 ac_cpp='$CPP $CPPFLAGS'
8573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8576
8577
8578 ac_ext=cpp
8579 ac_cpp='$CXXCPP $CPPFLAGS'
8580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8583
8584
8585
8586
8587 for ac_header in unordered_map
8588 do :
8589   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8590 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8591   cat >>confdefs.h <<_ACEOF
8592 #define HAVE_UNORDERED_MAP 1
8593 _ACEOF
8594
8595 fi
8596 done
8597
8598 for ac_header in tr1/unordered_map
8599 do :
8600   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8601 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8602   cat >>confdefs.h <<_ACEOF
8603 #define HAVE_TR1_UNORDERED_MAP 1
8604 _ACEOF
8605
8606 fi
8607 done
8608
8609 for ac_header in ext/hash_map
8610 do :
8611   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8612 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8613   cat >>confdefs.h <<_ACEOF
8614 #define HAVE_EXT_HASH_MAP 1
8615 _ACEOF
8616
8617 fi
8618 done
8619
8620
8621 ac_ext=c
8622 ac_cpp='$CPP $CPPFLAGS'
8623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8626
8627
8628 # --------
8629 # UNSORTED
8630 # --------
8631
8632
8633 # These libraries may be used by collect2.
8634 # We may need a special search path to get them linked.
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8636 $as_echo_n "checking for collect2 libraries... " >&6; }
8637 if test "${gcc_cv_collect2_libs+set}" = set; then :
8638   $as_echo_n "(cached) " >&6
8639 else
8640   save_LIBS="$LIBS"
8641 for libs in '' -lld -lmld \
8642                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8643                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8644 do
8645         LIBS="$libs"
8646         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h.  */
8648
8649 /* Override any GCC internal prototype to avoid an error.
8650    Use char because int might match the return type of a GCC
8651    builtin and then its argument prototype would still apply.  */
8652 #ifdef __cplusplus
8653 extern "C"
8654 #endif
8655 char ldopen ();
8656 int
8657 main ()
8658 {
8659 return ldopen ();
8660   ;
8661   return 0;
8662 }
8663 _ACEOF
8664 if ac_fn_c_try_link "$LINENO"; then :
8665   gcc_cv_collect2_libs="$libs"; break
8666 fi
8667 rm -f core conftest.err conftest.$ac_objext \
8668     conftest$ac_exeext conftest.$ac_ext
8669 done
8670 LIBS="$save_LIBS"
8671 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8672 fi
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8674 $as_echo "$gcc_cv_collect2_libs" >&6; }
8675 case $gcc_cv_collect2_libs in
8676         "none required")        ;;
8677         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8678 esac
8679
8680
8681 # When building Ada code on Alpha, we need exc_resume which is usually in
8682 # -lexc.  So test for it.
8683 save_LIBS="$LIBS"
8684 LIBS=
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8686 $as_echo_n "checking for library containing exc_resume... " >&6; }
8687 if test "${ac_cv_search_exc_resume+set}" = set; then :
8688   $as_echo_n "(cached) " >&6
8689 else
8690   ac_func_search_save_LIBS=$LIBS
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h.  */
8693
8694 /* Override any GCC internal prototype to avoid an error.
8695    Use char because int might match the return type of a GCC
8696    builtin and then its argument prototype would still apply.  */
8697 #ifdef __cplusplus
8698 extern "C"
8699 #endif
8700 char exc_resume ();
8701 int
8702 main ()
8703 {
8704 return exc_resume ();
8705   ;
8706   return 0;
8707 }
8708 _ACEOF
8709 for ac_lib in '' exc; do
8710   if test -z "$ac_lib"; then
8711     ac_res="none required"
8712   else
8713     ac_res=-l$ac_lib
8714     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8715   fi
8716   if ac_fn_c_try_link "$LINENO"; then :
8717   ac_cv_search_exc_resume=$ac_res
8718 fi
8719 rm -f core conftest.err conftest.$ac_objext \
8720     conftest$ac_exeext
8721   if test "${ac_cv_search_exc_resume+set}" = set; then :
8722   break
8723 fi
8724 done
8725 if test "${ac_cv_search_exc_resume+set}" = set; then :
8726
8727 else
8728   ac_cv_search_exc_resume=no
8729 fi
8730 rm conftest.$ac_ext
8731 LIBS=$ac_func_search_save_LIBS
8732 fi
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8734 $as_echo "$ac_cv_search_exc_resume" >&6; }
8735 ac_res=$ac_cv_search_exc_resume
8736 if test "$ac_res" != no; then :
8737   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8738
8739 fi
8740
8741 GNAT_LIBEXC="$LIBS"
8742 LIBS="$save_LIBS"
8743
8744
8745 # Some systems put ldexp and frexp in libm instead of libc; assume
8746 # they're both in the same place.  jcf-dump needs them.
8747 save_LIBS="$LIBS"
8748 LIBS=
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8750 $as_echo_n "checking for library containing ldexp... " >&6; }
8751 if test "${ac_cv_search_ldexp+set}" = set; then :
8752   $as_echo_n "(cached) " >&6
8753 else
8754   ac_func_search_save_LIBS=$LIBS
8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h.  */
8757
8758 /* Override any GCC internal prototype to avoid an error.
8759    Use char because int might match the return type of a GCC
8760    builtin and then its argument prototype would still apply.  */
8761 #ifdef __cplusplus
8762 extern "C"
8763 #endif
8764 char ldexp ();
8765 int
8766 main ()
8767 {
8768 return ldexp ();
8769   ;
8770   return 0;
8771 }
8772 _ACEOF
8773 for ac_lib in '' m; do
8774   if test -z "$ac_lib"; then
8775     ac_res="none required"
8776   else
8777     ac_res=-l$ac_lib
8778     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8779   fi
8780   if ac_fn_c_try_link "$LINENO"; then :
8781   ac_cv_search_ldexp=$ac_res
8782 fi
8783 rm -f core conftest.err conftest.$ac_objext \
8784     conftest$ac_exeext
8785   if test "${ac_cv_search_ldexp+set}" = set; then :
8786   break
8787 fi
8788 done
8789 if test "${ac_cv_search_ldexp+set}" = set; then :
8790
8791 else
8792   ac_cv_search_ldexp=no
8793 fi
8794 rm conftest.$ac_ext
8795 LIBS=$ac_func_search_save_LIBS
8796 fi
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8798 $as_echo "$ac_cv_search_ldexp" >&6; }
8799 ac_res=$ac_cv_search_ldexp
8800 if test "$ac_res" != no; then :
8801   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8802
8803 fi
8804
8805 LDEXP_LIB="$LIBS"
8806 LIBS="$save_LIBS"
8807
8808
8809 # Use <inttypes.h> only if it exists,
8810 # doesn't clash with <sys/types.h>, and declares intmax_t.
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8812 $as_echo_n "checking for inttypes.h... " >&6; }
8813 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8814   $as_echo_n "(cached) " >&6
8815 else
8816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h.  */
8818 #include <sys/types.h>
8819 #include <inttypes.h>
8820 int
8821 main ()
8822 {
8823 intmax_t i = -1;
8824   ;
8825   return 0;
8826 }
8827 _ACEOF
8828 if ac_fn_c_try_compile "$LINENO"; then :
8829   gcc_cv_header_inttypes_h=yes
8830 else
8831   gcc_cv_header_inttypes_h=no
8832 fi
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834 fi
8835
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8837 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8838 if test $gcc_cv_header_inttypes_h = yes; then
8839
8840 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8841
8842 fi
8843
8844
8845
8846 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8847         sysconf strsignal getrusage nl_langinfo \
8848         gettimeofday mbstowcs wcswidth mmap setlocale \
8849         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
8850 do :
8851   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8853 eval as_val=\$$as_ac_var
8854    if test "x$as_val" = x""yes; then :
8855   cat >>confdefs.h <<_ACEOF
8856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8857 _ACEOF
8858
8859 fi
8860 done
8861
8862
8863 if test x$ac_cv_func_mbstowcs = xyes; then
8864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8865 $as_echo_n "checking whether mbstowcs works... " >&6; }
8866 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8867   $as_echo_n "(cached) " >&6
8868 else
8869       if test "$cross_compiling" = yes; then :
8870   gcc_cv_func_mbstowcs_works=yes
8871 else
8872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h.  */
8874 #include <stdlib.h>
8875 int main()
8876 {
8877   mbstowcs(0, "", 0);
8878   return 0;
8879 }
8880 _ACEOF
8881 if ac_fn_c_try_run "$LINENO"; then :
8882   gcc_cv_func_mbstowcs_works=yes
8883 else
8884   gcc_cv_func_mbstowcs_works=no
8885 fi
8886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8887   conftest.$ac_objext conftest.beam conftest.$ac_ext
8888 fi
8889
8890 fi
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8892 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8893   if test x$gcc_cv_func_mbstowcs_works = xyes; then
8894
8895 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8896
8897   fi
8898 fi
8899
8900 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8901 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8902
8903 else
8904
8905 cat >>confdefs.h <<_ACEOF
8906 #define ssize_t int
8907 _ACEOF
8908
8909 fi
8910
8911 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8912 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8913
8914 else
8915
8916 cat >>confdefs.h <<_ACEOF
8917 #define caddr_t char *
8918 _ACEOF
8919
8920 fi
8921
8922
8923
8924 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8925 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8926   gcc_header_sys_mman_h=yes
8927 else
8928   gcc_header_sys_mman_h=no
8929 fi
8930
8931 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8932 if test "x$ac_cv_func_mmap" = x""yes; then :
8933   gcc_func_mmap=yes
8934 else
8935   gcc_func_mmap=no
8936 fi
8937
8938 if test "$gcc_header_sys_mman_h" != yes \
8939  || test "$gcc_func_mmap" != yes; then
8940    gcc_cv_func_mmap_file=no
8941    gcc_cv_func_mmap_dev_zero=no
8942    gcc_cv_func_mmap_anon=no
8943 else
8944    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8945 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8946 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8947   $as_echo_n "(cached) " >&6
8948 else
8949   # Add a system to this blacklist if
8950    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8951    # memory area containing the same data that you'd get if you applied
8952    # read() to the same fd.  The only system known to have a problem here
8953    # is VMS, where text files have record structure.
8954    case "$host_os" in
8955      vms* | ultrix*)
8956         gcc_cv_func_mmap_file=no ;;
8957      *)
8958         gcc_cv_func_mmap_file=yes;;
8959    esac
8960 fi
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8962 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8963    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8964 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8965 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8966   $as_echo_n "(cached) " >&6
8967 else
8968   # Add a system to this blacklist if it has mmap() but /dev/zero
8969    # does not exist, or if mmapping /dev/zero does not give anonymous
8970    # zeroed pages with both the following properties:
8971    # 1. If you map N consecutive pages in with one call, and then
8972    #    unmap any subset of those pages, the pages that were not
8973    #    explicitly unmapped remain accessible.
8974    # 2. If you map two adjacent blocks of memory and then unmap them
8975    #    both at once, they must both go away.
8976    # Systems known to be in this category are Windows (all variants),
8977    # VMS, and Darwin.
8978    case "$host_os" in
8979      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8980         gcc_cv_func_mmap_dev_zero=no ;;
8981      *)
8982         gcc_cv_func_mmap_dev_zero=yes;;
8983    esac
8984 fi
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8986 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8987
8988    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8989    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8990 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8991 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8992   $as_echo_n "(cached) " >&6
8993 else
8994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h.  */
8996 #include <sys/types.h>
8997 #include <sys/mman.h>
8998 #include <unistd.h>
8999
9000 #ifndef MAP_ANONYMOUS
9001 #define MAP_ANONYMOUS MAP_ANON
9002 #endif
9003
9004 int
9005 main ()
9006 {
9007 int n = MAP_ANONYMOUS;
9008   ;
9009   return 0;
9010 }
9011 _ACEOF
9012 if ac_fn_c_try_compile "$LINENO"; then :
9013   gcc_cv_decl_map_anon=yes
9014 else
9015   gcc_cv_decl_map_anon=no
9016 fi
9017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9018 fi
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9020 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9021
9022    if test $gcc_cv_decl_map_anon = no; then
9023      gcc_cv_func_mmap_anon=no
9024    else
9025      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9026 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9027 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9028   $as_echo_n "(cached) " >&6
9029 else
9030   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9031    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9032    # doesn't give anonymous zeroed pages with the same properties listed
9033    # above for use of /dev/zero.
9034    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9035    case "$host_os" in
9036      vms* | cygwin* | pe | mingw* | sco* | udk* )
9037         gcc_cv_func_mmap_anon=no ;;
9038      *)
9039         gcc_cv_func_mmap_anon=yes;;
9040    esac
9041 fi
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9043 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9044    fi
9045 fi
9046
9047 if test $gcc_cv_func_mmap_file = yes; then
9048
9049 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9050
9051 fi
9052 if test $gcc_cv_func_mmap_dev_zero = yes; then
9053
9054 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9055
9056 fi
9057 if test $gcc_cv_func_mmap_anon = yes; then
9058
9059 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9060
9061 fi
9062
9063
9064 case "${host}" in
9065 *-*-*vms*)
9066   # Under VMS, vfork works very differently than on Unix. The standard test
9067   # won't work, and it isn't easily adaptable. It makes more sense to
9068   # just force it.
9069   ac_cv_func_vfork_works=yes
9070   ;;
9071 esac
9072 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9073 if test "x$ac_cv_type_pid_t" = x""yes; then :
9074
9075 else
9076
9077 cat >>confdefs.h <<_ACEOF
9078 #define pid_t int
9079 _ACEOF
9080
9081 fi
9082
9083 for ac_header in vfork.h
9084 do :
9085   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9086 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9087   cat >>confdefs.h <<_ACEOF
9088 #define HAVE_VFORK_H 1
9089 _ACEOF
9090
9091 fi
9092 done
9093
9094 for ac_func in fork vfork
9095 do :
9096   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9097 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9098 eval as_val=\$$as_ac_var
9099    if test "x$as_val" = x""yes; then :
9100   cat >>confdefs.h <<_ACEOF
9101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9102 _ACEOF
9103
9104 fi
9105 done
9106
9107 if test "x$ac_cv_func_fork" = xyes; then
9108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9109 $as_echo_n "checking for working fork... " >&6; }
9110 if test "${ac_cv_func_fork_works+set}" = set; then :
9111   $as_echo_n "(cached) " >&6
9112 else
9113   if test "$cross_compiling" = yes; then :
9114   ac_cv_func_fork_works=cross
9115 else
9116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h.  */
9118 $ac_includes_default
9119 int
9120 main ()
9121 {
9122
9123           /* By Ruediger Kuhlmann. */
9124           return fork () < 0;
9125
9126   ;
9127   return 0;
9128 }
9129 _ACEOF
9130 if ac_fn_c_try_run "$LINENO"; then :
9131   ac_cv_func_fork_works=yes
9132 else
9133   ac_cv_func_fork_works=no
9134 fi
9135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9136   conftest.$ac_objext conftest.beam conftest.$ac_ext
9137 fi
9138
9139 fi
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9141 $as_echo "$ac_cv_func_fork_works" >&6; }
9142
9143 else
9144   ac_cv_func_fork_works=$ac_cv_func_fork
9145 fi
9146 if test "x$ac_cv_func_fork_works" = xcross; then
9147   case $host in
9148     *-*-amigaos* | *-*-msdosdjgpp*)
9149       # Override, as these systems have only a dummy fork() stub
9150       ac_cv_func_fork_works=no
9151       ;;
9152     *)
9153       ac_cv_func_fork_works=yes
9154       ;;
9155   esac
9156   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9157 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9158 fi
9159 ac_cv_func_vfork_works=$ac_cv_func_vfork
9160 if test "x$ac_cv_func_vfork" = xyes; then
9161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9162 $as_echo_n "checking for working vfork... " >&6; }
9163 if test "${ac_cv_func_vfork_works+set}" = set; then :
9164   $as_echo_n "(cached) " >&6
9165 else
9166   if test "$cross_compiling" = yes; then :
9167   ac_cv_func_vfork_works=cross
9168 else
9169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h.  */
9171 /* Thanks to Paul Eggert for this test.  */
9172 $ac_includes_default
9173 #include <sys/wait.h>
9174 #ifdef HAVE_VFORK_H
9175 # include <vfork.h>
9176 #endif
9177 /* On some sparc systems, changes by the child to local and incoming
9178    argument registers are propagated back to the parent.  The compiler
9179    is told about this with #include <vfork.h>, but some compilers
9180    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9181    static variable whose address is put into a register that is
9182    clobbered by the vfork.  */
9183 static void
9184 #ifdef __cplusplus
9185 sparc_address_test (int arg)
9186 # else
9187 sparc_address_test (arg) int arg;
9188 #endif
9189 {
9190   static pid_t child;
9191   if (!child) {
9192     child = vfork ();
9193     if (child < 0) {
9194       perror ("vfork");
9195       _exit(2);
9196     }
9197     if (!child) {
9198       arg = getpid();
9199       write(-1, "", 0);
9200       _exit (arg);
9201     }
9202   }
9203 }
9204
9205 int
9206 main ()
9207 {
9208   pid_t parent = getpid ();
9209   pid_t child;
9210
9211   sparc_address_test (0);
9212
9213   child = vfork ();
9214
9215   if (child == 0) {
9216     /* Here is another test for sparc vfork register problems.  This
9217        test uses lots of local variables, at least as many local
9218        variables as main has allocated so far including compiler
9219        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9220        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9221        reuse the register of parent for one of the local variables,
9222        since it will think that parent can't possibly be used any more
9223        in this routine.  Assigning to the local variable will thus
9224        munge parent in the parent process.  */
9225     pid_t
9226       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9227       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9228     /* Convince the compiler that p..p7 are live; otherwise, it might
9229        use the same hardware register for all 8 local variables.  */
9230     if (p != p1 || p != p2 || p != p3 || p != p4
9231         || p != p5 || p != p6 || p != p7)
9232       _exit(1);
9233
9234     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9235        from child file descriptors.  If the child closes a descriptor
9236        before it execs or exits, this munges the parent's descriptor
9237        as well.  Test for this by closing stdout in the child.  */
9238     _exit(close(fileno(stdout)) != 0);
9239   } else {
9240     int status;
9241     struct stat st;
9242
9243     while (wait(&status) != child)
9244       ;
9245     return (
9246          /* Was there some problem with vforking?  */
9247          child < 0
9248
9249          /* Did the child fail?  (This shouldn't happen.)  */
9250          || status
9251
9252          /* Did the vfork/compiler bug occur?  */
9253          || parent != getpid()
9254
9255          /* Did the file descriptor bug occur?  */
9256          || fstat(fileno(stdout), &st) != 0
9257          );
9258   }
9259 }
9260 _ACEOF
9261 if ac_fn_c_try_run "$LINENO"; then :
9262   ac_cv_func_vfork_works=yes
9263 else
9264   ac_cv_func_vfork_works=no
9265 fi
9266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9267   conftest.$ac_objext conftest.beam conftest.$ac_ext
9268 fi
9269
9270 fi
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9272 $as_echo "$ac_cv_func_vfork_works" >&6; }
9273
9274 fi;
9275 if test "x$ac_cv_func_fork_works" = xcross; then
9276   ac_cv_func_vfork_works=$ac_cv_func_vfork
9277   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9278 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9279 fi
9280
9281 if test "x$ac_cv_func_vfork_works" = xyes; then
9282
9283 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9284
9285 else
9286
9287 $as_echo "#define vfork fork" >>confdefs.h
9288
9289 fi
9290 if test "x$ac_cv_func_fork_works" = xyes; then
9291
9292 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9293
9294 fi
9295
9296
9297 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9298 # iconv() prototype.
9299
9300       if test "X$prefix" = "XNONE"; then
9301     acl_final_prefix="$ac_default_prefix"
9302   else
9303     acl_final_prefix="$prefix"
9304   fi
9305   if test "X$exec_prefix" = "XNONE"; then
9306     acl_final_exec_prefix='${prefix}'
9307   else
9308     acl_final_exec_prefix="$exec_prefix"
9309   fi
9310   acl_save_prefix="$prefix"
9311   prefix="$acl_final_prefix"
9312   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9313   prefix="$acl_save_prefix"
9314
9315
9316 # Check whether --with-gnu-ld was given.
9317 if test "${with_gnu_ld+set}" = set; then :
9318   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9319 else
9320   with_gnu_ld=no
9321 fi
9322
9323 # Prepare PATH_SEPARATOR.
9324 # The user is always right.
9325 if test "${PATH_SEPARATOR+set}" != set; then
9326   echo "#! /bin/sh" >conf$$.sh
9327   echo  "exit 0"   >>conf$$.sh
9328   chmod +x conf$$.sh
9329   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9330     PATH_SEPARATOR=';'
9331   else
9332     PATH_SEPARATOR=:
9333   fi
9334   rm -f conf$$.sh
9335 fi
9336 ac_prog=ld
9337 if test "$GCC" = yes; then
9338   # Check if gcc -print-prog-name=ld gives a path.
9339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9340 $as_echo_n "checking for ld used by GCC... " >&6; }
9341   case $host in
9342   *-*-mingw*)
9343     # gcc leaves a trailing carriage return which upsets mingw
9344     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9345   *)
9346     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9347   esac
9348   case $ac_prog in
9349     # Accept absolute paths.
9350     [\\/]* | [A-Za-z]:[\\/]*)
9351       re_direlt='/[^/][^/]*/\.\./'
9352       # Canonicalize the path of ld
9353       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9354       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9355         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9356       done
9357       test -z "$LD" && LD="$ac_prog"
9358       ;;
9359   "")
9360     # If it fails, then pretend we aren't using GCC.
9361     ac_prog=ld
9362     ;;
9363   *)
9364     # If it is relative, then search for the first ld in PATH.
9365     with_gnu_ld=unknown
9366     ;;
9367   esac
9368 elif test "$with_gnu_ld" = yes; then
9369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9370 $as_echo_n "checking for GNU ld... " >&6; }
9371 else
9372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9373 $as_echo_n "checking for non-GNU ld... " >&6; }
9374 fi
9375 if test "${acl_cv_path_LD+set}" = set; then :
9376   $as_echo_n "(cached) " >&6
9377 else
9378   if test -z "$LD"; then
9379   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9380   for ac_dir in $PATH; do
9381     test -z "$ac_dir" && ac_dir=.
9382     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9383       acl_cv_path_LD="$ac_dir/$ac_prog"
9384       # Check to see if the program is GNU ld.  I'd rather use --version,
9385       # but apparently some GNU ld's only accept -v.
9386       # Break only if it was the GNU/non-GNU ld that we prefer.
9387       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9388         test "$with_gnu_ld" != no && break
9389       else
9390         test "$with_gnu_ld" != yes && break
9391       fi
9392     fi
9393   done
9394   IFS="$ac_save_ifs"
9395 else
9396   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9397 fi
9398 fi
9399
9400 LD="$acl_cv_path_LD"
9401 if test -n "$LD"; then
9402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9403 $as_echo "$LD" >&6; }
9404 else
9405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9406 $as_echo "no" >&6; }
9407 fi
9408 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9410 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9411 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9412   $as_echo_n "(cached) " >&6
9413 else
9414   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9415 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9416   acl_cv_prog_gnu_ld=yes
9417 else
9418   acl_cv_prog_gnu_ld=no
9419 fi
9420 fi
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9422 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9423 with_gnu_ld=$acl_cv_prog_gnu_ld
9424
9425
9426
9427                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9428 $as_echo_n "checking for shared library run path origin... " >&6; }
9429 if test "${acl_cv_rpath+set}" = set; then :
9430   $as_echo_n "(cached) " >&6
9431 else
9432
9433     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9434     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9435     . ./conftest.sh
9436     rm -f ./conftest.sh
9437     acl_cv_rpath=done
9438
9439 fi
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9441 $as_echo "$acl_cv_rpath" >&6; }
9442   wl="$acl_cv_wl"
9443   libext="$acl_cv_libext"
9444   shlibext="$acl_cv_shlibext"
9445   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9446   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9447   hardcode_direct="$acl_cv_hardcode_direct"
9448   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9449     # Check whether --enable-rpath was given.
9450 if test "${enable_rpath+set}" = set; then :
9451   enableval=$enable_rpath; :
9452 else
9453   enable_rpath=yes
9454 fi
9455
9456
9457
9458
9459
9460
9461
9462
9463     use_additional=yes
9464
9465   acl_save_prefix="$prefix"
9466   prefix="$acl_final_prefix"
9467   acl_save_exec_prefix="$exec_prefix"
9468   exec_prefix="$acl_final_exec_prefix"
9469
9470     eval additional_includedir=\"$includedir\"
9471     eval additional_libdir=\"$libdir\"
9472
9473   exec_prefix="$acl_save_exec_prefix"
9474   prefix="$acl_save_prefix"
9475
9476
9477 # Check whether --with-libiconv-prefix was given.
9478 if test "${with_libiconv_prefix+set}" = set; then :
9479   withval=$with_libiconv_prefix;
9480     if test "X$withval" = "Xno"; then
9481       use_additional=no
9482     else
9483       if test "X$withval" = "X"; then
9484
9485   acl_save_prefix="$prefix"
9486   prefix="$acl_final_prefix"
9487   acl_save_exec_prefix="$exec_prefix"
9488   exec_prefix="$acl_final_exec_prefix"
9489
9490           eval additional_includedir=\"$includedir\"
9491           eval additional_libdir=\"$libdir\"
9492
9493   exec_prefix="$acl_save_exec_prefix"
9494   prefix="$acl_save_prefix"
9495
9496       else
9497         additional_includedir="$withval/include"
9498         additional_libdir="$withval/lib"
9499       fi
9500     fi
9501
9502 fi
9503
9504       LIBICONV=
9505   LTLIBICONV=
9506   INCICONV=
9507   rpathdirs=
9508   ltrpathdirs=
9509   names_already_handled=
9510   names_next_round='iconv '
9511   while test -n "$names_next_round"; do
9512     names_this_round="$names_next_round"
9513     names_next_round=
9514     for name in $names_this_round; do
9515       already_handled=
9516       for n in $names_already_handled; do
9517         if test "$n" = "$name"; then
9518           already_handled=yes
9519           break
9520         fi
9521       done
9522       if test -z "$already_handled"; then
9523         names_already_handled="$names_already_handled $name"
9524                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9525         eval value=\"\$HAVE_LIB$uppername\"
9526         if test -n "$value"; then
9527           if test "$value" = yes; then
9528             eval value=\"\$LIB$uppername\"
9529             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9530             eval value=\"\$LTLIB$uppername\"
9531             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9532           else
9533                                     :
9534           fi
9535         else
9536                               found_dir=
9537           found_la=
9538           found_so=
9539           found_a=
9540           if test $use_additional = yes; then
9541             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9542               found_dir="$additional_libdir"
9543               found_so="$additional_libdir/lib$name.$shlibext"
9544               if test -f "$additional_libdir/lib$name.la"; then
9545                 found_la="$additional_libdir/lib$name.la"
9546               fi
9547             else
9548               if test -f "$additional_libdir/lib$name.$libext"; then
9549                 found_dir="$additional_libdir"
9550                 found_a="$additional_libdir/lib$name.$libext"
9551                 if test -f "$additional_libdir/lib$name.la"; then
9552                   found_la="$additional_libdir/lib$name.la"
9553                 fi
9554               fi
9555             fi
9556           fi
9557           if test "X$found_dir" = "X"; then
9558             for x in $LDFLAGS $LTLIBICONV; do
9559
9560   acl_save_prefix="$prefix"
9561   prefix="$acl_final_prefix"
9562   acl_save_exec_prefix="$exec_prefix"
9563   exec_prefix="$acl_final_exec_prefix"
9564   eval x=\"$x\"
9565   exec_prefix="$acl_save_exec_prefix"
9566   prefix="$acl_save_prefix"
9567
9568               case "$x" in
9569                 -L*)
9570                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9571                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9572                     found_dir="$dir"
9573                     found_so="$dir/lib$name.$shlibext"
9574                     if test -f "$dir/lib$name.la"; then
9575                       found_la="$dir/lib$name.la"
9576                     fi
9577                   else
9578                     if test -f "$dir/lib$name.$libext"; then
9579                       found_dir="$dir"
9580                       found_a="$dir/lib$name.$libext"
9581                       if test -f "$dir/lib$name.la"; then
9582                         found_la="$dir/lib$name.la"
9583                       fi
9584                     fi
9585                   fi
9586                   ;;
9587               esac
9588               if test "X$found_dir" != "X"; then
9589                 break
9590               fi
9591             done
9592           fi
9593           if test "X$found_dir" != "X"; then
9594                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9595             if test "X$found_so" != "X"; then
9596                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9597                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9598               else
9599                                                                                 haveit=
9600                 for x in $ltrpathdirs; do
9601                   if test "X$x" = "X$found_dir"; then
9602                     haveit=yes
9603                     break
9604                   fi
9605                 done
9606                 if test -z "$haveit"; then
9607                   ltrpathdirs="$ltrpathdirs $found_dir"
9608                 fi
9609                                 if test "$hardcode_direct" = yes; then
9610                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9611                 else
9612                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9613                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9614                                                             haveit=
9615                     for x in $rpathdirs; do
9616                       if test "X$x" = "X$found_dir"; then
9617                         haveit=yes
9618                         break
9619                       fi
9620                     done
9621                     if test -z "$haveit"; then
9622                       rpathdirs="$rpathdirs $found_dir"
9623                     fi
9624                   else
9625                                                                                 haveit=
9626                     for x in $LDFLAGS $LIBICONV; do
9627
9628   acl_save_prefix="$prefix"
9629   prefix="$acl_final_prefix"
9630   acl_save_exec_prefix="$exec_prefix"
9631   exec_prefix="$acl_final_exec_prefix"
9632   eval x=\"$x\"
9633   exec_prefix="$acl_save_exec_prefix"
9634   prefix="$acl_save_prefix"
9635
9636                       if test "X$x" = "X-L$found_dir"; then
9637                         haveit=yes
9638                         break
9639                       fi
9640                     done
9641                     if test -z "$haveit"; then
9642                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9643                     fi
9644                     if test "$hardcode_minus_L" != no; then
9645                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9646                     else
9647                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9648                     fi
9649                   fi
9650                 fi
9651               fi
9652             else
9653               if test "X$found_a" != "X"; then
9654                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9655               else
9656                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9657               fi
9658             fi
9659                         additional_includedir=
9660             case "$found_dir" in
9661               */lib | */lib/)
9662                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9663                 additional_includedir="$basedir/include"
9664                 ;;
9665             esac
9666             if test "X$additional_includedir" != "X"; then
9667                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9668                 haveit=
9669                 if test "X$additional_includedir" = "X/usr/local/include"; then
9670                   if test -n "$GCC"; then
9671                     case $host_os in
9672                       linux*) haveit=yes;;
9673                     esac
9674                   fi
9675                 fi
9676                 if test -z "$haveit"; then
9677                   for x in $CPPFLAGS $INCICONV; do
9678
9679   acl_save_prefix="$prefix"
9680   prefix="$acl_final_prefix"
9681   acl_save_exec_prefix="$exec_prefix"
9682   exec_prefix="$acl_final_exec_prefix"
9683   eval x=\"$x\"
9684   exec_prefix="$acl_save_exec_prefix"
9685   prefix="$acl_save_prefix"
9686
9687                     if test "X$x" = "X-I$additional_includedir"; then
9688                       haveit=yes
9689                       break
9690                     fi
9691                   done
9692                   if test -z "$haveit"; then
9693                     if test -d "$additional_includedir"; then
9694                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9695                     fi
9696                   fi
9697                 fi
9698               fi
9699             fi
9700                         if test -n "$found_la"; then
9701                                                         save_libdir="$libdir"
9702               case "$found_la" in
9703                 */* | *\\*) . "$found_la" ;;
9704                 *) . "./$found_la" ;;
9705               esac
9706               libdir="$save_libdir"
9707                             for dep in $dependency_libs; do
9708                 case "$dep" in
9709                   -L*)
9710                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9711                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9712                       haveit=
9713                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9714                         if test -n "$GCC"; then
9715                           case $host_os in
9716                             linux*) haveit=yes;;
9717                           esac
9718                         fi
9719                       fi
9720                       if test -z "$haveit"; then
9721                         haveit=
9722                         for x in $LDFLAGS $LIBICONV; do
9723
9724   acl_save_prefix="$prefix"
9725   prefix="$acl_final_prefix"
9726   acl_save_exec_prefix="$exec_prefix"
9727   exec_prefix="$acl_final_exec_prefix"
9728   eval x=\"$x\"
9729   exec_prefix="$acl_save_exec_prefix"
9730   prefix="$acl_save_prefix"
9731
9732                           if test "X$x" = "X-L$additional_libdir"; then
9733                             haveit=yes
9734                             break
9735                           fi
9736                         done
9737                         if test -z "$haveit"; then
9738                           if test -d "$additional_libdir"; then
9739                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9740                           fi
9741                         fi
9742                         haveit=
9743                         for x in $LDFLAGS $LTLIBICONV; do
9744
9745   acl_save_prefix="$prefix"
9746   prefix="$acl_final_prefix"
9747   acl_save_exec_prefix="$exec_prefix"
9748   exec_prefix="$acl_final_exec_prefix"
9749   eval x=\"$x\"
9750   exec_prefix="$acl_save_exec_prefix"
9751   prefix="$acl_save_prefix"
9752
9753                           if test "X$x" = "X-L$additional_libdir"; then
9754                             haveit=yes
9755                             break
9756                           fi
9757                         done
9758                         if test -z "$haveit"; then
9759                           if test -d "$additional_libdir"; then
9760                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9761                           fi
9762                         fi
9763                       fi
9764                     fi
9765                     ;;
9766                   -R*)
9767                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9768                     if test "$enable_rpath" != no; then
9769                                                                   haveit=
9770                       for x in $rpathdirs; do
9771                         if test "X$x" = "X$dir"; then
9772                           haveit=yes
9773                           break
9774                         fi
9775                       done
9776                       if test -z "$haveit"; then
9777                         rpathdirs="$rpathdirs $dir"
9778                       fi
9779                                                                   haveit=
9780                       for x in $ltrpathdirs; do
9781                         if test "X$x" = "X$dir"; then
9782                           haveit=yes
9783                           break
9784                         fi
9785                       done
9786                       if test -z "$haveit"; then
9787                         ltrpathdirs="$ltrpathdirs $dir"
9788                       fi
9789                     fi
9790                     ;;
9791                   -l*)
9792                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9793                     ;;
9794                   *.la)
9795                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9796                     ;;
9797                   *)
9798                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9799                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9800                     ;;
9801                 esac
9802               done
9803             fi
9804           else
9805                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9806             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9807           fi
9808         fi
9809       fi
9810     done
9811   done
9812   if test "X$rpathdirs" != "X"; then
9813     if test -n "$hardcode_libdir_separator"; then
9814                         alldirs=
9815       for found_dir in $rpathdirs; do
9816         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9817       done
9818             acl_save_libdir="$libdir"
9819       libdir="$alldirs"
9820       eval flag=\"$hardcode_libdir_flag_spec\"
9821       libdir="$acl_save_libdir"
9822       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9823     else
9824             for found_dir in $rpathdirs; do
9825         acl_save_libdir="$libdir"
9826         libdir="$found_dir"
9827         eval flag=\"$hardcode_libdir_flag_spec\"
9828         libdir="$acl_save_libdir"
9829         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9830       done
9831     fi
9832   fi
9833   if test "X$ltrpathdirs" != "X"; then
9834             for found_dir in $ltrpathdirs; do
9835       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9836     done
9837   fi
9838
9839
9840 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
9841   ac_ext=cpp
9842 ac_cpp='$CXXCPP $CPPFLAGS'
9843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9846
9847
9848
9849
9850
9851
9852           am_save_CPPFLAGS="$CPPFLAGS"
9853
9854   for element in $INCICONV; do
9855     haveit=
9856     for x in $CPPFLAGS; do
9857
9858   acl_save_prefix="$prefix"
9859   prefix="$acl_final_prefix"
9860   acl_save_exec_prefix="$exec_prefix"
9861   exec_prefix="$acl_final_exec_prefix"
9862   eval x=\"$x\"
9863   exec_prefix="$acl_save_exec_prefix"
9864   prefix="$acl_save_prefix"
9865
9866       if test "X$x" = "X$element"; then
9867         haveit=yes
9868         break
9869       fi
9870     done
9871     if test -z "$haveit"; then
9872       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9873     fi
9874   done
9875
9876
9877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9878 $as_echo_n "checking for iconv... " >&6; }
9879 if test "${am_cv_func_iconv+set}" = set; then :
9880   $as_echo_n "(cached) " >&6
9881 else
9882
9883     am_cv_func_iconv="no, consider installing GNU libiconv"
9884     am_cv_lib_iconv=no
9885     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h.  */
9887 #include <stdlib.h>
9888 #include <iconv.h>
9889 int
9890 main ()
9891 {
9892 iconv_t cd = iconv_open("","");
9893        iconv(cd,NULL,NULL,NULL,NULL);
9894        iconv_close(cd);
9895   ;
9896   return 0;
9897 }
9898 _ACEOF
9899 if ac_fn_cxx_try_link "$LINENO"; then :
9900   am_cv_func_iconv=yes
9901 fi
9902 rm -f core conftest.err conftest.$ac_objext \
9903     conftest$ac_exeext conftest.$ac_ext
9904     if test "$am_cv_func_iconv" != yes; then
9905       am_save_LIBS="$LIBS"
9906       LIBS="$LIBS $LIBICONV"
9907       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908 /* end confdefs.h.  */
9909 #include <stdlib.h>
9910 #include <iconv.h>
9911 int
9912 main ()
9913 {
9914 iconv_t cd = iconv_open("","");
9915          iconv(cd,NULL,NULL,NULL,NULL);
9916          iconv_close(cd);
9917   ;
9918   return 0;
9919 }
9920 _ACEOF
9921 if ac_fn_cxx_try_link "$LINENO"; then :
9922   am_cv_lib_iconv=yes
9923         am_cv_func_iconv=yes
9924 fi
9925 rm -f core conftest.err conftest.$ac_objext \
9926     conftest$ac_exeext conftest.$ac_ext
9927       LIBS="$am_save_LIBS"
9928     fi
9929
9930 fi
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9932 $as_echo "$am_cv_func_iconv" >&6; }
9933   if test "$am_cv_func_iconv" = yes; then
9934
9935 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9936
9937   fi
9938   if test "$am_cv_lib_iconv" = yes; then
9939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9940 $as_echo_n "checking how to link with libiconv... " >&6; }
9941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9942 $as_echo "$LIBICONV" >&6; }
9943   else
9944             CPPFLAGS="$am_save_CPPFLAGS"
9945     LIBICONV=
9946     LTLIBICONV=
9947   fi
9948
9949
9950
9951   if test "$am_cv_func_iconv" = yes; then
9952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9953 $as_echo_n "checking for iconv declaration... " >&6; }
9954     if test "${am_cv_proto_iconv+set}" = set; then :
9955   $as_echo_n "(cached) " >&6
9956 else
9957
9958       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h.  */
9960
9961 #include <stdlib.h>
9962 #include <iconv.h>
9963 extern
9964 #ifdef __cplusplus
9965 "C"
9966 #endif
9967 #if defined(__STDC__) || defined(__cplusplus)
9968 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9969 #else
9970 size_t iconv();
9971 #endif
9972
9973 int
9974 main ()
9975 {
9976
9977   ;
9978   return 0;
9979 }
9980 _ACEOF
9981 if ac_fn_cxx_try_compile "$LINENO"; then :
9982   am_cv_proto_iconv_arg1=""
9983 else
9984   am_cv_proto_iconv_arg1="const"
9985 fi
9986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9987       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);"
9988 fi
9989
9990     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9992          }$am_cv_proto_iconv" >&5
9993 $as_echo "${ac_t:-
9994          }$am_cv_proto_iconv" >&6; }
9995
9996 cat >>confdefs.h <<_ACEOF
9997 #define ICONV_CONST $am_cv_proto_iconv_arg1
9998 _ACEOF
9999
10000   fi
10001
10002    ac_ext=c
10003 ac_cpp='$CPP $CPPFLAGS'
10004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10007
10008 else
10009
10010
10011
10012
10013
10014           am_save_CPPFLAGS="$CPPFLAGS"
10015
10016   for element in $INCICONV; do
10017     haveit=
10018     for x in $CPPFLAGS; do
10019
10020   acl_save_prefix="$prefix"
10021   prefix="$acl_final_prefix"
10022   acl_save_exec_prefix="$exec_prefix"
10023   exec_prefix="$acl_final_exec_prefix"
10024   eval x=\"$x\"
10025   exec_prefix="$acl_save_exec_prefix"
10026   prefix="$acl_save_prefix"
10027
10028       if test "X$x" = "X$element"; then
10029         haveit=yes
10030         break
10031       fi
10032     done
10033     if test -z "$haveit"; then
10034       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10035     fi
10036   done
10037
10038
10039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10040 $as_echo_n "checking for iconv... " >&6; }
10041 if test "${am_cv_func_iconv+set}" = set; then :
10042   $as_echo_n "(cached) " >&6
10043 else
10044
10045     am_cv_func_iconv="no, consider installing GNU libiconv"
10046     am_cv_lib_iconv=no
10047     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h.  */
10049 #include <stdlib.h>
10050 #include <iconv.h>
10051 int
10052 main ()
10053 {
10054 iconv_t cd = iconv_open("","");
10055        iconv(cd,NULL,NULL,NULL,NULL);
10056        iconv_close(cd);
10057   ;
10058   return 0;
10059 }
10060 _ACEOF
10061 if ac_fn_c_try_link "$LINENO"; then :
10062   am_cv_func_iconv=yes
10063 fi
10064 rm -f core conftest.err conftest.$ac_objext \
10065     conftest$ac_exeext conftest.$ac_ext
10066     if test "$am_cv_func_iconv" != yes; then
10067       am_save_LIBS="$LIBS"
10068       LIBS="$LIBS $LIBICONV"
10069       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10070 /* end confdefs.h.  */
10071 #include <stdlib.h>
10072 #include <iconv.h>
10073 int
10074 main ()
10075 {
10076 iconv_t cd = iconv_open("","");
10077          iconv(cd,NULL,NULL,NULL,NULL);
10078          iconv_close(cd);
10079   ;
10080   return 0;
10081 }
10082 _ACEOF
10083 if ac_fn_c_try_link "$LINENO"; then :
10084   am_cv_lib_iconv=yes
10085         am_cv_func_iconv=yes
10086 fi
10087 rm -f core conftest.err conftest.$ac_objext \
10088     conftest$ac_exeext conftest.$ac_ext
10089       LIBS="$am_save_LIBS"
10090     fi
10091
10092 fi
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10094 $as_echo "$am_cv_func_iconv" >&6; }
10095   if test "$am_cv_func_iconv" = yes; then
10096
10097 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10098
10099   fi
10100   if test "$am_cv_lib_iconv" = yes; then
10101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10102 $as_echo_n "checking how to link with libiconv... " >&6; }
10103     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10104 $as_echo "$LIBICONV" >&6; }
10105   else
10106             CPPFLAGS="$am_save_CPPFLAGS"
10107     LIBICONV=
10108     LTLIBICONV=
10109   fi
10110
10111
10112
10113   if test "$am_cv_func_iconv" = yes; then
10114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10115 $as_echo_n "checking for iconv declaration... " >&6; }
10116     if test "${am_cv_proto_iconv+set}" = set; then :
10117   $as_echo_n "(cached) " >&6
10118 else
10119
10120       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h.  */
10122
10123 #include <stdlib.h>
10124 #include <iconv.h>
10125 extern
10126 #ifdef __cplusplus
10127 "C"
10128 #endif
10129 #if defined(__STDC__) || defined(__cplusplus)
10130 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10131 #else
10132 size_t iconv();
10133 #endif
10134
10135 int
10136 main ()
10137 {
10138
10139   ;
10140   return 0;
10141 }
10142 _ACEOF
10143 if ac_fn_c_try_compile "$LINENO"; then :
10144   am_cv_proto_iconv_arg1=""
10145 else
10146   am_cv_proto_iconv_arg1="const"
10147 fi
10148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10149       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);"
10150 fi
10151
10152     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10153     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10154          }$am_cv_proto_iconv" >&5
10155 $as_echo "${ac_t:-
10156          }$am_cv_proto_iconv" >&6; }
10157
10158 cat >>confdefs.h <<_ACEOF
10159 #define ICONV_CONST $am_cv_proto_iconv_arg1
10160 _ACEOF
10161
10162   fi
10163
10164 fi
10165
10166 # Until we have in-tree GNU iconv:
10167 LIBICONV_DEP=
10168
10169
10170
10171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10172 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10173 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10174   $as_echo_n "(cached) " >&6
10175 else
10176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h.  */
10178 #include <locale.h>
10179 int
10180 main ()
10181 {
10182 return LC_MESSAGES
10183   ;
10184   return 0;
10185 }
10186 _ACEOF
10187 if ac_fn_c_try_link "$LINENO"; then :
10188   am_cv_val_LC_MESSAGES=yes
10189 else
10190   am_cv_val_LC_MESSAGES=no
10191 fi
10192 rm -f core conftest.err conftest.$ac_objext \
10193     conftest$ac_exeext conftest.$ac_ext
10194 fi
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10196 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10197   if test $am_cv_val_LC_MESSAGES = yes; then
10198
10199 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10200
10201   fi
10202
10203
10204
10205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10206 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10207 if test "${am_cv_langinfo_codeset+set}" = set; then :
10208   $as_echo_n "(cached) " >&6
10209 else
10210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h.  */
10212 #include <langinfo.h>
10213 int
10214 main ()
10215 {
10216 char* cs = nl_langinfo(CODESET);
10217   ;
10218   return 0;
10219 }
10220 _ACEOF
10221 if ac_fn_c_try_link "$LINENO"; then :
10222   am_cv_langinfo_codeset=yes
10223 else
10224   am_cv_langinfo_codeset=no
10225 fi
10226 rm -f core conftest.err conftest.$ac_objext \
10227     conftest$ac_exeext conftest.$ac_ext
10228
10229 fi
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10231 $as_echo "$am_cv_langinfo_codeset" >&6; }
10232   if test $am_cv_langinfo_codeset = yes; then
10233
10234 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10235
10236   fi
10237
10238
10239 # We will need to find libiberty.h and ansidecl.h
10240 saved_CFLAGS="$CFLAGS"
10241 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10242 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10243         strsignal strstr strverscmp \
10244         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10245         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
10246 do
10247   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10249 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10250 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10251   $as_echo_n "(cached) " >&6
10252 else
10253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h.  */
10255 #undef $ac_tr_decl
10256 #define $ac_tr_decl 1
10257
10258 #include "ansidecl.h"
10259 #include "system.h"
10260
10261 int
10262 main ()
10263 {
10264 #ifndef $ac_func
10265 char *(*pfn) = (char *(*)) $ac_func ;
10266 #endif
10267   ;
10268   return 0;
10269 }
10270 _ACEOF
10271 if ac_fn_c_try_compile "$LINENO"; then :
10272   eval "gcc_cv_have_decl_$ac_func=yes"
10273 else
10274   eval "gcc_cv_have_decl_$ac_func=no"
10275 fi
10276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10277 fi
10278
10279 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10281 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10282 #define $ac_tr_decl 1
10283 _ACEOF
10284
10285 else
10286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10287 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10288 #define $ac_tr_decl 0
10289 _ACEOF
10290
10291 fi
10292
10293 done
10294
10295
10296 for ac_func in getrlimit setrlimit getrusage
10297 do
10298   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10300 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10301 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10302   $as_echo_n "(cached) " >&6
10303 else
10304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10305 /* end confdefs.h.  */
10306 #undef $ac_tr_decl
10307 #define $ac_tr_decl 1
10308
10309 #include "ansidecl.h"
10310 #include "system.h"
10311 #ifdef HAVE_SYS_RESOURCE_H
10312 #include <sys/resource.h>
10313 #endif
10314
10315
10316 int
10317 main ()
10318 {
10319 #ifndef $ac_func
10320 char *(*pfn) = (char *(*)) $ac_func ;
10321 #endif
10322   ;
10323   return 0;
10324 }
10325 _ACEOF
10326 if ac_fn_c_try_compile "$LINENO"; then :
10327   eval "gcc_cv_have_decl_$ac_func=yes"
10328 else
10329   eval "gcc_cv_have_decl_$ac_func=no"
10330 fi
10331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10332 fi
10333
10334 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10336 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10337 #define $ac_tr_decl 1
10338 _ACEOF
10339
10340 else
10341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10343 #define $ac_tr_decl 0
10344 _ACEOF
10345
10346 fi
10347
10348 done
10349
10350
10351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10352 /* end confdefs.h.  */
10353
10354 #include "ansidecl.h"
10355 #include "system.h"
10356 #ifdef HAVE_SYS_RESOURCE_H
10357 #include <sys/resource.h>
10358 #endif
10359
10360 int
10361 main ()
10362 {
10363 rlim_t l = 0;
10364   ;
10365   return 0;
10366 }
10367 _ACEOF
10368 if ac_fn_c_try_compile "$LINENO"; then :
10369
10370 else
10371
10372 $as_echo "#define rlim_t long" >>confdefs.h
10373
10374 fi
10375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10376
10377 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10378 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10379 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10380 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10381 for ac_func in ldgetname
10382 do
10383   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10385 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10386 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10387   $as_echo_n "(cached) " >&6
10388 else
10389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390 /* end confdefs.h.  */
10391 #undef $ac_tr_decl
10392 #define $ac_tr_decl 1
10393
10394 #include "ansidecl.h"
10395 #include "system.h"
10396 #ifdef HAVE_LDFCN_H
10397 #undef FREAD
10398 #undef FWRITE
10399 #include <ldfcn.h>
10400 #endif
10401
10402
10403 int
10404 main ()
10405 {
10406 #ifndef $ac_func
10407 char *(*pfn) = (char *(*)) $ac_func ;
10408 #endif
10409   ;
10410   return 0;
10411 }
10412 _ACEOF
10413 if ac_fn_c_try_compile "$LINENO"; then :
10414   eval "gcc_cv_have_decl_$ac_func=yes"
10415 else
10416   eval "gcc_cv_have_decl_$ac_func=no"
10417 fi
10418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10419 fi
10420
10421 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10423 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10424 #define $ac_tr_decl 1
10425 _ACEOF
10426
10427 else
10428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10429 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10430 #define $ac_tr_decl 0
10431 _ACEOF
10432
10433 fi
10434
10435 done
10436
10437
10438 for ac_func in times
10439 do
10440   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10442 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10443 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10444   $as_echo_n "(cached) " >&6
10445 else
10446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h.  */
10448 #undef $ac_tr_decl
10449 #define $ac_tr_decl 1
10450
10451 #include "ansidecl.h"
10452 #include "system.h"
10453 #ifdef HAVE_SYS_TIMES_H
10454 #include <sys/times.h>
10455 #endif
10456
10457
10458 int
10459 main ()
10460 {
10461 #ifndef $ac_func
10462 char *(*pfn) = (char *(*)) $ac_func ;
10463 #endif
10464   ;
10465   return 0;
10466 }
10467 _ACEOF
10468 if ac_fn_c_try_compile "$LINENO"; then :
10469   eval "gcc_cv_have_decl_$ac_func=yes"
10470 else
10471   eval "gcc_cv_have_decl_$ac_func=no"
10472 fi
10473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10474 fi
10475
10476 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10478 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10479 #define $ac_tr_decl 1
10480 _ACEOF
10481
10482 else
10483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10484 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10485 #define $ac_tr_decl 0
10486 _ACEOF
10487
10488 fi
10489
10490 done
10491
10492
10493 for ac_func in sigaltstack
10494 do
10495   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10497 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10498 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10499   $as_echo_n "(cached) " >&6
10500 else
10501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10502 /* end confdefs.h.  */
10503 #undef $ac_tr_decl
10504 #define $ac_tr_decl 1
10505
10506 #include "ansidecl.h"
10507 #include "system.h"
10508 #include <signal.h>
10509
10510
10511 int
10512 main ()
10513 {
10514 #ifndef $ac_func
10515 char *(*pfn) = (char *(*)) $ac_func ;
10516 #endif
10517   ;
10518   return 0;
10519 }
10520 _ACEOF
10521 if ac_fn_c_try_compile "$LINENO"; then :
10522   eval "gcc_cv_have_decl_$ac_func=yes"
10523 else
10524   eval "gcc_cv_have_decl_$ac_func=no"
10525 fi
10526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10527 fi
10528
10529 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10531 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10532 #define $ac_tr_decl 1
10533 _ACEOF
10534
10535 else
10536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10537 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10538 #define $ac_tr_decl 0
10539 _ACEOF
10540
10541 fi
10542
10543 done
10544
10545
10546 # More time-related stuff.
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10548 $as_echo_n "checking for struct tms... " >&6; }
10549 if test "${ac_cv_struct_tms+set}" = set; then :
10550   $as_echo_n "(cached) " >&6
10551 else
10552
10553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10554 /* end confdefs.h.  */
10555
10556 #include "ansidecl.h"
10557 #include "system.h"
10558 #ifdef HAVE_SYS_TIMES_H
10559 #include <sys/times.h>
10560 #endif
10561
10562 int
10563 main ()
10564 {
10565 struct tms tms;
10566   ;
10567   return 0;
10568 }
10569 _ACEOF
10570 if ac_fn_c_try_compile "$LINENO"; then :
10571   ac_cv_struct_tms=yes
10572 else
10573   ac_cv_struct_tms=no
10574 fi
10575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10576 fi
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10578 $as_echo "$ac_cv_struct_tms" >&6; }
10579 if test $ac_cv_struct_tms = yes; then
10580
10581 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10582
10583 fi
10584
10585 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10586 # revisit after autoconf 2.50.
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10588 $as_echo_n "checking for clock_t... " >&6; }
10589 if test "${gcc_cv_type_clock_t+set}" = set; then :
10590   $as_echo_n "(cached) " >&6
10591 else
10592
10593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594 /* end confdefs.h.  */
10595
10596 #include "ansidecl.h"
10597 #include "system.h"
10598
10599 int
10600 main ()
10601 {
10602 clock_t x;
10603   ;
10604   return 0;
10605 }
10606 _ACEOF
10607 if ac_fn_c_try_compile "$LINENO"; then :
10608   gcc_cv_type_clock_t=yes
10609 else
10610   gcc_cv_type_clock_t=no
10611 fi
10612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10613 fi
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10615 $as_echo "$gcc_cv_type_clock_t" >&6; }
10616 if test $gcc_cv_type_clock_t = yes; then
10617
10618 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10619
10620 fi
10621
10622 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10623 CFLAGS="$saved_CFLAGS"
10624
10625 # Check whether --enable-initfini-array was given.
10626 if test "${enable_initfini_array+set}" = set; then :
10627   enableval=$enable_initfini_array;
10628 else
10629
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10631 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10632 if test "${gcc_cv_initfini_array+set}" = set; then :
10633   $as_echo_n "(cached) " >&6
10634 else
10635     if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10636     if test "$cross_compiling" = yes; then :
10637   gcc_cv_initfini_array=no
10638 else
10639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h.  */
10641
10642 #ifdef __ia64__
10643 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10644    if it can be used.  */
10645 static int x = -1;
10646 int main (void) { return x; }
10647 int foo (void) { x = 0; }
10648 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10649 #else
10650 extern void abort ();
10651 static int count;
10652
10653 static void
10654 init1005 ()
10655 {
10656   if (count != 0)
10657     abort ();
10658   count = 1005;
10659 }
10660 void (*const init_array1005) ()
10661   __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10662   = { init1005 };
10663 static void
10664 fini1005 ()
10665 {
10666   if (count != 1005)
10667     abort ();
10668 }
10669 void (*const fini_array1005) ()
10670   __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10671   = { fini1005 };
10672
10673 static void
10674 ctor1007 ()
10675 {
10676   if (count != 1005)
10677     abort ();
10678   count = 1007;
10679 }
10680 void (*const ctors1007) ()
10681   __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10682   = { ctor1007 };
10683 static void
10684 dtor1007 ()
10685 {
10686   if (count != 1007)
10687     abort ();
10688   count = 1005;
10689 }
10690 void (*const dtors1007) ()
10691   __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10692   = { dtor1007 };
10693
10694 static void
10695 init65530 ()
10696 {
10697   if (count != 1007)
10698     abort ();
10699   count = 65530;
10700 }
10701 void (*const init_array65530) ()
10702   __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
10703   = { init65530 };
10704 static void
10705 fini65530 ()
10706 {
10707   if (count != 65530)
10708     abort ();
10709   count = 1007;
10710 }
10711 void (*const fini_array65530) ()
10712   __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
10713   = { fini65530 };
10714
10715 static void
10716 ctor65535 ()
10717 {
10718   if (count != 65530)
10719     abort ();
10720   count = 65535;
10721 }
10722 void (*const ctors65535) ()
10723   __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
10724   = { ctor65535 };
10725 static void
10726 dtor65535 ()
10727 {
10728   if (count != 65535)
10729     abort ();
10730   count = 65530;
10731 }
10732 void (*const dtors65535) ()
10733   __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
10734   = { dtor65535 };
10735
10736 int
10737 main ()
10738 {
10739   return 0;
10740 }
10741 #endif
10742
10743 _ACEOF
10744 if ac_fn_c_try_run "$LINENO"; then :
10745   gcc_cv_initfini_array=yes
10746 else
10747   gcc_cv_initfini_array=no
10748 fi
10749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10750   conftest.$ac_objext conftest.beam conftest.$ac_ext
10751 fi
10752
10753    else
10754      { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
10755 $as_echo_n "checking cross compile... guessing... " >&6; }
10756      gcc_cv_initfini_array=no
10757    fi
10758 fi
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10760 $as_echo "$gcc_cv_initfini_array" >&6; }
10761   enable_initfini_array=$gcc_cv_initfini_array
10762
10763 fi
10764
10765 if test $enable_initfini_array = yes; then
10766
10767 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10768
10769 fi
10770
10771 # mkdir takes a single argument on some systems.
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10773 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10774 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10775   $as_echo_n "(cached) " >&6
10776 else
10777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h.  */
10779
10780 #include <sys/types.h>
10781 #ifdef HAVE_SYS_STAT_H
10782 # include <sys/stat.h>
10783 #endif
10784 #ifdef HAVE_UNISTD_H
10785 # include <unistd.h>
10786 #endif
10787 #ifdef HAVE_DIRECT_H
10788 # include <direct.h>
10789 #endif
10790 int
10791 main ()
10792 {
10793 mkdir ("foo", 0);
10794   ;
10795   return 0;
10796 }
10797 _ACEOF
10798 if ac_fn_c_try_compile "$LINENO"; then :
10799   gcc_cv_mkdir_takes_one_arg=no
10800 else
10801   gcc_cv_mkdir_takes_one_arg=yes
10802 fi
10803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 fi
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10806 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10807 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10808
10809 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10810
10811 fi
10812
10813
10814 # File extensions
10815 manext='.1'
10816 objext='.o'
10817
10818
10819
10820 # With Setjmp/Longjmp based exception handling.
10821 # Check whether --enable-sjlj-exceptions was given.
10822 if test "${enable_sjlj_exceptions+set}" = set; then :
10823   enableval=$enable_sjlj_exceptions; case $target in
10824   *-*-hpux10*)
10825     if test $enableval != yes; then
10826       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10827 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10828       enableval=yes
10829     fi
10830     ;;
10831 esac
10832 force_sjlj_exceptions=yes
10833 else
10834   case $target in
10835   *-*-hpux10*)
10836     force_sjlj_exceptions=yes
10837     enableval=yes
10838     ;;
10839   *)
10840     force_sjlj_exceptions=no
10841     ;;
10842 esac
10843 fi
10844
10845 if test $force_sjlj_exceptions = yes; then
10846   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10847
10848 cat >>confdefs.h <<_ACEOF
10849 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10850 _ACEOF
10851
10852 fi
10853
10854 # For platforms with the unwind ABI which includes an unwind library,
10855 # libunwind, we can choose to use the system libunwind.
10856 # config.gcc also contains tests of with_system_libunwind.
10857
10858
10859 # Check whether --with-system-libunwind was given.
10860 if test "${with_system_libunwind+set}" = set; then :
10861   withval=$with_system_libunwind;
10862 fi
10863
10864   # If system-libunwind was not specifically set, pick a default setting.
10865   if test x$with_system_libunwind = x; then
10866     case ${target} in
10867       ia64-*-hpux*) with_system_libunwind=yes ;;
10868       *) with_system_libunwind=no ;;
10869     esac
10870   fi
10871   # Based on system-libunwind and target, do we have ipinfo?
10872   if  test x$with_system_libunwind = xyes; then
10873     case ${target} in
10874       ia64-*-*) have_unwind_getipinfo=no ;;
10875       *) have_unwind_getipinfo=yes ;;
10876     esac
10877   else
10878     # Darwin before version 9 does not have _Unwind_GetIPInfo.
10879
10880     case ${target} in
10881       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10882       *) have_unwind_getipinfo=yes ;;
10883     esac
10884
10885   fi
10886
10887   if test x$have_unwind_getipinfo = xyes; then
10888
10889 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10890
10891   fi
10892
10893
10894 # --------------------------------------------------------
10895 # Build, host, and target specific configuration fragments
10896 # --------------------------------------------------------
10897
10898 # Collect build-machine-specific information.
10899 . ${srcdir}/config.build
10900
10901 # Collect host-machine-specific information.
10902 . ${srcdir}/config.host
10903
10904 target_gtfiles=
10905
10906 # Collect target-machine-specific information.
10907 . ${srcdir}/config.gcc
10908
10909 extra_objs="${host_extra_objs} ${extra_objs}"
10910 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10911
10912 # Default the target-machine variables that were not explicitly set.
10913 if test x"$tm_file" = x
10914 then tm_file=$cpu_type/$cpu_type.h; fi
10915
10916 if test x"$extra_headers" = x
10917 then extra_headers=; fi
10918
10919 if test x$md_file = x
10920 then md_file=$cpu_type/$cpu_type.md; fi
10921
10922 if test x$out_file = x
10923 then out_file=$cpu_type/$cpu_type.c; fi
10924
10925 if test x"$tmake_file" = x
10926 then tmake_file=$cpu_type/t-$cpu_type
10927 fi
10928
10929 if test x"$dwarf2" = xyes
10930 then tm_file="$tm_file tm-dwarf2.h"
10931 fi
10932
10933 # Say what files are being used for the output code and MD file.
10934 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10935 echo "Using \`$srcdir/config/$md_file' as machine description file."
10936
10937 # If any of the xm_file variables contain nonexistent files, warn
10938 # about them and drop them.
10939
10940 bx=
10941 for x in $build_xm_file; do
10942   if    test -f $srcdir/config/$x
10943   then      bx="$bx $x"
10944   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10945 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10946   fi
10947 done
10948 build_xm_file="$bx"
10949
10950 hx=
10951 for x in $host_xm_file; do
10952   if    test -f $srcdir/config/$x
10953   then      hx="$hx $x"
10954   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10955 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10956   fi
10957 done
10958 host_xm_file="$hx"
10959
10960 tx=
10961 for x in $xm_file; do
10962   if    test -f $srcdir/config/$x
10963   then      tx="$tx $x"
10964   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10965 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10966   fi
10967 done
10968 xm_file="$tx"
10969
10970 count=a
10971 for f in $tm_file; do
10972         count=${count}x
10973 done
10974 if test $count = ax; then
10975         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10976 else
10977         echo "Using the following target machine macro files:"
10978         for f in $tm_file; do
10979                 echo "  $srcdir/config/$f"
10980         done
10981 fi
10982
10983 if test x$need_64bit_hwint = xyes; then
10984
10985 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10986
10987 fi
10988
10989 if test x$use_long_long_for_widest_fast_int = xyes; then
10990
10991 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10992
10993 fi
10994
10995 count=a
10996 for f in $host_xm_file; do
10997         count=${count}x
10998 done
10999 if test $count = a; then
11000         :
11001 elif test $count = ax; then
11002         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11003 else
11004         echo "Using the following host machine macro files:"
11005         for f in $host_xm_file; do
11006                 echo "  $srcdir/config/$f"
11007         done
11008 fi
11009 echo "Using ${out_host_hook_obj} for host machine hooks."
11010
11011 if test "$host_xm_file" != "$build_xm_file"; then
11012         count=a
11013         for f in $build_xm_file; do
11014                 count=${count}x
11015         done
11016         if test $count = a; then
11017                 :
11018         elif test $count = ax; then
11019                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11020         else
11021                 echo "Using the following build machine macro files:"
11022                 for f in $build_xm_file; do
11023                         echo "  $srcdir/config/$f"
11024                 done
11025         fi
11026 fi
11027
11028 case ${host} in
11029   powerpc*-*-darwin*)
11030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11031 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11032 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11033   $as_echo_n "(cached) " >&6
11034 else
11035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h.  */
11037
11038 #include <sys/cdefs.h>
11039 #include <sys/signal.h>
11040 #include <ucontext.h>
11041 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11042
11043 _ACEOF
11044 if ac_fn_c_try_compile "$LINENO"; then :
11045   gcc_cv_mcontext_underscores=no
11046 else
11047   gcc_cv_mcontext_underscores=yes
11048 fi
11049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11050 fi
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11052 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11053       if test $gcc_cv_mcontext_underscores = yes; then
11054
11055 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11056
11057       fi
11058     ;;
11059 esac
11060
11061 # ---------
11062 # Threading
11063 # ---------
11064
11065 # Check if a valid thread package
11066 case ${enable_threads} in
11067   "" | no)
11068     # No threads
11069     target_thread_file='single'
11070     ;;
11071   yes)
11072     # default
11073     target_thread_file='single'
11074     ;;
11075   aix | dce | lynx | mipssde | posix | posix95 | rtems | \
11076   single | tpf | vxworks | win32)
11077     target_thread_file=${enable_threads}
11078     ;;
11079   *)
11080     echo "${enable_threads} is an unknown thread package" 1>&2
11081     exit 1
11082     ;;
11083 esac
11084
11085 if test x${thread_file} = x; then
11086   # No thread file set by target-specific clauses in config.gcc,
11087   # so use file chosen by default logic above
11088   thread_file=${target_thread_file}
11089 fi
11090
11091 # Make gthr-default.h if we have a thread file.
11092 gthread_flags=
11093 if test $thread_file != single; then
11094   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11095   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
11096     rm -f gthr-default.h-t
11097   else
11098     mv -f gthr-default.h-t gthr-default.h
11099   fi
11100   gthread_flags=-DHAVE_GTHR_DEFAULT
11101 fi
11102
11103
11104 # --------
11105 # UNSORTED
11106 # --------
11107
11108 use_cxa_atexit=no
11109 if test x$enable___cxa_atexit = xyes || \
11110    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11111   if test x$host = x$target; then
11112     case $host in
11113       # mingw32 doesn't have __cxa_atexit but uses atexit registration
11114       # keyed to flag_use_cxa_atexit
11115       *-*-mingw32*)
11116         use_cxa_atexit=yes
11117         ;;
11118       *)
11119         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11120 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11121   use_cxa_atexit=yes
11122 else
11123   echo "__cxa_atexit can't be enabled on this target"
11124 fi
11125
11126         ;;
11127     esac
11128   else
11129     # We can't check for __cxa_atexit when building a cross, so assume
11130     # it is available
11131     use_cxa_atexit=yes
11132   fi
11133   if test x$use_cxa_atexit = xyes; then
11134
11135 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11136
11137   fi
11138 fi
11139
11140 # Look for a file containing extra machine modes.
11141 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11142   extra_modes_file='$(srcdir)'/config/${extra_modes}
11143
11144
11145 cat >>confdefs.h <<_ACEOF
11146 #define EXTRA_MODES_FILE "config/$extra_modes"
11147 _ACEOF
11148
11149 fi
11150
11151 # Convert extra_options into a form suitable for Makefile use.
11152 extra_opt_files=
11153 all_opt_files=
11154 for f in $extra_options; do
11155   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11156   all_opt_files="$all_opt_files $srcdir/config/$f"
11157 done
11158
11159
11160 # auto-host.h is the file containing items generated by autoconf and is
11161 # the first file included by config.h.
11162 # If host=build, it is correct to have bconfig include auto-host.h
11163 # as well.  If host!=build, we are in error and need to do more
11164 # work to find out the build config parameters.
11165 if test x$host = x$build
11166 then
11167         build_auto=auto-host.h
11168 else
11169         # We create a subdir, then run autoconf in the subdir.
11170         # To prevent recursion we set host and build for the new
11171         # invocation of configure to the build for this invocation
11172         # of configure.
11173         tempdir=build.$$
11174         rm -rf $tempdir
11175         mkdir $tempdir
11176         cd $tempdir
11177         case ${srcdir} in
11178         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11179         *) realsrcdir=../${srcdir};;
11180         esac
11181         saved_CFLAGS="${CFLAGS}"
11182         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11183         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11184         ${realsrcdir}/configure \
11185                 --enable-languages=${enable_languages-all} \
11186                 --target=$target_alias --host=$build_alias --build=$build_alias
11187         CFLAGS="${saved_CFLAGS}"
11188
11189         # We just finished tests for the build machine, so rename
11190         # the file auto-build.h in the gcc directory.
11191         mv auto-host.h ../auto-build.h
11192         cd ..
11193         rm -rf $tempdir
11194         build_auto=auto-build.h
11195 fi
11196
11197
11198 tm_file="${tm_file} defaults.h"
11199 tm_p_file="${tm_p_file} tm-preds.h"
11200 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11201 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11202 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11203 # put this back in temporarily.
11204 xm_file="auto-host.h ansidecl.h ${xm_file}"
11205
11206 # --------
11207 # UNSORTED
11208 # --------
11209
11210 # Compile in configure arguments.
11211 if test -f configargs.h ; then
11212         # Being re-configured.
11213         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11214         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11215 else
11216         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11217 fi
11218
11219 # Double all backslashes and backslash all quotes to turn
11220 # gcc_config_arguments into a C string.
11221 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11222 $gcc_config_arguments
11223 EOF
11224 gcc_config_arguments_str=`cat conftest.out`
11225 rm -f conftest.out
11226
11227 cat > configargs.h <<EOF
11228 /* Generated automatically. */
11229 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11230 static const char thread_model[] = "$thread_file";
11231
11232 static const struct {
11233   const char *name, *value;
11234 } configure_default_options[] = $configure_default_options;
11235 EOF
11236
11237 gcc_BASEVER=`cat $srcdir/BASE-VER`
11238 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11239 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11240 if test -f $srcdir/REVISION ; then
11241         gcc_REVISION=`cat $srcdir/REVISION`
11242 else
11243         gcc_REVISION=""
11244 fi
11245 cat > plugin-version.h <<EOF
11246 #include "configargs.h"
11247
11248 #define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11249 #define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11250 #define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11251 #define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11252
11253 static char basever[] = "$gcc_BASEVER";
11254 static char datestamp[] = "$gcc_DATESTAMP";
11255 static char devphase[] = "$gcc_DEVPHASE";
11256 static char revision[] = "$gcc_REVISION";
11257
11258 /* FIXME plugins: We should make the version information more precise.
11259    One way to do is to add a checksum. */
11260
11261 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11262                                                 devphase, revision,
11263                                                 configuration_arguments};
11264 EOF
11265
11266 # Internationalization
11267 # If we haven't got the data from the intl directory,
11268 # assume NLS is disabled.
11269 USE_NLS=no
11270 LIBINTL=
11271 LIBINTL_DEP=
11272 INCINTL=
11273 XGETTEXT=
11274 GMSGFMT=
11275 POSUB=
11276
11277 if test -f  ../intl/config.intl; then
11278   .  ../intl/config.intl
11279 fi
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11281 $as_echo_n "checking whether NLS is requested... " >&6; }
11282 if test x"$USE_NLS" != xyes; then
11283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11284 $as_echo "no" >&6; }
11285 else
11286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11287 $as_echo "yes" >&6; }
11288
11289 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11290
11291
11292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11293 $as_echo_n "checking for catalogs to be installed... " >&6; }
11294   # Look for .po and .gmo files in the source directory.
11295   CATALOGS=
11296   XLINGUAS=
11297   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11298     # If there aren't any .gmo files the shell will give us the
11299     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11300     # weeded out.
11301     case "$cat" in *\**)
11302       continue;;
11303     esac
11304     # The quadruple backslash is collapsed to a double backslash
11305     # by the backticks, then collapsed again by the double quotes,
11306     # leaving us with one backslash in the sed expression (right
11307     # before the dot that mustn't act as a wildcard).
11308     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11309     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11310     # The user is allowed to set LINGUAS to a list of languages to
11311     # install catalogs for.  If it's empty that means "all of them."
11312     if test "x$LINGUAS" = x; then
11313       CATALOGS="$CATALOGS $cat"
11314       XLINGUAS="$XLINGUAS $lang"
11315     else
11316       case "$LINGUAS" in *$lang*)
11317         CATALOGS="$CATALOGS $cat"
11318         XLINGUAS="$XLINGUAS $lang"
11319         ;;
11320       esac
11321     fi
11322   done
11323   LINGUAS="$XLINGUAS"
11324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11325 $as_echo "$LINGUAS" >&6; }
11326
11327
11328     DATADIRNAME=share
11329
11330   INSTOBJEXT=.mo
11331
11332   GENCAT=gencat
11333
11334   CATOBJEXT=.gmo
11335
11336 fi
11337
11338 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11339 # -liconv on the link line twice.
11340 case "$LIBINTL" in *$LIBICONV*)
11341         LIBICONV= ;;
11342 esac
11343
11344 # Check whether --enable-secureplt was given.
11345 if test "${enable_secureplt+set}" = set; then :
11346   enableval=$enable_secureplt;
11347 fi
11348
11349
11350 # Check whether --enable-leading-mingw64-underscores was given.
11351 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11352   enableval=$enable_leading_mingw64_underscores;
11353 fi
11354
11355 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11356
11357 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11358
11359 fi
11360
11361 # Check whether --enable-cld was given.
11362 if test "${enable_cld+set}" = set; then :
11363   enableval=$enable_cld;
11364 else
11365   enable_cld=no
11366 fi
11367
11368
11369 # Check whether --enable-frame-pointer was given.
11370 if test "${enable_frame_pointer+set}" = set; then :
11371   enableval=$enable_frame_pointer;
11372 else
11373
11374 case $target_os in
11375 linux* | darwin[8912]*)
11376   # Enable -fomit-frame-pointer by default for Linux and Darwin with
11377   # DWARF2.
11378   enable_frame_pointer=no
11379   ;;
11380 *)
11381   enable_frame_pointer=yes
11382   ;;
11383 esac
11384
11385 fi
11386
11387
11388 # Windows32 Registry support for specifying GCC installation paths.
11389 # Check whether --enable-win32-registry was given.
11390 if test "${enable_win32_registry+set}" = set; then :
11391   enableval=$enable_win32_registry;
11392 fi
11393
11394
11395 case $host_os in
11396   win32 | pe | cygwin* | mingw32* | uwin*)
11397     if test "x$enable_win32_registry" != xno; then
11398       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11399 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11400 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11401   $as_echo_n "(cached) " >&6
11402 else
11403   ac_func_search_save_LIBS=$LIBS
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h.  */
11406
11407 /* Override any GCC internal prototype to avoid an error.
11408    Use char because int might match the return type of a GCC
11409    builtin and then its argument prototype would still apply.  */
11410 #ifdef __cplusplus
11411 extern "C"
11412 #endif
11413 char RegOpenKeyExA ();
11414 int
11415 main ()
11416 {
11417 return RegOpenKeyExA ();
11418   ;
11419   return 0;
11420 }
11421 _ACEOF
11422 for ac_lib in '' advapi32; do
11423   if test -z "$ac_lib"; then
11424     ac_res="none required"
11425   else
11426     ac_res=-l$ac_lib
11427     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11428   fi
11429   if ac_fn_c_try_link "$LINENO"; then :
11430   ac_cv_search_RegOpenKeyExA=$ac_res
11431 fi
11432 rm -f core conftest.err conftest.$ac_objext \
11433     conftest$ac_exeext
11434   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11435   break
11436 fi
11437 done
11438 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11439
11440 else
11441   ac_cv_search_RegOpenKeyExA=no
11442 fi
11443 rm conftest.$ac_ext
11444 LIBS=$ac_func_search_save_LIBS
11445 fi
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11447 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11448 ac_res=$ac_cv_search_RegOpenKeyExA
11449 if test "$ac_res" != no; then :
11450   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11451
11452 else
11453   enable_win32_registry=no
11454 fi
11455
11456     fi
11457
11458     if test "x$enable_win32_registry" != xno; then
11459
11460 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11461
11462
11463       if test "x$enable_win32_registry" != xyes \
11464          && test "x$enable_win32_registry" != x; then
11465
11466 cat >>confdefs.h <<_ACEOF
11467 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11468 _ACEOF
11469
11470       fi
11471     fi
11472   ;;
11473 esac
11474
11475 # Get an absolute path to the GCC top-level source directory
11476 holddir=`${PWDCMD-pwd}`
11477 cd $srcdir
11478 topdir=`${PWDCMD-pwd}`
11479 cd $holddir
11480
11481 # Conditionalize the makefile for this host machine.
11482 xmake_file=
11483 for f in ${host_xmake_file}
11484 do
11485         if test -f ${srcdir}/config/$f
11486         then
11487                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11488         fi
11489 done
11490
11491 # Conditionalize the makefile for this target machine.
11492 tmake_file_=
11493 for f in ${tmake_file}
11494 do
11495         if test -f ${srcdir}/config/$f
11496         then
11497                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11498         fi
11499 done
11500 tmake_file="${tmake_file_}"
11501
11502 out_object_file=`basename $out_file .c`.o
11503 common_out_object_file=`basename $common_out_file .c`.o
11504
11505 tm_file_list="options.h"
11506 tm_include_list="options.h insn-constants.h"
11507 for f in $tm_file; do
11508   case $f in
11509     ./* )
11510        f=`echo $f | sed 's/^..//'`
11511        tm_file_list="${tm_file_list} $f"
11512        tm_include_list="${tm_include_list} $f"
11513        ;;
11514     defaults.h )
11515        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11516        tm_include_list="${tm_include_list} $f"
11517        ;;
11518     * )
11519        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11520        tm_include_list="${tm_include_list} config/$f"
11521        ;;
11522   esac
11523 done
11524
11525 libgcc_tm_file_list=
11526 libgcc_tm_include_list=
11527 for f in $libgcc_tm_file; do
11528   libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11529   libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11530 done
11531
11532 tm_p_file_list=
11533 tm_p_include_list=
11534 for f in $tm_p_file; do
11535   case $f in
11536     tm-preds.h )
11537        tm_p_file_list="${tm_p_file_list} $f"
11538        tm_p_include_list="${tm_p_include_list} $f"
11539        ;;
11540     * )
11541        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11542        tm_p_include_list="${tm_p_include_list} config/$f"
11543   esac
11544 done
11545
11546 xm_file_list=
11547 xm_include_list=
11548 for f in $xm_file; do
11549   case $f in
11550     ansidecl.h )
11551        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11552        xm_include_list="${xm_include_list} $f"
11553        ;;
11554     auto-host.h )
11555        xm_file_list="${xm_file_list} $f"
11556        xm_include_list="${xm_include_list} $f"
11557        ;;
11558     * )
11559        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11560        xm_include_list="${xm_include_list} config/$f"
11561        ;;
11562   esac
11563 done
11564
11565 host_xm_file_list=
11566 host_xm_include_list=
11567 for f in $host_xm_file; do
11568   case $f in
11569     ansidecl.h )
11570        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11571        host_xm_include_list="${host_xm_include_list} $f"
11572        ;;
11573     auto-host.h )
11574        host_xm_file_list="${host_xm_file_list} $f"
11575        host_xm_include_list="${host_xm_include_list} $f"
11576        ;;
11577     * )
11578        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11579        host_xm_include_list="${host_xm_include_list} config/$f"
11580        ;;
11581   esac
11582 done
11583
11584 build_xm_file_list=
11585 for f in $build_xm_file; do
11586   case $f in
11587     ansidecl.h )
11588        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11589        build_xm_include_list="${build_xm_include_list} $f"
11590        ;;
11591     auto-build.h | auto-host.h )
11592        build_xm_file_list="${build_xm_file_list} $f"
11593        build_xm_include_list="${build_xm_include_list} $f"
11594        ;;
11595     * )
11596        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11597        build_xm_include_list="${build_xm_include_list} config/$f"
11598        ;;
11599   esac
11600 done
11601
11602 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11603 # cross-compiler which does not use the native headers and libraries.
11604 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11605 CROSS=
11606 ALL=all.internal
11607 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11608
11609 if test "x$with_build_sysroot" != x; then
11610   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11611 else
11612   # This value is used, even on a native system, because
11613   # CROSS_SYSTEM_HEADER_DIR is just
11614   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11615   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11616 fi
11617
11618 if test x$host != x$target
11619 then
11620         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11621         ALL=all.cross
11622         SYSTEM_HEADER_DIR=$build_system_header_dir
11623         case "$host","$target" in
11624         # Darwin crosses can use the host system's libraries and headers,
11625         # because of the fat library support.  Of course, it must be the
11626         # same version of Darwin on both sides.  Allow the user to
11627         # just say --target=foo-darwin without a version number to mean
11628         # "the version on this system".
11629             *-*-darwin*,*-*-darwin*)
11630                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11631                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11632                 if test $hostos = $targetos -o $targetos = darwin ; then
11633                     CROSS=
11634                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11635                     with_headers=yes
11636                 fi
11637                 ;;
11638
11639             i?86-*-*,x86_64-*-* \
11640             | powerpc*-*-*,powerpc64*-*-*)
11641                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11642         esac
11643
11644         case $target in
11645                 *-*-mingw*)
11646                         if test "x$with_headers" = x; then
11647                                 with_headers=yes
11648                         fi
11649                         ;;
11650                 *)
11651                         ;;
11652         esac
11653 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11654         SYSTEM_HEADER_DIR=$build_system_header_dir
11655 fi
11656
11657 # If this is a cross-compiler that does not
11658 # have its own set of headers then define
11659 # inhibit_libc
11660
11661 # If this is using newlib, without having the headers available now,
11662 # then define inhibit_libc in LIBGCC2_CFLAGS.
11663 # This prevents libgcc2 from containing any code which requires libc
11664 # support.
11665 : ${inhibit_libc=false}
11666 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11667        test x$with_newlib = xyes ; } &&
11668      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11669        inhibit_libc=true
11670 fi
11671
11672
11673 # When building gcc with a cross-compiler, we need to adjust things so
11674 # that the generator programs are still built with the native compiler.
11675 # Also, we cannot run fixincludes.
11676
11677 # These are the normal (build=host) settings:
11678 CC_FOR_BUILD='$(CC)'
11679 BUILD_CFLAGS='$(ALL_CFLAGS)'
11680 BUILD_LDFLAGS='$(LDFLAGS)'
11681 STMP_FIXINC=stmp-fixinc
11682
11683 # And these apply if build != host, or we are generating coverage data
11684 if test x$build != x$host || test "x$coverage_flags" != x
11685 then
11686     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11687     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11688 fi
11689
11690 # Expand extra_headers to include complete path.
11691 # This substitutes for lots of t-* files.
11692 extra_headers_list=
11693 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11694 for file in ${extra_headers} ; do
11695   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11696 done
11697
11698 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11699 if test x"$use_gcc_tgmath" = xyes
11700 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11701 fi
11702
11703 # Define collect2 in Makefile.
11704 case $host_can_use_collect2 in
11705   no) collect2= ;;
11706   *) collect2='collect2$(exeext)' ;;
11707 esac
11708
11709
11710 # Add a definition of USE_COLLECT2 if system wants one.
11711 case $use_collect2 in
11712   no) use_collect2= ;;
11713   "") ;;
11714   *)
11715     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11716     xm_defines="${xm_defines} USE_COLLECT2"
11717     case $host_can_use_collect2 in
11718       no)
11719         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11720         ;;
11721     esac
11722     ;;
11723 esac
11724
11725
11726 cat >>confdefs.h <<_ACEOF
11727 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11728 _ACEOF
11729
11730
11731 # ---------------------------
11732 # Assembler & linker features
11733 # ---------------------------
11734
11735 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11736 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11737 # However when ld-new is first executed from the build tree, libtool will
11738 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11739 # to the build tree.  While doing this we need to use the previous-stage
11740 # linker, or we have an infinite loop.  The presence of a shell script as
11741 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11742 # the gcc/collect-ld script.  So we need to know how libtool works, or
11743 # exec-tool will fail.
11744
11745
11746 case `pwd` in
11747   *\ * | *\     *)
11748     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11749 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11750 esac
11751
11752
11753
11754 macro_version='2.2.7a'
11755 macro_revision='1.3134'
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769 ltmain="$ac_aux_dir/ltmain.sh"
11770
11771 # Backslashify metacharacters that are still active within
11772 # double-quoted strings.
11773 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11774
11775 # Same as above, but do not quote variable references.
11776 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11777
11778 # Sed substitution to delay expansion of an escaped shell variable in a
11779 # double_quote_subst'ed string.
11780 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11781
11782 # Sed substitution to delay expansion of an escaped single quote.
11783 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11784
11785 # Sed substitution to avoid accidental globbing in evaled expressions
11786 no_glob_subst='s/\*/\\\*/g'
11787
11788 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11789 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11790 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11791
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11793 $as_echo_n "checking how to print strings... " >&6; }
11794 # Test print first, because it will be a builtin if present.
11795 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11796    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11797   ECHO='print -r --'
11798 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11799   ECHO='printf %s\n'
11800 else
11801   # Use this function as a fallback that always works.
11802   func_fallback_echo ()
11803   {
11804     eval 'cat <<_LTECHO_EOF
11805 $1
11806 _LTECHO_EOF'
11807   }
11808   ECHO='func_fallback_echo'
11809 fi
11810
11811 # func_echo_all arg...
11812 # Invoke $ECHO with all args, space-separated.
11813 func_echo_all ()
11814 {
11815     $ECHO ""
11816 }
11817
11818 case "$ECHO" in
11819   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11820 $as_echo "printf" >&6; } ;;
11821   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11822 $as_echo "print -r" >&6; } ;;
11823   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11824 $as_echo "cat" >&6; } ;;
11825 esac
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11841 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11842 if test "${ac_cv_path_SED+set}" = set; then :
11843   $as_echo_n "(cached) " >&6
11844 else
11845             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11846      for ac_i in 1 2 3 4 5 6 7; do
11847        ac_script="$ac_script$as_nl$ac_script"
11848      done
11849      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11850      { ac_script=; unset ac_script;}
11851      if test -z "$SED"; then
11852   ac_path_SED_found=false
11853   # Loop through the user's path and test for each of PROGNAME-LIST
11854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11855 for as_dir in $PATH
11856 do
11857   IFS=$as_save_IFS
11858   test -z "$as_dir" && as_dir=.
11859     for ac_prog in sed gsed; do
11860     for ac_exec_ext in '' $ac_executable_extensions; do
11861       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11862       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11863 # Check for GNU ac_path_SED and select it if it is found.
11864   # Check for GNU $ac_path_SED
11865 case `"$ac_path_SED" --version 2>&1` in
11866 *GNU*)
11867   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11868 *)
11869   ac_count=0
11870   $as_echo_n 0123456789 >"conftest.in"
11871   while :
11872   do
11873     cat "conftest.in" "conftest.in" >"conftest.tmp"
11874     mv "conftest.tmp" "conftest.in"
11875     cp "conftest.in" "conftest.nl"
11876     $as_echo '' >> "conftest.nl"
11877     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11878     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11879     as_fn_arith $ac_count + 1 && ac_count=$as_val
11880     if test $ac_count -gt ${ac_path_SED_max-0}; then
11881       # Best one so far, save it but keep looking for a better one
11882       ac_cv_path_SED="$ac_path_SED"
11883       ac_path_SED_max=$ac_count
11884     fi
11885     # 10*(2^10) chars as input seems more than enough
11886     test $ac_count -gt 10 && break
11887   done
11888   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11889 esac
11890
11891       $ac_path_SED_found && break 3
11892     done
11893   done
11894   done
11895 IFS=$as_save_IFS
11896   if test -z "$ac_cv_path_SED"; then
11897     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11898   fi
11899 else
11900   ac_cv_path_SED=$SED
11901 fi
11902
11903 fi
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11905 $as_echo "$ac_cv_path_SED" >&6; }
11906  SED="$ac_cv_path_SED"
11907   rm -f conftest.sed
11908
11909 test -z "$SED" && SED=sed
11910 Xsed="$SED -e 1s/^X//"
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11923 $as_echo_n "checking for fgrep... " >&6; }
11924 if test "${ac_cv_path_FGREP+set}" = set; then :
11925   $as_echo_n "(cached) " >&6
11926 else
11927   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11928    then ac_cv_path_FGREP="$GREP -F"
11929    else
11930      if test -z "$FGREP"; then
11931   ac_path_FGREP_found=false
11932   # Loop through the user's path and test for each of PROGNAME-LIST
11933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11935 do
11936   IFS=$as_save_IFS
11937   test -z "$as_dir" && as_dir=.
11938     for ac_prog in fgrep; do
11939     for ac_exec_ext in '' $ac_executable_extensions; do
11940       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11941       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11942 # Check for GNU ac_path_FGREP and select it if it is found.
11943   # Check for GNU $ac_path_FGREP
11944 case `"$ac_path_FGREP" --version 2>&1` in
11945 *GNU*)
11946   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11947 *)
11948   ac_count=0
11949   $as_echo_n 0123456789 >"conftest.in"
11950   while :
11951   do
11952     cat "conftest.in" "conftest.in" >"conftest.tmp"
11953     mv "conftest.tmp" "conftest.in"
11954     cp "conftest.in" "conftest.nl"
11955     $as_echo 'FGREP' >> "conftest.nl"
11956     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11957     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11958     as_fn_arith $ac_count + 1 && ac_count=$as_val
11959     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11960       # Best one so far, save it but keep looking for a better one
11961       ac_cv_path_FGREP="$ac_path_FGREP"
11962       ac_path_FGREP_max=$ac_count
11963     fi
11964     # 10*(2^10) chars as input seems more than enough
11965     test $ac_count -gt 10 && break
11966   done
11967   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11968 esac
11969
11970       $ac_path_FGREP_found && break 3
11971     done
11972   done
11973   done
11974 IFS=$as_save_IFS
11975   if test -z "$ac_cv_path_FGREP"; then
11976     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11977   fi
11978 else
11979   ac_cv_path_FGREP=$FGREP
11980 fi
11981
11982    fi
11983 fi
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11985 $as_echo "$ac_cv_path_FGREP" >&6; }
11986  FGREP="$ac_cv_path_FGREP"
11987
11988
11989 test -z "$GREP" && GREP=grep
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009 # Check whether --with-gnu-ld was given.
12010 if test "${with_gnu_ld+set}" = set; then :
12011   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12012 else
12013   with_gnu_ld=no
12014 fi
12015
12016 ac_prog=ld
12017 if test "$GCC" = yes; then
12018   # Check if gcc -print-prog-name=ld gives a path.
12019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12020 $as_echo_n "checking for ld used by $CC... " >&6; }
12021   case $host in
12022   *-*-mingw*)
12023     # gcc leaves a trailing carriage return which upsets mingw
12024     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12025   *)
12026     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12027   esac
12028   case $ac_prog in
12029     # Accept absolute paths.
12030     [\\/]* | ?:[\\/]*)
12031       re_direlt='/[^/][^/]*/\.\./'
12032       # Canonicalize the pathname of ld
12033       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12034       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12035         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12036       done
12037       test -z "$LD" && LD="$ac_prog"
12038       ;;
12039   "")
12040     # If it fails, then pretend we aren't using GCC.
12041     ac_prog=ld
12042     ;;
12043   *)
12044     # If it is relative, then search for the first ld in PATH.
12045     with_gnu_ld=unknown
12046     ;;
12047   esac
12048 elif test "$with_gnu_ld" = yes; then
12049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12050 $as_echo_n "checking for GNU ld... " >&6; }
12051 else
12052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12053 $as_echo_n "checking for non-GNU ld... " >&6; }
12054 fi
12055 if test "${lt_cv_path_LD+set}" = set; then :
12056   $as_echo_n "(cached) " >&6
12057 else
12058   if test -z "$LD"; then
12059   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12060   for ac_dir in $PATH; do
12061     IFS="$lt_save_ifs"
12062     test -z "$ac_dir" && ac_dir=.
12063     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12064       lt_cv_path_LD="$ac_dir/$ac_prog"
12065       # Check to see if the program is GNU ld.  I'd rather use --version,
12066       # but apparently some variants of GNU ld only accept -v.
12067       # Break only if it was the GNU/non-GNU ld that we prefer.
12068       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12069       *GNU* | *'with BFD'*)
12070         test "$with_gnu_ld" != no && break
12071         ;;
12072       *)
12073         test "$with_gnu_ld" != yes && break
12074         ;;
12075       esac
12076     fi
12077   done
12078   IFS="$lt_save_ifs"
12079 else
12080   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12081 fi
12082 fi
12083
12084 LD="$lt_cv_path_LD"
12085 if test -n "$LD"; then
12086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12087 $as_echo "$LD" >&6; }
12088 else
12089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090 $as_echo "no" >&6; }
12091 fi
12092 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12094 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12095 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12096   $as_echo_n "(cached) " >&6
12097 else
12098   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12099 case `$LD -v 2>&1 </dev/null` in
12100 *GNU* | *'with BFD'*)
12101   lt_cv_prog_gnu_ld=yes
12102   ;;
12103 *)
12104   lt_cv_prog_gnu_ld=no
12105   ;;
12106 esac
12107 fi
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12109 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12110 with_gnu_ld=$lt_cv_prog_gnu_ld
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12121 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12122 if test "${lt_cv_path_NM+set}" = set; then :
12123   $as_echo_n "(cached) " >&6
12124 else
12125   if test -n "$NM"; then
12126   # Let the user override the test.
12127   lt_cv_path_NM="$NM"
12128 else
12129   lt_nm_to_check="${ac_tool_prefix}nm"
12130   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12131     lt_nm_to_check="$lt_nm_to_check nm"
12132   fi
12133   for lt_tmp_nm in $lt_nm_to_check; do
12134     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12135     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12136       IFS="$lt_save_ifs"
12137       test -z "$ac_dir" && ac_dir=.
12138       tmp_nm="$ac_dir/$lt_tmp_nm"
12139       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12140         # Check to see if the nm accepts a BSD-compat flag.
12141         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12142         #   nm: unknown option "B" ignored
12143         # Tru64's nm complains that /dev/null is an invalid object file
12144         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12145         */dev/null* | *'Invalid file or object type'*)
12146           lt_cv_path_NM="$tmp_nm -B"
12147           break
12148           ;;
12149         *)
12150           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12151           */dev/null*)
12152             lt_cv_path_NM="$tmp_nm -p"
12153             break
12154             ;;
12155           *)
12156             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12157             continue # so that we can try to find one that supports BSD flags
12158             ;;
12159           esac
12160           ;;
12161         esac
12162       fi
12163     done
12164     IFS="$lt_save_ifs"
12165   done
12166   : ${lt_cv_path_NM=no}
12167 fi
12168 fi
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12170 $as_echo "$lt_cv_path_NM" >&6; }
12171 if test "$lt_cv_path_NM" != "no"; then
12172   NM="$lt_cv_path_NM"
12173 else
12174   # Didn't find any BSD compatible name lister, look for dumpbin.
12175   if test -n "$DUMPBIN"; then :
12176     # Let the user override the test.
12177   else
12178     if test -n "$ac_tool_prefix"; then
12179   for ac_prog in dumpbin "link -dump"
12180   do
12181     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12184 $as_echo_n "checking for $ac_word... " >&6; }
12185 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12186   $as_echo_n "(cached) " >&6
12187 else
12188   if test -n "$DUMPBIN"; then
12189   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12190 else
12191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192 for as_dir in $PATH
12193 do
12194   IFS=$as_save_IFS
12195   test -z "$as_dir" && as_dir=.
12196     for ac_exec_ext in '' $ac_executable_extensions; do
12197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12198     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12200     break 2
12201   fi
12202 done
12203   done
12204 IFS=$as_save_IFS
12205
12206 fi
12207 fi
12208 DUMPBIN=$ac_cv_prog_DUMPBIN
12209 if test -n "$DUMPBIN"; then
12210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12211 $as_echo "$DUMPBIN" >&6; }
12212 else
12213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12214 $as_echo "no" >&6; }
12215 fi
12216
12217
12218     test -n "$DUMPBIN" && break
12219   done
12220 fi
12221 if test -z "$DUMPBIN"; then
12222   ac_ct_DUMPBIN=$DUMPBIN
12223   for ac_prog in dumpbin "link -dump"
12224 do
12225   # Extract the first word of "$ac_prog", so it can be a program name with args.
12226 set dummy $ac_prog; ac_word=$2
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228 $as_echo_n "checking for $ac_word... " >&6; }
12229 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12230   $as_echo_n "(cached) " >&6
12231 else
12232   if test -n "$ac_ct_DUMPBIN"; then
12233   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12234 else
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12237 do
12238   IFS=$as_save_IFS
12239   test -z "$as_dir" && as_dir=.
12240     for ac_exec_ext in '' $ac_executable_extensions; do
12241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12242     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12244     break 2
12245   fi
12246 done
12247   done
12248 IFS=$as_save_IFS
12249
12250 fi
12251 fi
12252 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12253 if test -n "$ac_ct_DUMPBIN"; then
12254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12255 $as_echo "$ac_ct_DUMPBIN" >&6; }
12256 else
12257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258 $as_echo "no" >&6; }
12259 fi
12260
12261
12262   test -n "$ac_ct_DUMPBIN" && break
12263 done
12264
12265   if test "x$ac_ct_DUMPBIN" = x; then
12266     DUMPBIN=":"
12267   else
12268     case $cross_compiling:$ac_tool_warned in
12269 yes:)
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12272 ac_tool_warned=yes ;;
12273 esac
12274     DUMPBIN=$ac_ct_DUMPBIN
12275   fi
12276 fi
12277
12278     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12279     *COFF*)
12280       DUMPBIN="$DUMPBIN -symbols"
12281       ;;
12282     *)
12283       DUMPBIN=:
12284       ;;
12285     esac
12286   fi
12287
12288   if test "$DUMPBIN" != ":"; then
12289     NM="$DUMPBIN"
12290   fi
12291 fi
12292 test -z "$NM" && NM=nm
12293
12294
12295
12296
12297
12298
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12300 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12301 if test "${lt_cv_nm_interface+set}" = set; then :
12302   $as_echo_n "(cached) " >&6
12303 else
12304   lt_cv_nm_interface="BSD nm"
12305   echo "int some_variable = 0;" > conftest.$ac_ext
12306   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12307   (eval "$ac_compile" 2>conftest.err)
12308   cat conftest.err >&5
12309   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12310   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12311   cat conftest.err >&5
12312   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12313   cat conftest.out >&5
12314   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12315     lt_cv_nm_interface="MS dumpbin"
12316   fi
12317   rm -f conftest*
12318 fi
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12320 $as_echo "$lt_cv_nm_interface" >&6; }
12321
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12323 $as_echo_n "checking whether ln -s works... " >&6; }
12324 LN_S=$as_ln_s
12325 if test "$LN_S" = "ln -s"; then
12326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12327 $as_echo "yes" >&6; }
12328 else
12329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12330 $as_echo "no, using $LN_S" >&6; }
12331 fi
12332
12333 # find the maximum length of command line arguments
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12335 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12336 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12337   $as_echo_n "(cached) " >&6
12338 else
12339     i=0
12340   teststring="ABCD"
12341
12342   case $build_os in
12343   msdosdjgpp*)
12344     # On DJGPP, this test can blow up pretty badly due to problems in libc
12345     # (any single argument exceeding 2000 bytes causes a buffer overrun
12346     # during glob expansion).  Even if it were fixed, the result of this
12347     # check would be larger than it should be.
12348     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12349     ;;
12350
12351   gnu*)
12352     # Under GNU Hurd, this test is not required because there is
12353     # no limit to the length of command line arguments.
12354     # Libtool will interpret -1 as no limit whatsoever
12355     lt_cv_sys_max_cmd_len=-1;
12356     ;;
12357
12358   cygwin* | mingw* | cegcc*)
12359     # On Win9x/ME, this test blows up -- it succeeds, but takes
12360     # about 5 minutes as the teststring grows exponentially.
12361     # Worse, since 9x/ME are not pre-emptively multitasking,
12362     # you end up with a "frozen" computer, even though with patience
12363     # the test eventually succeeds (with a max line length of 256k).
12364     # Instead, let's just punt: use the minimum linelength reported by
12365     # all of the supported platforms: 8192 (on NT/2K/XP).
12366     lt_cv_sys_max_cmd_len=8192;
12367     ;;
12368
12369   mint*)
12370     # On MiNT this can take a long time and run out of memory.
12371     lt_cv_sys_max_cmd_len=8192;
12372     ;;
12373
12374   amigaos*)
12375     # On AmigaOS with pdksh, this test takes hours, literally.
12376     # So we just punt and use a minimum line length of 8192.
12377     lt_cv_sys_max_cmd_len=8192;
12378     ;;
12379
12380   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12381     # This has been around since 386BSD, at least.  Likely further.
12382     if test -x /sbin/sysctl; then
12383       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12384     elif test -x /usr/sbin/sysctl; then
12385       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12386     else
12387       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12388     fi
12389     # And add a safety zone
12390     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12391     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12392     ;;
12393
12394   interix*)
12395     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12396     lt_cv_sys_max_cmd_len=196608
12397     ;;
12398
12399   osf*)
12400     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12401     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12402     # nice to cause kernel panics so lets avoid the loop below.
12403     # First set a reasonable default.
12404     lt_cv_sys_max_cmd_len=16384
12405     #
12406     if test -x /sbin/sysconfig; then
12407       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12408         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12409       esac
12410     fi
12411     ;;
12412   sco3.2v5*)
12413     lt_cv_sys_max_cmd_len=102400
12414     ;;
12415   sysv5* | sco5v6* | sysv4.2uw2*)
12416     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12417     if test -n "$kargmax"; then
12418       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12419     else
12420       lt_cv_sys_max_cmd_len=32768
12421     fi
12422     ;;
12423   *)
12424     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12425     if test -n "$lt_cv_sys_max_cmd_len"; then
12426       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12427       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12428     else
12429       # Make teststring a little bigger before we do anything with it.
12430       # a 1K string should be a reasonable start.
12431       for i in 1 2 3 4 5 6 7 8 ; do
12432         teststring=$teststring$teststring
12433       done
12434       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12435       # If test is not a shell built-in, we'll probably end up computing a
12436       # maximum length that is only half of the actual maximum length, but
12437       # we can't tell.
12438       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12439                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12440               test $i != 17 # 1/2 MB should be enough
12441       do
12442         i=`expr $i + 1`
12443         teststring=$teststring$teststring
12444       done
12445       # Only check the string length outside the loop.
12446       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12447       teststring=
12448       # Add a significant safety factor because C++ compilers can tack on
12449       # massive amounts of additional arguments before passing them to the
12450       # linker.  It appears as though 1/2 is a usable value.
12451       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12452     fi
12453     ;;
12454   esac
12455
12456 fi
12457
12458 if test -n $lt_cv_sys_max_cmd_len ; then
12459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12460 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12461 else
12462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12463 $as_echo "none" >&6; }
12464 fi
12465 max_cmd_len=$lt_cv_sys_max_cmd_len
12466
12467
12468
12469
12470
12471
12472 : ${CP="cp -f"}
12473 : ${MV="mv -f"}
12474 : ${RM="rm -f"}
12475
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12477 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12478 # Try some XSI features
12479 xsi_shell=no
12480 ( _lt_dummy="a/b/c"
12481   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12482       = c,a/b,, \
12483     && eval 'test $(( 1 + 1 )) -eq 2 \
12484     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12485   && xsi_shell=yes
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12487 $as_echo "$xsi_shell" >&6; }
12488
12489
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12491 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12492 lt_shell_append=no
12493 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12494     >/dev/null 2>&1 \
12495   && lt_shell_append=yes
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12497 $as_echo "$lt_shell_append" >&6; }
12498
12499
12500 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12501   lt_unset=unset
12502 else
12503   lt_unset=false
12504 fi
12505
12506
12507
12508
12509
12510 # test EBCDIC or ASCII
12511 case `echo X|tr X '\101'` in
12512  A) # ASCII based system
12513     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12514   lt_SP2NL='tr \040 \012'
12515   lt_NL2SP='tr \015\012 \040\040'
12516   ;;
12517  *) # EBCDIC based system
12518   lt_SP2NL='tr \100 \n'
12519   lt_NL2SP='tr \r\n \100\100'
12520   ;;
12521 esac
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12532 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12533 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12534   $as_echo_n "(cached) " >&6
12535 else
12536   lt_cv_ld_reload_flag='-r'
12537 fi
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12539 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12540 reload_flag=$lt_cv_ld_reload_flag
12541 case $reload_flag in
12542 "" | " "*) ;;
12543 *) reload_flag=" $reload_flag" ;;
12544 esac
12545 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12546 case $host_os in
12547   darwin*)
12548     if test "$GCC" = yes; then
12549       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12550     else
12551       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12552     fi
12553     ;;
12554 esac
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564 if test -n "$ac_tool_prefix"; then
12565   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12566 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12568 $as_echo_n "checking for $ac_word... " >&6; }
12569 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12570   $as_echo_n "(cached) " >&6
12571 else
12572   if test -n "$OBJDUMP"; then
12573   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12574 else
12575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12576 for as_dir in $PATH
12577 do
12578   IFS=$as_save_IFS
12579   test -z "$as_dir" && as_dir=.
12580     for ac_exec_ext in '' $ac_executable_extensions; do
12581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12582     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12584     break 2
12585   fi
12586 done
12587   done
12588 IFS=$as_save_IFS
12589
12590 fi
12591 fi
12592 OBJDUMP=$ac_cv_prog_OBJDUMP
12593 if test -n "$OBJDUMP"; then
12594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12595 $as_echo "$OBJDUMP" >&6; }
12596 else
12597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598 $as_echo "no" >&6; }
12599 fi
12600
12601
12602 fi
12603 if test -z "$ac_cv_prog_OBJDUMP"; then
12604   ac_ct_OBJDUMP=$OBJDUMP
12605   # Extract the first word of "objdump", so it can be a program name with args.
12606 set dummy objdump; ac_word=$2
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12608 $as_echo_n "checking for $ac_word... " >&6; }
12609 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12610   $as_echo_n "(cached) " >&6
12611 else
12612   if test -n "$ac_ct_OBJDUMP"; then
12613   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12614 else
12615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12616 for as_dir in $PATH
12617 do
12618   IFS=$as_save_IFS
12619   test -z "$as_dir" && as_dir=.
12620     for ac_exec_ext in '' $ac_executable_extensions; do
12621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12622     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12624     break 2
12625   fi
12626 done
12627   done
12628 IFS=$as_save_IFS
12629
12630 fi
12631 fi
12632 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12633 if test -n "$ac_ct_OBJDUMP"; then
12634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12635 $as_echo "$ac_ct_OBJDUMP" >&6; }
12636 else
12637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638 $as_echo "no" >&6; }
12639 fi
12640
12641   if test "x$ac_ct_OBJDUMP" = x; then
12642     OBJDUMP="false"
12643   else
12644     case $cross_compiling:$ac_tool_warned in
12645 yes:)
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12648 ac_tool_warned=yes ;;
12649 esac
12650     OBJDUMP=$ac_ct_OBJDUMP
12651   fi
12652 else
12653   OBJDUMP="$ac_cv_prog_OBJDUMP"
12654 fi
12655
12656 test -z "$OBJDUMP" && OBJDUMP=objdump
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12667 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12668 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12669   $as_echo_n "(cached) " >&6
12670 else
12671   lt_cv_file_magic_cmd='$MAGIC_CMD'
12672 lt_cv_file_magic_test_file=
12673 lt_cv_deplibs_check_method='unknown'
12674 # Need to set the preceding variable on all platforms that support
12675 # interlibrary dependencies.
12676 # 'none' -- dependencies not supported.
12677 # `unknown' -- same as none, but documents that we really don't know.
12678 # 'pass_all' -- all dependencies passed with no checks.
12679 # 'test_compile' -- check by making test program.
12680 # 'file_magic [[regex]]' -- check by looking for files in library path
12681 # which responds to the $file_magic_cmd with a given extended regex.
12682 # If you have `file' or equivalent on your system and you're not sure
12683 # whether `pass_all' will *always* work, you probably want this one.
12684
12685 case $host_os in
12686 aix[4-9]*)
12687   lt_cv_deplibs_check_method=pass_all
12688   ;;
12689
12690 beos*)
12691   lt_cv_deplibs_check_method=pass_all
12692   ;;
12693
12694 bsdi[45]*)
12695   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12696   lt_cv_file_magic_cmd='/usr/bin/file -L'
12697   lt_cv_file_magic_test_file=/shlib/libc.so
12698   ;;
12699
12700 cygwin*)
12701   # func_win32_libid is a shell function defined in ltmain.sh
12702   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12703   lt_cv_file_magic_cmd='func_win32_libid'
12704   ;;
12705
12706 mingw* | pw32*)
12707   # Base MSYS/MinGW do not provide the 'file' command needed by
12708   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12709   # unless we find 'file', for example because we are cross-compiling.
12710   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12711   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12712     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12713     lt_cv_file_magic_cmd='func_win32_libid'
12714   else
12715     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12716     lt_cv_file_magic_cmd='$OBJDUMP -f'
12717   fi
12718   ;;
12719
12720 cegcc*)
12721   # use the weaker test based on 'objdump'. See mingw*.
12722   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12723   lt_cv_file_magic_cmd='$OBJDUMP -f'
12724   ;;
12725
12726 darwin* | rhapsody*)
12727   lt_cv_deplibs_check_method=pass_all
12728   ;;
12729
12730 freebsd* | dragonfly*)
12731   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12732     case $host_cpu in
12733     i*86 )
12734       # Not sure whether the presence of OpenBSD here was a mistake.
12735       # Let's accept both of them until this is cleared up.
12736       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12737       lt_cv_file_magic_cmd=/usr/bin/file
12738       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12739       ;;
12740     esac
12741   else
12742     lt_cv_deplibs_check_method=pass_all
12743   fi
12744   ;;
12745
12746 gnu*)
12747   lt_cv_deplibs_check_method=pass_all
12748   ;;
12749
12750 haiku*)
12751   lt_cv_deplibs_check_method=pass_all
12752   ;;
12753
12754 hpux10.20* | hpux11*)
12755   lt_cv_file_magic_cmd=/usr/bin/file
12756   case $host_cpu in
12757   ia64*)
12758     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12759     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12760     ;;
12761   hppa*64*)
12762     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]'
12763     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12764     ;;
12765   *)
12766     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12767     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12768     ;;
12769   esac
12770   ;;
12771
12772 interix[3-9]*)
12773   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12774   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12775   ;;
12776
12777 irix5* | irix6* | nonstopux*)
12778   case $LD in
12779   *-32|*"-32 ") libmagic=32-bit;;
12780   *-n32|*"-n32 ") libmagic=N32;;
12781   *-64|*"-64 ") libmagic=64-bit;;
12782   *) libmagic=never-match;;
12783   esac
12784   lt_cv_deplibs_check_method=pass_all
12785   ;;
12786
12787 # This must be Linux ELF.
12788 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12789   lt_cv_deplibs_check_method=pass_all
12790   ;;
12791
12792 netbsd*)
12793   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12794     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12795   else
12796     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12797   fi
12798   ;;
12799
12800 newos6*)
12801   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12802   lt_cv_file_magic_cmd=/usr/bin/file
12803   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12804   ;;
12805
12806 *nto* | *qnx*)
12807   lt_cv_deplibs_check_method=pass_all
12808   ;;
12809
12810 openbsd*)
12811   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12812     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12813   else
12814     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12815   fi
12816   ;;
12817
12818 osf3* | osf4* | osf5*)
12819   lt_cv_deplibs_check_method=pass_all
12820   ;;
12821
12822 rdos*)
12823   lt_cv_deplibs_check_method=pass_all
12824   ;;
12825
12826 solaris*)
12827   lt_cv_deplibs_check_method=pass_all
12828   ;;
12829
12830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12831   lt_cv_deplibs_check_method=pass_all
12832   ;;
12833
12834 sysv4 | sysv4.3*)
12835   case $host_vendor in
12836   motorola)
12837     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]'
12838     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12839     ;;
12840   ncr)
12841     lt_cv_deplibs_check_method=pass_all
12842     ;;
12843   sequent)
12844     lt_cv_file_magic_cmd='/bin/file'
12845     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12846     ;;
12847   sni)
12848     lt_cv_file_magic_cmd='/bin/file'
12849     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12850     lt_cv_file_magic_test_file=/lib/libc.so
12851     ;;
12852   siemens)
12853     lt_cv_deplibs_check_method=pass_all
12854     ;;
12855   pc)
12856     lt_cv_deplibs_check_method=pass_all
12857     ;;
12858   esac
12859   ;;
12860
12861 tpf*)
12862   lt_cv_deplibs_check_method=pass_all
12863   ;;
12864 esac
12865
12866 fi
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12868 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12869 file_magic_cmd=$lt_cv_file_magic_cmd
12870 deplibs_check_method=$lt_cv_deplibs_check_method
12871 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884 if test -n "$ac_tool_prefix"; then
12885   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12886 set dummy ${ac_tool_prefix}ar; ac_word=$2
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12888 $as_echo_n "checking for $ac_word... " >&6; }
12889 if test "${ac_cv_prog_AR+set}" = set; then :
12890   $as_echo_n "(cached) " >&6
12891 else
12892   if test -n "$AR"; then
12893   ac_cv_prog_AR="$AR" # Let the user override the test.
12894 else
12895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896 for as_dir in $PATH
12897 do
12898   IFS=$as_save_IFS
12899   test -z "$as_dir" && as_dir=.
12900     for ac_exec_ext in '' $ac_executable_extensions; do
12901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12902     ac_cv_prog_AR="${ac_tool_prefix}ar"
12903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12904     break 2
12905   fi
12906 done
12907   done
12908 IFS=$as_save_IFS
12909
12910 fi
12911 fi
12912 AR=$ac_cv_prog_AR
12913 if test -n "$AR"; then
12914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12915 $as_echo "$AR" >&6; }
12916 else
12917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918 $as_echo "no" >&6; }
12919 fi
12920
12921
12922 fi
12923 if test -z "$ac_cv_prog_AR"; then
12924   ac_ct_AR=$AR
12925   # Extract the first word of "ar", so it can be a program name with args.
12926 set dummy ar; ac_word=$2
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12928 $as_echo_n "checking for $ac_word... " >&6; }
12929 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12930   $as_echo_n "(cached) " >&6
12931 else
12932   if test -n "$ac_ct_AR"; then
12933   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12934 else
12935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12936 for as_dir in $PATH
12937 do
12938   IFS=$as_save_IFS
12939   test -z "$as_dir" && as_dir=.
12940     for ac_exec_ext in '' $ac_executable_extensions; do
12941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12942     ac_cv_prog_ac_ct_AR="ar"
12943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12944     break 2
12945   fi
12946 done
12947   done
12948 IFS=$as_save_IFS
12949
12950 fi
12951 fi
12952 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12953 if test -n "$ac_ct_AR"; then
12954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12955 $as_echo "$ac_ct_AR" >&6; }
12956 else
12957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958 $as_echo "no" >&6; }
12959 fi
12960
12961   if test "x$ac_ct_AR" = x; then
12962     AR="false"
12963   else
12964     case $cross_compiling:$ac_tool_warned in
12965 yes:)
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12968 ac_tool_warned=yes ;;
12969 esac
12970     AR=$ac_ct_AR
12971   fi
12972 else
12973   AR="$ac_cv_prog_AR"
12974 fi
12975
12976 test -z "$AR" && AR=ar
12977 test -z "$AR_FLAGS" && AR_FLAGS=cru
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989 if test -n "$ac_tool_prefix"; then
12990   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12991 set dummy ${ac_tool_prefix}strip; ac_word=$2
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12993 $as_echo_n "checking for $ac_word... " >&6; }
12994 if test "${ac_cv_prog_STRIP+set}" = set; then :
12995   $as_echo_n "(cached) " >&6
12996 else
12997   if test -n "$STRIP"; then
12998   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12999 else
13000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001 for as_dir in $PATH
13002 do
13003   IFS=$as_save_IFS
13004   test -z "$as_dir" && as_dir=.
13005     for ac_exec_ext in '' $ac_executable_extensions; do
13006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13007     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13009     break 2
13010   fi
13011 done
13012   done
13013 IFS=$as_save_IFS
13014
13015 fi
13016 fi
13017 STRIP=$ac_cv_prog_STRIP
13018 if test -n "$STRIP"; then
13019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13020 $as_echo "$STRIP" >&6; }
13021 else
13022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023 $as_echo "no" >&6; }
13024 fi
13025
13026
13027 fi
13028 if test -z "$ac_cv_prog_STRIP"; then
13029   ac_ct_STRIP=$STRIP
13030   # Extract the first word of "strip", so it can be a program name with args.
13031 set dummy strip; ac_word=$2
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13033 $as_echo_n "checking for $ac_word... " >&6; }
13034 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13035   $as_echo_n "(cached) " >&6
13036 else
13037   if test -n "$ac_ct_STRIP"; then
13038   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13039 else
13040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13041 for as_dir in $PATH
13042 do
13043   IFS=$as_save_IFS
13044   test -z "$as_dir" && as_dir=.
13045     for ac_exec_ext in '' $ac_executable_extensions; do
13046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13047     ac_cv_prog_ac_ct_STRIP="strip"
13048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13049     break 2
13050   fi
13051 done
13052   done
13053 IFS=$as_save_IFS
13054
13055 fi
13056 fi
13057 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13058 if test -n "$ac_ct_STRIP"; then
13059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13060 $as_echo "$ac_ct_STRIP" >&6; }
13061 else
13062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13063 $as_echo "no" >&6; }
13064 fi
13065
13066   if test "x$ac_ct_STRIP" = x; then
13067     STRIP=":"
13068   else
13069     case $cross_compiling:$ac_tool_warned in
13070 yes:)
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13073 ac_tool_warned=yes ;;
13074 esac
13075     STRIP=$ac_ct_STRIP
13076   fi
13077 else
13078   STRIP="$ac_cv_prog_STRIP"
13079 fi
13080
13081 test -z "$STRIP" && STRIP=:
13082
13083
13084
13085
13086
13087
13088 if test -n "$ac_tool_prefix"; then
13089   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13090 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13092 $as_echo_n "checking for $ac_word... " >&6; }
13093 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13094   $as_echo_n "(cached) " >&6
13095 else
13096   if test -n "$RANLIB"; then
13097   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13098 else
13099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100 for as_dir in $PATH
13101 do
13102   IFS=$as_save_IFS
13103   test -z "$as_dir" && as_dir=.
13104     for ac_exec_ext in '' $ac_executable_extensions; do
13105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13106     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13108     break 2
13109   fi
13110 done
13111   done
13112 IFS=$as_save_IFS
13113
13114 fi
13115 fi
13116 RANLIB=$ac_cv_prog_RANLIB
13117 if test -n "$RANLIB"; then
13118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13119 $as_echo "$RANLIB" >&6; }
13120 else
13121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13122 $as_echo "no" >&6; }
13123 fi
13124
13125
13126 fi
13127 if test -z "$ac_cv_prog_RANLIB"; then
13128   ac_ct_RANLIB=$RANLIB
13129   # Extract the first word of "ranlib", so it can be a program name with args.
13130 set dummy ranlib; ac_word=$2
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13132 $as_echo_n "checking for $ac_word... " >&6; }
13133 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13134   $as_echo_n "(cached) " >&6
13135 else
13136   if test -n "$ac_ct_RANLIB"; then
13137   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13138 else
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140 for as_dir in $PATH
13141 do
13142   IFS=$as_save_IFS
13143   test -z "$as_dir" && as_dir=.
13144     for ac_exec_ext in '' $ac_executable_extensions; do
13145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13146     ac_cv_prog_ac_ct_RANLIB="ranlib"
13147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13148     break 2
13149   fi
13150 done
13151   done
13152 IFS=$as_save_IFS
13153
13154 fi
13155 fi
13156 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13157 if test -n "$ac_ct_RANLIB"; then
13158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13159 $as_echo "$ac_ct_RANLIB" >&6; }
13160 else
13161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162 $as_echo "no" >&6; }
13163 fi
13164
13165   if test "x$ac_ct_RANLIB" = x; then
13166     RANLIB=":"
13167   else
13168     case $cross_compiling:$ac_tool_warned in
13169 yes:)
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13172 ac_tool_warned=yes ;;
13173 esac
13174     RANLIB=$ac_ct_RANLIB
13175   fi
13176 else
13177   RANLIB="$ac_cv_prog_RANLIB"
13178 fi
13179
13180 test -z "$RANLIB" && RANLIB=:
13181
13182
13183
13184
13185
13186
13187 # Determine commands to create old-style static archives.
13188 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13189 old_postinstall_cmds='chmod 644 $oldlib'
13190 old_postuninstall_cmds=
13191
13192 if test -n "$RANLIB"; then
13193   case $host_os in
13194   openbsd*)
13195     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13196     ;;
13197   *)
13198     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13199     ;;
13200   esac
13201   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13202 fi
13203
13204 case $host_os in
13205   darwin*)
13206     lock_old_archive_extraction=yes ;;
13207   *)
13208     lock_old_archive_extraction=no ;;
13209 esac
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249 # If no C compiler was specified, use CC.
13250 LTCC=${LTCC-"$CC"}
13251
13252 # If no C compiler flags were specified, use CFLAGS.
13253 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13254
13255 # Allow CC to be a program name with arguments.
13256 compiler=$CC
13257
13258
13259 # Check for command to grab the raw symbol name followed by C symbol from nm.
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13261 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13262 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13263   $as_echo_n "(cached) " >&6
13264 else
13265
13266 # These are sane defaults that work on at least a few old systems.
13267 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13268
13269 # Character class describing NM global symbol codes.
13270 symcode='[BCDEGRST]'
13271
13272 # Regexp to match symbols that can be accessed directly from C.
13273 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13274
13275 # Define system-specific variables.
13276 case $host_os in
13277 aix*)
13278   symcode='[BCDT]'
13279   ;;
13280 cygwin* | mingw* | pw32* | cegcc*)
13281   symcode='[ABCDGISTW]'
13282   ;;
13283 hpux*)
13284   if test "$host_cpu" = ia64; then
13285     symcode='[ABCDEGRST]'
13286   fi
13287   ;;
13288 irix* | nonstopux*)
13289   symcode='[BCDEGRST]'
13290   ;;
13291 osf*)
13292   symcode='[BCDEGQRST]'
13293   ;;
13294 solaris*)
13295   symcode='[BDRT]'
13296   ;;
13297 sco3.2v5*)
13298   symcode='[DT]'
13299   ;;
13300 sysv4.2uw2*)
13301   symcode='[DT]'
13302   ;;
13303 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13304   symcode='[ABDT]'
13305   ;;
13306 sysv4)
13307   symcode='[DFNSTU]'
13308   ;;
13309 esac
13310
13311 # If we're using GNU nm, then use its standard symbol codes.
13312 case `$NM -V 2>&1` in
13313 *GNU* | *'with BFD'*)
13314   symcode='[ABCDGIRSTW]' ;;
13315 esac
13316
13317 # Transform an extracted symbol line into a proper C declaration.
13318 # Some systems (esp. on ia64) link data and code symbols differently,
13319 # so use this general approach.
13320 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13321
13322 # Transform an extracted symbol line into symbol name and symbol address
13323 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13324 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'"
13325
13326 # Handle CRLF in mingw tool chain
13327 opt_cr=
13328 case $build_os in
13329 mingw*)
13330   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13331   ;;
13332 esac
13333
13334 # Try without a prefix underscore, then with it.
13335 for ac_symprfx in "" "_"; do
13336
13337   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13338   symxfrm="\\1 $ac_symprfx\\2 \\2"
13339
13340   # Write the raw and C identifiers.
13341   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13342     # Fake it for dumpbin and say T for any non-static function
13343     # and D for any global variable.
13344     # Also find C++ and __fastcall symbols from MSVC++,
13345     # which start with @ or ?.
13346     lt_cv_sys_global_symbol_pipe="$AWK '"\
13347 "     {last_section=section; section=\$ 3};"\
13348 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13349 "     \$ 0!~/External *\|/{next};"\
13350 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13351 "     {if(hide[section]) next};"\
13352 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13353 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13354 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13355 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13356 "     ' prfx=^$ac_symprfx"
13357   else
13358     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13359   fi
13360
13361   # Check to see that the pipe works correctly.
13362   pipe_works=no
13363
13364   rm -f conftest*
13365   cat > conftest.$ac_ext <<_LT_EOF
13366 #ifdef __cplusplus
13367 extern "C" {
13368 #endif
13369 char nm_test_var;
13370 void nm_test_func(void);
13371 void nm_test_func(void){}
13372 #ifdef __cplusplus
13373 }
13374 #endif
13375 int main(){nm_test_var='a';nm_test_func();return(0);}
13376 _LT_EOF
13377
13378   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13379   (eval $ac_compile) 2>&5
13380   ac_status=$?
13381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13382   test $ac_status = 0; }; then
13383     # Now try to grab the symbols.
13384     nlist=conftest.nm
13385     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13386   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13387   ac_status=$?
13388   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13389   test $ac_status = 0; } && test -s "$nlist"; then
13390       # Try sorting and uniquifying the output.
13391       if sort "$nlist" | uniq > "$nlist"T; then
13392         mv -f "$nlist"T "$nlist"
13393       else
13394         rm -f "$nlist"T
13395       fi
13396
13397       # Make sure that we snagged all the symbols we need.
13398       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13399         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13400           cat <<_LT_EOF > conftest.$ac_ext
13401 #ifdef __cplusplus
13402 extern "C" {
13403 #endif
13404
13405 _LT_EOF
13406           # Now generate the symbol file.
13407           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13408
13409           cat <<_LT_EOF >> conftest.$ac_ext
13410
13411 /* The mapping between symbol names and symbols.  */
13412 const struct {
13413   const char *name;
13414   void       *address;
13415 }
13416 lt__PROGRAM__LTX_preloaded_symbols[] =
13417 {
13418   { "@PROGRAM@", (void *) 0 },
13419 _LT_EOF
13420           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13421           cat <<\_LT_EOF >> conftest.$ac_ext
13422   {0, (void *) 0}
13423 };
13424
13425 /* This works around a problem in FreeBSD linker */
13426 #ifdef FREEBSD_WORKAROUND
13427 static const void *lt_preloaded_setup() {
13428   return lt__PROGRAM__LTX_preloaded_symbols;
13429 }
13430 #endif
13431
13432 #ifdef __cplusplus
13433 }
13434 #endif
13435 _LT_EOF
13436           # Now try linking the two files.
13437           mv conftest.$ac_objext conftstm.$ac_objext
13438           lt_save_LIBS="$LIBS"
13439           lt_save_CFLAGS="$CFLAGS"
13440           LIBS="conftstm.$ac_objext"
13441           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13442           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13443   (eval $ac_link) 2>&5
13444   ac_status=$?
13445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13446   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13447             pipe_works=yes
13448           fi
13449           LIBS="$lt_save_LIBS"
13450           CFLAGS="$lt_save_CFLAGS"
13451         else
13452           echo "cannot find nm_test_func in $nlist" >&5
13453         fi
13454       else
13455         echo "cannot find nm_test_var in $nlist" >&5
13456       fi
13457     else
13458       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13459     fi
13460   else
13461     echo "$progname: failed program was:" >&5
13462     cat conftest.$ac_ext >&5
13463   fi
13464   rm -rf conftest* conftst*
13465
13466   # Do not use the global_symbol_pipe unless it works.
13467   if test "$pipe_works" = yes; then
13468     break
13469   else
13470     lt_cv_sys_global_symbol_pipe=
13471   fi
13472 done
13473
13474 fi
13475
13476 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13477   lt_cv_sys_global_symbol_to_cdecl=
13478 fi
13479 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13481 $as_echo "failed" >&6; }
13482 else
13483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13484 $as_echo "ok" >&6; }
13485 fi
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508 # Check whether --enable-libtool-lock was given.
13509 if test "${enable_libtool_lock+set}" = set; then :
13510   enableval=$enable_libtool_lock;
13511 fi
13512
13513 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13514
13515 # Some flags need to be propagated to the compiler or linker for good
13516 # libtool support.
13517 case $host in
13518 ia64-*-hpux*)
13519   # Find out which ABI we are using.
13520   echo 'int i;' > conftest.$ac_ext
13521   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13522   (eval $ac_compile) 2>&5
13523   ac_status=$?
13524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13525   test $ac_status = 0; }; then
13526     case `/usr/bin/file conftest.$ac_objext` in
13527       *ELF-32*)
13528         HPUX_IA64_MODE="32"
13529         ;;
13530       *ELF-64*)
13531         HPUX_IA64_MODE="64"
13532         ;;
13533     esac
13534   fi
13535   rm -rf conftest*
13536   ;;
13537 *-*-irix6*)
13538   # Find out which ABI we are using.
13539   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13540   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13541   (eval $ac_compile) 2>&5
13542   ac_status=$?
13543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13544   test $ac_status = 0; }; then
13545     if test "$lt_cv_prog_gnu_ld" = yes; then
13546       case `/usr/bin/file conftest.$ac_objext` in
13547         *32-bit*)
13548           LD="${LD-ld} -melf32bsmip"
13549           ;;
13550         *N32*)
13551           LD="${LD-ld} -melf32bmipn32"
13552           ;;
13553         *64-bit*)
13554           LD="${LD-ld} -melf64bmip"
13555         ;;
13556       esac
13557     else
13558       case `/usr/bin/file conftest.$ac_objext` in
13559         *32-bit*)
13560           LD="${LD-ld} -32"
13561           ;;
13562         *N32*)
13563           LD="${LD-ld} -n32"
13564           ;;
13565         *64-bit*)
13566           LD="${LD-ld} -64"
13567           ;;
13568       esac
13569     fi
13570   fi
13571   rm -rf conftest*
13572   ;;
13573
13574 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13575 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13576   # Find out which ABI we are using.
13577   echo 'int i;' > conftest.$ac_ext
13578   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13579   (eval $ac_compile) 2>&5
13580   ac_status=$?
13581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13582   test $ac_status = 0; }; then
13583     case `/usr/bin/file conftest.o` in
13584       *32-bit*)
13585         case $host in
13586           x86_64-*kfreebsd*-gnu)
13587             LD="${LD-ld} -m elf_i386_fbsd"
13588             ;;
13589           x86_64-*linux*)
13590             LD="${LD-ld} -m elf_i386"
13591             ;;
13592           ppc64-*linux*|powerpc64-*linux*)
13593             LD="${LD-ld} -m elf32ppclinux"
13594             ;;
13595           s390x-*linux*)
13596             LD="${LD-ld} -m elf_s390"
13597             ;;
13598           sparc64-*linux*)
13599             LD="${LD-ld} -m elf32_sparc"
13600             ;;
13601         esac
13602         ;;
13603       *64-bit*)
13604         case $host in
13605           x86_64-*kfreebsd*-gnu)
13606             LD="${LD-ld} -m elf_x86_64_fbsd"
13607             ;;
13608           x86_64-*linux*)
13609             LD="${LD-ld} -m elf_x86_64"
13610             ;;
13611           ppc*-*linux*|powerpc*-*linux*)
13612             LD="${LD-ld} -m elf64ppc"
13613             ;;
13614           s390*-*linux*|s390*-*tpf*)
13615             LD="${LD-ld} -m elf64_s390"
13616             ;;
13617           sparc*-*linux*)
13618             LD="${LD-ld} -m elf64_sparc"
13619             ;;
13620         esac
13621         ;;
13622     esac
13623   fi
13624   rm -rf conftest*
13625   ;;
13626
13627 *-*-sco3.2v5*)
13628   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13629   SAVE_CFLAGS="$CFLAGS"
13630   CFLAGS="$CFLAGS -belf"
13631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13632 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13633 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13634   $as_echo_n "(cached) " >&6
13635 else
13636   ac_ext=c
13637 ac_cpp='$CPP $CPPFLAGS'
13638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13641
13642      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h.  */
13644
13645 int
13646 main ()
13647 {
13648
13649   ;
13650   return 0;
13651 }
13652 _ACEOF
13653 if ac_fn_c_try_link "$LINENO"; then :
13654   lt_cv_cc_needs_belf=yes
13655 else
13656   lt_cv_cc_needs_belf=no
13657 fi
13658 rm -f core conftest.err conftest.$ac_objext \
13659     conftest$ac_exeext conftest.$ac_ext
13660      ac_ext=c
13661 ac_cpp='$CPP $CPPFLAGS'
13662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13665
13666 fi
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13668 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13669   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13670     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13671     CFLAGS="$SAVE_CFLAGS"
13672   fi
13673   ;;
13674 sparc*-*solaris*)
13675   # Find out which ABI we are using.
13676   echo 'int i;' > conftest.$ac_ext
13677   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13678   (eval $ac_compile) 2>&5
13679   ac_status=$?
13680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13681   test $ac_status = 0; }; then
13682     case `/usr/bin/file conftest.o` in
13683     *64-bit*)
13684       case $lt_cv_prog_gnu_ld in
13685       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13686       *)
13687         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13688           LD="${LD-ld} -64"
13689         fi
13690         ;;
13691       esac
13692       ;;
13693     esac
13694   fi
13695   rm -rf conftest*
13696   ;;
13697 esac
13698
13699 need_locks="$enable_libtool_lock"
13700
13701
13702   case $host_os in
13703     rhapsody* | darwin*)
13704     if test -n "$ac_tool_prefix"; then
13705   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13706 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13708 $as_echo_n "checking for $ac_word... " >&6; }
13709 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13710   $as_echo_n "(cached) " >&6
13711 else
13712   if test -n "$DSYMUTIL"; then
13713   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13714 else
13715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13716 for as_dir in $PATH
13717 do
13718   IFS=$as_save_IFS
13719   test -z "$as_dir" && as_dir=.
13720     for ac_exec_ext in '' $ac_executable_extensions; do
13721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13722     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13724     break 2
13725   fi
13726 done
13727   done
13728 IFS=$as_save_IFS
13729
13730 fi
13731 fi
13732 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13733 if test -n "$DSYMUTIL"; then
13734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13735 $as_echo "$DSYMUTIL" >&6; }
13736 else
13737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13738 $as_echo "no" >&6; }
13739 fi
13740
13741
13742 fi
13743 if test -z "$ac_cv_prog_DSYMUTIL"; then
13744   ac_ct_DSYMUTIL=$DSYMUTIL
13745   # Extract the first word of "dsymutil", so it can be a program name with args.
13746 set dummy dsymutil; ac_word=$2
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13748 $as_echo_n "checking for $ac_word... " >&6; }
13749 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13750   $as_echo_n "(cached) " >&6
13751 else
13752   if test -n "$ac_ct_DSYMUTIL"; then
13753   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13754 else
13755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13756 for as_dir in $PATH
13757 do
13758   IFS=$as_save_IFS
13759   test -z "$as_dir" && as_dir=.
13760     for ac_exec_ext in '' $ac_executable_extensions; do
13761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13762     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13764     break 2
13765   fi
13766 done
13767   done
13768 IFS=$as_save_IFS
13769
13770 fi
13771 fi
13772 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13773 if test -n "$ac_ct_DSYMUTIL"; then
13774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13775 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13776 else
13777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13778 $as_echo "no" >&6; }
13779 fi
13780
13781   if test "x$ac_ct_DSYMUTIL" = x; then
13782     DSYMUTIL=":"
13783   else
13784     case $cross_compiling:$ac_tool_warned in
13785 yes:)
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13788 ac_tool_warned=yes ;;
13789 esac
13790     DSYMUTIL=$ac_ct_DSYMUTIL
13791   fi
13792 else
13793   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13794 fi
13795
13796     if test -n "$ac_tool_prefix"; then
13797   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13798 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13800 $as_echo_n "checking for $ac_word... " >&6; }
13801 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13802   $as_echo_n "(cached) " >&6
13803 else
13804   if test -n "$NMEDIT"; then
13805   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13806 else
13807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13808 for as_dir in $PATH
13809 do
13810   IFS=$as_save_IFS
13811   test -z "$as_dir" && as_dir=.
13812     for ac_exec_ext in '' $ac_executable_extensions; do
13813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13814     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13816     break 2
13817   fi
13818 done
13819   done
13820 IFS=$as_save_IFS
13821
13822 fi
13823 fi
13824 NMEDIT=$ac_cv_prog_NMEDIT
13825 if test -n "$NMEDIT"; then
13826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13827 $as_echo "$NMEDIT" >&6; }
13828 else
13829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13830 $as_echo "no" >&6; }
13831 fi
13832
13833
13834 fi
13835 if test -z "$ac_cv_prog_NMEDIT"; then
13836   ac_ct_NMEDIT=$NMEDIT
13837   # Extract the first word of "nmedit", so it can be a program name with args.
13838 set dummy nmedit; ac_word=$2
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13840 $as_echo_n "checking for $ac_word... " >&6; }
13841 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13842   $as_echo_n "(cached) " >&6
13843 else
13844   if test -n "$ac_ct_NMEDIT"; then
13845   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13846 else
13847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13848 for as_dir in $PATH
13849 do
13850   IFS=$as_save_IFS
13851   test -z "$as_dir" && as_dir=.
13852     for ac_exec_ext in '' $ac_executable_extensions; do
13853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13854     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13856     break 2
13857   fi
13858 done
13859   done
13860 IFS=$as_save_IFS
13861
13862 fi
13863 fi
13864 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13865 if test -n "$ac_ct_NMEDIT"; then
13866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13867 $as_echo "$ac_ct_NMEDIT" >&6; }
13868 else
13869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13870 $as_echo "no" >&6; }
13871 fi
13872
13873   if test "x$ac_ct_NMEDIT" = x; then
13874     NMEDIT=":"
13875   else
13876     case $cross_compiling:$ac_tool_warned in
13877 yes:)
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13880 ac_tool_warned=yes ;;
13881 esac
13882     NMEDIT=$ac_ct_NMEDIT
13883   fi
13884 else
13885   NMEDIT="$ac_cv_prog_NMEDIT"
13886 fi
13887
13888     if test -n "$ac_tool_prefix"; then
13889   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13890 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13892 $as_echo_n "checking for $ac_word... " >&6; }
13893 if test "${ac_cv_prog_LIPO+set}" = set; then :
13894   $as_echo_n "(cached) " >&6
13895 else
13896   if test -n "$LIPO"; then
13897   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13898 else
13899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13900 for as_dir in $PATH
13901 do
13902   IFS=$as_save_IFS
13903   test -z "$as_dir" && as_dir=.
13904     for ac_exec_ext in '' $ac_executable_extensions; do
13905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13906     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13908     break 2
13909   fi
13910 done
13911   done
13912 IFS=$as_save_IFS
13913
13914 fi
13915 fi
13916 LIPO=$ac_cv_prog_LIPO
13917 if test -n "$LIPO"; then
13918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13919 $as_echo "$LIPO" >&6; }
13920 else
13921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13922 $as_echo "no" >&6; }
13923 fi
13924
13925
13926 fi
13927 if test -z "$ac_cv_prog_LIPO"; then
13928   ac_ct_LIPO=$LIPO
13929   # Extract the first word of "lipo", so it can be a program name with args.
13930 set dummy lipo; ac_word=$2
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13932 $as_echo_n "checking for $ac_word... " >&6; }
13933 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13934   $as_echo_n "(cached) " >&6
13935 else
13936   if test -n "$ac_ct_LIPO"; then
13937   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13938 else
13939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13940 for as_dir in $PATH
13941 do
13942   IFS=$as_save_IFS
13943   test -z "$as_dir" && as_dir=.
13944     for ac_exec_ext in '' $ac_executable_extensions; do
13945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13946     ac_cv_prog_ac_ct_LIPO="lipo"
13947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13948     break 2
13949   fi
13950 done
13951   done
13952 IFS=$as_save_IFS
13953
13954 fi
13955 fi
13956 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13957 if test -n "$ac_ct_LIPO"; then
13958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13959 $as_echo "$ac_ct_LIPO" >&6; }
13960 else
13961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13962 $as_echo "no" >&6; }
13963 fi
13964
13965   if test "x$ac_ct_LIPO" = x; then
13966     LIPO=":"
13967   else
13968     case $cross_compiling:$ac_tool_warned in
13969 yes:)
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13972 ac_tool_warned=yes ;;
13973 esac
13974     LIPO=$ac_ct_LIPO
13975   fi
13976 else
13977   LIPO="$ac_cv_prog_LIPO"
13978 fi
13979
13980     if test -n "$ac_tool_prefix"; then
13981   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13982 set dummy ${ac_tool_prefix}otool; ac_word=$2
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13984 $as_echo_n "checking for $ac_word... " >&6; }
13985 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13986   $as_echo_n "(cached) " >&6
13987 else
13988   if test -n "$OTOOL"; then
13989   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13990 else
13991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992 for as_dir in $PATH
13993 do
13994   IFS=$as_save_IFS
13995   test -z "$as_dir" && as_dir=.
13996     for ac_exec_ext in '' $ac_executable_extensions; do
13997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13998     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14000     break 2
14001   fi
14002 done
14003   done
14004 IFS=$as_save_IFS
14005
14006 fi
14007 fi
14008 OTOOL=$ac_cv_prog_OTOOL
14009 if test -n "$OTOOL"; then
14010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14011 $as_echo "$OTOOL" >&6; }
14012 else
14013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14014 $as_echo "no" >&6; }
14015 fi
14016
14017
14018 fi
14019 if test -z "$ac_cv_prog_OTOOL"; then
14020   ac_ct_OTOOL=$OTOOL
14021   # Extract the first word of "otool", so it can be a program name with args.
14022 set dummy otool; ac_word=$2
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14024 $as_echo_n "checking for $ac_word... " >&6; }
14025 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14026   $as_echo_n "(cached) " >&6
14027 else
14028   if test -n "$ac_ct_OTOOL"; then
14029   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14030 else
14031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14032 for as_dir in $PATH
14033 do
14034   IFS=$as_save_IFS
14035   test -z "$as_dir" && as_dir=.
14036     for ac_exec_ext in '' $ac_executable_extensions; do
14037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14038     ac_cv_prog_ac_ct_OTOOL="otool"
14039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14040     break 2
14041   fi
14042 done
14043   done
14044 IFS=$as_save_IFS
14045
14046 fi
14047 fi
14048 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14049 if test -n "$ac_ct_OTOOL"; then
14050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14051 $as_echo "$ac_ct_OTOOL" >&6; }
14052 else
14053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14054 $as_echo "no" >&6; }
14055 fi
14056
14057   if test "x$ac_ct_OTOOL" = x; then
14058     OTOOL=":"
14059   else
14060     case $cross_compiling:$ac_tool_warned in
14061 yes:)
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14064 ac_tool_warned=yes ;;
14065 esac
14066     OTOOL=$ac_ct_OTOOL
14067   fi
14068 else
14069   OTOOL="$ac_cv_prog_OTOOL"
14070 fi
14071
14072     if test -n "$ac_tool_prefix"; then
14073   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14074 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14076 $as_echo_n "checking for $ac_word... " >&6; }
14077 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14078   $as_echo_n "(cached) " >&6
14079 else
14080   if test -n "$OTOOL64"; then
14081   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14082 else
14083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14084 for as_dir in $PATH
14085 do
14086   IFS=$as_save_IFS
14087   test -z "$as_dir" && as_dir=.
14088     for ac_exec_ext in '' $ac_executable_extensions; do
14089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14090     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14092     break 2
14093   fi
14094 done
14095   done
14096 IFS=$as_save_IFS
14097
14098 fi
14099 fi
14100 OTOOL64=$ac_cv_prog_OTOOL64
14101 if test -n "$OTOOL64"; then
14102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14103 $as_echo "$OTOOL64" >&6; }
14104 else
14105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14106 $as_echo "no" >&6; }
14107 fi
14108
14109
14110 fi
14111 if test -z "$ac_cv_prog_OTOOL64"; then
14112   ac_ct_OTOOL64=$OTOOL64
14113   # Extract the first word of "otool64", so it can be a program name with args.
14114 set dummy otool64; ac_word=$2
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14116 $as_echo_n "checking for $ac_word... " >&6; }
14117 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14118   $as_echo_n "(cached) " >&6
14119 else
14120   if test -n "$ac_ct_OTOOL64"; then
14121   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14122 else
14123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14124 for as_dir in $PATH
14125 do
14126   IFS=$as_save_IFS
14127   test -z "$as_dir" && as_dir=.
14128     for ac_exec_ext in '' $ac_executable_extensions; do
14129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14130     ac_cv_prog_ac_ct_OTOOL64="otool64"
14131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14132     break 2
14133   fi
14134 done
14135   done
14136 IFS=$as_save_IFS
14137
14138 fi
14139 fi
14140 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14141 if test -n "$ac_ct_OTOOL64"; then
14142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14143 $as_echo "$ac_ct_OTOOL64" >&6; }
14144 else
14145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14146 $as_echo "no" >&6; }
14147 fi
14148
14149   if test "x$ac_ct_OTOOL64" = x; then
14150     OTOOL64=":"
14151   else
14152     case $cross_compiling:$ac_tool_warned in
14153 yes:)
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14156 ac_tool_warned=yes ;;
14157 esac
14158     OTOOL64=$ac_ct_OTOOL64
14159   fi
14160 else
14161   OTOOL64="$ac_cv_prog_OTOOL64"
14162 fi
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14191 $as_echo_n "checking for -single_module linker flag... " >&6; }
14192 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14193   $as_echo_n "(cached) " >&6
14194 else
14195   lt_cv_apple_cc_single_mod=no
14196       if test -z "${LT_MULTI_MODULE}"; then
14197         # By default we will add the -single_module flag. You can override
14198         # by either setting the environment variable LT_MULTI_MODULE
14199         # non-empty at configure time, or by adding -multi_module to the
14200         # link flags.
14201         rm -rf libconftest.dylib*
14202         echo "int foo(void){return 1;}" > conftest.c
14203         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14204 -dynamiclib -Wl,-single_module conftest.c" >&5
14205         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14206           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14207         _lt_result=$?
14208         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14209           lt_cv_apple_cc_single_mod=yes
14210         else
14211           cat conftest.err >&5
14212         fi
14213         rm -rf libconftest.dylib*
14214         rm -f conftest.*
14215       fi
14216 fi
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14218 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14219     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14220 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14221 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14222   $as_echo_n "(cached) " >&6
14223 else
14224   lt_cv_ld_exported_symbols_list=no
14225       save_LDFLAGS=$LDFLAGS
14226       echo "_main" > conftest.sym
14227       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14228       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229 /* end confdefs.h.  */
14230
14231 int
14232 main ()
14233 {
14234
14235   ;
14236   return 0;
14237 }
14238 _ACEOF
14239 if ac_fn_c_try_link "$LINENO"; then :
14240   lt_cv_ld_exported_symbols_list=yes
14241 else
14242   lt_cv_ld_exported_symbols_list=no
14243 fi
14244 rm -f core conftest.err conftest.$ac_objext \
14245     conftest$ac_exeext conftest.$ac_ext
14246         LDFLAGS="$save_LDFLAGS"
14247
14248 fi
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14250 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14252 $as_echo_n "checking for -force_load linker flag... " >&6; }
14253 if test "${lt_cv_ld_force_load+set}" = set; then :
14254   $as_echo_n "(cached) " >&6
14255 else
14256   lt_cv_ld_force_load=no
14257       cat > conftest.c << _LT_EOF
14258 int forced_loaded() { return 2;}
14259 _LT_EOF
14260       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14261       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14262       echo "$AR cru libconftest.a conftest.o" >&5
14263       $AR cru libconftest.a conftest.o 2>&5
14264       cat > conftest.c << _LT_EOF
14265 int main() { return 0;}
14266 _LT_EOF
14267       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14268       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14269       _lt_result=$?
14270       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14271         lt_cv_ld_force_load=yes
14272       else
14273         cat conftest.err >&5
14274       fi
14275         rm -f conftest.err libconftest.a conftest conftest.c
14276         rm -rf conftest.dSYM
14277
14278 fi
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14280 $as_echo "$lt_cv_ld_force_load" >&6; }
14281     case $host_os in
14282     rhapsody* | darwin1.[012])
14283       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14284     darwin1.*)
14285       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14286     darwin*) # darwin 5.x on
14287       # if running on 10.5 or later, the deployment target defaults
14288       # to the OS version, if on x86, and 10.4, the deployment
14289       # target defaults to 10.4. Don't you love it?
14290       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14291         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14292           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14293         10.[012]*)
14294           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14295         10.*)
14296           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14297       esac
14298     ;;
14299   esac
14300     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14301       _lt_dar_single_mod='$single_module'
14302     fi
14303     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14304       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14305     else
14306       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14307     fi
14308     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14309       _lt_dsymutil='~$DSYMUTIL $lib || :'
14310     else
14311       _lt_dsymutil=
14312     fi
14313     ;;
14314   esac
14315
14316 for ac_header in dlfcn.h
14317 do :
14318   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14319 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14320   cat >>confdefs.h <<_ACEOF
14321 #define HAVE_DLFCN_H 1
14322 _ACEOF
14323
14324 fi
14325 done
14326
14327
14328
14329
14330
14331 # Set options
14332
14333
14334
14335         enable_dlopen=no
14336
14337
14338   enable_win32_dll=no
14339
14340
14341             # Check whether --enable-shared was given.
14342 if test "${enable_shared+set}" = set; then :
14343   enableval=$enable_shared; p=${PACKAGE-default}
14344     case $enableval in
14345     yes) enable_shared=yes ;;
14346     no) enable_shared=no ;;
14347     *)
14348       enable_shared=no
14349       # Look at the argument we got.  We use all the common list separators.
14350       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14351       for pkg in $enableval; do
14352         IFS="$lt_save_ifs"
14353         if test "X$pkg" = "X$p"; then
14354           enable_shared=yes
14355         fi
14356       done
14357       IFS="$lt_save_ifs"
14358       ;;
14359     esac
14360 else
14361   enable_shared=yes
14362 fi
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372   # Check whether --enable-static was given.
14373 if test "${enable_static+set}" = set; then :
14374   enableval=$enable_static; p=${PACKAGE-default}
14375     case $enableval in
14376     yes) enable_static=yes ;;
14377     no) enable_static=no ;;
14378     *)
14379      enable_static=no
14380       # Look at the argument we got.  We use all the common list separators.
14381       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14382       for pkg in $enableval; do
14383         IFS="$lt_save_ifs"
14384         if test "X$pkg" = "X$p"; then
14385           enable_static=yes
14386         fi
14387       done
14388       IFS="$lt_save_ifs"
14389       ;;
14390     esac
14391 else
14392   enable_static=yes
14393 fi
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404 # Check whether --with-pic was given.
14405 if test "${with_pic+set}" = set; then :
14406   withval=$with_pic; pic_mode="$withval"
14407 else
14408   pic_mode=default
14409 fi
14410
14411
14412 test -z "$pic_mode" && pic_mode=default
14413
14414
14415
14416
14417
14418
14419
14420   # Check whether --enable-fast-install was given.
14421 if test "${enable_fast_install+set}" = set; then :
14422   enableval=$enable_fast_install; p=${PACKAGE-default}
14423     case $enableval in
14424     yes) enable_fast_install=yes ;;
14425     no) enable_fast_install=no ;;
14426     *)
14427       enable_fast_install=no
14428       # Look at the argument we got.  We use all the common list separators.
14429       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14430       for pkg in $enableval; do
14431         IFS="$lt_save_ifs"
14432         if test "X$pkg" = "X$p"; then
14433           enable_fast_install=yes
14434         fi
14435       done
14436       IFS="$lt_save_ifs"
14437       ;;
14438     esac
14439 else
14440   enable_fast_install=yes
14441 fi
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453 # This can be used to rebuild libtool when needed
14454 LIBTOOL_DEPS="$ltmain"
14455
14456 # Always use our own libtool.
14457 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484 test -z "$LN_S" && LN_S="ln -s"
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499 if test -n "${ZSH_VERSION+set}" ; then
14500    setopt NO_GLOB_SUBST
14501 fi
14502
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14504 $as_echo_n "checking for objdir... " >&6; }
14505 if test "${lt_cv_objdir+set}" = set; then :
14506   $as_echo_n "(cached) " >&6
14507 else
14508   rm -f .libs 2>/dev/null
14509 mkdir .libs 2>/dev/null
14510 if test -d .libs; then
14511   lt_cv_objdir=.libs
14512 else
14513   # MS-DOS does not allow filenames that begin with a dot.
14514   lt_cv_objdir=_libs
14515 fi
14516 rmdir .libs 2>/dev/null
14517 fi
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14519 $as_echo "$lt_cv_objdir" >&6; }
14520 objdir=$lt_cv_objdir
14521
14522
14523
14524
14525
14526 cat >>confdefs.h <<_ACEOF
14527 #define LT_OBJDIR "$lt_cv_objdir/"
14528 _ACEOF
14529
14530
14531
14532
14533 case $host_os in
14534 aix3*)
14535   # AIX sometimes has problems with the GCC collect2 program.  For some
14536   # reason, if we set the COLLECT_NAMES environment variable, the problems
14537   # vanish in a puff of smoke.
14538   if test "X${COLLECT_NAMES+set}" != Xset; then
14539     COLLECT_NAMES=
14540     export COLLECT_NAMES
14541   fi
14542   ;;
14543 esac
14544
14545 # Global variables:
14546 ofile=libtool
14547 can_build_shared=yes
14548
14549 # All known linkers require a `.a' archive for static linking (except MSVC,
14550 # which needs '.lib').
14551 libext=a
14552
14553 with_gnu_ld="$lt_cv_prog_gnu_ld"
14554
14555 old_CC="$CC"
14556 old_CFLAGS="$CFLAGS"
14557
14558 # Set sane defaults for various variables
14559 test -z "$CC" && CC=cc
14560 test -z "$LTCC" && LTCC=$CC
14561 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14562 test -z "$LD" && LD=ld
14563 test -z "$ac_objext" && ac_objext=o
14564
14565 for cc_temp in $compiler""; do
14566   case $cc_temp in
14567     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14568     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14569     \-*) ;;
14570     *) break;;
14571   esac
14572 done
14573 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14574
14575
14576 # Only perform the check for file, if the check method requires it
14577 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14578 case $deplibs_check_method in
14579 file_magic*)
14580   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14582 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14583 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14584   $as_echo_n "(cached) " >&6
14585 else
14586   case $MAGIC_CMD in
14587 [\\/*] |  ?:[\\/]*)
14588   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14589   ;;
14590 *)
14591   lt_save_MAGIC_CMD="$MAGIC_CMD"
14592   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14593   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14594   for ac_dir in $ac_dummy; do
14595     IFS="$lt_save_ifs"
14596     test -z "$ac_dir" && ac_dir=.
14597     if test -f $ac_dir/${ac_tool_prefix}file; then
14598       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14599       if test -n "$file_magic_test_file"; then
14600         case $deplibs_check_method in
14601         "file_magic "*)
14602           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14603           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14604           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14605             $EGREP "$file_magic_regex" > /dev/null; then
14606             :
14607           else
14608             cat <<_LT_EOF 1>&2
14609
14610 *** Warning: the command libtool uses to detect shared libraries,
14611 *** $file_magic_cmd, produces output that libtool cannot recognize.
14612 *** The result is that libtool may fail to recognize shared libraries
14613 *** as such.  This will affect the creation of libtool libraries that
14614 *** depend on shared libraries, but programs linked with such libtool
14615 *** libraries will work regardless of this problem.  Nevertheless, you
14616 *** may want to report the problem to your system manager and/or to
14617 *** bug-libtool@gnu.org
14618
14619 _LT_EOF
14620           fi ;;
14621         esac
14622       fi
14623       break
14624     fi
14625   done
14626   IFS="$lt_save_ifs"
14627   MAGIC_CMD="$lt_save_MAGIC_CMD"
14628   ;;
14629 esac
14630 fi
14631
14632 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14633 if test -n "$MAGIC_CMD"; then
14634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14635 $as_echo "$MAGIC_CMD" >&6; }
14636 else
14637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14638 $as_echo "no" >&6; }
14639 fi
14640
14641
14642
14643
14644
14645 if test -z "$lt_cv_path_MAGIC_CMD"; then
14646   if test -n "$ac_tool_prefix"; then
14647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14648 $as_echo_n "checking for file... " >&6; }
14649 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14650   $as_echo_n "(cached) " >&6
14651 else
14652   case $MAGIC_CMD in
14653 [\\/*] |  ?:[\\/]*)
14654   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14655   ;;
14656 *)
14657   lt_save_MAGIC_CMD="$MAGIC_CMD"
14658   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14659   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14660   for ac_dir in $ac_dummy; do
14661     IFS="$lt_save_ifs"
14662     test -z "$ac_dir" && ac_dir=.
14663     if test -f $ac_dir/file; then
14664       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14665       if test -n "$file_magic_test_file"; then
14666         case $deplibs_check_method in
14667         "file_magic "*)
14668           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14669           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14670           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14671             $EGREP "$file_magic_regex" > /dev/null; then
14672             :
14673           else
14674             cat <<_LT_EOF 1>&2
14675
14676 *** Warning: the command libtool uses to detect shared libraries,
14677 *** $file_magic_cmd, produces output that libtool cannot recognize.
14678 *** The result is that libtool may fail to recognize shared libraries
14679 *** as such.  This will affect the creation of libtool libraries that
14680 *** depend on shared libraries, but programs linked with such libtool
14681 *** libraries will work regardless of this problem.  Nevertheless, you
14682 *** may want to report the problem to your system manager and/or to
14683 *** bug-libtool@gnu.org
14684
14685 _LT_EOF
14686           fi ;;
14687         esac
14688       fi
14689       break
14690     fi
14691   done
14692   IFS="$lt_save_ifs"
14693   MAGIC_CMD="$lt_save_MAGIC_CMD"
14694   ;;
14695 esac
14696 fi
14697
14698 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14699 if test -n "$MAGIC_CMD"; then
14700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14701 $as_echo "$MAGIC_CMD" >&6; }
14702 else
14703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14704 $as_echo "no" >&6; }
14705 fi
14706
14707
14708   else
14709     MAGIC_CMD=:
14710   fi
14711 fi
14712
14713   fi
14714   ;;
14715 esac
14716
14717 # Use C for the default configuration in the libtool script
14718
14719 lt_save_CC="$CC"
14720 ac_ext=c
14721 ac_cpp='$CPP $CPPFLAGS'
14722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14725
14726
14727 # Source file extension for C test sources.
14728 ac_ext=c
14729
14730 # Object file extension for compiled C test sources.
14731 objext=o
14732 objext=$objext
14733
14734 # Code to be used in simple compile tests
14735 lt_simple_compile_test_code="int some_variable = 0;"
14736
14737 # Code to be used in simple link tests
14738 lt_simple_link_test_code='int main(){return(0);}'
14739
14740
14741
14742
14743
14744
14745
14746 # If no C compiler was specified, use CC.
14747 LTCC=${LTCC-"$CC"}
14748
14749 # If no C compiler flags were specified, use CFLAGS.
14750 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14751
14752 # Allow CC to be a program name with arguments.
14753 compiler=$CC
14754
14755 # Save the default compiler, since it gets overwritten when the other
14756 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14757 compiler_DEFAULT=$CC
14758
14759 # save warnings/boilerplate of simple test code
14760 ac_outfile=conftest.$ac_objext
14761 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14762 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14763 _lt_compiler_boilerplate=`cat conftest.err`
14764 $RM conftest*
14765
14766 ac_outfile=conftest.$ac_objext
14767 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14768 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14769 _lt_linker_boilerplate=`cat conftest.err`
14770 $RM -r conftest*
14771
14772
14773 ## CAVEAT EMPTOR:
14774 ## There is no encapsulation within the following macros, do not change
14775 ## the running order or otherwise move them around unless you know exactly
14776 ## what you are doing...
14777 if test -n "$compiler"; then
14778
14779 lt_prog_compiler_no_builtin_flag=
14780
14781 if test "$GCC" = yes; then
14782   case $cc_basename in
14783   nvcc*)
14784     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14785   *)
14786     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14787   esac
14788
14789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14790 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14791 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14792   $as_echo_n "(cached) " >&6
14793 else
14794   lt_cv_prog_compiler_rtti_exceptions=no
14795    ac_outfile=conftest.$ac_objext
14796    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14797    lt_compiler_flag="-fno-rtti -fno-exceptions"
14798    # Insert the option either (1) after the last *FLAGS variable, or
14799    # (2) before a word containing "conftest.", or (3) at the end.
14800    # Note that $ac_compile itself does not contain backslashes and begins
14801    # with a dollar sign (not a hyphen), so the echo should work correctly.
14802    # The option is referenced via a variable to avoid confusing sed.
14803    lt_compile=`echo "$ac_compile" | $SED \
14804    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14805    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14806    -e 's:$: $lt_compiler_flag:'`
14807    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14808    (eval "$lt_compile" 2>conftest.err)
14809    ac_status=$?
14810    cat conftest.err >&5
14811    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812    if (exit $ac_status) && test -s "$ac_outfile"; then
14813      # The compiler can only warn and ignore the option if not recognized
14814      # So say no if there are warnings other than the usual output.
14815      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14816      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14817      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14818        lt_cv_prog_compiler_rtti_exceptions=yes
14819      fi
14820    fi
14821    $RM conftest*
14822
14823 fi
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14825 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14826
14827 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14828     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14829 else
14830     :
14831 fi
14832
14833 fi
14834
14835
14836
14837
14838
14839
14840   lt_prog_compiler_wl=
14841 lt_prog_compiler_pic=
14842 lt_prog_compiler_static=
14843
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14845 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14846
14847   if test "$GCC" = yes; then
14848     lt_prog_compiler_wl='-Wl,'
14849     lt_prog_compiler_static='-static'
14850
14851     case $host_os in
14852       aix*)
14853       # All AIX code is PIC.
14854       if test "$host_cpu" = ia64; then
14855         # AIX 5 now supports IA64 processor
14856         lt_prog_compiler_static='-Bstatic'
14857       fi
14858       ;;
14859
14860     amigaos*)
14861       case $host_cpu in
14862       powerpc)
14863             # see comment about AmigaOS4 .so support
14864             lt_prog_compiler_pic='-fPIC'
14865         ;;
14866       m68k)
14867             # FIXME: we need at least 68020 code to build shared libraries, but
14868             # adding the `-m68020' flag to GCC prevents building anything better,
14869             # like `-m68040'.
14870             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14871         ;;
14872       esac
14873       ;;
14874
14875     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14876       # PIC is the default for these OSes.
14877       ;;
14878
14879     mingw* | cygwin* | pw32* | os2* | cegcc*)
14880       # This hack is so that the source file can tell whether it is being
14881       # built for inclusion in a dll (and should export symbols for example).
14882       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14883       # (--disable-auto-import) libraries
14884       lt_prog_compiler_pic='-DDLL_EXPORT'
14885       ;;
14886
14887     darwin* | rhapsody*)
14888       # PIC is the default on this platform
14889       # Common symbols not allowed in MH_DYLIB files
14890       lt_prog_compiler_pic='-fno-common'
14891       ;;
14892
14893     haiku*)
14894       # PIC is the default for Haiku.
14895       # The "-static" flag exists, but is broken.
14896       lt_prog_compiler_static=
14897       ;;
14898
14899     hpux*)
14900       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14901       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14902       # sets the default TLS model and affects inlining.
14903       case $host_cpu in
14904       hppa*64*)
14905         # +Z the default
14906         ;;
14907       *)
14908         lt_prog_compiler_pic='-fPIC'
14909         ;;
14910       esac
14911       ;;
14912
14913     interix[3-9]*)
14914       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14915       # Instead, we relocate shared libraries at runtime.
14916       ;;
14917
14918     msdosdjgpp*)
14919       # Just because we use GCC doesn't mean we suddenly get shared libraries
14920       # on systems that don't support them.
14921       lt_prog_compiler_can_build_shared=no
14922       enable_shared=no
14923       ;;
14924
14925     *nto* | *qnx*)
14926       # QNX uses GNU C++, but need to define -shared option too, otherwise
14927       # it will coredump.
14928       lt_prog_compiler_pic='-fPIC -shared'
14929       ;;
14930
14931     sysv4*MP*)
14932       if test -d /usr/nec; then
14933         lt_prog_compiler_pic=-Kconform_pic
14934       fi
14935       ;;
14936
14937     *)
14938       lt_prog_compiler_pic='-fPIC'
14939       ;;
14940     esac
14941
14942     case $cc_basename in
14943     nvcc*) # Cuda Compiler Driver 2.2
14944       lt_prog_compiler_wl='-Xlinker '
14945       lt_prog_compiler_pic='-Xcompiler -fPIC'
14946       ;;
14947     esac
14948   else
14949     # PORTME Check for flag to pass linker flags through the system compiler.
14950     case $host_os in
14951     aix*)
14952       lt_prog_compiler_wl='-Wl,'
14953       if test "$host_cpu" = ia64; then
14954         # AIX 5 now supports IA64 processor
14955         lt_prog_compiler_static='-Bstatic'
14956       else
14957         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14958       fi
14959       ;;
14960
14961     mingw* | cygwin* | pw32* | os2* | cegcc*)
14962       # This hack is so that the source file can tell whether it is being
14963       # built for inclusion in a dll (and should export symbols for example).
14964       lt_prog_compiler_pic='-DDLL_EXPORT'
14965       ;;
14966
14967     hpux9* | hpux10* | hpux11*)
14968       lt_prog_compiler_wl='-Wl,'
14969       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14970       # not for PA HP-UX.
14971       case $host_cpu in
14972       hppa*64*|ia64*)
14973         # +Z the default
14974         ;;
14975       *)
14976         lt_prog_compiler_pic='+Z'
14977         ;;
14978       esac
14979       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14980       lt_prog_compiler_static='${wl}-a ${wl}archive'
14981       ;;
14982
14983     irix5* | irix6* | nonstopux*)
14984       lt_prog_compiler_wl='-Wl,'
14985       # PIC (with -KPIC) is the default.
14986       lt_prog_compiler_static='-non_shared'
14987       ;;
14988
14989     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14990       case $cc_basename in
14991       # old Intel for x86_64 which still supported -KPIC.
14992       ecc*)
14993         lt_prog_compiler_wl='-Wl,'
14994         lt_prog_compiler_pic='-KPIC'
14995         lt_prog_compiler_static='-static'
14996         ;;
14997       # icc used to be incompatible with GCC.
14998       # ICC 10 doesn't accept -KPIC any more.
14999       icc* | ifort*)
15000         lt_prog_compiler_wl='-Wl,'
15001         lt_prog_compiler_pic='-fPIC'
15002         lt_prog_compiler_static='-static'
15003         ;;
15004       # Lahey Fortran 8.1.
15005       lf95*)
15006         lt_prog_compiler_wl='-Wl,'
15007         lt_prog_compiler_pic='--shared'
15008         lt_prog_compiler_static='--static'
15009         ;;
15010       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15011         # Portland Group compilers (*not* the Pentium gcc compiler,
15012         # which looks to be a dead project)
15013         lt_prog_compiler_wl='-Wl,'
15014         lt_prog_compiler_pic='-fpic'
15015         lt_prog_compiler_static='-Bstatic'
15016         ;;
15017       ccc*)
15018         lt_prog_compiler_wl='-Wl,'
15019         # All Alpha code is PIC.
15020         lt_prog_compiler_static='-non_shared'
15021         ;;
15022       xl* | bgxl* | bgf* | mpixl*)
15023         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15024         lt_prog_compiler_wl='-Wl,'
15025         lt_prog_compiler_pic='-qpic'
15026         lt_prog_compiler_static='-qstaticlink'
15027         ;;
15028       *)
15029         case `$CC -V 2>&1 | sed 5q` in
15030         *Sun\ F* | *Sun*Fortran*)
15031           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15032           lt_prog_compiler_pic='-KPIC'
15033           lt_prog_compiler_static='-Bstatic'
15034           lt_prog_compiler_wl=''
15035           ;;
15036         *Sun\ C*)
15037           # Sun C 5.9
15038           lt_prog_compiler_pic='-KPIC'
15039           lt_prog_compiler_static='-Bstatic'
15040           lt_prog_compiler_wl='-Wl,'
15041           ;;
15042         esac
15043         ;;
15044       esac
15045       ;;
15046
15047     newsos6)
15048       lt_prog_compiler_pic='-KPIC'
15049       lt_prog_compiler_static='-Bstatic'
15050       ;;
15051
15052     *nto* | *qnx*)
15053       # QNX uses GNU C++, but need to define -shared option too, otherwise
15054       # it will coredump.
15055       lt_prog_compiler_pic='-fPIC -shared'
15056       ;;
15057
15058     osf3* | osf4* | osf5*)
15059       lt_prog_compiler_wl='-Wl,'
15060       # All OSF/1 code is PIC.
15061       lt_prog_compiler_static='-non_shared'
15062       ;;
15063
15064     rdos*)
15065       lt_prog_compiler_static='-non_shared'
15066       ;;
15067
15068     solaris*)
15069       lt_prog_compiler_pic='-KPIC'
15070       lt_prog_compiler_static='-Bstatic'
15071       case $cc_basename in
15072       f77* | f90* | f95*)
15073         lt_prog_compiler_wl='-Qoption ld ';;
15074       *)
15075         lt_prog_compiler_wl='-Wl,';;
15076       esac
15077       ;;
15078
15079     sunos4*)
15080       lt_prog_compiler_wl='-Qoption ld '
15081       lt_prog_compiler_pic='-PIC'
15082       lt_prog_compiler_static='-Bstatic'
15083       ;;
15084
15085     sysv4 | sysv4.2uw2* | sysv4.3*)
15086       lt_prog_compiler_wl='-Wl,'
15087       lt_prog_compiler_pic='-KPIC'
15088       lt_prog_compiler_static='-Bstatic'
15089       ;;
15090
15091     sysv4*MP*)
15092       if test -d /usr/nec ;then
15093         lt_prog_compiler_pic='-Kconform_pic'
15094         lt_prog_compiler_static='-Bstatic'
15095       fi
15096       ;;
15097
15098     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15099       lt_prog_compiler_wl='-Wl,'
15100       lt_prog_compiler_pic='-KPIC'
15101       lt_prog_compiler_static='-Bstatic'
15102       ;;
15103
15104     unicos*)
15105       lt_prog_compiler_wl='-Wl,'
15106       lt_prog_compiler_can_build_shared=no
15107       ;;
15108
15109     uts4*)
15110       lt_prog_compiler_pic='-pic'
15111       lt_prog_compiler_static='-Bstatic'
15112       ;;
15113
15114     *)
15115       lt_prog_compiler_can_build_shared=no
15116       ;;
15117     esac
15118   fi
15119
15120 case $host_os in
15121   # For platforms which do not support PIC, -DPIC is meaningless:
15122   *djgpp*)
15123     lt_prog_compiler_pic=
15124     ;;
15125   *)
15126     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15127     ;;
15128 esac
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15130 $as_echo "$lt_prog_compiler_pic" >&6; }
15131
15132
15133
15134
15135
15136
15137 #
15138 # Check to make sure the PIC flag actually works.
15139 #
15140 if test -n "$lt_prog_compiler_pic"; then
15141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15142 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15143 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15144   $as_echo_n "(cached) " >&6
15145 else
15146   lt_cv_prog_compiler_pic_works=no
15147    ac_outfile=conftest.$ac_objext
15148    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15149    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15150    # Insert the option either (1) after the last *FLAGS variable, or
15151    # (2) before a word containing "conftest.", or (3) at the end.
15152    # Note that $ac_compile itself does not contain backslashes and begins
15153    # with a dollar sign (not a hyphen), so the echo should work correctly.
15154    # The option is referenced via a variable to avoid confusing sed.
15155    lt_compile=`echo "$ac_compile" | $SED \
15156    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15157    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15158    -e 's:$: $lt_compiler_flag:'`
15159    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15160    (eval "$lt_compile" 2>conftest.err)
15161    ac_status=$?
15162    cat conftest.err >&5
15163    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164    if (exit $ac_status) && test -s "$ac_outfile"; then
15165      # The compiler can only warn and ignore the option if not recognized
15166      # So say no if there are warnings other than the usual output.
15167      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15168      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15169      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15170        lt_cv_prog_compiler_pic_works=yes
15171      fi
15172    fi
15173    $RM conftest*
15174
15175 fi
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15177 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15178
15179 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15180     case $lt_prog_compiler_pic in
15181      "" | " "*) ;;
15182      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15183      esac
15184 else
15185     lt_prog_compiler_pic=
15186      lt_prog_compiler_can_build_shared=no
15187 fi
15188
15189 fi
15190
15191
15192
15193
15194
15195
15196 #
15197 # Check to make sure the static flag actually works.
15198 #
15199 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15201 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15202 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15203   $as_echo_n "(cached) " >&6
15204 else
15205   lt_cv_prog_compiler_static_works=no
15206    save_LDFLAGS="$LDFLAGS"
15207    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15208    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15209    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15210      # The linker can only warn and ignore the option if not recognized
15211      # So say no if there are warnings
15212      if test -s conftest.err; then
15213        # Append any errors to the config.log.
15214        cat conftest.err 1>&5
15215        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15216        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15217        if diff conftest.exp conftest.er2 >/dev/null; then
15218          lt_cv_prog_compiler_static_works=yes
15219        fi
15220      else
15221        lt_cv_prog_compiler_static_works=yes
15222      fi
15223    fi
15224    $RM -r conftest*
15225    LDFLAGS="$save_LDFLAGS"
15226
15227 fi
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15229 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15230
15231 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15232     :
15233 else
15234     lt_prog_compiler_static=
15235 fi
15236
15237
15238
15239
15240
15241
15242
15243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15244 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15245 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15246   $as_echo_n "(cached) " >&6
15247 else
15248   lt_cv_prog_compiler_c_o=no
15249    $RM -r conftest 2>/dev/null
15250    mkdir conftest
15251    cd conftest
15252    mkdir out
15253    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15254
15255    lt_compiler_flag="-o out/conftest2.$ac_objext"
15256    # Insert the option either (1) after the last *FLAGS variable, or
15257    # (2) before a word containing "conftest.", or (3) at the end.
15258    # Note that $ac_compile itself does not contain backslashes and begins
15259    # with a dollar sign (not a hyphen), so the echo should work correctly.
15260    lt_compile=`echo "$ac_compile" | $SED \
15261    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15262    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15263    -e 's:$: $lt_compiler_flag:'`
15264    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15265    (eval "$lt_compile" 2>out/conftest.err)
15266    ac_status=$?
15267    cat out/conftest.err >&5
15268    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15270    then
15271      # The compiler can only warn and ignore the option if not recognized
15272      # So say no if there are warnings
15273      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15274      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15275      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15276        lt_cv_prog_compiler_c_o=yes
15277      fi
15278    fi
15279    chmod u+w . 2>&5
15280    $RM conftest*
15281    # SGI C++ compiler will create directory out/ii_files/ for
15282    # template instantiation
15283    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15284    $RM out/* && rmdir out
15285    cd ..
15286    $RM -r conftest
15287    $RM conftest*
15288
15289 fi
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15291 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15292
15293
15294
15295
15296
15297
15298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15299 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15300 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15301   $as_echo_n "(cached) " >&6
15302 else
15303   lt_cv_prog_compiler_c_o=no
15304    $RM -r conftest 2>/dev/null
15305    mkdir conftest
15306    cd conftest
15307    mkdir out
15308    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15309
15310    lt_compiler_flag="-o out/conftest2.$ac_objext"
15311    # Insert the option either (1) after the last *FLAGS variable, or
15312    # (2) before a word containing "conftest.", or (3) at the end.
15313    # Note that $ac_compile itself does not contain backslashes and begins
15314    # with a dollar sign (not a hyphen), so the echo should work correctly.
15315    lt_compile=`echo "$ac_compile" | $SED \
15316    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15317    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15318    -e 's:$: $lt_compiler_flag:'`
15319    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15320    (eval "$lt_compile" 2>out/conftest.err)
15321    ac_status=$?
15322    cat out/conftest.err >&5
15323    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15325    then
15326      # The compiler can only warn and ignore the option if not recognized
15327      # So say no if there are warnings
15328      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15329      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15330      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15331        lt_cv_prog_compiler_c_o=yes
15332      fi
15333    fi
15334    chmod u+w . 2>&5
15335    $RM conftest*
15336    # SGI C++ compiler will create directory out/ii_files/ for
15337    # template instantiation
15338    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15339    $RM out/* && rmdir out
15340    cd ..
15341    $RM -r conftest
15342    $RM conftest*
15343
15344 fi
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15346 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15347
15348
15349
15350
15351 hard_links="nottested"
15352 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15353   # do not overwrite the value of need_locks provided by the user
15354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15355 $as_echo_n "checking if we can lock with hard links... " >&6; }
15356   hard_links=yes
15357   $RM conftest*
15358   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15359   touch conftest.a
15360   ln conftest.a conftest.b 2>&5 || hard_links=no
15361   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15363 $as_echo "$hard_links" >&6; }
15364   if test "$hard_links" = no; then
15365     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15366 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15367     need_locks=warn
15368   fi
15369 else
15370   need_locks=no
15371 fi
15372
15373
15374
15375
15376
15377
15378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15379 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15380
15381   runpath_var=
15382   allow_undefined_flag=
15383   always_export_symbols=no
15384   archive_cmds=
15385   archive_expsym_cmds=
15386   compiler_needs_object=no
15387   enable_shared_with_static_runtimes=no
15388   export_dynamic_flag_spec=
15389   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15390   hardcode_automatic=no
15391   hardcode_direct=no
15392   hardcode_direct_absolute=no
15393   hardcode_libdir_flag_spec=
15394   hardcode_libdir_flag_spec_ld=
15395   hardcode_libdir_separator=
15396   hardcode_minus_L=no
15397   hardcode_shlibpath_var=unsupported
15398   inherit_rpath=no
15399   link_all_deplibs=unknown
15400   module_cmds=
15401   module_expsym_cmds=
15402   old_archive_from_new_cmds=
15403   old_archive_from_expsyms_cmds=
15404   thread_safe_flag_spec=
15405   whole_archive_flag_spec=
15406   # include_expsyms should be a list of space-separated symbols to be *always*
15407   # included in the symbol list
15408   include_expsyms=
15409   # exclude_expsyms can be an extended regexp of symbols to exclude
15410   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15411   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15412   # as well as any symbol that contains `d'.
15413   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15414   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15415   # platforms (ab)use it in PIC code, but their linkers get confused if
15416   # the symbol is explicitly referenced.  Since portable code cannot
15417   # rely on this symbol name, it's probably fine to never include it in
15418   # preloaded symbol tables.
15419   # Exclude shared library initialization/finalization symbols.
15420   extract_expsyms_cmds=
15421
15422   case $host_os in
15423   cygwin* | mingw* | pw32* | cegcc*)
15424     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15425     # When not using gcc, we currently assume that we are using
15426     # Microsoft Visual C++.
15427     if test "$GCC" != yes; then
15428       with_gnu_ld=no
15429     fi
15430     ;;
15431   interix*)
15432     # we just hope/assume this is gcc and not c89 (= MSVC++)
15433     with_gnu_ld=yes
15434     ;;
15435   openbsd*)
15436     with_gnu_ld=no
15437     ;;
15438   esac
15439
15440   ld_shlibs=yes
15441
15442   # On some targets, GNU ld is compatible enough with the native linker
15443   # that we're better off using the native interface for both.
15444   lt_use_gnu_ld_interface=no
15445   if test "$with_gnu_ld" = yes; then
15446     case $host_os in
15447       aix*)
15448         # The AIX port of GNU ld has always aspired to compatibility
15449         # with the native linker.  However, as the warning in the GNU ld
15450         # block says, versions before 2.19.5* couldn't really create working
15451         # shared libraries, regardless of the interface used.
15452         case `$LD -v 2>&1` in
15453           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15454           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15455           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15456           *)
15457             lt_use_gnu_ld_interface=yes
15458             ;;
15459         esac
15460         ;;
15461       *)
15462         lt_use_gnu_ld_interface=yes
15463         ;;
15464     esac
15465   fi
15466
15467   if test "$lt_use_gnu_ld_interface" = yes; then
15468     # If archive_cmds runs LD, not CC, wlarc should be empty
15469     wlarc='${wl}'
15470
15471     # Set some defaults for GNU ld with shared library support. These
15472     # are reset later if shared libraries are not supported. Putting them
15473     # here allows them to be overridden if necessary.
15474     runpath_var=LD_RUN_PATH
15475     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15476     export_dynamic_flag_spec='${wl}--export-dynamic'
15477     # ancient GNU ld didn't support --whole-archive et. al.
15478     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15479       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15480     else
15481       whole_archive_flag_spec=
15482     fi
15483     supports_anon_versioning=no
15484     case `$LD -v 2>&1` in
15485       *GNU\ gold*) supports_anon_versioning=yes ;;
15486       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15487       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15488       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15489       *\ 2.11.*) ;; # other 2.11 versions
15490       *) supports_anon_versioning=yes ;;
15491     esac
15492
15493     # See if GNU ld supports shared libraries.
15494     case $host_os in
15495     aix[3-9]*)
15496       # On AIX/PPC, the GNU linker is very broken
15497       if test "$host_cpu" != ia64; then
15498         ld_shlibs=no
15499         cat <<_LT_EOF 1>&2
15500
15501 *** Warning: the GNU linker, at least up to release 2.19, is reported
15502 *** to be unable to reliably create shared libraries on AIX.
15503 *** Therefore, libtool is disabling shared libraries support.  If you
15504 *** really care for shared libraries, you may want to install binutils
15505 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15506 *** You will then need to restart the configuration process.
15507
15508 _LT_EOF
15509       fi
15510       ;;
15511
15512     amigaos*)
15513       case $host_cpu in
15514       powerpc)
15515             # see comment about AmigaOS4 .so support
15516             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15517             archive_expsym_cmds=''
15518         ;;
15519       m68k)
15520             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)'
15521             hardcode_libdir_flag_spec='-L$libdir'
15522             hardcode_minus_L=yes
15523         ;;
15524       esac
15525       ;;
15526
15527     beos*)
15528       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15529         allow_undefined_flag=unsupported
15530         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15531         # support --undefined.  This deserves some investigation.  FIXME
15532         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15533       else
15534         ld_shlibs=no
15535       fi
15536       ;;
15537
15538     cygwin* | mingw* | pw32* | cegcc*)
15539       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15540       # as there is no search path for DLLs.
15541       hardcode_libdir_flag_spec='-L$libdir'
15542       export_dynamic_flag_spec='${wl}--export-all-symbols'
15543       allow_undefined_flag=unsupported
15544       always_export_symbols=no
15545       enable_shared_with_static_runtimes=yes
15546       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15547
15548       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15549         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15550         # If the export-symbols file already is a .def file (1st line
15551         # is EXPORTS), use it as is; otherwise, prepend...
15552         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15553           cp $export_symbols $output_objdir/$soname.def;
15554         else
15555           echo EXPORTS > $output_objdir/$soname.def;
15556           cat $export_symbols >> $output_objdir/$soname.def;
15557         fi~
15558         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15559       else
15560         ld_shlibs=no
15561       fi
15562       ;;
15563
15564     haiku*)
15565       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15566       link_all_deplibs=yes
15567       ;;
15568
15569     interix[3-9]*)
15570       hardcode_direct=no
15571       hardcode_shlibpath_var=no
15572       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15573       export_dynamic_flag_spec='${wl}-E'
15574       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15575       # Instead, shared libraries are loaded at an image base (0x10000000 by
15576       # default) and relocated if they conflict, which is a slow very memory
15577       # consuming and fragmenting process.  To avoid this, we pick a random,
15578       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15579       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15580       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15581       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'
15582       ;;
15583
15584     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15585       tmp_diet=no
15586       if test "$host_os" = linux-dietlibc; then
15587         case $cc_basename in
15588           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15589         esac
15590       fi
15591       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15592          && test "$tmp_diet" = no
15593       then
15594         tmp_addflag=
15595         tmp_sharedflag='-shared'
15596         case $cc_basename,$host_cpu in
15597         pgcc*)                          # Portland Group C compiler
15598           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'
15599           tmp_addflag=' $pic_flag'
15600           ;;
15601         pgf77* | pgf90* | pgf95* | pgfortran*)
15602                                         # Portland Group f77 and f90 compilers
15603           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'
15604           tmp_addflag=' $pic_flag -Mnomain' ;;
15605         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15606           tmp_addflag=' -i_dynamic' ;;
15607         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15608           tmp_addflag=' -i_dynamic -nofor_main' ;;
15609         ifc* | ifort*)                  # Intel Fortran compiler
15610           tmp_addflag=' -nofor_main' ;;
15611         lf95*)                          # Lahey Fortran 8.1
15612           whole_archive_flag_spec=
15613           tmp_sharedflag='--shared' ;;
15614         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15615           tmp_sharedflag='-qmkshrobj'
15616           tmp_addflag= ;;
15617         nvcc*)  # Cuda Compiler Driver 2.2
15618           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'
15619           compiler_needs_object=yes
15620           ;;
15621         esac
15622         case `$CC -V 2>&1 | sed 5q` in
15623         *Sun\ C*)                       # Sun C 5.9
15624           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'
15625           compiler_needs_object=yes
15626           tmp_sharedflag='-G' ;;
15627         *Sun\ F*)                       # Sun Fortran 8.3
15628           tmp_sharedflag='-G' ;;
15629         esac
15630         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15631
15632         if test "x$supports_anon_versioning" = xyes; then
15633           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15634             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15635             echo "local: *; };" >> $output_objdir/$libname.ver~
15636             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15637         fi
15638
15639         case $cc_basename in
15640         xlf* | bgf* | bgxlf* | mpixlf*)
15641           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15642           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15643           hardcode_libdir_flag_spec=
15644           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15645           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15646           if test "x$supports_anon_versioning" = xyes; then
15647             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15648               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15649               echo "local: *; };" >> $output_objdir/$libname.ver~
15650               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15651           fi
15652           ;;
15653         esac
15654       else
15655         ld_shlibs=no
15656       fi
15657       ;;
15658
15659     netbsd*)
15660       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15661         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15662         wlarc=
15663       else
15664         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15665         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15666       fi
15667       ;;
15668
15669     solaris*)
15670       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15671         ld_shlibs=no
15672         cat <<_LT_EOF 1>&2
15673
15674 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15675 *** create shared libraries on Solaris systems.  Therefore, libtool
15676 *** is disabling shared libraries support.  We urge you to upgrade GNU
15677 *** binutils to release 2.9.1 or newer.  Another option is to modify
15678 *** your PATH or compiler configuration so that the native linker is
15679 *** used, and then restart.
15680
15681 _LT_EOF
15682       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15683         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15684         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15685       else
15686         ld_shlibs=no
15687       fi
15688       ;;
15689
15690     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15691       case `$LD -v 2>&1` in
15692         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15693         ld_shlibs=no
15694         cat <<_LT_EOF 1>&2
15695
15696 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15697 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15698 *** is disabling shared libraries support.  We urge you to upgrade GNU
15699 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15700 *** your PATH or compiler configuration so that the native linker is
15701 *** used, and then restart.
15702
15703 _LT_EOF
15704         ;;
15705         *)
15706           # For security reasons, it is highly recommended that you always
15707           # use absolute paths for naming shared libraries, and exclude the
15708           # DT_RUNPATH tag from executables and libraries.  But doing so
15709           # requires that you compile everything twice, which is a pain.
15710           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15711             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15712             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15713             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15714           else
15715             ld_shlibs=no
15716           fi
15717         ;;
15718       esac
15719       ;;
15720
15721     sunos4*)
15722       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15723       wlarc=
15724       hardcode_direct=yes
15725       hardcode_shlibpath_var=no
15726       ;;
15727
15728     *)
15729       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15730         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15731         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15732       else
15733         ld_shlibs=no
15734       fi
15735       ;;
15736     esac
15737
15738     if test "$ld_shlibs" = no; then
15739       runpath_var=
15740       hardcode_libdir_flag_spec=
15741       export_dynamic_flag_spec=
15742       whole_archive_flag_spec=
15743     fi
15744   else
15745     # PORTME fill in a description of your system's linker (not GNU ld)
15746     case $host_os in
15747     aix3*)
15748       allow_undefined_flag=unsupported
15749       always_export_symbols=yes
15750       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'
15751       # Note: this linker hardcodes the directories in LIBPATH if there
15752       # are no directories specified by -L.
15753       hardcode_minus_L=yes
15754       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15755         # Neither direct hardcoding nor static linking is supported with a
15756         # broken collect2.
15757         hardcode_direct=unsupported
15758       fi
15759       ;;
15760
15761     aix[4-9]*)
15762       if test "$host_cpu" = ia64; then
15763         # On IA64, the linker does run time linking by default, so we don't
15764         # have to do anything special.
15765         aix_use_runtimelinking=no
15766         exp_sym_flag='-Bexport'
15767         no_entry_flag=""
15768       else
15769         # If we're using GNU nm, then we don't want the "-C" option.
15770         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15771         # Also, AIX nm treats weak defined symbols like other global
15772         # defined symbols, whereas GNU nm marks them as "W".
15773         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15774           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'
15775         else
15776           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'
15777         fi
15778         aix_use_runtimelinking=no
15779
15780         # Test if we are trying to use run time linking or normal
15781         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15782         # need to do runtime linking.
15783         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15784           for ld_flag in $LDFLAGS; do
15785           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15786             aix_use_runtimelinking=yes
15787             break
15788           fi
15789           done
15790           ;;
15791         esac
15792
15793         exp_sym_flag='-bexport'
15794         no_entry_flag='-bnoentry'
15795       fi
15796
15797       # When large executables or shared objects are built, AIX ld can
15798       # have problems creating the table of contents.  If linking a library
15799       # or program results in "error TOC overflow" add -mminimal-toc to
15800       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15801       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15802
15803       archive_cmds=''
15804       hardcode_direct=yes
15805       hardcode_direct_absolute=yes
15806       hardcode_libdir_separator=':'
15807       link_all_deplibs=yes
15808       file_list_spec='${wl}-f,'
15809
15810       if test "$GCC" = yes; then
15811         case $host_os in aix4.[012]|aix4.[012].*)
15812         # We only want to do this on AIX 4.2 and lower, the check
15813         # below for broken collect2 doesn't work under 4.3+
15814           collect2name=`${CC} -print-prog-name=collect2`
15815           if test -f "$collect2name" &&
15816            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15817           then
15818           # We have reworked collect2
15819           :
15820           else
15821           # We have old collect2
15822           hardcode_direct=unsupported
15823           # It fails to find uninstalled libraries when the uninstalled
15824           # path is not listed in the libpath.  Setting hardcode_minus_L
15825           # to unsupported forces relinking
15826           hardcode_minus_L=yes
15827           hardcode_libdir_flag_spec='-L$libdir'
15828           hardcode_libdir_separator=
15829           fi
15830           ;;
15831         esac
15832         shared_flag='-shared'
15833         if test "$aix_use_runtimelinking" = yes; then
15834           shared_flag="$shared_flag "'${wl}-G'
15835         fi
15836       else
15837         # not using gcc
15838         if test "$host_cpu" = ia64; then
15839         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15840         # chokes on -Wl,-G. The following line is correct:
15841           shared_flag='-G'
15842         else
15843           if test "$aix_use_runtimelinking" = yes; then
15844             shared_flag='${wl}-G'
15845           else
15846             shared_flag='${wl}-bM:SRE'
15847           fi
15848         fi
15849       fi
15850
15851       export_dynamic_flag_spec='${wl}-bexpall'
15852       # It seems that -bexpall does not export symbols beginning with
15853       # underscore (_), so it is better to generate a list of symbols to export.
15854       always_export_symbols=yes
15855       if test "$aix_use_runtimelinking" = yes; then
15856         # Warning - without using the other runtime loading flags (-brtl),
15857         # -berok will link without error, but may produce a broken library.
15858         allow_undefined_flag='-berok'
15859         # Determine the default libpath from the value encoded in an
15860         # empty executable.
15861         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15862 /* end confdefs.h.  */
15863
15864 int
15865 main ()
15866 {
15867
15868   ;
15869   return 0;
15870 }
15871 _ACEOF
15872 if ac_fn_c_try_link "$LINENO"; then :
15873
15874 lt_aix_libpath_sed='
15875     /Import File Strings/,/^$/ {
15876         /^0/ {
15877             s/^0  *\(.*\)$/\1/
15878             p
15879         }
15880     }'
15881 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15882 # Check for a 64-bit object if we didn't find anything.
15883 if test -z "$aix_libpath"; then
15884   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15885 fi
15886 fi
15887 rm -f core conftest.err conftest.$ac_objext \
15888     conftest$ac_exeext conftest.$ac_ext
15889 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15890
15891         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15892         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"
15893       else
15894         if test "$host_cpu" = ia64; then
15895           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15896           allow_undefined_flag="-z nodefs"
15897           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"
15898         else
15899          # Determine the default libpath from the value encoded in an
15900          # empty executable.
15901          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902 /* end confdefs.h.  */
15903
15904 int
15905 main ()
15906 {
15907
15908   ;
15909   return 0;
15910 }
15911 _ACEOF
15912 if ac_fn_c_try_link "$LINENO"; then :
15913
15914 lt_aix_libpath_sed='
15915     /Import File Strings/,/^$/ {
15916         /^0/ {
15917             s/^0  *\(.*\)$/\1/
15918             p
15919         }
15920     }'
15921 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15922 # Check for a 64-bit object if we didn't find anything.
15923 if test -z "$aix_libpath"; then
15924   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15925 fi
15926 fi
15927 rm -f core conftest.err conftest.$ac_objext \
15928     conftest$ac_exeext conftest.$ac_ext
15929 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15930
15931          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15932           # Warning - without using the other run time loading flags,
15933           # -berok will link without error, but may produce a broken library.
15934           no_undefined_flag=' ${wl}-bernotok'
15935           allow_undefined_flag=' ${wl}-berok'
15936           if test "$with_gnu_ld" = yes; then
15937             # We only use this code for GNU lds that support --whole-archive.
15938             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15939           else
15940             # Exported symbols can be pulled into shared objects from archives
15941             whole_archive_flag_spec='$convenience'
15942           fi
15943           archive_cmds_need_lc=yes
15944           # This is similar to how AIX traditionally builds its shared libraries.
15945           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'
15946         fi
15947       fi
15948       ;;
15949
15950     amigaos*)
15951       case $host_cpu in
15952       powerpc)
15953             # see comment about AmigaOS4 .so support
15954             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15955             archive_expsym_cmds=''
15956         ;;
15957       m68k)
15958             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)'
15959             hardcode_libdir_flag_spec='-L$libdir'
15960             hardcode_minus_L=yes
15961         ;;
15962       esac
15963       ;;
15964
15965     bsdi[45]*)
15966       export_dynamic_flag_spec=-rdynamic
15967       ;;
15968
15969     cygwin* | mingw* | pw32* | cegcc*)
15970       # When not using gcc, we currently assume that we are using
15971       # Microsoft Visual C++.
15972       # hardcode_libdir_flag_spec is actually meaningless, as there is
15973       # no search path for DLLs.
15974       hardcode_libdir_flag_spec=' '
15975       allow_undefined_flag=unsupported
15976       # Tell ltmain to make .lib files, not .a files.
15977       libext=lib
15978       # Tell ltmain to make .dll files, not .so files.
15979       shrext_cmds=".dll"
15980       # FIXME: Setting linknames here is a bad hack.
15981       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15982       # The linker will automatically build a .lib file if we build a DLL.
15983       old_archive_from_new_cmds='true'
15984       # FIXME: Should let the user specify the lib program.
15985       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15986       fix_srcfile_path='`cygpath -w "$srcfile"`'
15987       enable_shared_with_static_runtimes=yes
15988       ;;
15989
15990     darwin* | rhapsody*)
15991
15992
15993   archive_cmds_need_lc=no
15994   hardcode_direct=no
15995   hardcode_automatic=yes
15996   hardcode_shlibpath_var=unsupported
15997   if test "$lt_cv_ld_force_load" = "yes"; then
15998     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\"`'
15999   else
16000     whole_archive_flag_spec=''
16001   fi
16002   link_all_deplibs=yes
16003   allow_undefined_flag="$_lt_dar_allow_undefined"
16004   case $cc_basename in
16005      ifort*) _lt_dar_can_shared=yes ;;
16006      *) _lt_dar_can_shared=$GCC ;;
16007   esac
16008   if test "$_lt_dar_can_shared" = "yes"; then
16009     output_verbose_link_cmd=func_echo_all
16010     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16011     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16012     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}"
16013     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}"
16014
16015   else
16016   ld_shlibs=no
16017   fi
16018
16019       ;;
16020
16021     dgux*)
16022       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16023       hardcode_libdir_flag_spec='-L$libdir'
16024       hardcode_shlibpath_var=no
16025       ;;
16026
16027     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16028     # support.  Future versions do this automatically, but an explicit c++rt0.o
16029     # does not break anything, and helps significantly (at the cost of a little
16030     # extra space).
16031     freebsd2.2*)
16032       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16033       hardcode_libdir_flag_spec='-R$libdir'
16034       hardcode_direct=yes
16035       hardcode_shlibpath_var=no
16036       ;;
16037
16038     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16039     freebsd2*)
16040       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16041       hardcode_direct=yes
16042       hardcode_minus_L=yes
16043       hardcode_shlibpath_var=no
16044       ;;
16045
16046     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16047     freebsd* | dragonfly*)
16048       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16049       hardcode_libdir_flag_spec='-R$libdir'
16050       hardcode_direct=yes
16051       hardcode_shlibpath_var=no
16052       ;;
16053
16054     hpux9*)
16055       if test "$GCC" = yes; then
16056         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'
16057       else
16058         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'
16059       fi
16060       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16061       hardcode_libdir_separator=:
16062       hardcode_direct=yes
16063
16064       # hardcode_minus_L: Not really in the search PATH,
16065       # but as the default location of the library.
16066       hardcode_minus_L=yes
16067       export_dynamic_flag_spec='${wl}-E'
16068       ;;
16069
16070     hpux10*)
16071       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16072         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16073       else
16074         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16075       fi
16076       if test "$with_gnu_ld" = no; then
16077         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16078         hardcode_libdir_flag_spec_ld='+b $libdir'
16079         hardcode_libdir_separator=:
16080         hardcode_direct=yes
16081         hardcode_direct_absolute=yes
16082         export_dynamic_flag_spec='${wl}-E'
16083         # hardcode_minus_L: Not really in the search PATH,
16084         # but as the default location of the library.
16085         hardcode_minus_L=yes
16086       fi
16087       ;;
16088
16089     hpux11*)
16090       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16091         case $host_cpu in
16092         hppa*64*)
16093           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16094           ;;
16095         ia64*)
16096           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16097           ;;
16098         *)
16099           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16100           ;;
16101         esac
16102       else
16103         case $host_cpu in
16104         hppa*64*)
16105           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16106           ;;
16107         ia64*)
16108           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16109           ;;
16110         *)
16111
16112           # Older versions of the 11.00 compiler do not understand -b yet
16113           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16114           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16115 $as_echo_n "checking if $CC understands -b... " >&6; }
16116 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16117   $as_echo_n "(cached) " >&6
16118 else
16119   lt_cv_prog_compiler__b=no
16120    save_LDFLAGS="$LDFLAGS"
16121    LDFLAGS="$LDFLAGS -b"
16122    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16123    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16124      # The linker can only warn and ignore the option if not recognized
16125      # So say no if there are warnings
16126      if test -s conftest.err; then
16127        # Append any errors to the config.log.
16128        cat conftest.err 1>&5
16129        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16130        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16131        if diff conftest.exp conftest.er2 >/dev/null; then
16132          lt_cv_prog_compiler__b=yes
16133        fi
16134      else
16135        lt_cv_prog_compiler__b=yes
16136      fi
16137    fi
16138    $RM -r conftest*
16139    LDFLAGS="$save_LDFLAGS"
16140
16141 fi
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16143 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16144
16145 if test x"$lt_cv_prog_compiler__b" = xyes; then
16146     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16147 else
16148     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16149 fi
16150
16151           ;;
16152         esac
16153       fi
16154       if test "$with_gnu_ld" = no; then
16155         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16156         hardcode_libdir_separator=:
16157
16158         case $host_cpu in
16159         hppa*64*|ia64*)
16160           hardcode_direct=no
16161           hardcode_shlibpath_var=no
16162           ;;
16163         *)
16164           hardcode_direct=yes
16165           hardcode_direct_absolute=yes
16166           export_dynamic_flag_spec='${wl}-E'
16167
16168           # hardcode_minus_L: Not really in the search PATH,
16169           # but as the default location of the library.
16170           hardcode_minus_L=yes
16171           ;;
16172         esac
16173       fi
16174       ;;
16175
16176     irix5* | irix6* | nonstopux*)
16177       if test "$GCC" = yes; then
16178         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'
16179         # Try to use the -exported_symbol ld option, if it does not
16180         # work, assume that -exports_file does not work either and
16181         # implicitly export all symbols.
16182         save_LDFLAGS="$LDFLAGS"
16183         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16184         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185 /* end confdefs.h.  */
16186 int foo(void) {}
16187 _ACEOF
16188 if ac_fn_c_try_link "$LINENO"; then :
16189   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'
16190
16191 fi
16192 rm -f core conftest.err conftest.$ac_objext \
16193     conftest$ac_exeext conftest.$ac_ext
16194         LDFLAGS="$save_LDFLAGS"
16195       else
16196         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'
16197         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'
16198       fi
16199       archive_cmds_need_lc='no'
16200       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16201       hardcode_libdir_separator=:
16202       inherit_rpath=yes
16203       link_all_deplibs=yes
16204       ;;
16205
16206     netbsd*)
16207       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16208         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16209       else
16210         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16211       fi
16212       hardcode_libdir_flag_spec='-R$libdir'
16213       hardcode_direct=yes
16214       hardcode_shlibpath_var=no
16215       ;;
16216
16217     newsos6)
16218       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16219       hardcode_direct=yes
16220       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16221       hardcode_libdir_separator=:
16222       hardcode_shlibpath_var=no
16223       ;;
16224
16225     *nto* | *qnx*)
16226       ;;
16227
16228     openbsd*)
16229       if test -f /usr/libexec/ld.so; then
16230         hardcode_direct=yes
16231         hardcode_shlibpath_var=no
16232         hardcode_direct_absolute=yes
16233         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16234           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16235           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16236           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16237           export_dynamic_flag_spec='${wl}-E'
16238         else
16239           case $host_os in
16240            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16241              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16242              hardcode_libdir_flag_spec='-R$libdir'
16243              ;;
16244            *)
16245              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16246              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16247              ;;
16248           esac
16249         fi
16250       else
16251         ld_shlibs=no
16252       fi
16253       ;;
16254
16255     os2*)
16256       hardcode_libdir_flag_spec='-L$libdir'
16257       hardcode_minus_L=yes
16258       allow_undefined_flag=unsupported
16259       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'
16260       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16261       ;;
16262
16263     osf3*)
16264       if test "$GCC" = yes; then
16265         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16266         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'
16267       else
16268         allow_undefined_flag=' -expect_unresolved \*'
16269         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'
16270       fi
16271       archive_cmds_need_lc='no'
16272       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16273       hardcode_libdir_separator=:
16274       ;;
16275
16276     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16277       if test "$GCC" = yes; then
16278         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16279         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'
16280         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16281       else
16282         allow_undefined_flag=' -expect_unresolved \*'
16283         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'
16284         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~
16285         $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'
16286
16287         # Both c and cxx compiler support -rpath directly
16288         hardcode_libdir_flag_spec='-rpath $libdir'
16289       fi
16290       archive_cmds_need_lc='no'
16291       hardcode_libdir_separator=:
16292       ;;
16293
16294     solaris*)
16295       no_undefined_flag=' -z defs'
16296       if test "$GCC" = yes; then
16297         wlarc='${wl}'
16298         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16299         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16300           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16301       else
16302         case `$CC -V 2>&1` in
16303         *"Compilers 5.0"*)
16304           wlarc=''
16305           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16306           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16307           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16308           ;;
16309         *)
16310           wlarc='${wl}'
16311           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16312           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16313           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16314           ;;
16315         esac
16316       fi
16317       hardcode_libdir_flag_spec='-R$libdir'
16318       hardcode_shlibpath_var=no
16319       case $host_os in
16320       solaris2.[0-5] | solaris2.[0-5].*) ;;
16321       *)
16322         # The compiler driver will combine and reorder linker options,
16323         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16324         # but is careful enough not to reorder.
16325         # Supported since Solaris 2.6 (maybe 2.5.1?)
16326         if test "$GCC" = yes; then
16327           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16328         else
16329           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16330         fi
16331         ;;
16332       esac
16333       link_all_deplibs=yes
16334       ;;
16335
16336     sunos4*)
16337       if test "x$host_vendor" = xsequent; then
16338         # Use $CC to link under sequent, because it throws in some extra .o
16339         # files that make .init and .fini sections work.
16340         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16341       else
16342         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16343       fi
16344       hardcode_libdir_flag_spec='-L$libdir'
16345       hardcode_direct=yes
16346       hardcode_minus_L=yes
16347       hardcode_shlibpath_var=no
16348       ;;
16349
16350     sysv4)
16351       case $host_vendor in
16352         sni)
16353           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16354           hardcode_direct=yes # is this really true???
16355         ;;
16356         siemens)
16357           ## LD is ld it makes a PLAMLIB
16358           ## CC just makes a GrossModule.
16359           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16360           reload_cmds='$CC -r -o $output$reload_objs'
16361           hardcode_direct=no
16362         ;;
16363         motorola)
16364           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16365           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16366         ;;
16367       esac
16368       runpath_var='LD_RUN_PATH'
16369       hardcode_shlibpath_var=no
16370       ;;
16371
16372     sysv4.3*)
16373       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16374       hardcode_shlibpath_var=no
16375       export_dynamic_flag_spec='-Bexport'
16376       ;;
16377
16378     sysv4*MP*)
16379       if test -d /usr/nec; then
16380         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16381         hardcode_shlibpath_var=no
16382         runpath_var=LD_RUN_PATH
16383         hardcode_runpath_var=yes
16384         ld_shlibs=yes
16385       fi
16386       ;;
16387
16388     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16389       no_undefined_flag='${wl}-z,text'
16390       archive_cmds_need_lc=no
16391       hardcode_shlibpath_var=no
16392       runpath_var='LD_RUN_PATH'
16393
16394       if test "$GCC" = yes; then
16395         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16396         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16397       else
16398         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16399         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16400       fi
16401       ;;
16402
16403     sysv5* | sco3.2v5* | sco5v6*)
16404       # Note: We can NOT use -z defs as we might desire, because we do not
16405       # link with -lc, and that would cause any symbols used from libc to
16406       # always be unresolved, which means just about no library would
16407       # ever link correctly.  If we're not using GNU ld we use -z text
16408       # though, which does catch some bad symbols but isn't as heavy-handed
16409       # as -z defs.
16410       no_undefined_flag='${wl}-z,text'
16411       allow_undefined_flag='${wl}-z,nodefs'
16412       archive_cmds_need_lc=no
16413       hardcode_shlibpath_var=no
16414       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16415       hardcode_libdir_separator=':'
16416       link_all_deplibs=yes
16417       export_dynamic_flag_spec='${wl}-Bexport'
16418       runpath_var='LD_RUN_PATH'
16419
16420       if test "$GCC" = yes; then
16421         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16422         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16423       else
16424         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16425         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16426       fi
16427       ;;
16428
16429     uts4*)
16430       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16431       hardcode_libdir_flag_spec='-L$libdir'
16432       hardcode_shlibpath_var=no
16433       ;;
16434
16435     *)
16436       ld_shlibs=no
16437       ;;
16438     esac
16439
16440     if test x$host_vendor = xsni; then
16441       case $host in
16442       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16443         export_dynamic_flag_spec='${wl}-Blargedynsym'
16444         ;;
16445       esac
16446     fi
16447   fi
16448
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16450 $as_echo "$ld_shlibs" >&6; }
16451 test "$ld_shlibs" = no && can_build_shared=no
16452
16453 with_gnu_ld=$with_gnu_ld
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469 #
16470 # Do we need to explicitly link libc?
16471 #
16472 case "x$archive_cmds_need_lc" in
16473 x|xyes)
16474   # Assume -lc should be added
16475   archive_cmds_need_lc=yes
16476
16477   if test "$enable_shared" = yes && test "$GCC" = yes; then
16478     case $archive_cmds in
16479     *'~'*)
16480       # FIXME: we may have to deal with multi-command sequences.
16481       ;;
16482     '$CC '*)
16483       # Test whether the compiler implicitly links with -lc since on some
16484       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16485       # to ld, don't add -lc before -lgcc.
16486       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16487 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16488 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16489   $as_echo_n "(cached) " >&6
16490 else
16491   $RM conftest*
16492         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16493
16494         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16495   (eval $ac_compile) 2>&5
16496   ac_status=$?
16497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16498   test $ac_status = 0; } 2>conftest.err; then
16499           soname=conftest
16500           lib=conftest
16501           libobjs=conftest.$ac_objext
16502           deplibs=
16503           wl=$lt_prog_compiler_wl
16504           pic_flag=$lt_prog_compiler_pic
16505           compiler_flags=-v
16506           linker_flags=-v
16507           verstring=
16508           output_objdir=.
16509           libname=conftest
16510           lt_save_allow_undefined_flag=$allow_undefined_flag
16511           allow_undefined_flag=
16512           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16513   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16514   ac_status=$?
16515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16516   test $ac_status = 0; }
16517           then
16518             lt_cv_archive_cmds_need_lc=no
16519           else
16520             lt_cv_archive_cmds_need_lc=yes
16521           fi
16522           allow_undefined_flag=$lt_save_allow_undefined_flag
16523         else
16524           cat conftest.err 1>&5
16525         fi
16526         $RM conftest*
16527
16528 fi
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16530 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16531       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16532       ;;
16533     esac
16534   fi
16535   ;;
16536 esac
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16695 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16696
16697 if test "$GCC" = yes; then
16698   case $host_os in
16699     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16700     *) lt_awk_arg="/^libraries:/" ;;
16701   esac
16702   case $host_os in
16703     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16704     *) lt_sed_strip_eq="s,=/,/,g" ;;
16705   esac
16706   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16707   case $lt_search_path_spec in
16708   *\;*)
16709     # if the path contains ";" then we assume it to be the separator
16710     # otherwise default to the standard path separator (i.e. ":") - it is
16711     # assumed that no part of a normal pathname contains ";" but that should
16712     # okay in the real world where ";" in dirpaths is itself problematic.
16713     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16714     ;;
16715   *)
16716     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16717     ;;
16718   esac
16719   # Ok, now we have the path, separated by spaces, we can step through it
16720   # and add multilib dir if necessary.
16721   lt_tmp_lt_search_path_spec=
16722   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16723   for lt_sys_path in $lt_search_path_spec; do
16724     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16725       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16726     else
16727       test -d "$lt_sys_path" && \
16728         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16729     fi
16730   done
16731   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16732 BEGIN {RS=" "; FS="/|\n";} {
16733   lt_foo="";
16734   lt_count=0;
16735   for (lt_i = NF; lt_i > 0; lt_i--) {
16736     if ($lt_i != "" && $lt_i != ".") {
16737       if ($lt_i == "..") {
16738         lt_count++;
16739       } else {
16740         if (lt_count == 0) {
16741           lt_foo="/" $lt_i lt_foo;
16742         } else {
16743           lt_count--;
16744         }
16745       }
16746     }
16747   }
16748   if (lt_foo != "") { lt_freq[lt_foo]++; }
16749   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16750 }'`
16751   # AWK program above erroneously prepends '/' to C:/dos/paths
16752   # for these hosts.
16753   case $host_os in
16754     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16755       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16756   esac
16757   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16758 else
16759   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16760 fi
16761 library_names_spec=
16762 libname_spec='lib$name'
16763 soname_spec=
16764 shrext_cmds=".so"
16765 postinstall_cmds=
16766 postuninstall_cmds=
16767 finish_cmds=
16768 finish_eval=
16769 shlibpath_var=
16770 shlibpath_overrides_runpath=unknown
16771 version_type=none
16772 dynamic_linker="$host_os ld.so"
16773 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16774 need_lib_prefix=unknown
16775 hardcode_into_libs=no
16776
16777 # when you set need_version to no, make sure it does not cause -set_version
16778 # flags to be left without arguments
16779 need_version=unknown
16780
16781 case $host_os in
16782 aix3*)
16783   version_type=linux
16784   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16785   shlibpath_var=LIBPATH
16786
16787   # AIX 3 has no versioning support, so we append a major version to the name.
16788   soname_spec='${libname}${release}${shared_ext}$major'
16789   ;;
16790
16791 aix[4-9]*)
16792   version_type=linux
16793   need_lib_prefix=no
16794   need_version=no
16795   hardcode_into_libs=yes
16796   if test "$host_cpu" = ia64; then
16797     # AIX 5 supports IA64
16798     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16799     shlibpath_var=LD_LIBRARY_PATH
16800   else
16801     # With GCC up to 2.95.x, collect2 would create an import file
16802     # for dependence libraries.  The import file would start with
16803     # the line `#! .'.  This would cause the generated library to
16804     # depend on `.', always an invalid library.  This was fixed in
16805     # development snapshots of GCC prior to 3.0.
16806     case $host_os in
16807       aix4 | aix4.[01] | aix4.[01].*)
16808       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16809            echo ' yes '
16810            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16811         :
16812       else
16813         can_build_shared=no
16814       fi
16815       ;;
16816     esac
16817     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16818     # soname into executable. Probably we can add versioning support to
16819     # collect2, so additional links can be useful in future.
16820     if test "$aix_use_runtimelinking" = yes; then
16821       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16822       # instead of lib<name>.a to let people know that these are not
16823       # typical AIX shared libraries.
16824       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16825     else
16826       # We preserve .a as extension for shared libraries through AIX4.2
16827       # and later when we are not doing run time linking.
16828       library_names_spec='${libname}${release}.a $libname.a'
16829       soname_spec='${libname}${release}${shared_ext}$major'
16830     fi
16831     shlibpath_var=LIBPATH
16832   fi
16833   ;;
16834
16835 amigaos*)
16836   case $host_cpu in
16837   powerpc)
16838     # Since July 2007 AmigaOS4 officially supports .so libraries.
16839     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16840     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16841     ;;
16842   m68k)
16843     library_names_spec='$libname.ixlibrary $libname.a'
16844     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16845     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'
16846     ;;
16847   esac
16848   ;;
16849
16850 beos*)
16851   library_names_spec='${libname}${shared_ext}'
16852   dynamic_linker="$host_os ld.so"
16853   shlibpath_var=LIBRARY_PATH
16854   ;;
16855
16856 bsdi[45]*)
16857   version_type=linux
16858   need_version=no
16859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16860   soname_spec='${libname}${release}${shared_ext}$major'
16861   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16862   shlibpath_var=LD_LIBRARY_PATH
16863   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16864   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16865   # the default ld.so.conf also contains /usr/contrib/lib and
16866   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16867   # libtool to hard-code these into programs
16868   ;;
16869
16870 cygwin* | mingw* | pw32* | cegcc*)
16871   version_type=windows
16872   shrext_cmds=".dll"
16873   need_version=no
16874   need_lib_prefix=no
16875
16876   case $GCC,$host_os in
16877   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16878     library_names_spec='$libname.dll.a'
16879     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16880     postinstall_cmds='base_file=`basename \${file}`~
16881       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16882       dldir=$destdir/`dirname \$dlpath`~
16883       test -d \$dldir || mkdir -p \$dldir~
16884       $install_prog $dir/$dlname \$dldir/$dlname~
16885       chmod a+x \$dldir/$dlname~
16886       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16887         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16888       fi'
16889     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16890       dlpath=$dir/\$dldll~
16891        $RM \$dlpath'
16892     shlibpath_overrides_runpath=yes
16893
16894     case $host_os in
16895     cygwin*)
16896       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16897       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16898
16899       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16900       ;;
16901     mingw* | cegcc*)
16902       # MinGW DLLs use traditional 'lib' prefix
16903       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16904       ;;
16905     pw32*)
16906       # pw32 DLLs use 'pw' prefix rather than 'lib'
16907       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16908       ;;
16909     esac
16910     ;;
16911
16912   *)
16913     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16914     ;;
16915   esac
16916   dynamic_linker='Win32 ld.exe'
16917   # FIXME: first we should search . and the directory the executable is in
16918   shlibpath_var=PATH
16919   ;;
16920
16921 darwin* | rhapsody*)
16922   dynamic_linker="$host_os dyld"
16923   version_type=darwin
16924   need_lib_prefix=no
16925   need_version=no
16926   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16927   soname_spec='${libname}${release}${major}$shared_ext'
16928   shlibpath_overrides_runpath=yes
16929   shlibpath_var=DYLD_LIBRARY_PATH
16930   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16931
16932   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16933   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16934   ;;
16935
16936 dgux*)
16937   version_type=linux
16938   need_lib_prefix=no
16939   need_version=no
16940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16941   soname_spec='${libname}${release}${shared_ext}$major'
16942   shlibpath_var=LD_LIBRARY_PATH
16943   ;;
16944
16945 freebsd* | dragonfly*)
16946   # DragonFly does not have aout.  When/if they implement a new
16947   # versioning mechanism, adjust this.
16948   if test -x /usr/bin/objformat; then
16949     objformat=`/usr/bin/objformat`
16950   else
16951     case $host_os in
16952     freebsd[123]*) objformat=aout ;;
16953     *) objformat=elf ;;
16954     esac
16955   fi
16956   version_type=freebsd-$objformat
16957   case $version_type in
16958     freebsd-elf*)
16959       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16960       need_version=no
16961       need_lib_prefix=no
16962       ;;
16963     freebsd-*)
16964       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16965       need_version=yes
16966       ;;
16967   esac
16968   shlibpath_var=LD_LIBRARY_PATH
16969   case $host_os in
16970   freebsd2*)
16971     shlibpath_overrides_runpath=yes
16972     ;;
16973   freebsd3.[01]* | freebsdelf3.[01]*)
16974     shlibpath_overrides_runpath=yes
16975     hardcode_into_libs=yes
16976     ;;
16977   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16978   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16979     shlibpath_overrides_runpath=no
16980     hardcode_into_libs=yes
16981     ;;
16982   *) # from 4.6 on, and DragonFly
16983     shlibpath_overrides_runpath=yes
16984     hardcode_into_libs=yes
16985     ;;
16986   esac
16987   ;;
16988
16989 gnu*)
16990   version_type=linux
16991   need_lib_prefix=no
16992   need_version=no
16993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16994   soname_spec='${libname}${release}${shared_ext}$major'
16995   shlibpath_var=LD_LIBRARY_PATH
16996   hardcode_into_libs=yes
16997   ;;
16998
16999 haiku*)
17000   version_type=linux
17001   need_lib_prefix=no
17002   need_version=no
17003   dynamic_linker="$host_os runtime_loader"
17004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17005   soname_spec='${libname}${release}${shared_ext}$major'
17006   shlibpath_var=LIBRARY_PATH
17007   shlibpath_overrides_runpath=yes
17008   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17009   hardcode_into_libs=yes
17010   ;;
17011
17012 hpux9* | hpux10* | hpux11*)
17013   # Give a soname corresponding to the major version so that dld.sl refuses to
17014   # link against other versions.
17015   version_type=sunos
17016   need_lib_prefix=no
17017   need_version=no
17018   case $host_cpu in
17019   ia64*)
17020     shrext_cmds='.so'
17021     hardcode_into_libs=yes
17022     dynamic_linker="$host_os dld.so"
17023     shlibpath_var=LD_LIBRARY_PATH
17024     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17025     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17026     soname_spec='${libname}${release}${shared_ext}$major'
17027     if test "X$HPUX_IA64_MODE" = X32; then
17028       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17029     else
17030       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17031     fi
17032     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17033     ;;
17034   hppa*64*)
17035     shrext_cmds='.sl'
17036     hardcode_into_libs=yes
17037     dynamic_linker="$host_os dld.sl"
17038     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17039     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17040     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17041     soname_spec='${libname}${release}${shared_ext}$major'
17042     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17043     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17044     ;;
17045   *)
17046     shrext_cmds='.sl'
17047     dynamic_linker="$host_os dld.sl"
17048     shlibpath_var=SHLIB_PATH
17049     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17050     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17051     soname_spec='${libname}${release}${shared_ext}$major'
17052     ;;
17053   esac
17054   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17055   postinstall_cmds='chmod 555 $lib'
17056   # or fails outright, so override atomically:
17057   install_override_mode=555
17058   ;;
17059
17060 interix[3-9]*)
17061   version_type=linux
17062   need_lib_prefix=no
17063   need_version=no
17064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17065   soname_spec='${libname}${release}${shared_ext}$major'
17066   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17067   shlibpath_var=LD_LIBRARY_PATH
17068   shlibpath_overrides_runpath=no
17069   hardcode_into_libs=yes
17070   ;;
17071
17072 irix5* | irix6* | nonstopux*)
17073   case $host_os in
17074     nonstopux*) version_type=nonstopux ;;
17075     *)
17076         if test "$lt_cv_prog_gnu_ld" = yes; then
17077                 version_type=linux
17078         else
17079                 version_type=irix
17080         fi ;;
17081   esac
17082   need_lib_prefix=no
17083   need_version=no
17084   soname_spec='${libname}${release}${shared_ext}$major'
17085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17086   case $host_os in
17087   irix5* | nonstopux*)
17088     libsuff= shlibsuff=
17089     ;;
17090   *)
17091     case $LD in # libtool.m4 will add one of these switches to LD
17092     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17093       libsuff= shlibsuff= libmagic=32-bit;;
17094     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17095       libsuff=32 shlibsuff=N32 libmagic=N32;;
17096     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17097       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17098     *) libsuff= shlibsuff= libmagic=never-match;;
17099     esac
17100     ;;
17101   esac
17102   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17103   shlibpath_overrides_runpath=no
17104   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17105   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17106   hardcode_into_libs=yes
17107   ;;
17108
17109 # No shared lib support for Linux oldld, aout, or coff.
17110 linux*oldld* | linux*aout* | linux*coff*)
17111   dynamic_linker=no
17112   ;;
17113
17114 # This must be Linux ELF.
17115 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17116   version_type=linux
17117   need_lib_prefix=no
17118   need_version=no
17119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120   soname_spec='${libname}${release}${shared_ext}$major'
17121   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17122   shlibpath_var=LD_LIBRARY_PATH
17123   shlibpath_overrides_runpath=no
17124
17125   # Some binutils ld are patched to set DT_RUNPATH
17126   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17127   $as_echo_n "(cached) " >&6
17128 else
17129   lt_cv_shlibpath_overrides_runpath=no
17130     save_LDFLAGS=$LDFLAGS
17131     save_libdir=$libdir
17132     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17133          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17134     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135 /* end confdefs.h.  */
17136
17137 int
17138 main ()
17139 {
17140
17141   ;
17142   return 0;
17143 }
17144 _ACEOF
17145 if ac_fn_c_try_link "$LINENO"; then :
17146   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17147   lt_cv_shlibpath_overrides_runpath=yes
17148 fi
17149 fi
17150 rm -f core conftest.err conftest.$ac_objext \
17151     conftest$ac_exeext conftest.$ac_ext
17152     LDFLAGS=$save_LDFLAGS
17153     libdir=$save_libdir
17154
17155 fi
17156
17157   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17158
17159   # This implies no fast_install, which is unacceptable.
17160   # Some rework will be needed to allow for fast_install
17161   # before this can be enabled.
17162   hardcode_into_libs=yes
17163
17164   # Append ld.so.conf contents to the search path
17165   if test -f /etc/ld.so.conf; then
17166     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' ' '`
17167     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17168   fi
17169
17170   # We used to test for /lib/ld.so.1 and disable shared libraries on
17171   # powerpc, because MkLinux only supported shared libraries with the
17172   # GNU dynamic linker.  Since this was broken with cross compilers,
17173   # most powerpc-linux boxes support dynamic linking these days and
17174   # people can always --disable-shared, the test was removed, and we
17175   # assume the GNU/Linux dynamic linker is in use.
17176   dynamic_linker='GNU/Linux ld.so'
17177   ;;
17178
17179 netbsd*)
17180   version_type=sunos
17181   need_lib_prefix=no
17182   need_version=no
17183   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17184     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17185     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17186     dynamic_linker='NetBSD (a.out) ld.so'
17187   else
17188     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17189     soname_spec='${libname}${release}${shared_ext}$major'
17190     dynamic_linker='NetBSD ld.elf_so'
17191   fi
17192   shlibpath_var=LD_LIBRARY_PATH
17193   shlibpath_overrides_runpath=yes
17194   hardcode_into_libs=yes
17195   ;;
17196
17197 newsos6)
17198   version_type=linux
17199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17200   shlibpath_var=LD_LIBRARY_PATH
17201   shlibpath_overrides_runpath=yes
17202   ;;
17203
17204 *nto* | *qnx*)
17205   version_type=qnx
17206   need_lib_prefix=no
17207   need_version=no
17208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17209   soname_spec='${libname}${release}${shared_ext}$major'
17210   shlibpath_var=LD_LIBRARY_PATH
17211   shlibpath_overrides_runpath=no
17212   hardcode_into_libs=yes
17213   dynamic_linker='ldqnx.so'
17214   ;;
17215
17216 openbsd*)
17217   version_type=sunos
17218   sys_lib_dlsearch_path_spec="/usr/lib"
17219   need_lib_prefix=no
17220   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17221   case $host_os in
17222     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17223     *)                          need_version=no  ;;
17224   esac
17225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17226   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17227   shlibpath_var=LD_LIBRARY_PATH
17228   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17229     case $host_os in
17230       openbsd2.[89] | openbsd2.[89].*)
17231         shlibpath_overrides_runpath=no
17232         ;;
17233       *)
17234         shlibpath_overrides_runpath=yes
17235         ;;
17236       esac
17237   else
17238     shlibpath_overrides_runpath=yes
17239   fi
17240   ;;
17241
17242 os2*)
17243   libname_spec='$name'
17244   shrext_cmds=".dll"
17245   need_lib_prefix=no
17246   library_names_spec='$libname${shared_ext} $libname.a'
17247   dynamic_linker='OS/2 ld.exe'
17248   shlibpath_var=LIBPATH
17249   ;;
17250
17251 osf3* | osf4* | osf5*)
17252   version_type=osf
17253   need_lib_prefix=no
17254   need_version=no
17255   soname_spec='${libname}${release}${shared_ext}$major'
17256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17257   shlibpath_var=LD_LIBRARY_PATH
17258   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17259   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17260   ;;
17261
17262 rdos*)
17263   dynamic_linker=no
17264   ;;
17265
17266 solaris*)
17267   version_type=linux
17268   need_lib_prefix=no
17269   need_version=no
17270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17271   soname_spec='${libname}${release}${shared_ext}$major'
17272   shlibpath_var=LD_LIBRARY_PATH
17273   shlibpath_overrides_runpath=yes
17274   hardcode_into_libs=yes
17275   # ldd complains unless libraries are executable
17276   postinstall_cmds='chmod +x $lib'
17277   ;;
17278
17279 sunos4*)
17280   version_type=sunos
17281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17282   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17283   shlibpath_var=LD_LIBRARY_PATH
17284   shlibpath_overrides_runpath=yes
17285   if test "$with_gnu_ld" = yes; then
17286     need_lib_prefix=no
17287   fi
17288   need_version=yes
17289   ;;
17290
17291 sysv4 | sysv4.3*)
17292   version_type=linux
17293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17294   soname_spec='${libname}${release}${shared_ext}$major'
17295   shlibpath_var=LD_LIBRARY_PATH
17296   case $host_vendor in
17297     sni)
17298       shlibpath_overrides_runpath=no
17299       need_lib_prefix=no
17300       runpath_var=LD_RUN_PATH
17301       ;;
17302     siemens)
17303       need_lib_prefix=no
17304       ;;
17305     motorola)
17306       need_lib_prefix=no
17307       need_version=no
17308       shlibpath_overrides_runpath=no
17309       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17310       ;;
17311   esac
17312   ;;
17313
17314 sysv4*MP*)
17315   if test -d /usr/nec ;then
17316     version_type=linux
17317     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17318     soname_spec='$libname${shared_ext}.$major'
17319     shlibpath_var=LD_LIBRARY_PATH
17320   fi
17321   ;;
17322
17323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17324   version_type=freebsd-elf
17325   need_lib_prefix=no
17326   need_version=no
17327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17328   soname_spec='${libname}${release}${shared_ext}$major'
17329   shlibpath_var=LD_LIBRARY_PATH
17330   shlibpath_overrides_runpath=yes
17331   hardcode_into_libs=yes
17332   if test "$with_gnu_ld" = yes; then
17333     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17334   else
17335     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17336     case $host_os in
17337       sco3.2v5*)
17338         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17339         ;;
17340     esac
17341   fi
17342   sys_lib_dlsearch_path_spec='/usr/lib'
17343   ;;
17344
17345 tpf*)
17346   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17347   version_type=linux
17348   need_lib_prefix=no
17349   need_version=no
17350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17351   shlibpath_var=LD_LIBRARY_PATH
17352   shlibpath_overrides_runpath=no
17353   hardcode_into_libs=yes
17354   ;;
17355
17356 uts4*)
17357   version_type=linux
17358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17359   soname_spec='${libname}${release}${shared_ext}$major'
17360   shlibpath_var=LD_LIBRARY_PATH
17361   ;;
17362
17363 *)
17364   dynamic_linker=no
17365   ;;
17366 esac
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17368 $as_echo "$dynamic_linker" >&6; }
17369 test "$dynamic_linker" = no && can_build_shared=no
17370
17371 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17372 if test "$GCC" = yes; then
17373   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17374 fi
17375
17376 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17377   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17378 fi
17379 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17380   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17381 fi
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17475 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17476 hardcode_action=
17477 if test -n "$hardcode_libdir_flag_spec" ||
17478    test -n "$runpath_var" ||
17479    test "X$hardcode_automatic" = "Xyes" ; then
17480
17481   # We can hardcode non-existent directories.
17482   if test "$hardcode_direct" != no &&
17483      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17484      # have to relink, otherwise we might link with an installed library
17485      # when we should be linking with a yet-to-be-installed one
17486      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17487      test "$hardcode_minus_L" != no; then
17488     # Linking always hardcodes the temporary library directory.
17489     hardcode_action=relink
17490   else
17491     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17492     hardcode_action=immediate
17493   fi
17494 else
17495   # We cannot hardcode anything, or else we can only hardcode existing
17496   # directories.
17497   hardcode_action=unsupported
17498 fi
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17500 $as_echo "$hardcode_action" >&6; }
17501
17502 if test "$hardcode_action" = relink ||
17503    test "$inherit_rpath" = yes; then
17504   # Fast installation is not supported
17505   enable_fast_install=no
17506 elif test "$shlibpath_overrides_runpath" = yes ||
17507      test "$enable_shared" = no; then
17508   # Fast installation is not necessary
17509   enable_fast_install=needless
17510 fi
17511
17512
17513
17514
17515
17516
17517   if test "x$enable_dlopen" != xyes; then
17518   enable_dlopen=unknown
17519   enable_dlopen_self=unknown
17520   enable_dlopen_self_static=unknown
17521 else
17522   lt_cv_dlopen=no
17523   lt_cv_dlopen_libs=
17524
17525   case $host_os in
17526   beos*)
17527     lt_cv_dlopen="load_add_on"
17528     lt_cv_dlopen_libs=
17529     lt_cv_dlopen_self=yes
17530     ;;
17531
17532   mingw* | pw32* | cegcc*)
17533     lt_cv_dlopen="LoadLibrary"
17534     lt_cv_dlopen_libs=
17535     ;;
17536
17537   cygwin*)
17538     lt_cv_dlopen="dlopen"
17539     lt_cv_dlopen_libs=
17540     ;;
17541
17542   darwin*)
17543   # if libdl is installed we need to link against it
17544     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17545 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17546 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17547   $as_echo_n "(cached) " >&6
17548 else
17549   ac_check_lib_save_LIBS=$LIBS
17550 LIBS="-ldl  $LIBS"
17551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17552 /* end confdefs.h.  */
17553
17554 /* Override any GCC internal prototype to avoid an error.
17555    Use char because int might match the return type of a GCC
17556    builtin and then its argument prototype would still apply.  */
17557 #ifdef __cplusplus
17558 extern "C"
17559 #endif
17560 char dlopen ();
17561 int
17562 main ()
17563 {
17564 return dlopen ();
17565   ;
17566   return 0;
17567 }
17568 _ACEOF
17569 if ac_fn_c_try_link "$LINENO"; then :
17570   ac_cv_lib_dl_dlopen=yes
17571 else
17572   ac_cv_lib_dl_dlopen=no
17573 fi
17574 rm -f core conftest.err conftest.$ac_objext \
17575     conftest$ac_exeext conftest.$ac_ext
17576 LIBS=$ac_check_lib_save_LIBS
17577 fi
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17579 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17580 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17581   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17582 else
17583
17584     lt_cv_dlopen="dyld"
17585     lt_cv_dlopen_libs=
17586     lt_cv_dlopen_self=yes
17587
17588 fi
17589
17590     ;;
17591
17592   *)
17593     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17594 if test "x$ac_cv_func_shl_load" = x""yes; then :
17595   lt_cv_dlopen="shl_load"
17596 else
17597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17598 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17599 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17600   $as_echo_n "(cached) " >&6
17601 else
17602   ac_check_lib_save_LIBS=$LIBS
17603 LIBS="-ldld  $LIBS"
17604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17605 /* end confdefs.h.  */
17606
17607 /* Override any GCC internal prototype to avoid an error.
17608    Use char because int might match the return type of a GCC
17609    builtin and then its argument prototype would still apply.  */
17610 #ifdef __cplusplus
17611 extern "C"
17612 #endif
17613 char shl_load ();
17614 int
17615 main ()
17616 {
17617 return shl_load ();
17618   ;
17619   return 0;
17620 }
17621 _ACEOF
17622 if ac_fn_c_try_link "$LINENO"; then :
17623   ac_cv_lib_dld_shl_load=yes
17624 else
17625   ac_cv_lib_dld_shl_load=no
17626 fi
17627 rm -f core conftest.err conftest.$ac_objext \
17628     conftest$ac_exeext conftest.$ac_ext
17629 LIBS=$ac_check_lib_save_LIBS
17630 fi
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17632 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17633 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17634   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17635 else
17636   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17637 if test "x$ac_cv_func_dlopen" = x""yes; then :
17638   lt_cv_dlopen="dlopen"
17639 else
17640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17641 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17642 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17643   $as_echo_n "(cached) " >&6
17644 else
17645   ac_check_lib_save_LIBS=$LIBS
17646 LIBS="-ldl  $LIBS"
17647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17648 /* end confdefs.h.  */
17649
17650 /* Override any GCC internal prototype to avoid an error.
17651    Use char because int might match the return type of a GCC
17652    builtin and then its argument prototype would still apply.  */
17653 #ifdef __cplusplus
17654 extern "C"
17655 #endif
17656 char dlopen ();
17657 int
17658 main ()
17659 {
17660 return dlopen ();
17661   ;
17662   return 0;
17663 }
17664 _ACEOF
17665 if ac_fn_c_try_link "$LINENO"; then :
17666   ac_cv_lib_dl_dlopen=yes
17667 else
17668   ac_cv_lib_dl_dlopen=no
17669 fi
17670 rm -f core conftest.err conftest.$ac_objext \
17671     conftest$ac_exeext conftest.$ac_ext
17672 LIBS=$ac_check_lib_save_LIBS
17673 fi
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17675 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17676 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17677   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17678 else
17679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17680 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17681 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17682   $as_echo_n "(cached) " >&6
17683 else
17684   ac_check_lib_save_LIBS=$LIBS
17685 LIBS="-lsvld  $LIBS"
17686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17687 /* end confdefs.h.  */
17688
17689 /* Override any GCC internal prototype to avoid an error.
17690    Use char because int might match the return type of a GCC
17691    builtin and then its argument prototype would still apply.  */
17692 #ifdef __cplusplus
17693 extern "C"
17694 #endif
17695 char dlopen ();
17696 int
17697 main ()
17698 {
17699 return dlopen ();
17700   ;
17701   return 0;
17702 }
17703 _ACEOF
17704 if ac_fn_c_try_link "$LINENO"; then :
17705   ac_cv_lib_svld_dlopen=yes
17706 else
17707   ac_cv_lib_svld_dlopen=no
17708 fi
17709 rm -f core conftest.err conftest.$ac_objext \
17710     conftest$ac_exeext conftest.$ac_ext
17711 LIBS=$ac_check_lib_save_LIBS
17712 fi
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17714 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17715 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17716   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17717 else
17718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17719 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17720 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17721   $as_echo_n "(cached) " >&6
17722 else
17723   ac_check_lib_save_LIBS=$LIBS
17724 LIBS="-ldld  $LIBS"
17725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17726 /* end confdefs.h.  */
17727
17728 /* Override any GCC internal prototype to avoid an error.
17729    Use char because int might match the return type of a GCC
17730    builtin and then its argument prototype would still apply.  */
17731 #ifdef __cplusplus
17732 extern "C"
17733 #endif
17734 char dld_link ();
17735 int
17736 main ()
17737 {
17738 return dld_link ();
17739   ;
17740   return 0;
17741 }
17742 _ACEOF
17743 if ac_fn_c_try_link "$LINENO"; then :
17744   ac_cv_lib_dld_dld_link=yes
17745 else
17746   ac_cv_lib_dld_dld_link=no
17747 fi
17748 rm -f core conftest.err conftest.$ac_objext \
17749     conftest$ac_exeext conftest.$ac_ext
17750 LIBS=$ac_check_lib_save_LIBS
17751 fi
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17753 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17754 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17755   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17756 fi
17757
17758
17759 fi
17760
17761
17762 fi
17763
17764
17765 fi
17766
17767
17768 fi
17769
17770
17771 fi
17772
17773     ;;
17774   esac
17775
17776   if test "x$lt_cv_dlopen" != xno; then
17777     enable_dlopen=yes
17778   else
17779     enable_dlopen=no
17780   fi
17781
17782   case $lt_cv_dlopen in
17783   dlopen)
17784     save_CPPFLAGS="$CPPFLAGS"
17785     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17786
17787     save_LDFLAGS="$LDFLAGS"
17788     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17789
17790     save_LIBS="$LIBS"
17791     LIBS="$lt_cv_dlopen_libs $LIBS"
17792
17793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17794 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17795 if test "${lt_cv_dlopen_self+set}" = set; then :
17796   $as_echo_n "(cached) " >&6
17797 else
17798           if test "$cross_compiling" = yes; then :
17799   lt_cv_dlopen_self=cross
17800 else
17801   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17802   lt_status=$lt_dlunknown
17803   cat > conftest.$ac_ext <<_LT_EOF
17804 #line 17804 "configure"
17805 #include "confdefs.h"
17806
17807 #if HAVE_DLFCN_H
17808 #include <dlfcn.h>
17809 #endif
17810
17811 #include <stdio.h>
17812
17813 #ifdef RTLD_GLOBAL
17814 #  define LT_DLGLOBAL           RTLD_GLOBAL
17815 #else
17816 #  ifdef DL_GLOBAL
17817 #    define LT_DLGLOBAL         DL_GLOBAL
17818 #  else
17819 #    define LT_DLGLOBAL         0
17820 #  endif
17821 #endif
17822
17823 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17824    find out it does not work in some platform. */
17825 #ifndef LT_DLLAZY_OR_NOW
17826 #  ifdef RTLD_LAZY
17827 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17828 #  else
17829 #    ifdef DL_LAZY
17830 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17831 #    else
17832 #      ifdef RTLD_NOW
17833 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17834 #      else
17835 #        ifdef DL_NOW
17836 #          define LT_DLLAZY_OR_NOW      DL_NOW
17837 #        else
17838 #          define LT_DLLAZY_OR_NOW      0
17839 #        endif
17840 #      endif
17841 #    endif
17842 #  endif
17843 #endif
17844
17845 /* When -fvisbility=hidden is used, assume the code has been annotated
17846    correspondingly for the symbols needed.  */
17847 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17848 void fnord () __attribute__((visibility("default")));
17849 #endif
17850
17851 void fnord () { int i=42; }
17852 int main ()
17853 {
17854   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17855   int status = $lt_dlunknown;
17856
17857   if (self)
17858     {
17859       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17860       else
17861         {
17862           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17863           else puts (dlerror ());
17864         }
17865       /* dlclose (self); */
17866     }
17867   else
17868     puts (dlerror ());
17869
17870   return status;
17871 }
17872 _LT_EOF
17873   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17874   (eval $ac_link) 2>&5
17875   ac_status=$?
17876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17877   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17878     (./conftest; exit; ) >&5 2>/dev/null
17879     lt_status=$?
17880     case x$lt_status in
17881       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17882       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17883       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17884     esac
17885   else :
17886     # compilation failed
17887     lt_cv_dlopen_self=no
17888   fi
17889 fi
17890 rm -fr conftest*
17891
17892
17893 fi
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17895 $as_echo "$lt_cv_dlopen_self" >&6; }
17896
17897     if test "x$lt_cv_dlopen_self" = xyes; then
17898       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17899       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17900 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17901 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17902   $as_echo_n "(cached) " >&6
17903 else
17904           if test "$cross_compiling" = yes; then :
17905   lt_cv_dlopen_self_static=cross
17906 else
17907   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17908   lt_status=$lt_dlunknown
17909   cat > conftest.$ac_ext <<_LT_EOF
17910 #line 17910 "configure"
17911 #include "confdefs.h"
17912
17913 #if HAVE_DLFCN_H
17914 #include <dlfcn.h>
17915 #endif
17916
17917 #include <stdio.h>
17918
17919 #ifdef RTLD_GLOBAL
17920 #  define LT_DLGLOBAL           RTLD_GLOBAL
17921 #else
17922 #  ifdef DL_GLOBAL
17923 #    define LT_DLGLOBAL         DL_GLOBAL
17924 #  else
17925 #    define LT_DLGLOBAL         0
17926 #  endif
17927 #endif
17928
17929 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17930    find out it does not work in some platform. */
17931 #ifndef LT_DLLAZY_OR_NOW
17932 #  ifdef RTLD_LAZY
17933 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17934 #  else
17935 #    ifdef DL_LAZY
17936 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17937 #    else
17938 #      ifdef RTLD_NOW
17939 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17940 #      else
17941 #        ifdef DL_NOW
17942 #          define LT_DLLAZY_OR_NOW      DL_NOW
17943 #        else
17944 #          define LT_DLLAZY_OR_NOW      0
17945 #        endif
17946 #      endif
17947 #    endif
17948 #  endif
17949 #endif
17950
17951 /* When -fvisbility=hidden is used, assume the code has been annotated
17952    correspondingly for the symbols needed.  */
17953 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17954 void fnord () __attribute__((visibility("default")));
17955 #endif
17956
17957 void fnord () { int i=42; }
17958 int main ()
17959 {
17960   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17961   int status = $lt_dlunknown;
17962
17963   if (self)
17964     {
17965       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17966       else
17967         {
17968           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17969           else puts (dlerror ());
17970         }
17971       /* dlclose (self); */
17972     }
17973   else
17974     puts (dlerror ());
17975
17976   return status;
17977 }
17978 _LT_EOF
17979   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17980   (eval $ac_link) 2>&5
17981   ac_status=$?
17982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17983   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17984     (./conftest; exit; ) >&5 2>/dev/null
17985     lt_status=$?
17986     case x$lt_status in
17987       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17988       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17989       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17990     esac
17991   else :
17992     # compilation failed
17993     lt_cv_dlopen_self_static=no
17994   fi
17995 fi
17996 rm -fr conftest*
17997
17998
17999 fi
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18001 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18002     fi
18003
18004     CPPFLAGS="$save_CPPFLAGS"
18005     LDFLAGS="$save_LDFLAGS"
18006     LIBS="$save_LIBS"
18007     ;;
18008   esac
18009
18010   case $lt_cv_dlopen_self in
18011   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18012   *) enable_dlopen_self=unknown ;;
18013   esac
18014
18015   case $lt_cv_dlopen_self_static in
18016   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18017   *) enable_dlopen_self_static=unknown ;;
18018   esac
18019 fi
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037 striplib=
18038 old_striplib=
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18040 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18041 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18042   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18043   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18045 $as_echo "yes" >&6; }
18046 else
18047 # FIXME - insert some real tests, host_os isn't really good enough
18048   case $host_os in
18049   darwin*)
18050     if test -n "$STRIP" ; then
18051       striplib="$STRIP -x"
18052       old_striplib="$STRIP -S"
18053       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18054 $as_echo "yes" >&6; }
18055     else
18056       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18057 $as_echo "no" >&6; }
18058     fi
18059     ;;
18060   *)
18061     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18062 $as_echo "no" >&6; }
18063     ;;
18064   esac
18065 fi
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078   # Report which library types will actually be built
18079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18080 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18082 $as_echo "$can_build_shared" >&6; }
18083
18084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18085 $as_echo_n "checking whether to build shared libraries... " >&6; }
18086   test "$can_build_shared" = "no" && enable_shared=no
18087
18088   # On AIX, shared libraries and static libraries use the same namespace, and
18089   # are all built from PIC.
18090   case $host_os in
18091   aix3*)
18092     test "$enable_shared" = yes && enable_static=no
18093     if test -n "$RANLIB"; then
18094       archive_cmds="$archive_cmds~\$RANLIB \$lib"
18095       postinstall_cmds='$RANLIB $lib'
18096     fi
18097     ;;
18098
18099   aix[4-9]*)
18100     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18101       test "$enable_shared" = yes && enable_static=no
18102     fi
18103     ;;
18104   esac
18105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18106 $as_echo "$enable_shared" >&6; }
18107
18108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18109 $as_echo_n "checking whether to build static libraries... " >&6; }
18110   # Make sure either enable_shared or enable_static is yes.
18111   test "$enable_shared" = yes || enable_static=yes
18112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18113 $as_echo "$enable_static" >&6; }
18114
18115
18116
18117
18118 fi
18119 ac_ext=c
18120 ac_cpp='$CPP $CPPFLAGS'
18121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18124
18125 CC="$lt_save_CC"
18126
18127       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18128     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18129     (test "X$CXX" != "Xg++"))) ; then
18130   ac_ext=cpp
18131 ac_cpp='$CXXCPP $CPPFLAGS'
18132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18136 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18137 if test -z "$CXXCPP"; then
18138   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18139   $as_echo_n "(cached) " >&6
18140 else
18141       # Double quotes because CXXCPP needs to be expanded
18142     for CXXCPP in "$CXX -E" "/lib/cpp"
18143     do
18144       ac_preproc_ok=false
18145 for ac_cxx_preproc_warn_flag in '' yes
18146 do
18147   # Use a header file that comes with gcc, so configuring glibc
18148   # with a fresh cross-compiler works.
18149   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18150   # <limits.h> exists even on freestanding compilers.
18151   # On the NeXT, cc -E runs the code through the compiler's parser,
18152   # not just through cpp. "Syntax error" is here to catch this case.
18153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18154 /* end confdefs.h.  */
18155 #ifdef __STDC__
18156 # include <limits.h>
18157 #else
18158 # include <assert.h>
18159 #endif
18160                      Syntax error
18161 _ACEOF
18162 if ac_fn_cxx_try_cpp "$LINENO"; then :
18163
18164 else
18165   # Broken: fails on valid input.
18166 continue
18167 fi
18168 rm -f conftest.err conftest.$ac_ext
18169
18170   # OK, works on sane cases.  Now check whether nonexistent headers
18171   # can be detected and how.
18172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18173 /* end confdefs.h.  */
18174 #include <ac_nonexistent.h>
18175 _ACEOF
18176 if ac_fn_cxx_try_cpp "$LINENO"; then :
18177   # Broken: success on invalid input.
18178 continue
18179 else
18180   # Passes both tests.
18181 ac_preproc_ok=:
18182 break
18183 fi
18184 rm -f conftest.err conftest.$ac_ext
18185
18186 done
18187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18188 rm -f conftest.err conftest.$ac_ext
18189 if $ac_preproc_ok; then :
18190   break
18191 fi
18192
18193     done
18194     ac_cv_prog_CXXCPP=$CXXCPP
18195
18196 fi
18197   CXXCPP=$ac_cv_prog_CXXCPP
18198 else
18199   ac_cv_prog_CXXCPP=$CXXCPP
18200 fi
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18202 $as_echo "$CXXCPP" >&6; }
18203 ac_preproc_ok=false
18204 for ac_cxx_preproc_warn_flag in '' yes
18205 do
18206   # Use a header file that comes with gcc, so configuring glibc
18207   # with a fresh cross-compiler works.
18208   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18209   # <limits.h> exists even on freestanding compilers.
18210   # On the NeXT, cc -E runs the code through the compiler's parser,
18211   # not just through cpp. "Syntax error" is here to catch this case.
18212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18213 /* end confdefs.h.  */
18214 #ifdef __STDC__
18215 # include <limits.h>
18216 #else
18217 # include <assert.h>
18218 #endif
18219                      Syntax error
18220 _ACEOF
18221 if ac_fn_cxx_try_cpp "$LINENO"; then :
18222
18223 else
18224   # Broken: fails on valid input.
18225 continue
18226 fi
18227 rm -f conftest.err conftest.$ac_ext
18228
18229   # OK, works on sane cases.  Now check whether nonexistent headers
18230   # can be detected and how.
18231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232 /* end confdefs.h.  */
18233 #include <ac_nonexistent.h>
18234 _ACEOF
18235 if ac_fn_cxx_try_cpp "$LINENO"; then :
18236   # Broken: success on invalid input.
18237 continue
18238 else
18239   # Passes both tests.
18240 ac_preproc_ok=:
18241 break
18242 fi
18243 rm -f conftest.err conftest.$ac_ext
18244
18245 done
18246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18247 rm -f conftest.err conftest.$ac_ext
18248 if $ac_preproc_ok; then :
18249
18250 else
18251   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18253 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18254 See \`config.log' for more details." "$LINENO" 5; }
18255 fi
18256
18257 ac_ext=c
18258 ac_cpp='$CPP $CPPFLAGS'
18259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18262
18263 else
18264   _lt_caught_CXX_error=yes
18265 fi
18266
18267 ac_ext=cpp
18268 ac_cpp='$CXXCPP $CPPFLAGS'
18269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18272
18273 archive_cmds_need_lc_CXX=no
18274 allow_undefined_flag_CXX=
18275 always_export_symbols_CXX=no
18276 archive_expsym_cmds_CXX=
18277 compiler_needs_object_CXX=no
18278 export_dynamic_flag_spec_CXX=
18279 hardcode_direct_CXX=no
18280 hardcode_direct_absolute_CXX=no
18281 hardcode_libdir_flag_spec_CXX=
18282 hardcode_libdir_flag_spec_ld_CXX=
18283 hardcode_libdir_separator_CXX=
18284 hardcode_minus_L_CXX=no
18285 hardcode_shlibpath_var_CXX=unsupported
18286 hardcode_automatic_CXX=no
18287 inherit_rpath_CXX=no
18288 module_cmds_CXX=
18289 module_expsym_cmds_CXX=
18290 link_all_deplibs_CXX=unknown
18291 old_archive_cmds_CXX=$old_archive_cmds
18292 reload_flag_CXX=$reload_flag
18293 reload_cmds_CXX=$reload_cmds
18294 no_undefined_flag_CXX=
18295 whole_archive_flag_spec_CXX=
18296 enable_shared_with_static_runtimes_CXX=no
18297
18298 # Source file extension for C++ test sources.
18299 ac_ext=cpp
18300
18301 # Object file extension for compiled C++ test sources.
18302 objext=o
18303 objext_CXX=$objext
18304
18305 # No sense in running all these tests if we already determined that
18306 # the CXX compiler isn't working.  Some variables (like enable_shared)
18307 # are currently assumed to apply to all compilers on this platform,
18308 # and will be corrupted by setting them based on a non-working compiler.
18309 if test "$_lt_caught_CXX_error" != yes; then
18310   # Code to be used in simple compile tests
18311   lt_simple_compile_test_code="int some_variable = 0;"
18312
18313   # Code to be used in simple link tests
18314   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18315
18316   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18317
18318
18319
18320
18321
18322
18323 # If no C compiler was specified, use CC.
18324 LTCC=${LTCC-"$CC"}
18325
18326 # If no C compiler flags were specified, use CFLAGS.
18327 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18328
18329 # Allow CC to be a program name with arguments.
18330 compiler=$CC
18331
18332
18333   # save warnings/boilerplate of simple test code
18334   ac_outfile=conftest.$ac_objext
18335 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18336 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18337 _lt_compiler_boilerplate=`cat conftest.err`
18338 $RM conftest*
18339
18340   ac_outfile=conftest.$ac_objext
18341 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18342 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18343 _lt_linker_boilerplate=`cat conftest.err`
18344 $RM -r conftest*
18345
18346
18347   # Allow CC to be a program name with arguments.
18348   lt_save_CC=$CC
18349   lt_save_LD=$LD
18350   lt_save_GCC=$GCC
18351   GCC=$GXX
18352   lt_save_with_gnu_ld=$with_gnu_ld
18353   lt_save_path_LD=$lt_cv_path_LD
18354   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18355     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18356   else
18357     $as_unset lt_cv_prog_gnu_ld
18358   fi
18359   if test -n "${lt_cv_path_LDCXX+set}"; then
18360     lt_cv_path_LD=$lt_cv_path_LDCXX
18361   else
18362     $as_unset lt_cv_path_LD
18363   fi
18364   test -z "${LDCXX+set}" || LD=$LDCXX
18365   CC=${CXX-"c++"}
18366   compiler=$CC
18367   compiler_CXX=$CC
18368   for cc_temp in $compiler""; do
18369   case $cc_temp in
18370     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18371     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18372     \-*) ;;
18373     *) break;;
18374   esac
18375 done
18376 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18377
18378
18379   if test -n "$compiler"; then
18380     # We don't want -fno-exception when compiling C++ code, so set the
18381     # no_builtin_flag separately
18382     if test "$GXX" = yes; then
18383       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18384     else
18385       lt_prog_compiler_no_builtin_flag_CXX=
18386     fi
18387
18388     if test "$GXX" = yes; then
18389       # Set up default GNU C++ configuration
18390
18391
18392
18393 # Check whether --with-gnu-ld was given.
18394 if test "${with_gnu_ld+set}" = set; then :
18395   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18396 else
18397   with_gnu_ld=no
18398 fi
18399
18400 ac_prog=ld
18401 if test "$GCC" = yes; then
18402   # Check if gcc -print-prog-name=ld gives a path.
18403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18404 $as_echo_n "checking for ld used by $CC... " >&6; }
18405   case $host in
18406   *-*-mingw*)
18407     # gcc leaves a trailing carriage return which upsets mingw
18408     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18409   *)
18410     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18411   esac
18412   case $ac_prog in
18413     # Accept absolute paths.
18414     [\\/]* | ?:[\\/]*)
18415       re_direlt='/[^/][^/]*/\.\./'
18416       # Canonicalize the pathname of ld
18417       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18418       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18419         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18420       done
18421       test -z "$LD" && LD="$ac_prog"
18422       ;;
18423   "")
18424     # If it fails, then pretend we aren't using GCC.
18425     ac_prog=ld
18426     ;;
18427   *)
18428     # If it is relative, then search for the first ld in PATH.
18429     with_gnu_ld=unknown
18430     ;;
18431   esac
18432 elif test "$with_gnu_ld" = yes; then
18433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18434 $as_echo_n "checking for GNU ld... " >&6; }
18435 else
18436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18437 $as_echo_n "checking for non-GNU ld... " >&6; }
18438 fi
18439 if test "${lt_cv_path_LD+set}" = set; then :
18440   $as_echo_n "(cached) " >&6
18441 else
18442   if test -z "$LD"; then
18443   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18444   for ac_dir in $PATH; do
18445     IFS="$lt_save_ifs"
18446     test -z "$ac_dir" && ac_dir=.
18447     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18448       lt_cv_path_LD="$ac_dir/$ac_prog"
18449       # Check to see if the program is GNU ld.  I'd rather use --version,
18450       # but apparently some variants of GNU ld only accept -v.
18451       # Break only if it was the GNU/non-GNU ld that we prefer.
18452       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18453       *GNU* | *'with BFD'*)
18454         test "$with_gnu_ld" != no && break
18455         ;;
18456       *)
18457         test "$with_gnu_ld" != yes && break
18458         ;;
18459       esac
18460     fi
18461   done
18462   IFS="$lt_save_ifs"
18463 else
18464   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18465 fi
18466 fi
18467
18468 LD="$lt_cv_path_LD"
18469 if test -n "$LD"; then
18470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18471 $as_echo "$LD" >&6; }
18472 else
18473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18474 $as_echo "no" >&6; }
18475 fi
18476 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18478 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18479 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18480   $as_echo_n "(cached) " >&6
18481 else
18482   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18483 case `$LD -v 2>&1 </dev/null` in
18484 *GNU* | *'with BFD'*)
18485   lt_cv_prog_gnu_ld=yes
18486   ;;
18487 *)
18488   lt_cv_prog_gnu_ld=no
18489   ;;
18490 esac
18491 fi
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18493 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18494 with_gnu_ld=$lt_cv_prog_gnu_ld
18495
18496
18497
18498
18499
18500
18501
18502       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18503       # archiving commands below assume that GNU ld is being used.
18504       if test "$with_gnu_ld" = yes; then
18505         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18506         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'
18507
18508         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18509         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18510
18511         # If archive_cmds runs LD, not CC, wlarc should be empty
18512         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18513         #     investigate it a little bit more. (MM)
18514         wlarc='${wl}'
18515
18516         # ancient GNU ld didn't support --whole-archive et. al.
18517         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18518           $GREP 'no-whole-archive' > /dev/null; then
18519           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18520         else
18521           whole_archive_flag_spec_CXX=
18522         fi
18523       else
18524         with_gnu_ld=no
18525         wlarc=
18526
18527         # A generic and very simple default shared library creation
18528         # command for GNU C++ for the case where it uses the native
18529         # linker, instead of GNU ld.  If possible, this setting should
18530         # overridden to take advantage of the native linker features on
18531         # the platform it is being used on.
18532         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18533       fi
18534
18535       # Commands to make compiler produce verbose output that lists
18536       # what "hidden" libraries, object files and flags are used when
18537       # linking a shared library.
18538       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18539
18540     else
18541       GXX=no
18542       with_gnu_ld=no
18543       wlarc=
18544     fi
18545
18546     # PORTME: fill in a description of your system's C++ link characteristics
18547     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18548 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18549     ld_shlibs_CXX=yes
18550     case $host_os in
18551       aix3*)
18552         # FIXME: insert proper C++ library support
18553         ld_shlibs_CXX=no
18554         ;;
18555       aix[4-9]*)
18556         if test "$host_cpu" = ia64; then
18557           # On IA64, the linker does run time linking by default, so we don't
18558           # have to do anything special.
18559           aix_use_runtimelinking=no
18560           exp_sym_flag='-Bexport'
18561           no_entry_flag=""
18562         else
18563           aix_use_runtimelinking=no
18564
18565           # Test if we are trying to use run time linking or normal
18566           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18567           # need to do runtime linking.
18568           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18569             for ld_flag in $LDFLAGS; do
18570               case $ld_flag in
18571               *-brtl*)
18572                 aix_use_runtimelinking=yes
18573                 break
18574                 ;;
18575               esac
18576             done
18577             ;;
18578           esac
18579
18580           exp_sym_flag='-bexport'
18581           no_entry_flag='-bnoentry'
18582         fi
18583
18584         # When large executables or shared objects are built, AIX ld can
18585         # have problems creating the table of contents.  If linking a library
18586         # or program results in "error TOC overflow" add -mminimal-toc to
18587         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18588         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18589
18590         archive_cmds_CXX=''
18591         hardcode_direct_CXX=yes
18592         hardcode_direct_absolute_CXX=yes
18593         hardcode_libdir_separator_CXX=':'
18594         link_all_deplibs_CXX=yes
18595         file_list_spec_CXX='${wl}-f,'
18596
18597         if test "$GXX" = yes; then
18598           case $host_os in aix4.[012]|aix4.[012].*)
18599           # We only want to do this on AIX 4.2 and lower, the check
18600           # below for broken collect2 doesn't work under 4.3+
18601           collect2name=`${CC} -print-prog-name=collect2`
18602           if test -f "$collect2name" &&
18603              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18604           then
18605             # We have reworked collect2
18606             :
18607           else
18608             # We have old collect2
18609             hardcode_direct_CXX=unsupported
18610             # It fails to find uninstalled libraries when the uninstalled
18611             # path is not listed in the libpath.  Setting hardcode_minus_L
18612             # to unsupported forces relinking
18613             hardcode_minus_L_CXX=yes
18614             hardcode_libdir_flag_spec_CXX='-L$libdir'
18615             hardcode_libdir_separator_CXX=
18616           fi
18617           esac
18618           shared_flag='-shared'
18619           if test "$aix_use_runtimelinking" = yes; then
18620             shared_flag="$shared_flag "'${wl}-G'
18621           fi
18622         else
18623           # not using gcc
18624           if test "$host_cpu" = ia64; then
18625           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18626           # chokes on -Wl,-G. The following line is correct:
18627           shared_flag='-G'
18628           else
18629             if test "$aix_use_runtimelinking" = yes; then
18630               shared_flag='${wl}-G'
18631             else
18632               shared_flag='${wl}-bM:SRE'
18633             fi
18634           fi
18635         fi
18636
18637         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18638         # It seems that -bexpall does not export symbols beginning with
18639         # underscore (_), so it is better to generate a list of symbols to
18640         # export.
18641         always_export_symbols_CXX=yes
18642         if test "$aix_use_runtimelinking" = yes; then
18643           # Warning - without using the other runtime loading flags (-brtl),
18644           # -berok will link without error, but may produce a broken library.
18645           allow_undefined_flag_CXX='-berok'
18646           # Determine the default libpath from the value encoded in an empty
18647           # executable.
18648           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18649 /* end confdefs.h.  */
18650
18651 int
18652 main ()
18653 {
18654
18655   ;
18656   return 0;
18657 }
18658 _ACEOF
18659 if ac_fn_cxx_try_link "$LINENO"; then :
18660
18661 lt_aix_libpath_sed='
18662     /Import File Strings/,/^$/ {
18663         /^0/ {
18664             s/^0  *\(.*\)$/\1/
18665             p
18666         }
18667     }'
18668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18669 # Check for a 64-bit object if we didn't find anything.
18670 if test -z "$aix_libpath"; then
18671   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18672 fi
18673 fi
18674 rm -f core conftest.err conftest.$ac_objext \
18675     conftest$ac_exeext conftest.$ac_ext
18676 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18677
18678           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18679
18680           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"
18681         else
18682           if test "$host_cpu" = ia64; then
18683             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18684             allow_undefined_flag_CXX="-z nodefs"
18685             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"
18686           else
18687             # Determine the default libpath from the value encoded in an
18688             # empty executable.
18689             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18690 /* end confdefs.h.  */
18691
18692 int
18693 main ()
18694 {
18695
18696   ;
18697   return 0;
18698 }
18699 _ACEOF
18700 if ac_fn_cxx_try_link "$LINENO"; then :
18701
18702 lt_aix_libpath_sed='
18703     /Import File Strings/,/^$/ {
18704         /^0/ {
18705             s/^0  *\(.*\)$/\1/
18706             p
18707         }
18708     }'
18709 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18710 # Check for a 64-bit object if we didn't find anything.
18711 if test -z "$aix_libpath"; then
18712   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18713 fi
18714 fi
18715 rm -f core conftest.err conftest.$ac_objext \
18716     conftest$ac_exeext conftest.$ac_ext
18717 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18718
18719             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18720             # Warning - without using the other run time loading flags,
18721             # -berok will link without error, but may produce a broken library.
18722             no_undefined_flag_CXX=' ${wl}-bernotok'
18723             allow_undefined_flag_CXX=' ${wl}-berok'
18724             if test "$with_gnu_ld" = yes; then
18725               # We only use this code for GNU lds that support --whole-archive.
18726               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18727             else
18728               # Exported symbols can be pulled into shared objects from archives
18729               whole_archive_flag_spec_CXX='$convenience'
18730             fi
18731             archive_cmds_need_lc_CXX=yes
18732             # This is similar to how AIX traditionally builds its shared
18733             # libraries.
18734             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'
18735           fi
18736         fi
18737         ;;
18738
18739       beos*)
18740         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18741           allow_undefined_flag_CXX=unsupported
18742           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18743           # support --undefined.  This deserves some investigation.  FIXME
18744           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18745         else
18746           ld_shlibs_CXX=no
18747         fi
18748         ;;
18749
18750       chorus*)
18751         case $cc_basename in
18752           *)
18753           # FIXME: insert proper C++ library support
18754           ld_shlibs_CXX=no
18755           ;;
18756         esac
18757         ;;
18758
18759       cygwin* | mingw* | pw32* | cegcc*)
18760         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18761         # as there is no search path for DLLs.
18762         hardcode_libdir_flag_spec_CXX='-L$libdir'
18763         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18764         allow_undefined_flag_CXX=unsupported
18765         always_export_symbols_CXX=no
18766         enable_shared_with_static_runtimes_CXX=yes
18767
18768         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18769           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'
18770           # If the export-symbols file already is a .def file (1st line
18771           # is EXPORTS), use it as is; otherwise, prepend...
18772           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18773             cp $export_symbols $output_objdir/$soname.def;
18774           else
18775             echo EXPORTS > $output_objdir/$soname.def;
18776             cat $export_symbols >> $output_objdir/$soname.def;
18777           fi~
18778           $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'
18779         else
18780           ld_shlibs_CXX=no
18781         fi
18782         ;;
18783       darwin* | rhapsody*)
18784
18785
18786   archive_cmds_need_lc_CXX=no
18787   hardcode_direct_CXX=no
18788   hardcode_automatic_CXX=yes
18789   hardcode_shlibpath_var_CXX=unsupported
18790   if test "$lt_cv_ld_force_load" = "yes"; then
18791     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\"`'
18792   else
18793     whole_archive_flag_spec_CXX=''
18794   fi
18795   link_all_deplibs_CXX=yes
18796   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18797   case $cc_basename in
18798      ifort*) _lt_dar_can_shared=yes ;;
18799      *) _lt_dar_can_shared=$GCC ;;
18800   esac
18801   if test "$_lt_dar_can_shared" = "yes"; then
18802     output_verbose_link_cmd=func_echo_all
18803     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}"
18804     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18805     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}"
18806     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}"
18807        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18808       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}"
18809       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}"
18810     fi
18811
18812   else
18813   ld_shlibs_CXX=no
18814   fi
18815
18816         ;;
18817
18818       dgux*)
18819         case $cc_basename in
18820           ec++*)
18821             # FIXME: insert proper C++ library support
18822             ld_shlibs_CXX=no
18823             ;;
18824           ghcx*)
18825             # Green Hills C++ Compiler
18826             # FIXME: insert proper C++ library support
18827             ld_shlibs_CXX=no
18828             ;;
18829           *)
18830             # FIXME: insert proper C++ library support
18831             ld_shlibs_CXX=no
18832             ;;
18833         esac
18834         ;;
18835
18836       freebsd[12]*)
18837         # C++ shared libraries reported to be fairly broken before
18838         # switch to ELF
18839         ld_shlibs_CXX=no
18840         ;;
18841
18842       freebsd-elf*)
18843         archive_cmds_need_lc_CXX=no
18844         ;;
18845
18846       freebsd* | dragonfly*)
18847         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18848         # conventions
18849         ld_shlibs_CXX=yes
18850         ;;
18851
18852       gnu*)
18853         ;;
18854
18855       haiku*)
18856         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18857         link_all_deplibs_CXX=yes
18858         ;;
18859
18860       hpux9*)
18861         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18862         hardcode_libdir_separator_CXX=:
18863         export_dynamic_flag_spec_CXX='${wl}-E'
18864         hardcode_direct_CXX=yes
18865         hardcode_minus_L_CXX=yes # Not in the search PATH,
18866                                              # but as the default
18867                                              # location of the library.
18868
18869         case $cc_basename in
18870           CC*)
18871             # FIXME: insert proper C++ library support
18872             ld_shlibs_CXX=no
18873             ;;
18874           aCC*)
18875             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'
18876             # Commands to make compiler produce verbose output that lists
18877             # what "hidden" libraries, object files and flags are used when
18878             # linking a shared library.
18879             #
18880             # There doesn't appear to be a way to prevent this compiler from
18881             # explicitly linking system object files so we need to strip them
18882             # from the output so that they don't get included in the library
18883             # dependencies.
18884             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"'
18885             ;;
18886           *)
18887             if test "$GXX" = yes; then
18888               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'
18889             else
18890               # FIXME: insert proper C++ library support
18891               ld_shlibs_CXX=no
18892             fi
18893             ;;
18894         esac
18895         ;;
18896
18897       hpux10*|hpux11*)
18898         if test $with_gnu_ld = no; then
18899           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18900           hardcode_libdir_separator_CXX=:
18901
18902           case $host_cpu in
18903             hppa*64*|ia64*)
18904               ;;
18905             *)
18906               export_dynamic_flag_spec_CXX='${wl}-E'
18907               ;;
18908           esac
18909         fi
18910         case $host_cpu in
18911           hppa*64*|ia64*)
18912             hardcode_direct_CXX=no
18913             hardcode_shlibpath_var_CXX=no
18914             ;;
18915           *)
18916             hardcode_direct_CXX=yes
18917             hardcode_direct_absolute_CXX=yes
18918             hardcode_minus_L_CXX=yes # Not in the search PATH,
18919                                                  # but as the default
18920                                                  # location of the library.
18921             ;;
18922         esac
18923
18924         case $cc_basename in
18925           CC*)
18926             # FIXME: insert proper C++ library support
18927             ld_shlibs_CXX=no
18928             ;;
18929           aCC*)
18930             case $host_cpu in
18931               hppa*64*)
18932                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18933                 ;;
18934               ia64*)
18935                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18936                 ;;
18937               *)
18938                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18939                 ;;
18940             esac
18941             # Commands to make compiler produce verbose output that lists
18942             # what "hidden" libraries, object files and flags are used when
18943             # linking a shared library.
18944             #
18945             # There doesn't appear to be a way to prevent this compiler from
18946             # explicitly linking system object files so we need to strip them
18947             # from the output so that they don't get included in the library
18948             # dependencies.
18949             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"'
18950             ;;
18951           *)
18952             if test "$GXX" = yes; then
18953               if test $with_gnu_ld = no; then
18954                 case $host_cpu in
18955                   hppa*64*)
18956                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18957                     ;;
18958                   ia64*)
18959                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18960                     ;;
18961                   *)
18962                     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'
18963                     ;;
18964                 esac
18965               fi
18966             else
18967               # FIXME: insert proper C++ library support
18968               ld_shlibs_CXX=no
18969             fi
18970             ;;
18971         esac
18972         ;;
18973
18974       interix[3-9]*)
18975         hardcode_direct_CXX=no
18976         hardcode_shlibpath_var_CXX=no
18977         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18978         export_dynamic_flag_spec_CXX='${wl}-E'
18979         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18980         # Instead, shared libraries are loaded at an image base (0x10000000 by
18981         # default) and relocated if they conflict, which is a slow very memory
18982         # consuming and fragmenting process.  To avoid this, we pick a random,
18983         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18984         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18985         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'
18986         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'
18987         ;;
18988       irix5* | irix6*)
18989         case $cc_basename in
18990           CC*)
18991             # SGI C++
18992             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'
18993
18994             # Archives containing C++ object files must be created using
18995             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18996             # necessary to make sure instantiated templates are included
18997             # in the archive.
18998             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18999             ;;
19000           *)
19001             if test "$GXX" = yes; then
19002               if test "$with_gnu_ld" = no; then
19003                 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'
19004               else
19005                 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'
19006               fi
19007             fi
19008             link_all_deplibs_CXX=yes
19009             ;;
19010         esac
19011         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19012         hardcode_libdir_separator_CXX=:
19013         inherit_rpath_CXX=yes
19014         ;;
19015
19016       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19017         case $cc_basename in
19018           KCC*)
19019             # Kuck and Associates, Inc. (KAI) C++ Compiler
19020
19021             # KCC will only create a shared library if the output file
19022             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19023             # to its proper name (with version) after linking.
19024             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'
19025             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'
19026             # Commands to make compiler produce verbose output that lists
19027             # what "hidden" libraries, object files and flags are used when
19028             # linking a shared library.
19029             #
19030             # There doesn't appear to be a way to prevent this compiler from
19031             # explicitly linking system object files so we need to strip them
19032             # from the output so that they don't get included in the library
19033             # dependencies.
19034             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"'
19035
19036             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19037             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19038
19039             # Archives containing C++ object files must be created using
19040             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19041             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19042             ;;
19043           icpc* | ecpc* )
19044             # Intel C++
19045             with_gnu_ld=yes
19046             # version 8.0 and above of icpc choke on multiply defined symbols
19047             # if we add $predep_objects and $postdep_objects, however 7.1 and
19048             # earlier do not add the objects themselves.
19049             case `$CC -V 2>&1` in
19050               *"Version 7."*)
19051                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19052                 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'
19053                 ;;
19054               *)  # Version 8.0 or newer
19055                 tmp_idyn=
19056                 case $host_cpu in
19057                   ia64*) tmp_idyn=' -i_dynamic';;
19058                 esac
19059                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19060                 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'
19061                 ;;
19062             esac
19063             archive_cmds_need_lc_CXX=no
19064             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19065             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19066             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19067             ;;
19068           pgCC* | pgcpp*)
19069             # Portland Group C++ compiler
19070             case `$CC -V` in
19071             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19072               prelink_cmds_CXX='tpldir=Template.dir~
19073                 rm -rf $tpldir~
19074                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19075                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19076               old_archive_cmds_CXX='tpldir=Template.dir~
19077                 rm -rf $tpldir~
19078                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19079                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19080                 $RANLIB $oldlib'
19081               archive_cmds_CXX='tpldir=Template.dir~
19082                 rm -rf $tpldir~
19083                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19084                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19085               archive_expsym_cmds_CXX='tpldir=Template.dir~
19086                 rm -rf $tpldir~
19087                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19088                 $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'
19089               ;;
19090             *) # Version 6 and above use weak symbols
19091               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19092               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'
19093               ;;
19094             esac
19095
19096             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19097             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19098             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'
19099             ;;
19100           cxx*)
19101             # Compaq C++
19102             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19103             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'
19104
19105             runpath_var=LD_RUN_PATH
19106             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19107             hardcode_libdir_separator_CXX=:
19108
19109             # Commands to make compiler produce verbose output that lists
19110             # what "hidden" libraries, object files and flags are used when
19111             # linking a shared library.
19112             #
19113             # There doesn't appear to be a way to prevent this compiler from
19114             # explicitly linking system object files so we need to strip them
19115             # from the output so that they don't get included in the library
19116             # dependencies.
19117             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'
19118             ;;
19119           xl* | mpixl* | bgxl*)
19120             # IBM XL 8.0 on PPC, with GNU ld
19121             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19122             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19123             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19124             if test "x$supports_anon_versioning" = xyes; then
19125               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19126                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19127                 echo "local: *; };" >> $output_objdir/$libname.ver~
19128                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19129             fi
19130             ;;
19131           *)
19132             case `$CC -V 2>&1 | sed 5q` in
19133             *Sun\ C*)
19134               # Sun C++ 5.9
19135               no_undefined_flag_CXX=' -zdefs'
19136               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19137               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'
19138               hardcode_libdir_flag_spec_CXX='-R$libdir'
19139               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'
19140               compiler_needs_object_CXX=yes
19141
19142               # Not sure whether something based on
19143               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19144               # would be better.
19145               output_verbose_link_cmd='func_echo_all'
19146
19147               # Archives containing C++ object files must be created using
19148               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19149               # necessary to make sure instantiated templates are included
19150               # in the archive.
19151               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19152               ;;
19153             esac
19154             ;;
19155         esac
19156         ;;
19157
19158       lynxos*)
19159         # FIXME: insert proper C++ library support
19160         ld_shlibs_CXX=no
19161         ;;
19162
19163       m88k*)
19164         # FIXME: insert proper C++ library support
19165         ld_shlibs_CXX=no
19166         ;;
19167
19168       mvs*)
19169         case $cc_basename in
19170           cxx*)
19171             # FIXME: insert proper C++ library support
19172             ld_shlibs_CXX=no
19173             ;;
19174           *)
19175             # FIXME: insert proper C++ library support
19176             ld_shlibs_CXX=no
19177             ;;
19178         esac
19179         ;;
19180
19181       netbsd*)
19182         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19183           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19184           wlarc=
19185           hardcode_libdir_flag_spec_CXX='-R$libdir'
19186           hardcode_direct_CXX=yes
19187           hardcode_shlibpath_var_CXX=no
19188         fi
19189         # Workaround some broken pre-1.5 toolchains
19190         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19191         ;;
19192
19193       *nto* | *qnx*)
19194         ld_shlibs_CXX=yes
19195         ;;
19196
19197       openbsd2*)
19198         # C++ shared libraries are fairly broken
19199         ld_shlibs_CXX=no
19200         ;;
19201
19202       openbsd*)
19203         if test -f /usr/libexec/ld.so; then
19204           hardcode_direct_CXX=yes
19205           hardcode_shlibpath_var_CXX=no
19206           hardcode_direct_absolute_CXX=yes
19207           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19208           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19209           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19210             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19211             export_dynamic_flag_spec_CXX='${wl}-E'
19212             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19213           fi
19214           output_verbose_link_cmd=func_echo_all
19215         else
19216           ld_shlibs_CXX=no
19217         fi
19218         ;;
19219
19220       osf3* | osf4* | osf5*)
19221         case $cc_basename in
19222           KCC*)
19223             # Kuck and Associates, Inc. (KAI) C++ Compiler
19224
19225             # KCC will only create a shared library if the output file
19226             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19227             # to its proper name (with version) after linking.
19228             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'
19229
19230             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19231             hardcode_libdir_separator_CXX=:
19232
19233             # Archives containing C++ object files must be created using
19234             # the KAI C++ compiler.
19235             case $host in
19236               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19237               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19238             esac
19239             ;;
19240           RCC*)
19241             # Rational C++ 2.4.1
19242             # FIXME: insert proper C++ library support
19243             ld_shlibs_CXX=no
19244             ;;
19245           cxx*)
19246             case $host in
19247               osf3*)
19248                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19249                 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'
19250                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19251                 ;;
19252               *)
19253                 allow_undefined_flag_CXX=' -expect_unresolved \*'
19254                 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'
19255                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19256                   echo "-hidden">> $lib.exp~
19257                   $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~
19258                   $RM $lib.exp'
19259                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19260                 ;;
19261             esac
19262
19263             hardcode_libdir_separator_CXX=:
19264
19265             # Commands to make compiler produce verbose output that lists
19266             # what "hidden" libraries, object files and flags are used when
19267             # linking a shared library.
19268             #
19269             # There doesn't appear to be a way to prevent this compiler from
19270             # explicitly linking system object files so we need to strip them
19271             # from the output so that they don't get included in the library
19272             # dependencies.
19273             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"'
19274             ;;
19275           *)
19276             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19277               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19278               case $host in
19279                 osf3*)
19280                   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'
19281                   ;;
19282                 *)
19283                   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'
19284                   ;;
19285               esac
19286
19287               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19288               hardcode_libdir_separator_CXX=:
19289
19290               # Commands to make compiler produce verbose output that lists
19291               # what "hidden" libraries, object files and flags are used when
19292               # linking a shared library.
19293               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19294
19295             else
19296               # FIXME: insert proper C++ library support
19297               ld_shlibs_CXX=no
19298             fi
19299             ;;
19300         esac
19301         ;;
19302
19303       psos*)
19304         # FIXME: insert proper C++ library support
19305         ld_shlibs_CXX=no
19306         ;;
19307
19308       sunos4*)
19309         case $cc_basename in
19310           CC*)
19311             # Sun C++ 4.x
19312             # FIXME: insert proper C++ library support
19313             ld_shlibs_CXX=no
19314             ;;
19315           lcc*)
19316             # Lucid
19317             # FIXME: insert proper C++ library support
19318             ld_shlibs_CXX=no
19319             ;;
19320           *)
19321             # FIXME: insert proper C++ library support
19322             ld_shlibs_CXX=no
19323             ;;
19324         esac
19325         ;;
19326
19327       solaris*)
19328         case $cc_basename in
19329           CC*)
19330             # Sun C++ 4.2, 5.x and Centerline C++
19331             archive_cmds_need_lc_CXX=yes
19332             no_undefined_flag_CXX=' -zdefs'
19333             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19334             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19335               $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'
19336
19337             hardcode_libdir_flag_spec_CXX='-R$libdir'
19338             hardcode_shlibpath_var_CXX=no
19339             case $host_os in
19340               solaris2.[0-5] | solaris2.[0-5].*) ;;
19341               *)
19342                 # The compiler driver will combine and reorder linker options,
19343                 # but understands `-z linker_flag'.
19344                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19345                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19346                 ;;
19347             esac
19348             link_all_deplibs_CXX=yes
19349
19350             output_verbose_link_cmd='func_echo_all'
19351
19352             # Archives containing C++ object files must be created using
19353             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19354             # necessary to make sure instantiated templates are included
19355             # in the archive.
19356             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19357             ;;
19358           gcx*)
19359             # Green Hills C++ Compiler
19360             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19361
19362             # The C++ compiler must be used to create the archive.
19363             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19364             ;;
19365           *)
19366             # GNU C++ compiler with Solaris linker
19367             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19368               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19369               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19370                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19371                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19372                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19373
19374                 # Commands to make compiler produce verbose output that lists
19375                 # what "hidden" libraries, object files and flags are used when
19376                 # linking a shared library.
19377                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19378               else
19379                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19380                 # platform.
19381                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19382                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19383                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19384
19385                 # Commands to make compiler produce verbose output that lists
19386                 # what "hidden" libraries, object files and flags are used when
19387                 # linking a shared library.
19388                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19389               fi
19390
19391               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19392               case $host_os in
19393                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19394                 *)
19395                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19396                   ;;
19397               esac
19398             fi
19399             ;;
19400         esac
19401         ;;
19402
19403     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19404       no_undefined_flag_CXX='${wl}-z,text'
19405       archive_cmds_need_lc_CXX=no
19406       hardcode_shlibpath_var_CXX=no
19407       runpath_var='LD_RUN_PATH'
19408
19409       case $cc_basename in
19410         CC*)
19411           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19412           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19413           ;;
19414         *)
19415           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19416           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19417           ;;
19418       esac
19419       ;;
19420
19421       sysv5* | sco3.2v5* | sco5v6*)
19422         # Note: We can NOT use -z defs as we might desire, because we do not
19423         # link with -lc, and that would cause any symbols used from libc to
19424         # always be unresolved, which means just about no library would
19425         # ever link correctly.  If we're not using GNU ld we use -z text
19426         # though, which does catch some bad symbols but isn't as heavy-handed
19427         # as -z defs.
19428         no_undefined_flag_CXX='${wl}-z,text'
19429         allow_undefined_flag_CXX='${wl}-z,nodefs'
19430         archive_cmds_need_lc_CXX=no
19431         hardcode_shlibpath_var_CXX=no
19432         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19433         hardcode_libdir_separator_CXX=':'
19434         link_all_deplibs_CXX=yes
19435         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19436         runpath_var='LD_RUN_PATH'
19437
19438         case $cc_basename in
19439           CC*)
19440             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19441             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19442             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19443               '"$old_archive_cmds_CXX"
19444             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19445               '"$reload_cmds_CXX"
19446             ;;
19447           *)
19448             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19449             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19450             ;;
19451         esac
19452       ;;
19453
19454       tandem*)
19455         case $cc_basename in
19456           NCC*)
19457             # NonStop-UX NCC 3.20
19458             # FIXME: insert proper C++ library support
19459             ld_shlibs_CXX=no
19460             ;;
19461           *)
19462             # FIXME: insert proper C++ library support
19463             ld_shlibs_CXX=no
19464             ;;
19465         esac
19466         ;;
19467
19468       vxworks*)
19469         # FIXME: insert proper C++ library support
19470         ld_shlibs_CXX=no
19471         ;;
19472
19473       *)
19474         # FIXME: insert proper C++ library support
19475         ld_shlibs_CXX=no
19476         ;;
19477     esac
19478
19479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19480 $as_echo "$ld_shlibs_CXX" >&6; }
19481     test "$ld_shlibs_CXX" = no && can_build_shared=no
19482
19483     GCC_CXX="$GXX"
19484     LD_CXX="$LD"
19485
19486     ## CAVEAT EMPTOR:
19487     ## There is no encapsulation within the following macros, do not change
19488     ## the running order or otherwise move them around unless you know exactly
19489     ## what you are doing...
19490     # Dependencies to place before and after the object being linked:
19491 predep_objects_CXX=
19492 postdep_objects_CXX=
19493 predeps_CXX=
19494 postdeps_CXX=
19495 compiler_lib_search_path_CXX=
19496
19497 cat > conftest.$ac_ext <<_LT_EOF
19498 class Foo
19499 {
19500 public:
19501   Foo (void) { a = 0; }
19502 private:
19503   int a;
19504 };
19505 _LT_EOF
19506
19507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19508   (eval $ac_compile) 2>&5
19509   ac_status=$?
19510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19511   test $ac_status = 0; }; then
19512   # Parse the compiler output and extract the necessary
19513   # objects, libraries and library flags.
19514
19515   # Sentinel used to keep track of whether or not we are before
19516   # the conftest object file.
19517   pre_test_object_deps_done=no
19518
19519   for p in `eval "$output_verbose_link_cmd"`; do
19520     case $p in
19521
19522     -L* | -R* | -l*)
19523        # Some compilers place space between "-{L,R}" and the path.
19524        # Remove the space.
19525        if test $p = "-L" ||
19526           test $p = "-R"; then
19527          prev=$p
19528          continue
19529        else
19530          prev=
19531        fi
19532
19533        if test "$pre_test_object_deps_done" = no; then
19534          case $p in
19535          -L* | -R*)
19536            # Internal compiler library paths should come after those
19537            # provided the user.  The postdeps already come after the
19538            # user supplied libs so there is no need to process them.
19539            if test -z "$compiler_lib_search_path_CXX"; then
19540              compiler_lib_search_path_CXX="${prev}${p}"
19541            else
19542              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19543            fi
19544            ;;
19545          # The "-l" case would never come before the object being
19546          # linked, so don't bother handling this case.
19547          esac
19548        else
19549          if test -z "$postdeps_CXX"; then
19550            postdeps_CXX="${prev}${p}"
19551          else
19552            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19553          fi
19554        fi
19555        ;;
19556
19557     *.$objext)
19558        # This assumes that the test object file only shows up
19559        # once in the compiler output.
19560        if test "$p" = "conftest.$objext"; then
19561          pre_test_object_deps_done=yes
19562          continue
19563        fi
19564
19565        if test "$pre_test_object_deps_done" = no; then
19566          if test -z "$predep_objects_CXX"; then
19567            predep_objects_CXX="$p"
19568          else
19569            predep_objects_CXX="$predep_objects_CXX $p"
19570          fi
19571        else
19572          if test -z "$postdep_objects_CXX"; then
19573            postdep_objects_CXX="$p"
19574          else
19575            postdep_objects_CXX="$postdep_objects_CXX $p"
19576          fi
19577        fi
19578        ;;
19579
19580     *) ;; # Ignore the rest.
19581
19582     esac
19583   done
19584
19585   # Clean up.
19586   rm -f a.out a.exe
19587 else
19588   echo "libtool.m4: error: problem compiling CXX test program"
19589 fi
19590
19591 $RM -f confest.$objext
19592
19593 # PORTME: override above test on systems where it is broken
19594 case $host_os in
19595 interix[3-9]*)
19596   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19597   # hack all around it, let's just trust "g++" to DTRT.
19598   predep_objects_CXX=
19599   postdep_objects_CXX=
19600   postdeps_CXX=
19601   ;;
19602
19603 linux*)
19604   case `$CC -V 2>&1 | sed 5q` in
19605   *Sun\ C*)
19606     # Sun C++ 5.9
19607
19608     # The more standards-conforming stlport4 library is
19609     # incompatible with the Cstd library. Avoid specifying
19610     # it if it's in CXXFLAGS. Ignore libCrun as
19611     # -library=stlport4 depends on it.
19612     case " $CXX $CXXFLAGS " in
19613     *" -library=stlport4 "*)
19614       solaris_use_stlport4=yes
19615       ;;
19616     esac
19617
19618     if test "$solaris_use_stlport4" != yes; then
19619       postdeps_CXX='-library=Cstd -library=Crun'
19620     fi
19621     ;;
19622   esac
19623   ;;
19624
19625 solaris*)
19626   case $cc_basename in
19627   CC*)
19628     # The more standards-conforming stlport4 library is
19629     # incompatible with the Cstd library. Avoid specifying
19630     # it if it's in CXXFLAGS. Ignore libCrun as
19631     # -library=stlport4 depends on it.
19632     case " $CXX $CXXFLAGS " in
19633     *" -library=stlport4 "*)
19634       solaris_use_stlport4=yes
19635       ;;
19636     esac
19637
19638     # Adding this requires a known-good setup of shared libraries for
19639     # Sun compiler versions before 5.6, else PIC objects from an old
19640     # archive will be linked into the output, leading to subtle bugs.
19641     if test "$solaris_use_stlport4" != yes; then
19642       postdeps_CXX='-library=Cstd -library=Crun'
19643     fi
19644     ;;
19645   esac
19646   ;;
19647 esac
19648
19649
19650 case " $postdeps_CXX " in
19651 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19652 esac
19653  compiler_lib_search_dirs_CXX=
19654 if test -n "${compiler_lib_search_path_CXX}"; then
19655  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19656 fi
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688     lt_prog_compiler_wl_CXX=
19689 lt_prog_compiler_pic_CXX=
19690 lt_prog_compiler_static_CXX=
19691
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19693 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19694
19695   # C++ specific cases for pic, static, wl, etc.
19696   if test "$GXX" = yes; then
19697     lt_prog_compiler_wl_CXX='-Wl,'
19698     lt_prog_compiler_static_CXX='-static'
19699
19700     case $host_os in
19701     aix*)
19702       # All AIX code is PIC.
19703       if test "$host_cpu" = ia64; then
19704         # AIX 5 now supports IA64 processor
19705         lt_prog_compiler_static_CXX='-Bstatic'
19706       fi
19707       ;;
19708
19709     amigaos*)
19710       case $host_cpu in
19711       powerpc)
19712             # see comment about AmigaOS4 .so support
19713             lt_prog_compiler_pic_CXX='-fPIC'
19714         ;;
19715       m68k)
19716             # FIXME: we need at least 68020 code to build shared libraries, but
19717             # adding the `-m68020' flag to GCC prevents building anything better,
19718             # like `-m68040'.
19719             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19720         ;;
19721       esac
19722       ;;
19723
19724     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19725       # PIC is the default for these OSes.
19726       ;;
19727     mingw* | cygwin* | os2* | pw32* | cegcc*)
19728       # This hack is so that the source file can tell whether it is being
19729       # built for inclusion in a dll (and should export symbols for example).
19730       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19731       # (--disable-auto-import) libraries
19732       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19733       ;;
19734     darwin* | rhapsody*)
19735       # PIC is the default on this platform
19736       # Common symbols not allowed in MH_DYLIB files
19737       lt_prog_compiler_pic_CXX='-fno-common'
19738       ;;
19739     *djgpp*)
19740       # DJGPP does not support shared libraries at all
19741       lt_prog_compiler_pic_CXX=
19742       ;;
19743     haiku*)
19744       # PIC is the default for Haiku.
19745       # The "-static" flag exists, but is broken.
19746       lt_prog_compiler_static_CXX=
19747       ;;
19748     interix[3-9]*)
19749       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19750       # Instead, we relocate shared libraries at runtime.
19751       ;;
19752     sysv4*MP*)
19753       if test -d /usr/nec; then
19754         lt_prog_compiler_pic_CXX=-Kconform_pic
19755       fi
19756       ;;
19757     hpux*)
19758       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19759       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19760       # sets the default TLS model and affects inlining.
19761       case $host_cpu in
19762       hppa*64*)
19763         ;;
19764       *)
19765         lt_prog_compiler_pic_CXX='-fPIC'
19766         ;;
19767       esac
19768       ;;
19769     *qnx* | *nto*)
19770       # QNX uses GNU C++, but need to define -shared option too, otherwise
19771       # it will coredump.
19772       lt_prog_compiler_pic_CXX='-fPIC -shared'
19773       ;;
19774     *)
19775       lt_prog_compiler_pic_CXX='-fPIC'
19776       ;;
19777     esac
19778   else
19779     case $host_os in
19780       aix[4-9]*)
19781         # All AIX code is PIC.
19782         if test "$host_cpu" = ia64; then
19783           # AIX 5 now supports IA64 processor
19784           lt_prog_compiler_static_CXX='-Bstatic'
19785         else
19786           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19787         fi
19788         ;;
19789       chorus*)
19790         case $cc_basename in
19791         cxch68*)
19792           # Green Hills C++ Compiler
19793           # _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"
19794           ;;
19795         esac
19796         ;;
19797       dgux*)
19798         case $cc_basename in
19799           ec++*)
19800             lt_prog_compiler_pic_CXX='-KPIC'
19801             ;;
19802           ghcx*)
19803             # Green Hills C++ Compiler
19804             lt_prog_compiler_pic_CXX='-pic'
19805             ;;
19806           *)
19807             ;;
19808         esac
19809         ;;
19810       freebsd* | dragonfly*)
19811         # FreeBSD uses GNU C++
19812         ;;
19813       hpux9* | hpux10* | hpux11*)
19814         case $cc_basename in
19815           CC*)
19816             lt_prog_compiler_wl_CXX='-Wl,'
19817             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19818             if test "$host_cpu" != ia64; then
19819               lt_prog_compiler_pic_CXX='+Z'
19820             fi
19821             ;;
19822           aCC*)
19823             lt_prog_compiler_wl_CXX='-Wl,'
19824             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19825             case $host_cpu in
19826             hppa*64*|ia64*)
19827               # +Z the default
19828               ;;
19829             *)
19830               lt_prog_compiler_pic_CXX='+Z'
19831               ;;
19832             esac
19833             ;;
19834           *)
19835             ;;
19836         esac
19837         ;;
19838       interix*)
19839         # This is c89, which is MS Visual C++ (no shared libs)
19840         # Anyone wants to do a port?
19841         ;;
19842       irix5* | irix6* | nonstopux*)
19843         case $cc_basename in
19844           CC*)
19845             lt_prog_compiler_wl_CXX='-Wl,'
19846             lt_prog_compiler_static_CXX='-non_shared'
19847             # CC pic flag -KPIC is the default.
19848             ;;
19849           *)
19850             ;;
19851         esac
19852         ;;
19853       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19854         case $cc_basename in
19855           KCC*)
19856             # KAI C++ Compiler
19857             lt_prog_compiler_wl_CXX='--backend -Wl,'
19858             lt_prog_compiler_pic_CXX='-fPIC'
19859             ;;
19860           ecpc* )
19861             # old Intel C++ for x86_64 which still supported -KPIC.
19862             lt_prog_compiler_wl_CXX='-Wl,'
19863             lt_prog_compiler_pic_CXX='-KPIC'
19864             lt_prog_compiler_static_CXX='-static'
19865             ;;
19866           icpc* )
19867             # Intel C++, used to be incompatible with GCC.
19868             # ICC 10 doesn't accept -KPIC any more.
19869             lt_prog_compiler_wl_CXX='-Wl,'
19870             lt_prog_compiler_pic_CXX='-fPIC'
19871             lt_prog_compiler_static_CXX='-static'
19872             ;;
19873           pgCC* | pgcpp*)
19874             # Portland Group C++ compiler
19875             lt_prog_compiler_wl_CXX='-Wl,'
19876             lt_prog_compiler_pic_CXX='-fpic'
19877             lt_prog_compiler_static_CXX='-Bstatic'
19878             ;;
19879           cxx*)
19880             # Compaq C++
19881             # Make sure the PIC flag is empty.  It appears that all Alpha
19882             # Linux and Compaq Tru64 Unix objects are PIC.
19883             lt_prog_compiler_pic_CXX=
19884             lt_prog_compiler_static_CXX='-non_shared'
19885             ;;
19886           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19887             # IBM XL 8.0, 9.0 on PPC and BlueGene
19888             lt_prog_compiler_wl_CXX='-Wl,'
19889             lt_prog_compiler_pic_CXX='-qpic'
19890             lt_prog_compiler_static_CXX='-qstaticlink'
19891             ;;
19892           *)
19893             case `$CC -V 2>&1 | sed 5q` in
19894             *Sun\ C*)
19895               # Sun C++ 5.9
19896               lt_prog_compiler_pic_CXX='-KPIC'
19897               lt_prog_compiler_static_CXX='-Bstatic'
19898               lt_prog_compiler_wl_CXX='-Qoption ld '
19899               ;;
19900             esac
19901             ;;
19902         esac
19903         ;;
19904       lynxos*)
19905         ;;
19906       m88k*)
19907         ;;
19908       mvs*)
19909         case $cc_basename in
19910           cxx*)
19911             lt_prog_compiler_pic_CXX='-W c,exportall'
19912             ;;
19913           *)
19914             ;;
19915         esac
19916         ;;
19917       netbsd*)
19918         ;;
19919       *qnx* | *nto*)
19920         # QNX uses GNU C++, but need to define -shared option too, otherwise
19921         # it will coredump.
19922         lt_prog_compiler_pic_CXX='-fPIC -shared'
19923         ;;
19924       osf3* | osf4* | osf5*)
19925         case $cc_basename in
19926           KCC*)
19927             lt_prog_compiler_wl_CXX='--backend -Wl,'
19928             ;;
19929           RCC*)
19930             # Rational C++ 2.4.1
19931             lt_prog_compiler_pic_CXX='-pic'
19932             ;;
19933           cxx*)
19934             # Digital/Compaq C++
19935             lt_prog_compiler_wl_CXX='-Wl,'
19936             # Make sure the PIC flag is empty.  It appears that all Alpha
19937             # Linux and Compaq Tru64 Unix objects are PIC.
19938             lt_prog_compiler_pic_CXX=
19939             lt_prog_compiler_static_CXX='-non_shared'
19940             ;;
19941           *)
19942             ;;
19943         esac
19944         ;;
19945       psos*)
19946         ;;
19947       solaris*)
19948         case $cc_basename in
19949           CC*)
19950             # Sun C++ 4.2, 5.x and Centerline C++
19951             lt_prog_compiler_pic_CXX='-KPIC'
19952             lt_prog_compiler_static_CXX='-Bstatic'
19953             lt_prog_compiler_wl_CXX='-Qoption ld '
19954             ;;
19955           gcx*)
19956             # Green Hills C++ Compiler
19957             lt_prog_compiler_pic_CXX='-PIC'
19958             ;;
19959           *)
19960             ;;
19961         esac
19962         ;;
19963       sunos4*)
19964         case $cc_basename in
19965           CC*)
19966             # Sun C++ 4.x
19967             lt_prog_compiler_pic_CXX='-pic'
19968             lt_prog_compiler_static_CXX='-Bstatic'
19969             ;;
19970           lcc*)
19971             # Lucid
19972             lt_prog_compiler_pic_CXX='-pic'
19973             ;;
19974           *)
19975             ;;
19976         esac
19977         ;;
19978       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19979         case $cc_basename in
19980           CC*)
19981             lt_prog_compiler_wl_CXX='-Wl,'
19982             lt_prog_compiler_pic_CXX='-KPIC'
19983             lt_prog_compiler_static_CXX='-Bstatic'
19984             ;;
19985         esac
19986         ;;
19987       tandem*)
19988         case $cc_basename in
19989           NCC*)
19990             # NonStop-UX NCC 3.20
19991             lt_prog_compiler_pic_CXX='-KPIC'
19992             ;;
19993           *)
19994             ;;
19995         esac
19996         ;;
19997       vxworks*)
19998         ;;
19999       *)
20000         lt_prog_compiler_can_build_shared_CXX=no
20001         ;;
20002     esac
20003   fi
20004
20005 case $host_os in
20006   # For platforms which do not support PIC, -DPIC is meaningless:
20007   *djgpp*)
20008     lt_prog_compiler_pic_CXX=
20009     ;;
20010   *)
20011     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20012     ;;
20013 esac
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20015 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20016
20017
20018
20019 #
20020 # Check to make sure the PIC flag actually works.
20021 #
20022 if test -n "$lt_prog_compiler_pic_CXX"; then
20023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20024 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20025 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20026   $as_echo_n "(cached) " >&6
20027 else
20028   lt_cv_prog_compiler_pic_works_CXX=no
20029    ac_outfile=conftest.$ac_objext
20030    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20031    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20032    # Insert the option either (1) after the last *FLAGS variable, or
20033    # (2) before a word containing "conftest.", or (3) at the end.
20034    # Note that $ac_compile itself does not contain backslashes and begins
20035    # with a dollar sign (not a hyphen), so the echo should work correctly.
20036    # The option is referenced via a variable to avoid confusing sed.
20037    lt_compile=`echo "$ac_compile" | $SED \
20038    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20039    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20040    -e 's:$: $lt_compiler_flag:'`
20041    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20042    (eval "$lt_compile" 2>conftest.err)
20043    ac_status=$?
20044    cat conftest.err >&5
20045    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046    if (exit $ac_status) && test -s "$ac_outfile"; then
20047      # The compiler can only warn and ignore the option if not recognized
20048      # So say no if there are warnings other than the usual output.
20049      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20050      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20051      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20052        lt_cv_prog_compiler_pic_works_CXX=yes
20053      fi
20054    fi
20055    $RM conftest*
20056
20057 fi
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20059 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20060
20061 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20062     case $lt_prog_compiler_pic_CXX in
20063      "" | " "*) ;;
20064      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20065      esac
20066 else
20067     lt_prog_compiler_pic_CXX=
20068      lt_prog_compiler_can_build_shared_CXX=no
20069 fi
20070
20071 fi
20072
20073
20074
20075 #
20076 # Check to make sure the static flag actually works.
20077 #
20078 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20080 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20081 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20082   $as_echo_n "(cached) " >&6
20083 else
20084   lt_cv_prog_compiler_static_works_CXX=no
20085    save_LDFLAGS="$LDFLAGS"
20086    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20087    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20088    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20089      # The linker can only warn and ignore the option if not recognized
20090      # So say no if there are warnings
20091      if test -s conftest.err; then
20092        # Append any errors to the config.log.
20093        cat conftest.err 1>&5
20094        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20095        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20096        if diff conftest.exp conftest.er2 >/dev/null; then
20097          lt_cv_prog_compiler_static_works_CXX=yes
20098        fi
20099      else
20100        lt_cv_prog_compiler_static_works_CXX=yes
20101      fi
20102    fi
20103    $RM -r conftest*
20104    LDFLAGS="$save_LDFLAGS"
20105
20106 fi
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20108 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20109
20110 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20111     :
20112 else
20113     lt_prog_compiler_static_CXX=
20114 fi
20115
20116
20117
20118
20119     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20120 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20121 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20122   $as_echo_n "(cached) " >&6
20123 else
20124   lt_cv_prog_compiler_c_o_CXX=no
20125    $RM -r conftest 2>/dev/null
20126    mkdir conftest
20127    cd conftest
20128    mkdir out
20129    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20130
20131    lt_compiler_flag="-o out/conftest2.$ac_objext"
20132    # Insert the option either (1) after the last *FLAGS variable, or
20133    # (2) before a word containing "conftest.", or (3) at the end.
20134    # Note that $ac_compile itself does not contain backslashes and begins
20135    # with a dollar sign (not a hyphen), so the echo should work correctly.
20136    lt_compile=`echo "$ac_compile" | $SED \
20137    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20138    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20139    -e 's:$: $lt_compiler_flag:'`
20140    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20141    (eval "$lt_compile" 2>out/conftest.err)
20142    ac_status=$?
20143    cat out/conftest.err >&5
20144    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20146    then
20147      # The compiler can only warn and ignore the option if not recognized
20148      # So say no if there are warnings
20149      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20150      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20151      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20152        lt_cv_prog_compiler_c_o_CXX=yes
20153      fi
20154    fi
20155    chmod u+w . 2>&5
20156    $RM conftest*
20157    # SGI C++ compiler will create directory out/ii_files/ for
20158    # template instantiation
20159    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20160    $RM out/* && rmdir out
20161    cd ..
20162    $RM -r conftest
20163    $RM conftest*
20164
20165 fi
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20167 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20168
20169
20170
20171     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20172 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20173 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20174   $as_echo_n "(cached) " >&6
20175 else
20176   lt_cv_prog_compiler_c_o_CXX=no
20177    $RM -r conftest 2>/dev/null
20178    mkdir conftest
20179    cd conftest
20180    mkdir out
20181    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20182
20183    lt_compiler_flag="-o out/conftest2.$ac_objext"
20184    # Insert the option either (1) after the last *FLAGS variable, or
20185    # (2) before a word containing "conftest.", or (3) at the end.
20186    # Note that $ac_compile itself does not contain backslashes and begins
20187    # with a dollar sign (not a hyphen), so the echo should work correctly.
20188    lt_compile=`echo "$ac_compile" | $SED \
20189    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20190    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20191    -e 's:$: $lt_compiler_flag:'`
20192    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20193    (eval "$lt_compile" 2>out/conftest.err)
20194    ac_status=$?
20195    cat out/conftest.err >&5
20196    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20198    then
20199      # The compiler can only warn and ignore the option if not recognized
20200      # So say no if there are warnings
20201      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20202      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20203      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20204        lt_cv_prog_compiler_c_o_CXX=yes
20205      fi
20206    fi
20207    chmod u+w . 2>&5
20208    $RM conftest*
20209    # SGI C++ compiler will create directory out/ii_files/ for
20210    # template instantiation
20211    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20212    $RM out/* && rmdir out
20213    cd ..
20214    $RM -r conftest
20215    $RM conftest*
20216
20217 fi
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20219 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20220
20221
20222
20223
20224 hard_links="nottested"
20225 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20226   # do not overwrite the value of need_locks provided by the user
20227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20228 $as_echo_n "checking if we can lock with hard links... " >&6; }
20229   hard_links=yes
20230   $RM conftest*
20231   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20232   touch conftest.a
20233   ln conftest.a conftest.b 2>&5 || hard_links=no
20234   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20236 $as_echo "$hard_links" >&6; }
20237   if test "$hard_links" = no; then
20238     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20239 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20240     need_locks=warn
20241   fi
20242 else
20243   need_locks=no
20244 fi
20245
20246
20247
20248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20249 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20250
20251   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20252   case $host_os in
20253   aix[4-9]*)
20254     # If we're using GNU nm, then we don't want the "-C" option.
20255     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20256     # Also, AIX nm treats weak defined symbols like other global defined
20257     # symbols, whereas GNU nm marks them as "W".
20258     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20259       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'
20260     else
20261       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'
20262     fi
20263     ;;
20264   pw32*)
20265     export_symbols_cmds_CXX="$ltdll_cmds"
20266   ;;
20267   cygwin* | mingw* | cegcc*)
20268     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'
20269   ;;
20270   *)
20271     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20272   ;;
20273   esac
20274   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20275
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20277 $as_echo "$ld_shlibs_CXX" >&6; }
20278 test "$ld_shlibs_CXX" = no && can_build_shared=no
20279
20280 with_gnu_ld_CXX=$with_gnu_ld
20281
20282
20283
20284
20285
20286
20287 #
20288 # Do we need to explicitly link libc?
20289 #
20290 case "x$archive_cmds_need_lc_CXX" in
20291 x|xyes)
20292   # Assume -lc should be added
20293   archive_cmds_need_lc_CXX=yes
20294
20295   if test "$enable_shared" = yes && test "$GCC" = yes; then
20296     case $archive_cmds_CXX in
20297     *'~'*)
20298       # FIXME: we may have to deal with multi-command sequences.
20299       ;;
20300     '$CC '*)
20301       # Test whether the compiler implicitly links with -lc since on some
20302       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20303       # to ld, don't add -lc before -lgcc.
20304       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20305 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20306 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20307   $as_echo_n "(cached) " >&6
20308 else
20309   $RM conftest*
20310         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20311
20312         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20313   (eval $ac_compile) 2>&5
20314   ac_status=$?
20315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20316   test $ac_status = 0; } 2>conftest.err; then
20317           soname=conftest
20318           lib=conftest
20319           libobjs=conftest.$ac_objext
20320           deplibs=
20321           wl=$lt_prog_compiler_wl_CXX
20322           pic_flag=$lt_prog_compiler_pic_CXX
20323           compiler_flags=-v
20324           linker_flags=-v
20325           verstring=
20326           output_objdir=.
20327           libname=conftest
20328           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20329           allow_undefined_flag_CXX=
20330           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20331   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20332   ac_status=$?
20333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20334   test $ac_status = 0; }
20335           then
20336             lt_cv_archive_cmds_need_lc_CXX=no
20337           else
20338             lt_cv_archive_cmds_need_lc_CXX=yes
20339           fi
20340           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20341         else
20342           cat conftest.err 1>&5
20343         fi
20344         $RM conftest*
20345
20346 fi
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20348 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20349       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20350       ;;
20351     esac
20352   fi
20353   ;;
20354 esac
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20420 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20421
20422 library_names_spec=
20423 libname_spec='lib$name'
20424 soname_spec=
20425 shrext_cmds=".so"
20426 postinstall_cmds=
20427 postuninstall_cmds=
20428 finish_cmds=
20429 finish_eval=
20430 shlibpath_var=
20431 shlibpath_overrides_runpath=unknown
20432 version_type=none
20433 dynamic_linker="$host_os ld.so"
20434 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20435 need_lib_prefix=unknown
20436 hardcode_into_libs=no
20437
20438 # when you set need_version to no, make sure it does not cause -set_version
20439 # flags to be left without arguments
20440 need_version=unknown
20441
20442 case $host_os in
20443 aix3*)
20444   version_type=linux
20445   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20446   shlibpath_var=LIBPATH
20447
20448   # AIX 3 has no versioning support, so we append a major version to the name.
20449   soname_spec='${libname}${release}${shared_ext}$major'
20450   ;;
20451
20452 aix[4-9]*)
20453   version_type=linux
20454   need_lib_prefix=no
20455   need_version=no
20456   hardcode_into_libs=yes
20457   if test "$host_cpu" = ia64; then
20458     # AIX 5 supports IA64
20459     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20460     shlibpath_var=LD_LIBRARY_PATH
20461   else
20462     # With GCC up to 2.95.x, collect2 would create an import file
20463     # for dependence libraries.  The import file would start with
20464     # the line `#! .'.  This would cause the generated library to
20465     # depend on `.', always an invalid library.  This was fixed in
20466     # development snapshots of GCC prior to 3.0.
20467     case $host_os in
20468       aix4 | aix4.[01] | aix4.[01].*)
20469       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20470            echo ' yes '
20471            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20472         :
20473       else
20474         can_build_shared=no
20475       fi
20476       ;;
20477     esac
20478     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20479     # soname into executable. Probably we can add versioning support to
20480     # collect2, so additional links can be useful in future.
20481     if test "$aix_use_runtimelinking" = yes; then
20482       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20483       # instead of lib<name>.a to let people know that these are not
20484       # typical AIX shared libraries.
20485       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20486     else
20487       # We preserve .a as extension for shared libraries through AIX4.2
20488       # and later when we are not doing run time linking.
20489       library_names_spec='${libname}${release}.a $libname.a'
20490       soname_spec='${libname}${release}${shared_ext}$major'
20491     fi
20492     shlibpath_var=LIBPATH
20493   fi
20494   ;;
20495
20496 amigaos*)
20497   case $host_cpu in
20498   powerpc)
20499     # Since July 2007 AmigaOS4 officially supports .so libraries.
20500     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20501     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20502     ;;
20503   m68k)
20504     library_names_spec='$libname.ixlibrary $libname.a'
20505     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20506     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'
20507     ;;
20508   esac
20509   ;;
20510
20511 beos*)
20512   library_names_spec='${libname}${shared_ext}'
20513   dynamic_linker="$host_os ld.so"
20514   shlibpath_var=LIBRARY_PATH
20515   ;;
20516
20517 bsdi[45]*)
20518   version_type=linux
20519   need_version=no
20520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20521   soname_spec='${libname}${release}${shared_ext}$major'
20522   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20523   shlibpath_var=LD_LIBRARY_PATH
20524   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20525   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20526   # the default ld.so.conf also contains /usr/contrib/lib and
20527   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20528   # libtool to hard-code these into programs
20529   ;;
20530
20531 cygwin* | mingw* | pw32* | cegcc*)
20532   version_type=windows
20533   shrext_cmds=".dll"
20534   need_version=no
20535   need_lib_prefix=no
20536
20537   case $GCC,$host_os in
20538   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20539     library_names_spec='$libname.dll.a'
20540     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20541     postinstall_cmds='base_file=`basename \${file}`~
20542       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20543       dldir=$destdir/`dirname \$dlpath`~
20544       test -d \$dldir || mkdir -p \$dldir~
20545       $install_prog $dir/$dlname \$dldir/$dlname~
20546       chmod a+x \$dldir/$dlname~
20547       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20548         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20549       fi'
20550     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20551       dlpath=$dir/\$dldll~
20552        $RM \$dlpath'
20553     shlibpath_overrides_runpath=yes
20554
20555     case $host_os in
20556     cygwin*)
20557       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20558       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20559
20560       ;;
20561     mingw* | cegcc*)
20562       # MinGW DLLs use traditional 'lib' prefix
20563       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20564       ;;
20565     pw32*)
20566       # pw32 DLLs use 'pw' prefix rather than 'lib'
20567       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20568       ;;
20569     esac
20570     ;;
20571
20572   *)
20573     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20574     ;;
20575   esac
20576   dynamic_linker='Win32 ld.exe'
20577   # FIXME: first we should search . and the directory the executable is in
20578   shlibpath_var=PATH
20579   ;;
20580
20581 darwin* | rhapsody*)
20582   dynamic_linker="$host_os dyld"
20583   version_type=darwin
20584   need_lib_prefix=no
20585   need_version=no
20586   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20587   soname_spec='${libname}${release}${major}$shared_ext'
20588   shlibpath_overrides_runpath=yes
20589   shlibpath_var=DYLD_LIBRARY_PATH
20590   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20591
20592   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20593   ;;
20594
20595 dgux*)
20596   version_type=linux
20597   need_lib_prefix=no
20598   need_version=no
20599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20600   soname_spec='${libname}${release}${shared_ext}$major'
20601   shlibpath_var=LD_LIBRARY_PATH
20602   ;;
20603
20604 freebsd* | dragonfly*)
20605   # DragonFly does not have aout.  When/if they implement a new
20606   # versioning mechanism, adjust this.
20607   if test -x /usr/bin/objformat; then
20608     objformat=`/usr/bin/objformat`
20609   else
20610     case $host_os in
20611     freebsd[123]*) objformat=aout ;;
20612     *) objformat=elf ;;
20613     esac
20614   fi
20615   version_type=freebsd-$objformat
20616   case $version_type in
20617     freebsd-elf*)
20618       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20619       need_version=no
20620       need_lib_prefix=no
20621       ;;
20622     freebsd-*)
20623       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20624       need_version=yes
20625       ;;
20626   esac
20627   shlibpath_var=LD_LIBRARY_PATH
20628   case $host_os in
20629   freebsd2*)
20630     shlibpath_overrides_runpath=yes
20631     ;;
20632   freebsd3.[01]* | freebsdelf3.[01]*)
20633     shlibpath_overrides_runpath=yes
20634     hardcode_into_libs=yes
20635     ;;
20636   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20637   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20638     shlibpath_overrides_runpath=no
20639     hardcode_into_libs=yes
20640     ;;
20641   *) # from 4.6 on, and DragonFly
20642     shlibpath_overrides_runpath=yes
20643     hardcode_into_libs=yes
20644     ;;
20645   esac
20646   ;;
20647
20648 gnu*)
20649   version_type=linux
20650   need_lib_prefix=no
20651   need_version=no
20652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20653   soname_spec='${libname}${release}${shared_ext}$major'
20654   shlibpath_var=LD_LIBRARY_PATH
20655   hardcode_into_libs=yes
20656   ;;
20657
20658 haiku*)
20659   version_type=linux
20660   need_lib_prefix=no
20661   need_version=no
20662   dynamic_linker="$host_os runtime_loader"
20663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20664   soname_spec='${libname}${release}${shared_ext}$major'
20665   shlibpath_var=LIBRARY_PATH
20666   shlibpath_overrides_runpath=yes
20667   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20668   hardcode_into_libs=yes
20669   ;;
20670
20671 hpux9* | hpux10* | hpux11*)
20672   # Give a soname corresponding to the major version so that dld.sl refuses to
20673   # link against other versions.
20674   version_type=sunos
20675   need_lib_prefix=no
20676   need_version=no
20677   case $host_cpu in
20678   ia64*)
20679     shrext_cmds='.so'
20680     hardcode_into_libs=yes
20681     dynamic_linker="$host_os dld.so"
20682     shlibpath_var=LD_LIBRARY_PATH
20683     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20684     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20685     soname_spec='${libname}${release}${shared_ext}$major'
20686     if test "X$HPUX_IA64_MODE" = X32; then
20687       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20688     else
20689       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20690     fi
20691     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20692     ;;
20693   hppa*64*)
20694     shrext_cmds='.sl'
20695     hardcode_into_libs=yes
20696     dynamic_linker="$host_os dld.sl"
20697     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20698     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20699     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20700     soname_spec='${libname}${release}${shared_ext}$major'
20701     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20702     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20703     ;;
20704   *)
20705     shrext_cmds='.sl'
20706     dynamic_linker="$host_os dld.sl"
20707     shlibpath_var=SHLIB_PATH
20708     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20709     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20710     soname_spec='${libname}${release}${shared_ext}$major'
20711     ;;
20712   esac
20713   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20714   postinstall_cmds='chmod 555 $lib'
20715   # or fails outright, so override atomically:
20716   install_override_mode=555
20717   ;;
20718
20719 interix[3-9]*)
20720   version_type=linux
20721   need_lib_prefix=no
20722   need_version=no
20723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20724   soname_spec='${libname}${release}${shared_ext}$major'
20725   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20726   shlibpath_var=LD_LIBRARY_PATH
20727   shlibpath_overrides_runpath=no
20728   hardcode_into_libs=yes
20729   ;;
20730
20731 irix5* | irix6* | nonstopux*)
20732   case $host_os in
20733     nonstopux*) version_type=nonstopux ;;
20734     *)
20735         if test "$lt_cv_prog_gnu_ld" = yes; then
20736                 version_type=linux
20737         else
20738                 version_type=irix
20739         fi ;;
20740   esac
20741   need_lib_prefix=no
20742   need_version=no
20743   soname_spec='${libname}${release}${shared_ext}$major'
20744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20745   case $host_os in
20746   irix5* | nonstopux*)
20747     libsuff= shlibsuff=
20748     ;;
20749   *)
20750     case $LD in # libtool.m4 will add one of these switches to LD
20751     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20752       libsuff= shlibsuff= libmagic=32-bit;;
20753     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20754       libsuff=32 shlibsuff=N32 libmagic=N32;;
20755     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20756       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20757     *) libsuff= shlibsuff= libmagic=never-match;;
20758     esac
20759     ;;
20760   esac
20761   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20762   shlibpath_overrides_runpath=no
20763   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20764   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20765   hardcode_into_libs=yes
20766   ;;
20767
20768 # No shared lib support for Linux oldld, aout, or coff.
20769 linux*oldld* | linux*aout* | linux*coff*)
20770   dynamic_linker=no
20771   ;;
20772
20773 # This must be Linux ELF.
20774 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20775   version_type=linux
20776   need_lib_prefix=no
20777   need_version=no
20778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20779   soname_spec='${libname}${release}${shared_ext}$major'
20780   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20781   shlibpath_var=LD_LIBRARY_PATH
20782   shlibpath_overrides_runpath=no
20783
20784   # Some binutils ld are patched to set DT_RUNPATH
20785   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20786   $as_echo_n "(cached) " >&6
20787 else
20788   lt_cv_shlibpath_overrides_runpath=no
20789     save_LDFLAGS=$LDFLAGS
20790     save_libdir=$libdir
20791     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20792          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20793     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20794 /* end confdefs.h.  */
20795
20796 int
20797 main ()
20798 {
20799
20800   ;
20801   return 0;
20802 }
20803 _ACEOF
20804 if ac_fn_cxx_try_link "$LINENO"; then :
20805   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20806   lt_cv_shlibpath_overrides_runpath=yes
20807 fi
20808 fi
20809 rm -f core conftest.err conftest.$ac_objext \
20810     conftest$ac_exeext conftest.$ac_ext
20811     LDFLAGS=$save_LDFLAGS
20812     libdir=$save_libdir
20813
20814 fi
20815
20816   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20817
20818   # This implies no fast_install, which is unacceptable.
20819   # Some rework will be needed to allow for fast_install
20820   # before this can be enabled.
20821   hardcode_into_libs=yes
20822
20823   # Append ld.so.conf contents to the search path
20824   if test -f /etc/ld.so.conf; then
20825     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' ' '`
20826     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20827   fi
20828
20829   # We used to test for /lib/ld.so.1 and disable shared libraries on
20830   # powerpc, because MkLinux only supported shared libraries with the
20831   # GNU dynamic linker.  Since this was broken with cross compilers,
20832   # most powerpc-linux boxes support dynamic linking these days and
20833   # people can always --disable-shared, the test was removed, and we
20834   # assume the GNU/Linux dynamic linker is in use.
20835   dynamic_linker='GNU/Linux ld.so'
20836   ;;
20837
20838 netbsd*)
20839   version_type=sunos
20840   need_lib_prefix=no
20841   need_version=no
20842   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20843     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20844     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20845     dynamic_linker='NetBSD (a.out) ld.so'
20846   else
20847     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20848     soname_spec='${libname}${release}${shared_ext}$major'
20849     dynamic_linker='NetBSD ld.elf_so'
20850   fi
20851   shlibpath_var=LD_LIBRARY_PATH
20852   shlibpath_overrides_runpath=yes
20853   hardcode_into_libs=yes
20854   ;;
20855
20856 newsos6)
20857   version_type=linux
20858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20859   shlibpath_var=LD_LIBRARY_PATH
20860   shlibpath_overrides_runpath=yes
20861   ;;
20862
20863 *nto* | *qnx*)
20864   version_type=qnx
20865   need_lib_prefix=no
20866   need_version=no
20867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20868   soname_spec='${libname}${release}${shared_ext}$major'
20869   shlibpath_var=LD_LIBRARY_PATH
20870   shlibpath_overrides_runpath=no
20871   hardcode_into_libs=yes
20872   dynamic_linker='ldqnx.so'
20873   ;;
20874
20875 openbsd*)
20876   version_type=sunos
20877   sys_lib_dlsearch_path_spec="/usr/lib"
20878   need_lib_prefix=no
20879   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20880   case $host_os in
20881     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20882     *)                          need_version=no  ;;
20883   esac
20884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20885   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20886   shlibpath_var=LD_LIBRARY_PATH
20887   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20888     case $host_os in
20889       openbsd2.[89] | openbsd2.[89].*)
20890         shlibpath_overrides_runpath=no
20891         ;;
20892       *)
20893         shlibpath_overrides_runpath=yes
20894         ;;
20895       esac
20896   else
20897     shlibpath_overrides_runpath=yes
20898   fi
20899   ;;
20900
20901 os2*)
20902   libname_spec='$name'
20903   shrext_cmds=".dll"
20904   need_lib_prefix=no
20905   library_names_spec='$libname${shared_ext} $libname.a'
20906   dynamic_linker='OS/2 ld.exe'
20907   shlibpath_var=LIBPATH
20908   ;;
20909
20910 osf3* | osf4* | osf5*)
20911   version_type=osf
20912   need_lib_prefix=no
20913   need_version=no
20914   soname_spec='${libname}${release}${shared_ext}$major'
20915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20916   shlibpath_var=LD_LIBRARY_PATH
20917   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20918   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20919   ;;
20920
20921 rdos*)
20922   dynamic_linker=no
20923   ;;
20924
20925 solaris*)
20926   version_type=linux
20927   need_lib_prefix=no
20928   need_version=no
20929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20930   soname_spec='${libname}${release}${shared_ext}$major'
20931   shlibpath_var=LD_LIBRARY_PATH
20932   shlibpath_overrides_runpath=yes
20933   hardcode_into_libs=yes
20934   # ldd complains unless libraries are executable
20935   postinstall_cmds='chmod +x $lib'
20936   ;;
20937
20938 sunos4*)
20939   version_type=sunos
20940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20941   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20942   shlibpath_var=LD_LIBRARY_PATH
20943   shlibpath_overrides_runpath=yes
20944   if test "$with_gnu_ld" = yes; then
20945     need_lib_prefix=no
20946   fi
20947   need_version=yes
20948   ;;
20949
20950 sysv4 | sysv4.3*)
20951   version_type=linux
20952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20953   soname_spec='${libname}${release}${shared_ext}$major'
20954   shlibpath_var=LD_LIBRARY_PATH
20955   case $host_vendor in
20956     sni)
20957       shlibpath_overrides_runpath=no
20958       need_lib_prefix=no
20959       runpath_var=LD_RUN_PATH
20960       ;;
20961     siemens)
20962       need_lib_prefix=no
20963       ;;
20964     motorola)
20965       need_lib_prefix=no
20966       need_version=no
20967       shlibpath_overrides_runpath=no
20968       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20969       ;;
20970   esac
20971   ;;
20972
20973 sysv4*MP*)
20974   if test -d /usr/nec ;then
20975     version_type=linux
20976     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20977     soname_spec='$libname${shared_ext}.$major'
20978     shlibpath_var=LD_LIBRARY_PATH
20979   fi
20980   ;;
20981
20982 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20983   version_type=freebsd-elf
20984   need_lib_prefix=no
20985   need_version=no
20986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20987   soname_spec='${libname}${release}${shared_ext}$major'
20988   shlibpath_var=LD_LIBRARY_PATH
20989   shlibpath_overrides_runpath=yes
20990   hardcode_into_libs=yes
20991   if test "$with_gnu_ld" = yes; then
20992     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20993   else
20994     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20995     case $host_os in
20996       sco3.2v5*)
20997         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20998         ;;
20999     esac
21000   fi
21001   sys_lib_dlsearch_path_spec='/usr/lib'
21002   ;;
21003
21004 tpf*)
21005   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21006   version_type=linux
21007   need_lib_prefix=no
21008   need_version=no
21009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21010   shlibpath_var=LD_LIBRARY_PATH
21011   shlibpath_overrides_runpath=no
21012   hardcode_into_libs=yes
21013   ;;
21014
21015 uts4*)
21016   version_type=linux
21017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21018   soname_spec='${libname}${release}${shared_ext}$major'
21019   shlibpath_var=LD_LIBRARY_PATH
21020   ;;
21021
21022 *)
21023   dynamic_linker=no
21024   ;;
21025 esac
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21027 $as_echo "$dynamic_linker" >&6; }
21028 test "$dynamic_linker" = no && can_build_shared=no
21029
21030 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21031 if test "$GCC" = yes; then
21032   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21033 fi
21034
21035 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21036   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21037 fi
21038 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21039   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21040 fi
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21080 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21081 hardcode_action_CXX=
21082 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21083    test -n "$runpath_var_CXX" ||
21084    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21085
21086   # We can hardcode non-existent directories.
21087   if test "$hardcode_direct_CXX" != no &&
21088      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21089      # have to relink, otherwise we might link with an installed library
21090      # when we should be linking with a yet-to-be-installed one
21091      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21092      test "$hardcode_minus_L_CXX" != no; then
21093     # Linking always hardcodes the temporary library directory.
21094     hardcode_action_CXX=relink
21095   else
21096     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21097     hardcode_action_CXX=immediate
21098   fi
21099 else
21100   # We cannot hardcode anything, or else we can only hardcode existing
21101   # directories.
21102   hardcode_action_CXX=unsupported
21103 fi
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21105 $as_echo "$hardcode_action_CXX" >&6; }
21106
21107 if test "$hardcode_action_CXX" = relink ||
21108    test "$inherit_rpath_CXX" = yes; then
21109   # Fast installation is not supported
21110   enable_fast_install=no
21111 elif test "$shlibpath_overrides_runpath" = yes ||
21112      test "$enable_shared" = no; then
21113   # Fast installation is not necessary
21114   enable_fast_install=needless
21115 fi
21116
21117
21118
21119
21120
21121
21122
21123   fi # test -n "$compiler"
21124
21125   CC=$lt_save_CC
21126   LDCXX=$LD
21127   LD=$lt_save_LD
21128   GCC=$lt_save_GCC
21129   with_gnu_ld=$lt_save_with_gnu_ld
21130   lt_cv_path_LDCXX=$lt_cv_path_LD
21131   lt_cv_path_LD=$lt_save_path_LD
21132   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21133   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21134 fi # test "$_lt_caught_CXX_error" != yes
21135
21136 ac_ext=c
21137 ac_cpp='$CPP $CPPFLAGS'
21138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157 # Only expand once:
21158
21159
21160
21161
21162
21163 # Identify the assembler which will work hand-in-glove with the newly
21164 # built GCC, so that we can examine its features.  This is the assembler
21165 # which will be driven by the driver program.
21166 #
21167 # If build != host, and we aren't building gas in-tree, we identify a
21168 # build->target assembler and hope that it will have the same features
21169 # as the host->target assembler we'll be using.
21170 gcc_cv_gas_major_version=
21171 gcc_cv_gas_minor_version=
21172 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21173
21174 if test "${gcc_cv_as+set}" = set; then :
21175
21176 else
21177
21178 if test -x "$DEFAULT_ASSEMBLER"; then
21179         gcc_cv_as="$DEFAULT_ASSEMBLER"
21180 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21181      && test -f ../gas/Makefile \
21182      && test x$build = x$host; then
21183         gcc_cv_as=../gas/as-new$build_exeext
21184 elif test -x as$build_exeext; then
21185         # Build using assembler in the current directory.
21186         gcc_cv_as=./as$build_exeext
21187 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21188         gcc_cv_as="$AS_FOR_TARGET"
21189 else
21190         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21191 set dummy $AS_FOR_TARGET; ac_word=$2
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21193 $as_echo_n "checking for $ac_word... " >&6; }
21194 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21195   $as_echo_n "(cached) " >&6
21196 else
21197   case $gcc_cv_as in
21198   [\\/]* | ?:[\\/]*)
21199   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21200   ;;
21201   *)
21202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21203 for as_dir in $PATH
21204 do
21205   IFS=$as_save_IFS
21206   test -z "$as_dir" && as_dir=.
21207     for ac_exec_ext in '' $ac_executable_extensions; do
21208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21209     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21211     break 2
21212   fi
21213 done
21214   done
21215 IFS=$as_save_IFS
21216
21217   ;;
21218 esac
21219 fi
21220 gcc_cv_as=$ac_cv_path_gcc_cv_as
21221 if test -n "$gcc_cv_as"; then
21222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21223 $as_echo "$gcc_cv_as" >&6; }
21224 else
21225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21226 $as_echo "no" >&6; }
21227 fi
21228
21229
21230 fi
21231 fi
21232
21233 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21234
21235 case "$ORIGINAL_AS_FOR_TARGET" in
21236   ./as | ./as$build_exeext) ;;
21237   *) ac_config_files="$ac_config_files as:exec-tool.in"
21238  ;;
21239 esac
21240
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21242 $as_echo_n "checking what assembler to use... " >&6; }
21243 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21244   # Single tree build which includes gas.  We want to prefer it
21245   # over whatever linker top-level may have detected, since
21246   # we'll use what we're building after installation anyway.
21247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21248 $as_echo "newly built gas" >&6; }
21249   in_tree_gas=yes
21250   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21251 for f in $gcc_cv_as_bfd_srcdir/configure \
21252          $gcc_cv_as_gas_srcdir/configure \
21253          $gcc_cv_as_gas_srcdir/configure.in \
21254          $gcc_cv_as_gas_srcdir/Makefile.in ; do
21255   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21256   if test x$gcc_cv_gas_version != x; then
21257     break
21258   fi
21259 done
21260 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21261 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21262 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21263 case $gcc_cv_gas_patch_version in
21264   "") gcc_cv_gas_patch_version="0" ;;
21265 esac
21266 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21267                             + $gcc_cv_gas_minor_version \) \* 1000 \
21268                             + $gcc_cv_gas_patch_version`
21269
21270   in_tree_gas_is_elf=no
21271   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21272      || (grep 'obj_format = multi' ../gas/Makefile \
21273          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21274   then
21275     in_tree_gas_is_elf=yes
21276   fi
21277 else
21278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21279 $as_echo "$gcc_cv_as" >&6; }
21280   in_tree_gas=no
21281 fi
21282
21283 # Identify the linker which will work hand-in-glove with the newly
21284 # built GCC, so that we can examine its features.  This is the linker
21285 # which will be driven by the driver program.
21286 #
21287 # If build != host, and we aren't building gas in-tree, we identify a
21288 # build->target linker and hope that it will have the same features
21289 # as the host->target linker we'll be using.
21290 gcc_cv_gld_major_version=
21291 gcc_cv_gld_minor_version=
21292 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21293 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21294
21295 if test "${gcc_cv_ld+set}" = set; then :
21296
21297 else
21298
21299 if test -x "$DEFAULT_LINKER"; then
21300         gcc_cv_ld="$DEFAULT_LINKER"
21301 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21302      && test -f ../ld/Makefile \
21303      && test x$build = x$host; then
21304         gcc_cv_ld=../ld/ld-new$build_exeext
21305 elif test -x collect-ld$build_exeext; then
21306         # Build using linker in the current directory.
21307         gcc_cv_ld=./collect-ld$build_exeext
21308 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21309         gcc_cv_ld="$LD_FOR_TARGET"
21310 else
21311         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21312 set dummy $LD_FOR_TARGET; ac_word=$2
21313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21314 $as_echo_n "checking for $ac_word... " >&6; }
21315 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21316   $as_echo_n "(cached) " >&6
21317 else
21318   case $gcc_cv_ld in
21319   [\\/]* | ?:[\\/]*)
21320   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21321   ;;
21322   *)
21323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21324 for as_dir in $PATH
21325 do
21326   IFS=$as_save_IFS
21327   test -z "$as_dir" && as_dir=.
21328     for ac_exec_ext in '' $ac_executable_extensions; do
21329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21330     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21332     break 2
21333   fi
21334 done
21335   done
21336 IFS=$as_save_IFS
21337
21338   ;;
21339 esac
21340 fi
21341 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21342 if test -n "$gcc_cv_ld"; then
21343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21344 $as_echo "$gcc_cv_ld" >&6; }
21345 else
21346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21347 $as_echo "no" >&6; }
21348 fi
21349
21350
21351 fi
21352 fi
21353
21354 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21355 PLUGIN_LD=`basename $gcc_cv_ld`
21356
21357 # Check whether --with-plugin-ld was given.
21358 if test "${with_plugin_ld+set}" = set; then :
21359   withval=$with_plugin_ld; if test x"$withval" != x; then
21360    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21361    PLUGIN_LD="$withval"
21362  fi
21363 fi
21364
21365
21366
21367 cat >>confdefs.h <<_ACEOF
21368 #define PLUGIN_LD "$PLUGIN_LD"
21369 _ACEOF
21370
21371
21372 # Check to see if we are using gold instead of ld
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21374 $as_echo_n "checking whether we are using gold... " >&6; }
21375 ld_is_gold=no
21376 if test x$gcc_cv_ld != x; then
21377   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21378      | grep "GNU gold" > /dev/null; then
21379     ld_is_gold=yes
21380   fi
21381 fi
21382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21383 $as_echo "$ld_is_gold" >&6; }
21384
21385 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21386
21387 case "$ORIGINAL_LD_FOR_TARGET" in
21388   ./collect-ld | ./collect-ld$build_exeext) ;;
21389   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21390  ;;
21391 esac
21392
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21394 $as_echo_n "checking what linker to use... " >&6; }
21395 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21396    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21397         # Single tree build which includes ld.  We want to prefer it
21398         # over whatever linker top-level may have detected, since
21399         # we'll use what we're building after installation anyway.
21400         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21401 $as_echo "newly built ld" >&6; }
21402         in_tree_ld=yes
21403         in_tree_ld_is_elf=no
21404         if (grep 'EMUL = .*elf' ../ld/Makefile \
21405             || grep 'EMUL = .*linux' ../ld/Makefile \
21406             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21407           in_tree_ld_is_elf=yes
21408         elif test "$ld_is_gold" = yes; then
21409           in_tree_ld_is_elf=yes
21410         fi
21411         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
21412         do
21413                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21414                 if test x$gcc_cv_gld_version != x; then
21415                         break
21416                 fi
21417         done
21418         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21419         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21420 else
21421         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21422 $as_echo "$gcc_cv_ld" >&6; }
21423         in_tree_ld=no
21424 fi
21425
21426 # Figure out what nm we will be using.
21427 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21428 if test "${gcc_cv_nm+set}" = set; then :
21429
21430 else
21431
21432 if test -f $gcc_cv_binutils_srcdir/configure.in \
21433      && test -f ../binutils/Makefile \
21434      && test x$build = x$host; then
21435         gcc_cv_nm=../binutils/nm-new$build_exeext
21436 elif test -x nm$build_exeext; then
21437         gcc_cv_nm=./nm$build_exeext
21438 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21439         gcc_cv_nm="$NM_FOR_TARGET"
21440 else
21441         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21442 set dummy $NM_FOR_TARGET; ac_word=$2
21443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21444 $as_echo_n "checking for $ac_word... " >&6; }
21445 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21446   $as_echo_n "(cached) " >&6
21447 else
21448   case $gcc_cv_nm in
21449   [\\/]* | ?:[\\/]*)
21450   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21451   ;;
21452   *)
21453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21454 for as_dir in $PATH
21455 do
21456   IFS=$as_save_IFS
21457   test -z "$as_dir" && as_dir=.
21458     for ac_exec_ext in '' $ac_executable_extensions; do
21459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21460     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21462     break 2
21463   fi
21464 done
21465   done
21466 IFS=$as_save_IFS
21467
21468   ;;
21469 esac
21470 fi
21471 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21472 if test -n "$gcc_cv_nm"; then
21473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21474 $as_echo "$gcc_cv_nm" >&6; }
21475 else
21476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21477 $as_echo "no" >&6; }
21478 fi
21479
21480
21481 fi
21482 fi
21483
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21485 $as_echo_n "checking what nm to use... " >&6; }
21486 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21487         # Single tree build which includes binutils.
21488         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21489 $as_echo "newly built nm" >&6; }
21490         in_tree_nm=yes
21491 else
21492         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21493 $as_echo "$gcc_cv_nm" >&6; }
21494         in_tree_nm=no
21495 fi
21496
21497 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21498
21499 case "$ORIGINAL_NM_FOR_TARGET" in
21500   ./nm | ./nm$build_exeext) ;;
21501   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21502  ;;
21503 esac
21504
21505
21506 # Figure out what objdump we will be using.
21507 if test "${gcc_cv_objdump+set}" = set; then :
21508
21509 else
21510
21511 if test -f $gcc_cv_binutils_srcdir/configure.in \
21512      && test -f ../binutils/Makefile \
21513      && test x$build = x$host; then
21514         # Single tree build which includes binutils.
21515         gcc_cv_objdump=../binutils/objdump$build_exeext
21516 elif test -x objdump$build_exeext; then
21517         gcc_cv_objdump=./objdump$build_exeext
21518 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21519         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21520 else
21521         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21522 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21524 $as_echo_n "checking for $ac_word... " >&6; }
21525 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21526   $as_echo_n "(cached) " >&6
21527 else
21528   case $gcc_cv_objdump in
21529   [\\/]* | ?:[\\/]*)
21530   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21531   ;;
21532   *)
21533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21534 for as_dir in $PATH
21535 do
21536   IFS=$as_save_IFS
21537   test -z "$as_dir" && as_dir=.
21538     for ac_exec_ext in '' $ac_executable_extensions; do
21539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21540     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21542     break 2
21543   fi
21544 done
21545   done
21546 IFS=$as_save_IFS
21547
21548   ;;
21549 esac
21550 fi
21551 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21552 if test -n "$gcc_cv_objdump"; then
21553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21554 $as_echo "$gcc_cv_objdump" >&6; }
21555 else
21556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21557 $as_echo "no" >&6; }
21558 fi
21559
21560
21561 fi
21562 fi
21563
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21565 $as_echo_n "checking what objdump to use... " >&6; }
21566 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21567         # Single tree build which includes binutils.
21568         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21569 $as_echo "newly built objdump" >&6; }
21570 elif test x$gcc_cv_objdump = x; then
21571         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21572 $as_echo "not found" >&6; }
21573 else
21574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21575 $as_echo "$gcc_cv_objdump" >&6; }
21576 fi
21577
21578 # Figure out what readelf we will be using.
21579 if test "${gcc_cv_readelf+set}" = set; then :
21580
21581 else
21582
21583 if test -f $gcc_cv_binutils_srcdir/configure.in \
21584      && test -f ../binutils/Makefile \
21585      && test x$build = x$host; then
21586         # Single tree build which includes binutils.
21587         gcc_cv_readelf=../binutils/readelf$build_exeext
21588 elif test -x readelf$build_exeext; then
21589         gcc_cv_readelf=./readelf$build_exeext
21590 else
21591         # Extract the first word of "readelf", so it can be a program name with args.
21592 set dummy readelf; ac_word=$2
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21594 $as_echo_n "checking for $ac_word... " >&6; }
21595 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21596   $as_echo_n "(cached) " >&6
21597 else
21598   case $gcc_cv_readelf in
21599   [\\/]* | ?:[\\/]*)
21600   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21601   ;;
21602   *)
21603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21604 for as_dir in $PATH
21605 do
21606   IFS=$as_save_IFS
21607   test -z "$as_dir" && as_dir=.
21608     for ac_exec_ext in '' $ac_executable_extensions; do
21609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21610     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21612     break 2
21613   fi
21614 done
21615   done
21616 IFS=$as_save_IFS
21617
21618   ;;
21619 esac
21620 fi
21621 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21622 if test -n "$gcc_cv_readelf"; then
21623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21624 $as_echo "$gcc_cv_readelf" >&6; }
21625 else
21626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21627 $as_echo "no" >&6; }
21628 fi
21629
21630
21631 fi
21632 fi
21633
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21635 $as_echo_n "checking what readelf to use... " >&6; }
21636 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21637         # Single tree build which includes binutils.
21638         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21639 $as_echo "newly built readelf" >&6; }
21640 elif test x$gcc_cv_readelf = x; then
21641         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21642 $as_echo "not found" >&6; }
21643 else
21644         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21645 $as_echo "$gcc_cv_readelf" >&6; }
21646 fi
21647
21648 # Figure out what assembler alignment features are present.
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21650 $as_echo_n "checking assembler flags... " >&6; }
21651 if test "${gcc_cv_as_flags+set}" = set; then :
21652   $as_echo_n "(cached) " >&6
21653 else
21654    case "$target" in
21655   i[34567]86-*-linux*)
21656         gcc_cv_as_flags="--32"
21657     ;;
21658   powerpc*-*-darwin*)
21659         gcc_cv_as_flags="-arch ppc"
21660     ;;
21661   *)
21662     gcc_cv_as_flags=" "
21663     ;;
21664   esac
21665 fi
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21667 $as_echo "$gcc_cv_as_flags" >&6; }
21668
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21670 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21671 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21672   $as_echo_n "(cached) " >&6
21673 else
21674   gcc_cv_as_balign_and_p2align=no
21675     if test $in_tree_gas = yes; then
21676     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21677   then gcc_cv_as_balign_and_p2align=yes
21678 fi
21679   elif test x$gcc_cv_as != x; then
21680     $as_echo '.balign 4
21681 .p2align 2' > conftest.s
21682     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21683   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21684   (eval $ac_try) 2>&5
21685   ac_status=$?
21686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21687   test $ac_status = 0; }; }
21688     then
21689         gcc_cv_as_balign_and_p2align=yes
21690     else
21691       echo "configure: failed program was" >&5
21692       cat conftest.s >&5
21693     fi
21694     rm -f conftest.o conftest.s
21695   fi
21696 fi
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21698 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21699 if test $gcc_cv_as_balign_and_p2align = yes; then
21700
21701 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21702
21703 fi
21704
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21706 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21707 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21708   $as_echo_n "(cached) " >&6
21709 else
21710   gcc_cv_as_max_skip_p2align=no
21711     if test $in_tree_gas = yes; then
21712     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21713   then gcc_cv_as_max_skip_p2align=yes
21714 fi
21715   elif test x$gcc_cv_as != x; then
21716     $as_echo '.p2align 4,,7' > conftest.s
21717     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21718   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21719   (eval $ac_try) 2>&5
21720   ac_status=$?
21721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21722   test $ac_status = 0; }; }
21723     then
21724         gcc_cv_as_max_skip_p2align=yes
21725     else
21726       echo "configure: failed program was" >&5
21727       cat conftest.s >&5
21728     fi
21729     rm -f conftest.o conftest.s
21730   fi
21731 fi
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21733 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21734 if test $gcc_cv_as_max_skip_p2align = yes; then
21735
21736 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21737
21738 fi
21739
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21741 $as_echo_n "checking assembler for .literal16... " >&6; }
21742 if test "${gcc_cv_as_literal16+set}" = set; then :
21743   $as_echo_n "(cached) " >&6
21744 else
21745   gcc_cv_as_literal16=no
21746     if test $in_tree_gas = yes; then
21747     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21748   then gcc_cv_as_literal16=yes
21749 fi
21750   elif test x$gcc_cv_as != x; then
21751     $as_echo '.literal16' > conftest.s
21752     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21753   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21754   (eval $ac_try) 2>&5
21755   ac_status=$?
21756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21757   test $ac_status = 0; }; }
21758     then
21759         gcc_cv_as_literal16=yes
21760     else
21761       echo "configure: failed program was" >&5
21762       cat conftest.s >&5
21763     fi
21764     rm -f conftest.o conftest.s
21765   fi
21766 fi
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21768 $as_echo "$gcc_cv_as_literal16" >&6; }
21769 if test $gcc_cv_as_literal16 = yes; then
21770
21771 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21772
21773 fi
21774
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21776 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21777 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21778   $as_echo_n "(cached) " >&6
21779 else
21780   gcc_cv_as_subsection_m1=no
21781     if test $in_tree_gas = yes; then
21782     if test $in_tree_gas_is_elf = yes \
21783   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21784   then gcc_cv_as_subsection_m1=yes
21785 fi
21786   elif test x$gcc_cv_as != x; then
21787     $as_echo 'conftest_label1: .word 0
21788 .subsection -1
21789 conftest_label2: .word 0
21790 .previous' > conftest.s
21791     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21792   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21793   (eval $ac_try) 2>&5
21794   ac_status=$?
21795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21796   test $ac_status = 0; }; }
21797     then
21798         if test x$gcc_cv_nm != x; then
21799     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21800     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21801     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21802     then :
21803     else gcc_cv_as_subsection_m1=yes
21804     fi
21805     rm -f conftest.nm1 conftest.nm2
21806   fi
21807     else
21808       echo "configure: failed program was" >&5
21809       cat conftest.s >&5
21810     fi
21811     rm -f conftest.o conftest.s
21812   fi
21813 fi
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21815 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21816 if test $gcc_cv_as_subsection_m1 = yes; then
21817
21818 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21819
21820 fi
21821
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21823 $as_echo_n "checking assembler for .weak... " >&6; }
21824 if test "${gcc_cv_as_weak+set}" = set; then :
21825   $as_echo_n "(cached) " >&6
21826 else
21827   gcc_cv_as_weak=no
21828     if test $in_tree_gas = yes; then
21829     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21830   then gcc_cv_as_weak=yes
21831 fi
21832   elif test x$gcc_cv_as != x; then
21833     $as_echo '  .weak foobar' > conftest.s
21834     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21835   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21836   (eval $ac_try) 2>&5
21837   ac_status=$?
21838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21839   test $ac_status = 0; }; }
21840     then
21841         gcc_cv_as_weak=yes
21842     else
21843       echo "configure: failed program was" >&5
21844       cat conftest.s >&5
21845     fi
21846     rm -f conftest.o conftest.s
21847   fi
21848 fi
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21850 $as_echo "$gcc_cv_as_weak" >&6; }
21851 if test $gcc_cv_as_weak = yes; then
21852
21853 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21854
21855 fi
21856
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21858 $as_echo_n "checking assembler for .weakref... " >&6; }
21859 if test "${gcc_cv_as_weakref+set}" = set; then :
21860   $as_echo_n "(cached) " >&6
21861 else
21862   gcc_cv_as_weakref=no
21863     if test $in_tree_gas = yes; then
21864     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21865   then gcc_cv_as_weakref=yes
21866 fi
21867   elif test x$gcc_cv_as != x; then
21868     $as_echo '  .weakref foobar, barfnot' > conftest.s
21869     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21870   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21871   (eval $ac_try) 2>&5
21872   ac_status=$?
21873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21874   test $ac_status = 0; }; }
21875     then
21876         gcc_cv_as_weakref=yes
21877     else
21878       echo "configure: failed program was" >&5
21879       cat conftest.s >&5
21880     fi
21881     rm -f conftest.o conftest.s
21882   fi
21883 fi
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21885 $as_echo "$gcc_cv_as_weakref" >&6; }
21886 if test $gcc_cv_as_weakref = yes; then
21887
21888 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21889
21890 fi
21891
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21893 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21894 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21895   $as_echo_n "(cached) " >&6
21896 else
21897   gcc_cv_as_nsubspa_comdat=no
21898     if test $in_tree_gas = yes; then
21899     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21900   then gcc_cv_as_nsubspa_comdat=yes
21901 fi
21902   elif test x$gcc_cv_as != x; then
21903     $as_echo '  .SPACE $TEXT$
21904         .NSUBSPA $CODE$,COMDAT' > conftest.s
21905     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21906   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21907   (eval $ac_try) 2>&5
21908   ac_status=$?
21909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21910   test $ac_status = 0; }; }
21911     then
21912         gcc_cv_as_nsubspa_comdat=yes
21913     else
21914       echo "configure: failed program was" >&5
21915       cat conftest.s >&5
21916     fi
21917     rm -f conftest.o conftest.s
21918   fi
21919 fi
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21921 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21922 if test $gcc_cv_as_nsubspa_comdat = yes; then
21923
21924 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21925
21926 fi
21927
21928 # .hidden needs to be supported in both the assembler and the linker,
21929 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21930 # This is irritatingly difficult to feature test for; we have to check the
21931 # date string after the version number.  If we've got an in-tree
21932 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21933 # to be safe.
21934 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21936 $as_echo_n "checking assembler for .hidden... " >&6; }
21937 if test "${gcc_cv_as_hidden+set}" = set; then :
21938   $as_echo_n "(cached) " >&6
21939 else
21940   gcc_cv_as_hidden=no
21941     if test $in_tree_gas = yes; then
21942     if test $in_tree_gas_is_elf = yes \
21943   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21944   then gcc_cv_as_hidden=yes
21945 fi
21946   elif test x$gcc_cv_as != x; then
21947     $as_echo '  .hidden foobar
21948 foobar:' > conftest.s
21949     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21950   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21951   (eval $ac_try) 2>&5
21952   ac_status=$?
21953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21954   test $ac_status = 0; }; }
21955     then
21956
21957 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21958 # STV_HIDDEN, so disable .hidden support if so.
21959 case "${target}" in
21960   i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
21961     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21962       cat > conftest.s <<EOF
21963 .globl hidden
21964         .hidden hidden
21965 hidden:
21966 .globl default
21967         .set    default,hidden
21968 EOF
21969       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21970         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21971         grep '\.hidden default' > /dev/null; then
21972         gcc_cv_as_hidden=no
21973       else
21974         gcc_cv_as_hidden=yes
21975       fi
21976     else
21977       # Assume bug is present if objdump is missing.
21978       gcc_cv_as_hidden=no
21979     fi
21980     ;;
21981   *)
21982     gcc_cv_as_hidden=yes
21983     ;;
21984 esac
21985     else
21986       echo "configure: failed program was" >&5
21987       cat conftest.s >&5
21988     fi
21989     rm -f conftest.o conftest.s
21990   fi
21991 fi
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21993 $as_echo "$gcc_cv_as_hidden" >&6; }
21994
21995 case "${target}" in
21996   *-*-darwin*)
21997     # Darwin as has some visibility support, though with a different syntax.
21998     gcc_cv_as_hidden=yes
21999     ;;
22000 esac
22001
22002 # gnu_indirect_function type is an extension proposed at
22003 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22004 # selection of function implementation
22005 # Check whether --enable-gnu-indirect-function was given.
22006 if test "${enable_gnu_indirect_function+set}" = set; then :
22007   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22008     yes | no) ;;
22009     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22010 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22011   esac
22012 else
22013   enable_gnu_indirect_function="$default_gnu_indirect_function"
22014 fi
22015
22016 if test x$enable_gnu_indirect_function = xyes; then
22017
22018 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22019
22020 fi
22021
22022 if test $in_tree_ld != yes ; then
22023   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22024   if echo "$ld_ver" | grep GNU > /dev/null; then
22025     if test x"$ld_is_gold" = xyes; then
22026       # GNU gold --version looks like this:
22027       #
22028       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22029       #
22030       # We extract the binutils version which is more familiar and specific
22031       # than the gold version.
22032       ld_vers=`echo $ld_ver | sed -n \
22033           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22034     else
22035       # GNU ld --version looks like this:
22036       #
22037       # GNU ld (GNU Binutils) 2.21.51.20110225
22038       ld_vers=`echo $ld_ver | sed -n \
22039           -e 's,^.*[     ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22040     fi
22041     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'`
22042     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22043     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22044     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22045   else
22046     case "${target}" in
22047       *-*-solaris2*)
22048         #
22049         # Solaris 2 ld -V output looks like this for a regular version:
22050         #
22051         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22052         #
22053         # but test versions add stuff at the end:
22054         #
22055         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22056         #
22057         ld_ver=`$gcc_cv_ld -V 2>&1`
22058         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22059           ld_vers=`echo $ld_ver | sed -n \
22060             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22061           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22062           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22063         fi
22064         ;;
22065     esac
22066   fi
22067 fi
22068
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22070 $as_echo_n "checking linker for .hidden support... " >&6; }
22071 if test "${gcc_cv_ld_hidden+set}" = set; then :
22072   $as_echo_n "(cached) " >&6
22073 else
22074   if test $in_tree_ld = yes ; then
22075   gcc_cv_ld_hidden=no
22076   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 \
22077      && test $in_tree_ld_is_elf = yes; then
22078      gcc_cv_ld_hidden=yes
22079   fi
22080 else
22081   gcc_cv_ld_hidden=yes
22082   if test x"$ld_is_gold" = xyes; then
22083     :
22084   elif echo "$ld_ver" | grep GNU > /dev/null; then
22085     if test 0"$ld_date" -lt 20020404; then
22086       if test -n "$ld_date"; then
22087         # If there was date string, but was earlier than 2002-04-04, fail
22088         gcc_cv_ld_hidden=no
22089       elif test -z "$ld_vers"; then
22090         # If there was no date string nor ld version number, something is wrong
22091         gcc_cv_ld_hidden=no
22092       else
22093         test -z "$ld_vers_patch" && ld_vers_patch=0
22094         if test "$ld_vers_major" -lt 2; then
22095           gcc_cv_ld_hidden=no
22096         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22097           gcc_cv_ld_hidden="no"
22098         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22099           gcc_cv_ld_hidden=no
22100         fi
22101       fi
22102     fi
22103   else
22104     case "${target}" in
22105       *-*-darwin*)
22106         # Darwin ld has some visibility support.
22107         gcc_cv_ld_hidden=yes
22108         ;;
22109       hppa64*-*-hpux* | ia64*-*-hpux*)
22110         gcc_cv_ld_hidden=yes
22111         ;;
22112       *-*-solaris2.8*)
22113         # .hidden support was backported to Solaris 8, starting with ld
22114         # version 1.276.
22115         if test "$ld_vers_minor" -ge 276; then
22116           gcc_cv_ld_hidden=yes
22117         else
22118           gcc_cv_ld_hidden=no
22119         fi
22120         ;;
22121       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22122         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22123         # .symbolic was only added in Solaris 9 12/02.
22124         gcc_cv_ld_hidden=yes
22125         ;;
22126       *)
22127         gcc_cv_ld_hidden=no
22128         ;;
22129     esac
22130   fi
22131 fi
22132 fi
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22134 $as_echo "$gcc_cv_ld_hidden" >&6; }
22135 libgcc_visibility=no
22136
22137
22138 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22139   libgcc_visibility=yes
22140
22141 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22142
22143 fi
22144
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22146 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22147 gcc_cv_ld_ro_rw_mix=unknown
22148 if test $in_tree_ld = yes ; then
22149   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 \
22150      && test $in_tree_ld_is_elf = yes; then
22151     gcc_cv_ld_ro_rw_mix=read-write
22152   fi
22153 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22154   echo '.section myfoosect, "a"' > conftest1.s
22155   echo '.section myfoosect, "aw"' > conftest2.s
22156   echo '.byte 1' >> conftest2.s
22157   echo '.section myfoosect, "a"' > conftest3.s
22158   echo '.byte 0' >> conftest3.s
22159   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22160      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22161      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22162      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22163         conftest2.o conftest3.o > /dev/null 2>&1; then
22164     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22165                          | sed -e '/myfoosect/!d' -e N`
22166     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22167       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22168         gcc_cv_ld_ro_rw_mix=read-only
22169       else
22170         gcc_cv_ld_ro_rw_mix=read-write
22171       fi
22172     fi
22173   fi
22174   rm -f conftest.* conftest[123].*
22175 fi
22176 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22177
22178 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22179
22180 fi
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22182 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22183
22184 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22186 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22187 if test "${gcc_cv_as_leb128+set}" = set; then :
22188   $as_echo_n "(cached) " >&6
22189 else
22190   gcc_cv_as_leb128=no
22191     if test $in_tree_gas = yes; then
22192     if test $in_tree_gas_is_elf = yes \
22193   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22194   then gcc_cv_as_leb128=yes
22195 fi
22196   elif test x$gcc_cv_as != x; then
22197     $as_echo '  .data
22198         .uleb128 L2 - L1
22199 L1:
22200         .uleb128 1280
22201         .sleb128 -1010
22202 L2:' > conftest.s
22203     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22204   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22205   (eval $ac_try) 2>&5
22206   ac_status=$?
22207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22208   test $ac_status = 0; }; }
22209     then
22210         # GAS versions before 2.11 do not support uleb128,
22211   # despite appearing to.
22212   # ??? There exists an elf-specific test that will crash
22213   # the assembler.  Perhaps it's better to figure out whether
22214   # arbitrary sections are supported and try the test.
22215   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22216   if echo "$as_ver" | grep GNU > /dev/null; then
22217     as_vers=`echo $as_ver | sed -n \
22218         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22219     as_major=`expr "$as_vers" : '\([0-9]*\)'`
22220     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22221     if test $as_major -eq 2 && test $as_minor -lt 11
22222     then :
22223     else gcc_cv_as_leb128=yes
22224     fi
22225   fi
22226     else
22227       echo "configure: failed program was" >&5
22228       cat conftest.s >&5
22229     fi
22230     rm -f conftest.o conftest.s
22231   fi
22232 fi
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22234 $as_echo "$gcc_cv_as_leb128" >&6; }
22235 if test $gcc_cv_as_leb128 = yes; then
22236
22237 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22238
22239 fi
22240
22241 # Check if we have assembler support for unwind directives.
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22243 $as_echo_n "checking assembler for cfi directives... " >&6; }
22244 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22245   $as_echo_n "(cached) " >&6
22246 else
22247   gcc_cv_as_cfi_directive=no
22248   if test x$gcc_cv_as != x; then
22249     $as_echo '  .text
22250         .cfi_startproc
22251         .cfi_offset 0, 0
22252         .cfi_same_value 1
22253         .cfi_def_cfa 1, 2
22254         .cfi_escape 1, 2, 3, 4, 5
22255         .cfi_endproc' > conftest.s
22256     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22257   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22258   (eval $ac_try) 2>&5
22259   ac_status=$?
22260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22261   test $ac_status = 0; }; }
22262     then
22263         case "$target" in
22264   *-*-solaris*)
22265     # If the linker used on Solaris (like Sun ld) isn't capable of merging
22266     # read-only and read-write sections, we need to make sure that the
22267     # assembler used emits read-write .eh_frame sections.
22268     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22269       if test "x$gcc_cv_objdump" != x; then
22270         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22271                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22272           gcc_cv_as_cfi_directive=no
22273         else
22274           case "$target" in
22275             i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22276               # On Solaris/x86, make sure that GCC and gas agree on using
22277               # read-only .eh_frame sections for 64-bit.
22278               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22279                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22280                         sed -e /.eh_frame/!d -e N | \
22281                         grep READONLY > /dev/null; then
22282                 gcc_cv_as_cfi_directive=yes
22283               else
22284                 gcc_cv_as_cfi_directive=no
22285               fi
22286               ;;
22287             *)
22288               gcc_cv_as_cfi_directive=yes
22289               ;;
22290           esac
22291         fi
22292       else
22293         # no objdump, err on the side of caution
22294         gcc_cv_as_cfi_directive=no
22295       fi
22296     else
22297       gcc_cv_as_cfi_directive=yes
22298     fi
22299     ;;
22300   *-*-*)
22301     gcc_cv_as_cfi_directive=yes
22302     ;;
22303 esac
22304     else
22305       echo "configure: failed program was" >&5
22306       cat conftest.s >&5
22307     fi
22308     rm -f conftest.o conftest.s
22309   fi
22310 fi
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22312 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22313
22314 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22316 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22317 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22318   $as_echo_n "(cached) " >&6
22319 else
22320   gcc_cv_as_cfi_advance_working=no
22321   if test x$gcc_cv_as != x; then
22322     $as_echo '  .text
22323         .cfi_startproc
22324         .cfi_adjust_cfa_offset 64
22325         .skip 75040, 0
22326         .cfi_adjust_cfa_offset 128
22327         .cfi_endproc' > conftest.s
22328     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22329   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22330   (eval $ac_try) 2>&5
22331   ac_status=$?
22332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22333   test $ac_status = 0; }; }
22334     then
22335
22336 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22337     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
22338    gcc_cv_as_cfi_advance_working=yes
22339 fi
22340
22341     else
22342       echo "configure: failed program was" >&5
22343       cat conftest.s >&5
22344     fi
22345     rm -f conftest.o conftest.s
22346   fi
22347 fi
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22349 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22350
22351 else
22352   # no objdump, err on the side of caution
22353   gcc_cv_as_cfi_advance_working=no
22354 fi
22355
22356
22357 cat >>confdefs.h <<_ACEOF
22358 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22359        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22360 _ACEOF
22361
22362
22363
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22365 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22366 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22367   $as_echo_n "(cached) " >&6
22368 else
22369   gcc_cv_as_cfi_personality_directive=no
22370   if test x$gcc_cv_as != x; then
22371     $as_echo '  .text
22372         .cfi_startproc
22373         .cfi_personality 0, symbol
22374         .cfi_endproc' > conftest.s
22375     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22376   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22377   (eval $ac_try) 2>&5
22378   ac_status=$?
22379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22380   test $ac_status = 0; }; }
22381     then
22382         gcc_cv_as_cfi_personality_directive=yes
22383     else
22384       echo "configure: failed program was" >&5
22385       cat conftest.s >&5
22386     fi
22387     rm -f conftest.o conftest.s
22388   fi
22389 fi
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22391 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22392
22393
22394 cat >>confdefs.h <<_ACEOF
22395 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22396     then echo 1; else echo 0; fi`
22397 _ACEOF
22398
22399
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22401 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22402 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22403   $as_echo_n "(cached) " >&6
22404 else
22405   gcc_cv_as_cfi_sections_directive=no
22406   if test x$gcc_cv_as != x; then
22407     $as_echo '  .text
22408         .cfi_sections .debug_frame, .eh_frame
22409         .cfi_startproc
22410         .cfi_endproc' > conftest.s
22411     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22412   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22413   (eval $ac_try) 2>&5
22414   ac_status=$?
22415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22416   test $ac_status = 0; }; }
22417     then
22418         case $target_os in
22419   win32 | pe | cygwin* | mingw32* | uwin*)
22420     # Need to check that we generated the correct relocation for the
22421     # .debug_frame section.  This was fixed for binutils 2.21.
22422     gcc_cv_as_cfi_sections_directive=no
22423     if test "x$gcc_cv_objdump" != x; then
22424      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22425         grep secrel > /dev/null; then
22426       gcc_cv_as_cfi_sections_directive=yes
22427      fi
22428     fi
22429     ;;
22430   *)
22431     gcc_cv_as_cfi_sections_directive=yes
22432     ;;
22433 esac
22434     else
22435       echo "configure: failed program was" >&5
22436       cat conftest.s >&5
22437     fi
22438     rm -f conftest.o conftest.s
22439   fi
22440 fi
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22442 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22443
22444
22445
22446 cat >>confdefs.h <<_ACEOF
22447 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22448     then echo 1; else echo 0; fi`
22449 _ACEOF
22450
22451
22452 # GAS versions up to and including 2.11.0 may mis-optimize
22453 # .eh_frame data.
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22455 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22456 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22457   $as_echo_n "(cached) " >&6
22458 else
22459   gcc_cv_as_eh_frame=no
22460     if test $in_tree_gas = yes; then
22461     if test $in_tree_gas_is_elf = yes \
22462   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22463   then gcc_cv_as_eh_frame=yes
22464 fi
22465   elif test x$gcc_cv_as != x; then
22466     $as_echo '  .text
22467 .LFB1:
22468         .4byte  0
22469 .L1:
22470         .4byte  0
22471 .LFE1:
22472         .section        .eh_frame,"aw",@progbits
22473 __FRAME_BEGIN__:
22474         .4byte  .LECIE1-.LSCIE1
22475 .LSCIE1:
22476         .4byte  0x0
22477         .byte   0x1
22478         .ascii "z\0"
22479         .byte   0x1
22480         .byte   0x78
22481         .byte   0x1a
22482         .byte   0x0
22483         .byte   0x4
22484         .4byte  1
22485         .p2align 1
22486 .LECIE1:
22487 .LSFDE1:
22488         .4byte  .LEFDE1-.LASFDE1
22489 .LASFDE1:
22490         .4byte  .LASFDE1-__FRAME_BEGIN__
22491         .4byte  .LFB1
22492         .4byte  .LFE1-.LFB1
22493         .byte   0x4
22494         .4byte  .LFE1-.LFB1
22495         .byte   0x4
22496         .4byte  .L1-.LFB1
22497 .LEFDE1:' > conftest.s
22498     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22499   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22500   (eval $ac_try) 2>&5
22501   ac_status=$?
22502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22503   test $ac_status = 0; }; }
22504     then
22505           cat > conftest.lit <<EOF
22506  0000 10000000 00000000 017a0001 781a0004  .........z..x...
22507  0010 01000000 12000000 18000000 00000000  ................
22508  0020 08000000 04080000 0044               .........D      
22509 EOF
22510 cat > conftest.big <<EOF
22511  0000 00000010 00000000 017a0001 781a0004  .........z..x...
22512  0010 00000001 00000012 00000018 00000000  ................
22513  0020 00000008 04000000 0844               .........D      
22514 EOF
22515   # If the assembler didn't choke, and we can objdump,
22516   # and we got the correct data, then succeed.
22517   # The text in the here-document typically retains its unix-style line
22518   # endings, while the output of objdump will use host line endings.
22519   # Therefore, use diff -b for the comparisons.
22520   if test x$gcc_cv_objdump != x \
22521   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22522      | tail -3 > conftest.got \
22523   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22524     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22525   then
22526     gcc_cv_as_eh_frame=yes
22527   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22528   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22529   (eval $ac_try) 2>&5
22530   ac_status=$?
22531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22532   test $ac_status = 0; }; }; then
22533     gcc_cv_as_eh_frame=buggy
22534   else
22535     # Uh oh, what do we do now?
22536     gcc_cv_as_eh_frame=no
22537   fi
22538     else
22539       echo "configure: failed program was" >&5
22540       cat conftest.s >&5
22541     fi
22542     rm -f conftest.o conftest.s
22543   fi
22544 fi
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22546 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22547
22548
22549 if test $gcc_cv_as_eh_frame = buggy; then
22550
22551 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22552
22553 fi
22554
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22556 $as_echo_n "checking assembler for section merging support... " >&6; }
22557 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22558   $as_echo_n "(cached) " >&6
22559 else
22560   gcc_cv_as_shf_merge=no
22561     if test $in_tree_gas = yes; then
22562     if test $in_tree_gas_is_elf = yes \
22563   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22564   then gcc_cv_as_shf_merge=yes
22565 fi
22566   elif test x$gcc_cv_as != x; then
22567     $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22568     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22569   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22570   (eval $ac_try) 2>&5
22571   ac_status=$?
22572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22573   test $ac_status = 0; }; }
22574     then
22575         gcc_cv_as_shf_merge=yes
22576     else
22577       echo "configure: failed program was" >&5
22578       cat conftest.s >&5
22579     fi
22580     rm -f conftest.o conftest.s
22581   fi
22582 fi
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22584 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22585
22586 if test $gcc_cv_as_shf_merge = no; then
22587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22588 $as_echo_n "checking assembler for section merging support... " >&6; }
22589 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22590   $as_echo_n "(cached) " >&6
22591 else
22592   gcc_cv_as_shf_merge=no
22593     if test $in_tree_gas = yes; then
22594     if test $in_tree_gas_is_elf = yes \
22595   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22596   then gcc_cv_as_shf_merge=yes
22597 fi
22598   elif test x$gcc_cv_as != x; then
22599     $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22600     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22601   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22602   (eval $ac_try) 2>&5
22603   ac_status=$?
22604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22605   test $ac_status = 0; }; }
22606     then
22607         gcc_cv_as_shf_merge=yes
22608     else
22609       echo "configure: failed program was" >&5
22610       cat conftest.s >&5
22611     fi
22612     rm -f conftest.o conftest.s
22613   fi
22614 fi
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22616 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22617
22618 fi
22619
22620 cat >>confdefs.h <<_ACEOF
22621 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22622 _ACEOF
22623
22624
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22626 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22627 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22628   $as_echo_n "(cached) " >&6
22629 else
22630   gcc_cv_as_comdat_group=no
22631     if test $in_tree_gas = yes; then
22632     if test $in_tree_gas_is_elf = yes \
22633   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22634   then gcc_cv_as_comdat_group=yes
22635 fi
22636   elif test x$gcc_cv_as != x; then
22637     $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22638     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22639   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22640   (eval $ac_try) 2>&5
22641   ac_status=$?
22642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22643   test $ac_status = 0; }; }
22644     then
22645         gcc_cv_as_comdat_group=yes
22646     else
22647       echo "configure: failed program was" >&5
22648       cat conftest.s >&5
22649     fi
22650     rm -f conftest.o conftest.s
22651   fi
22652 fi
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22654 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22655
22656 if test $gcc_cv_as_comdat_group = yes; then
22657   gcc_cv_as_comdat_group_percent=no
22658   gcc_cv_as_comdat_group_group=no
22659 else
22660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22661 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22662 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22663   $as_echo_n "(cached) " >&6
22664 else
22665   gcc_cv_as_comdat_group_percent=no
22666     if test $in_tree_gas = yes; then
22667     if test $in_tree_gas_is_elf = yes \
22668   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22669   then gcc_cv_as_comdat_group_percent=yes
22670 fi
22671   elif test x$gcc_cv_as != x; then
22672     $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22673     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22674   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22675   (eval $ac_try) 2>&5
22676   ac_status=$?
22677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22678   test $ac_status = 0; }; }
22679     then
22680         gcc_cv_as_comdat_group_percent=yes
22681     else
22682       echo "configure: failed program was" >&5
22683       cat conftest.s >&5
22684     fi
22685     rm -f conftest.o conftest.s
22686   fi
22687 fi
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22689 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22690
22691  if test $gcc_cv_as_comdat_group_percent = yes; then
22692    gcc_cv_as_comdat_group_group=no
22693  else
22694    case "${target}" in
22695      # Sun as uses a completely different syntax.
22696      *-*-solaris2*)
22697        case "${target}" in
22698          sparc*-*-solaris2*)
22699            conftest_s='
22700                .group foo,".text%foo",#comdat
22701                .section ".text%foo", #alloc,#execinstr,#progbits
22702                .globl foo
22703              foo:
22704              '
22705            ;;
22706          i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22707            conftest_s='
22708                .group foo,.text%foo,#comdat
22709                .section .text%foo, "ax", @progbits
22710                .globl  foo
22711              foo:
22712              '
22713            ;;
22714        esac
22715        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22716 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22717 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22718   $as_echo_n "(cached) " >&6
22719 else
22720   gcc_cv_as_comdat_group_group=no
22721   if test x$gcc_cv_as != x; then
22722     $as_echo "$conftest_s" > conftest.s
22723     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22724   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22725   (eval $ac_try) 2>&5
22726   ac_status=$?
22727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22728   test $ac_status = 0; }; }
22729     then
22730         gcc_cv_as_comdat_group_group=yes
22731     else
22732       echo "configure: failed program was" >&5
22733       cat conftest.s >&5
22734     fi
22735     rm -f conftest.o conftest.s
22736   fi
22737 fi
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22739 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22740
22741        ;;
22742    esac
22743  fi
22744 fi
22745 if test x"$ld_is_gold" = xyes; then
22746   comdat_group=yes
22747 elif test $in_tree_ld = yes ; then
22748   comdat_group=no
22749   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 \
22750      && test $in_tree_ld_is_elf = yes; then
22751      comdat_group=yes
22752   fi
22753 elif echo "$ld_ver" | grep GNU > /dev/null; then
22754   comdat_group=yes
22755   if test 0"$ld_date" -lt 20050308; then
22756     if test -n "$ld_date"; then
22757       # If there was date string, but was earlier than 2005-03-08, fail
22758       comdat_group=no
22759     elif test "$ld_vers_major" -lt 2; then
22760       comdat_group=no
22761     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22762       comdat_group=no
22763     fi
22764   fi
22765 else
22766   case "${target}" in
22767     *-*-solaris2.1[1-9]*)
22768       comdat_group=no
22769       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22770       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22771       # version 1.688.
22772       #
22773       # If using Sun as for COMDAT group as emitted by GCC, one needs at
22774       # least ld version 1.2267.
22775       if test "$ld_vers_major" -gt 1; then
22776         comdat_group=yes
22777       elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22778         comdat_group=yes
22779       elif test "$ld_vers_minor" -ge 2267; then
22780         comdat_group=yes
22781       fi
22782       ;;
22783     *)
22784       # Assume linkers other than GNU ld don't support COMDAT group.
22785       comdat_group=no
22786       ;;
22787   esac
22788 fi
22789 # Allow overriding the automatic COMDAT group tests above.
22790 # Check whether --enable-comdat was given.
22791 if test "${enable_comdat+set}" = set; then :
22792   enableval=$enable_comdat; comdat_group="$enable_comdat"
22793 fi
22794
22795 if test $comdat_group = no; then
22796   gcc_cv_as_comdat_group=no
22797   gcc_cv_as_comdat_group_percent=no
22798   gcc_cv_as_comdat_group_group=no
22799 fi
22800
22801 cat >>confdefs.h <<_ACEOF
22802 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22803     || test $gcc_cv_as_comdat_group_percent = yes \
22804     || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22805 _ACEOF
22806
22807
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22809 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22810 if test "${gcc_cv_as_discriminator+set}" = set; then :
22811   $as_echo_n "(cached) " >&6
22812 else
22813   gcc_cv_as_discriminator=no
22814     if test $in_tree_gas = yes; then
22815     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22816   then gcc_cv_as_discriminator=yes
22817 fi
22818   elif test x$gcc_cv_as != x; then
22819     $as_echo '  .text
22820         .file 1 "conf.c"
22821         .loc 1 1 0 discriminator 1' > conftest.s
22822     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22823   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22824   (eval $ac_try) 2>&5
22825   ac_status=$?
22826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22827   test $ac_status = 0; }; }
22828     then
22829         gcc_cv_as_discriminator=yes
22830     else
22831       echo "configure: failed program was" >&5
22832       cat conftest.s >&5
22833     fi
22834     rm -f conftest.o conftest.s
22835   fi
22836 fi
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22838 $as_echo "$gcc_cv_as_discriminator" >&6; }
22839 if test $gcc_cv_as_discriminator = yes; then
22840
22841 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22842
22843 fi
22844
22845 # Thread-local storage - the check is heavily parameterized.
22846 conftest_s=
22847 tls_first_major=
22848 tls_first_minor=
22849 tls_as_opt=
22850 case "$target" in
22851   alpha*-*-*)
22852     conftest_s='
22853         .section ".tdata","awT",@progbits
22854 foo:    .long   25
22855         .text
22856         ldq     $27,__tls_get_addr($29)         !literal!1
22857         lda     $16,foo($29)                    !tlsgd!1
22858         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
22859         ldq     $27,__tls_get_addr($29)         !literal!2
22860         lda     $16,foo($29)                    !tlsldm!2
22861         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
22862         ldq     $1,foo($29)                     !gotdtprel
22863         ldah    $2,foo($29)                     !dtprelhi
22864         lda     $3,foo($2)                      !dtprello
22865         lda     $4,foo($29)                     !dtprel
22866         ldq     $1,foo($29)                     !gottprel
22867         ldah    $2,foo($29)                     !tprelhi
22868         lda     $3,foo($2)                      !tprello
22869         lda     $4,foo($29)                     !tprel'
22870         tls_first_major=2
22871         tls_first_minor=13
22872         tls_as_opt=--fatal-warnings
22873         ;;
22874   cris-*-*|crisv32-*-*)
22875     conftest_s='
22876         .section ".tdata","awT",@progbits
22877 x:      .long   25
22878         .text
22879         move.d x:IE,$r10
22880         nop'
22881         tls_first_major=2
22882         tls_first_minor=20
22883         tls_as_opt=--fatal-warnings
22884         ;;
22885   frv*-*-*)
22886     conftest_s='
22887         .section ".tdata","awT",@progbits
22888 x:      .long   25
22889         .text
22890         call    #gettlsoff(x)'
22891         tls_first_major=2
22892         tls_first_minor=14
22893         ;;
22894   hppa*-*-linux*)
22895     conftest_s='
22896 t1:     .reg    %r20
22897 t2:     .reg    %r21
22898 gp:     .reg    %r19
22899         .section ".tdata","awT",@progbits
22900 foo:    .long   25
22901         .text
22902         .align  4
22903         addil LT%foo-$tls_gdidx$,gp
22904         ldo RT%foo-$tls_gdidx$(%r1),%arg0
22905         b __tls_get_addr
22906         nop
22907         addil LT%foo-$tls_ldidx$,gp
22908         b __tls_get_addr
22909         ldo RT%foo-$tls_ldidx$(%r1),%arg0
22910         addil LR%foo-$tls_dtpoff$,%ret0
22911         ldo RR%foo-$tls_dtpoff$(%r1),%t1
22912         mfctl %cr27,%t1
22913         addil LT%foo-$tls_ieoff$,gp
22914         ldw RT%foo-$tls_ieoff$(%r1),%t2
22915         add %t1,%t2,%t3
22916         mfctl %cr27,%t1
22917         addil LR%foo-$tls_leoff$,%t1
22918         ldo RR%foo-$tls_leoff$(%r1),%t2'
22919         tls_first_major=2
22920         tls_first_minor=15
22921         tls_as_opt=--fatal-warnings
22922         ;;
22923   arm*-*-*)
22924     conftest_s='
22925         .section ".tdata","awT",%progbits
22926 foo:    .long   25
22927         .text
22928 .word foo(gottpoff)
22929 .word foo(tpoff)
22930 .word foo(tlsgd)
22931 .word foo(tlsldm)
22932 .word foo(tlsldo)'
22933         tls_first_major=2
22934         tls_first_minor=17
22935         ;;
22936   i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
22937     case "$target" in
22938       i[34567]86-*-solaris2.*)
22939         on_solaris=yes
22940         tga_func=___tls_get_addr
22941         ;;
22942       x86_64-*-solaris2.1[0-9]*)
22943         on_solaris=yes
22944         tga_func=__tls_get_addr
22945         ;;
22946       *)
22947         on_solaris=no
22948         ;;
22949     esac
22950     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22951       conftest_s='
22952         .section .tdata,"awt",@progbits'
22953       tls_first_major=0
22954       tls_first_minor=0
22955
22956 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22957
22958     else
22959       conftest_s='
22960         .section ".tdata","awT",@progbits'
22961       tls_first_major=2
22962       tls_first_minor=14
22963       tls_as_opt="--fatal-warnings"
22964     fi
22965     conftest_s="$conftest_s
22966 foo:    .long   25
22967         .text
22968         movl    %gs:0, %eax
22969         leal    foo@tlsgd(,%ebx,1), %eax
22970         leal    foo@tlsldm(%ebx), %eax
22971         leal    foo@dtpoff(%eax), %edx
22972         movl    foo@gottpoff(%ebx), %eax
22973         subl    foo@gottpoff(%ebx), %eax
22974         addl    foo@gotntpoff(%ebx), %eax
22975         movl    foo@indntpoff, %eax
22976         movl    \$foo@tpoff, %eax
22977         subl    \$foo@tpoff, %eax
22978         leal    foo@ntpoff(%ecx), %eax"
22979     ;;
22980   x86_64-*-*)
22981     conftest_s='
22982         .section ".tdata","awT",@progbits
22983 foo:    .long   25
22984         .text
22985         movq    %fs:0, %rax
22986         leaq    foo@TLSGD(%rip), %rdi
22987         leaq    foo@TLSLD(%rip), %rdi
22988         leaq    foo@DTPOFF(%rax), %rdx
22989         movq    foo@GOTTPOFF(%rip), %rax
22990         movq    $foo@TPOFF, %rax'
22991         tls_first_major=2
22992         tls_first_minor=14
22993         tls_as_opt=--fatal-warnings
22994         ;;
22995   ia64-*-*)
22996     conftest_s='
22997         .section ".tdata","awT",@progbits
22998 foo:    data8   25
22999         .text
23000         addl    r16 = @ltoff(@dtpmod(foo#)), gp
23001         addl    r17 = @ltoff(@dtprel(foo#)), gp
23002         addl    r18 = @ltoff(@tprel(foo#)), gp
23003         addl    r19 = @dtprel(foo#), gp
23004         adds    r21 = @dtprel(foo#), r13
23005         movl    r23 = @dtprel(foo#)
23006         addl    r20 = @tprel(foo#), gp
23007         adds    r22 = @tprel(foo#), r13
23008         movl    r24 = @tprel(foo#)'
23009         tls_first_major=2
23010         tls_first_minor=13
23011         tls_as_opt=--fatal-warnings
23012         ;;
23013   mips*-*-*)
23014     conftest_s='
23015         .section .tdata,"awT",@progbits
23016 x:
23017         .word 2
23018         .text
23019         addiu $4, $28, %tlsgd(x)
23020         addiu $4, $28, %tlsldm(x)
23021         lui $4, %dtprel_hi(x)
23022         addiu $4, $4, %dtprel_lo(x)
23023         lw $4, %gottprel(x)($28)
23024         lui $4, %tprel_hi(x)
23025         addiu $4, $4, %tprel_lo(x)'
23026         tls_first_major=2
23027         tls_first_minor=16
23028         tls_as_opt='-32 --fatal-warnings'
23029         ;;
23030   m68k-*-*)
23031     conftest_s='
23032         .section .tdata,"awT",@progbits
23033 x:
23034         .word 2
23035         .text
23036 foo:
23037         move.l x@TLSGD(%a5),%a0
23038         move.l x@TLSLDM(%a5),%a0
23039         move.l x@TLSLDO(%a5),%a0
23040         move.l x@TLSIE(%a5),%a0
23041         move.l x@TLSLE(%a5),%a0'
23042         tls_first_major=2
23043         tls_first_minor=19
23044         tls_as_opt='--fatal-warnings'
23045         ;;
23046   powerpc-*-*)
23047     conftest_s='
23048         .section ".tdata","awT",@progbits
23049         .align 2
23050 ld0:    .space 4
23051 ld1:    .space 4
23052 x1:     .space 4
23053 x2:     .space 4
23054 x3:     .space 4
23055         .text
23056         addi 3,31,ld0@got@tlsgd
23057         bl __tls_get_addr
23058         addi 3,31,x1@got@tlsld
23059         bl __tls_get_addr
23060         addi 9,3,x1@dtprel
23061         addis 9,3,x2@dtprel@ha
23062         addi 9,9,x2@dtprel@l
23063         lwz 9,x3@got@tprel(31)
23064         add 9,9,x@tls
23065         addi 9,2,x1@tprel
23066         addis 9,2,x2@tprel@ha
23067         addi 9,9,x2@tprel@l'
23068         tls_first_major=2
23069         tls_first_minor=14
23070         tls_as_opt="-a32 --fatal-warnings"
23071         ;;
23072   powerpc64-*-*)
23073     conftest_s='
23074         .section ".tdata","awT",@progbits
23075         .align 3
23076 ld0:    .space 8
23077 ld1:    .space 8
23078 x1:     .space 8
23079 x2:     .space 8
23080 x3:     .space 8
23081         .text
23082         addi 3,2,ld0@got@tlsgd
23083         bl .__tls_get_addr
23084         nop
23085         addi 3,2,ld1@toc
23086         bl .__tls_get_addr
23087         nop
23088         addi 3,2,x1@got@tlsld
23089         bl .__tls_get_addr
23090         nop
23091         addi 9,3,x1@dtprel
23092         bl .__tls_get_addr
23093         nop
23094         addis 9,3,x2@dtprel@ha
23095         addi 9,9,x2@dtprel@l
23096         bl .__tls_get_addr
23097         nop
23098         ld 9,x3@got@dtprel(2)
23099         add 9,9,3
23100         bl .__tls_get_addr
23101         nop'
23102         tls_first_major=2
23103         tls_first_minor=14
23104         tls_as_opt="-a64 --fatal-warnings"
23105         ;;
23106   s390-*-*)
23107     conftest_s='
23108         .section ".tdata","awT",@progbits
23109 foo:    .long   25
23110         .text
23111         .long   foo@TLSGD
23112         .long   foo@TLSLDM
23113         .long   foo@DTPOFF
23114         .long   foo@NTPOFF
23115         .long   foo@GOTNTPOFF
23116         .long   foo@INDNTPOFF
23117         l       %r1,foo@GOTNTPOFF(%r12)
23118         l       %r1,0(%r1):tls_load:foo
23119         bas     %r14,0(%r1,%r13):tls_gdcall:foo
23120         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
23121         tls_first_major=2
23122         tls_first_minor=14
23123         tls_as_opt="-m31 --fatal-warnings"
23124         ;;
23125   s390x-*-*)
23126     conftest_s='
23127         .section ".tdata","awT",@progbits
23128 foo:    .long   25
23129         .text
23130         .quad   foo@TLSGD
23131         .quad   foo@TLSLDM
23132         .quad   foo@DTPOFF
23133         .quad   foo@NTPOFF
23134         .quad   foo@GOTNTPOFF
23135         lg      %r1,foo@GOTNTPOFF(%r12)
23136         larl    %r1,foo@INDNTPOFF
23137         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
23138         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23139         tls_first_major=2
23140         tls_first_minor=14
23141         tls_as_opt="-m64 -Aesame --fatal-warnings"
23142         ;;
23143   sh-*-* | sh[34]-*-*)
23144     conftest_s='
23145         .section ".tdata","awT",@progbits
23146 foo:    .long   25
23147         .text
23148         .long   foo@TLSGD
23149         .long   foo@TLSLDM
23150         .long   foo@DTPOFF
23151         .long   foo@GOTTPOFF
23152         .long   foo@TPOFF'
23153         tls_first_major=2
23154         tls_first_minor=13
23155         tls_as_opt=--fatal-warnings
23156         ;;
23157   sparc*-*-*)
23158     case "$target" in
23159       sparc*-sun-solaris2.*)
23160         on_solaris=yes
23161         tga_func=__tls_get_addr
23162         ;;
23163       *)
23164         on_solaris=no
23165         ;;
23166     esac
23167     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23168       conftest_s='
23169         .section ".tdata",#alloc,#write,#tls'
23170         tls_first_major=0
23171         tls_first_minor=0
23172     else
23173       conftest_s='
23174         .section ".tdata","awT",@progbits'
23175         tls_first_major=2
23176         tls_first_minor=14
23177         tls_as_opt="-32 --fatal-warnings"
23178     fi
23179     conftest_s="$conftest_s
23180 foo:    .long   25
23181         .text
23182         sethi   %tgd_hi22(foo), %o0
23183         add     %o0, %tgd_lo10(foo), %o1
23184         add     %l7, %o1, %o0, %tgd_add(foo)
23185         call    __tls_get_addr, %tgd_call(foo)
23186         sethi   %tldm_hi22(foo), %l1
23187         add     %l1, %tldm_lo10(foo), %l2
23188         add     %l7, %l2, %o0, %tldm_add(foo)
23189         call    __tls_get_addr, %tldm_call(foo)
23190         sethi   %tldo_hix22(foo), %l3
23191         xor     %l3, %tldo_lox10(foo), %l4
23192         add     %o0, %l4, %l5, %tldo_add(foo)
23193         sethi   %tie_hi22(foo), %o3
23194         add     %o3, %tie_lo10(foo), %o3
23195         ld      [%l7 + %o3], %o2, %tie_ld(foo)
23196         add     %g7, %o2, %o4, %tie_add(foo)
23197         sethi   %tle_hix22(foo), %l1
23198         xor     %l1, %tle_lox10(foo), %o5
23199         ld      [%g7 + %o5], %o1"
23200         ;;
23201   xtensa*-*-*)
23202     conftest_s='
23203         .section ".tdata","awT",@progbits
23204 foo:    .long   25
23205         .text
23206         movi    a8, foo@TLSFUNC
23207         movi    a10, foo@TLSARG
23208         callx8.tls a8, foo@TLSCALL'
23209         tls_first_major=2
23210         tls_first_minor=19
23211         ;;
23212 esac
23213 set_have_as_tls=no
23214 if test "x$enable_tls" = xno ; then
23215   : # TLS explicitly disabled.
23216 elif test "x$enable_tls" = xyes ; then
23217   set_have_as_tls=yes # TLS explicitly enabled.
23218 elif test -z "$tls_first_major"; then
23219   : # If we don't have a check, assume no support.
23220 else
23221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23222 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23223 if test "${gcc_cv_as_tls+set}" = set; then :
23224   $as_echo_n "(cached) " >&6
23225 else
23226   gcc_cv_as_tls=no
23227     if test $in_tree_gas = yes; then
23228     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23229   then gcc_cv_as_tls=yes
23230 fi
23231   elif test x$gcc_cv_as != x; then
23232     $as_echo "$conftest_s" > conftest.s
23233     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23234   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23235   (eval $ac_try) 2>&5
23236   ac_status=$?
23237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23238   test $ac_status = 0; }; }
23239     then
23240         gcc_cv_as_tls=yes
23241     else
23242       echo "configure: failed program was" >&5
23243       cat conftest.s >&5
23244     fi
23245     rm -f conftest.o conftest.s
23246   fi
23247 fi
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23249 $as_echo "$gcc_cv_as_tls" >&6; }
23250 if test $gcc_cv_as_tls = yes; then
23251   set_have_as_tls=yes
23252 fi
23253 fi
23254 case "$target" in
23255   *-*-irix6*)
23256     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23257     # with TLS support are in use, native TLS cannot work.
23258     set_have_as_tls=no
23259     ;;
23260   *-*-osf*)
23261     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23262     # gld with TLS support are in use, native TLS cannot work.
23263     set_have_as_tls=no
23264     ;;
23265   # TLS was introduced in the Solaris 9 FCS release and backported to
23266   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
23267   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23268   # ld and GCC don't support any longer.
23269   *-*-solaris2.*)
23270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23271 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23272     ld_tls_support=no
23273     # Check ld and ld.so.1 TLS support.
23274     if echo "$ld_ver" | grep GNU > /dev/null; then
23275       # Assume all interesting versions of GNU ld have TLS support.
23276       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23277       ld_tls_support=yes
23278     else
23279       case "$target" in
23280         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23281         i?86-*-solaris2.8)
23282           min_tls_ld_vers_minor=280
23283           ;;
23284         # Solaris 8/SPARC ld has TLS support since version 1.272.
23285         sparc*-*-solaris2.8)
23286           min_tls_ld_vers_minor=272
23287           ;;
23288         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23289         i?86-*-solaris2.9)
23290           min_tls_ld_vers_minor=374
23291           ;;
23292         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23293         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23294           min_tls_ld_vers_minor=343
23295           ;;
23296       esac
23297       if test "$ld_vers_major" -gt 1 || \
23298         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23299         ld_tls_support=yes
23300       else
23301         set_have_as_tls=no
23302       fi
23303     fi
23304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23305 $as_echo "$ld_tls_support" >&6; }
23306
23307     save_LIBS="$LIBS"
23308     save_LDFLAGS="$LDFLAGS"
23309     LIBS=
23310     LDFLAGS=
23311
23312     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23313 $as_echo_n "checking alternate thread library... " >&6; }
23314     case "$target" in
23315       # TLS support was backported to Solaris 8 patches, but only lives in
23316       # the alternate thread library which became the default in Solaris 9.
23317       # We want to always use that, irrespective of TLS support.
23318       *-*-solaris2.8)
23319         # Take multilib subdir into account.  There's no spec to handle
23320         # this.  The 64 symlink exists since Solaris 8.
23321         lwp_dir=/usr/lib/lwp
23322         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23323         LDFLAGS="-L$lwp_dir -R$lwp_dir"
23324         ;;
23325       *-*-solaris2*)
23326         lwp_dir="none"
23327         lwp_spec=""
23328         ;;
23329     esac
23330     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23331
23332 cat >>confdefs.h <<_ACEOF
23333 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23334 _ACEOF
23335
23336     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23337 $as_echo "$lwp_dir" >&6; }
23338
23339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23340 $as_echo_n "checking library containing $tga_func... " >&6; }
23341     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23342     # (32-bit x86) only lived in libthread, so check for that.  Keep
23343     # set_have_as_tls if found, disable if not.
23344     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23346 $as_echo_n "checking for library containing $tga_func... " >&6; }
23347 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23348   $as_echo_n "(cached) " >&6
23349 else
23350   ac_func_search_save_LIBS=$LIBS
23351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23352 /* end confdefs.h.  */
23353
23354 /* Override any GCC internal prototype to avoid an error.
23355    Use char because int might match the return type of a GCC
23356    builtin and then its argument prototype would still apply.  */
23357 #ifdef __cplusplus
23358 extern "C"
23359 #endif
23360 char $tga_func ();
23361 int
23362 main ()
23363 {
23364 return $tga_func ();
23365   ;
23366   return 0;
23367 }
23368 _ACEOF
23369 for ac_lib in '' thread; do
23370   if test -z "$ac_lib"; then
23371     ac_res="none required"
23372   else
23373     ac_res=-l$ac_lib
23374     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23375   fi
23376   if ac_fn_c_try_link "$LINENO"; then :
23377   eval "$as_ac_Search=\$ac_res"
23378 fi
23379 rm -f core conftest.err conftest.$ac_objext \
23380     conftest$ac_exeext
23381   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23382   break
23383 fi
23384 done
23385 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23386
23387 else
23388   eval "$as_ac_Search=no"
23389 fi
23390 rm conftest.$ac_ext
23391 LIBS=$ac_func_search_save_LIBS
23392 fi
23393 eval ac_res=\$$as_ac_Search
23394                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23395 $as_echo "$ac_res" >&6; }
23396 eval ac_res=\$$as_ac_Search
23397 if test "$ac_res" != no; then :
23398   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23399
23400 else
23401   set_have_as_tls=no
23402 fi
23403
23404     # Clear LIBS if we cannot support TLS.
23405     if test $set_have_as_tls = no; then
23406       LIBS=
23407     fi
23408     # Always define LIB_TLS_SPEC, even without TLS support.
23409
23410 cat >>confdefs.h <<_ACEOF
23411 #define LIB_TLS_SPEC "$LIBS"
23412 _ACEOF
23413
23414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23415 $as_echo "$LIBS" >&6; }
23416
23417     LIBS="$save_LIBS"
23418     LDFLAGS="$save_LDFLAGS"
23419     ;;
23420 esac
23421 if test $set_have_as_tls = yes ; then
23422
23423 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23424
23425 fi
23426
23427 # Target-specific assembler checks.
23428
23429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23430 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23431 gcc_cv_ld_static_dynamic=no
23432 gcc_cv_ld_static_option='-Bstatic'
23433 gcc_cv_ld_dynamic_option='-Bdynamic'
23434 if test $in_tree_ld = yes ; then
23435   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
23436     gcc_cv_ld_static_dynamic=yes
23437   fi
23438 elif test x$gcc_cv_ld != x; then
23439   # Check if linker supports -Bstatic/-Bdynamic option
23440   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23441      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23442       gcc_cv_ld_static_dynamic=yes
23443   else
23444     case "$target" in
23445       # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23446       alpha*-dec-osf*)
23447         gcc_cv_ld_static_dynamic=yes
23448         gcc_cv_ld_static_option="-noso"
23449         gcc_cv_ld_dynamic_option="-so_archive"
23450         ;;
23451       # IRIX 6 ld supports -Bstatic/-Bdynamic.
23452       mips-sgi-irix6*)
23453         gcc_cv_ld_static_dynamic=yes
23454         ;;
23455       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23456       *-*-solaris2*)
23457         gcc_cv_ld_static_dynamic=yes
23458         ;;
23459     esac
23460   fi
23461 fi
23462 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23463
23464 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23465
23466
23467 cat >>confdefs.h <<_ACEOF
23468 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23469 _ACEOF
23470
23471
23472 cat >>confdefs.h <<_ACEOF
23473 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23474 _ACEOF
23475
23476 fi
23477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23478 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23479
23480 if test x"$demangler_in_ld" = xyes; then
23481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23482 $as_echo_n "checking linker --demangle support... " >&6; }
23483   gcc_cv_ld_demangle=no
23484   if test $in_tree_ld = yes; then
23485     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 \
23486       gcc_cv_ld_demangle=yes
23487     fi
23488   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23489     # Check if the GNU linker supports --demangle option
23490     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23491       gcc_cv_ld_demangle=yes
23492     fi
23493   fi
23494   if test x"$gcc_cv_ld_demangle" = xyes; then
23495
23496 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23497
23498   fi
23499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23500 $as_echo "$gcc_cv_ld_demangle" >&6; }
23501 fi
23502
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23504 $as_echo_n "checking linker plugin support... " >&6; }
23505 gcc_cv_lto_plugin=0
23506 if test -f liblto_plugin.la; then
23507   save_ld_ver="$ld_ver"
23508   save_ld_vers_major="$ld_vers_major"
23509   save_ld_vers_minor="$ld_vers_minor"
23510   save_ld_is_gold="$ld_is_gold"
23511
23512   ld_is_gold=no
23513
23514   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23515     ld_ver="GNU ld"
23516     # FIXME: ld_is_gold?
23517     ld_vers_major="$gcc_cv_gld_major_version"
23518     ld_vers_minor="$gcc_cv_gld_minor_version"
23519   else
23520     # Determine plugin linker version.
23521     # FIXME: Partial duplicate from above, generalize.
23522     ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23523     if echo "$ld_ver" | grep GNU > /dev/null; then
23524       if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23525         ld_is_gold=yes
23526         ld_vers=`echo $ld_ver | sed -n \
23527             -e 's,^[^)]*[        ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23528       else
23529         ld_vers=`echo $ld_ver | sed -n \
23530             -e 's,^.*[   ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23531       fi
23532       ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23533       ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23534     fi
23535   fi
23536
23537   # Determine plugin support.
23538   if echo "$ld_ver" | grep GNU > /dev/null; then
23539     # Require GNU ld or gold 2.21+ for plugin support by default.
23540     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23541       gcc_cv_lto_plugin=2
23542     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23543     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23544       gcc_cv_lto_plugin=1
23545     fi
23546   fi
23547
23548   ld_ver="$save_ld_ver"
23549   ld_vers_major="$save_ld_vers_major"
23550   ld_vers_minor="$save_ld_vers_minor"
23551   ld_is_gold="$save_ld_is_gold"
23552 fi
23553
23554 cat >>confdefs.h <<_ACEOF
23555 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23556 _ACEOF
23557
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23559 $as_echo "$gcc_cv_lto_plugin" >&6; }
23560
23561 case "$target" in
23562   # All TARGET_ABI_OSF targets.
23563   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23565 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23566 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23567   $as_echo_n "(cached) " >&6
23568 else
23569   gcc_cv_as_alpha_explicit_relocs=no
23570     if test $in_tree_gas = yes; then
23571     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23572   then gcc_cv_as_alpha_explicit_relocs=yes
23573 fi
23574   elif test x$gcc_cv_as != x; then
23575     $as_echo '  .set nomacro
23576         .text
23577         extbl   $3, $2, $3      !lituse_bytoff!1
23578         ldq     $2, a($29)      !literal!1
23579         ldq     $4, b($29)      !literal!2
23580         ldq_u   $3, 0($2)       !lituse_base!1
23581         ldq     $27, f($29)     !literal!5
23582         jsr     $26, ($27), f   !lituse_jsr!5
23583         ldah    $29, 0($26)     !gpdisp!3
23584         lda     $0, c($29)      !gprel
23585         ldah    $1, d($29)      !gprelhigh
23586         lda     $1, d($1)       !gprellow
23587         lda     $29, 0($29)     !gpdisp!3' > conftest.s
23588     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23589   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23590   (eval $ac_try) 2>&5
23591   ac_status=$?
23592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23593   test $ac_status = 0; }; }
23594     then
23595         gcc_cv_as_alpha_explicit_relocs=yes
23596     else
23597       echo "configure: failed program was" >&5
23598       cat conftest.s >&5
23599     fi
23600     rm -f conftest.o conftest.s
23601   fi
23602 fi
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23604 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23605 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23606
23607 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23608
23609 fi
23610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23611 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23612 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23613   $as_echo_n "(cached) " >&6
23614 else
23615   gcc_cv_as_alpha_jsrdirect_relocs=no
23616     if test $in_tree_gas = yes; then
23617     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23618   then gcc_cv_as_alpha_jsrdirect_relocs=yes
23619 fi
23620   elif test x$gcc_cv_as != x; then
23621     $as_echo '  .set nomacro
23622         .text
23623         ldq     $27, a($29)     !literal!1
23624         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
23625     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23626   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23627   (eval $ac_try) 2>&5
23628   ac_status=$?
23629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23630   test $ac_status = 0; }; }
23631     then
23632         gcc_cv_as_alpha_jsrdirect_relocs=yes
23633     else
23634       echo "configure: failed program was" >&5
23635       cat conftest.s >&5
23636     fi
23637     rm -f conftest.o conftest.s
23638   fi
23639 fi
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23641 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23642 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23643
23644 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23645
23646 fi
23647     ;;
23648
23649   cris-*-*)
23650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23651 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23652 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23653   $as_echo_n "(cached) " >&6
23654 else
23655   gcc_cv_as_cris_no_mul_bug=no
23656     if test $in_tree_gas = yes; then
23657     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23658   then gcc_cv_as_cris_no_mul_bug=yes
23659 fi
23660   elif test x$gcc_cv_as != x; then
23661     $as_echo '.text' > conftest.s
23662     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23663   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23664   (eval $ac_try) 2>&5
23665   ac_status=$?
23666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23667   test $ac_status = 0; }; }
23668     then
23669         gcc_cv_as_cris_no_mul_bug=yes
23670     else
23671       echo "configure: failed program was" >&5
23672       cat conftest.s >&5
23673     fi
23674     rm -f conftest.o conftest.s
23675   fi
23676 fi
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23678 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23679 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23680
23681 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23682
23683 fi
23684     ;;
23685
23686   sparc*-*-*)
23687     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23688 $as_echo_n "checking assembler for .register... " >&6; }
23689 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23690   $as_echo_n "(cached) " >&6
23691 else
23692   gcc_cv_as_sparc_register_op=no
23693   if test x$gcc_cv_as != x; then
23694     $as_echo '.register %g2, #scratch' > conftest.s
23695     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23696   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23697   (eval $ac_try) 2>&5
23698   ac_status=$?
23699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23700   test $ac_status = 0; }; }
23701     then
23702         gcc_cv_as_sparc_register_op=yes
23703     else
23704       echo "configure: failed program was" >&5
23705       cat conftest.s >&5
23706     fi
23707     rm -f conftest.o conftest.s
23708   fi
23709 fi
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23711 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23712 if test $gcc_cv_as_sparc_register_op = yes; then
23713
23714 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23715
23716 fi
23717
23718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23719 $as_echo_n "checking assembler for -relax option... " >&6; }
23720 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23721   $as_echo_n "(cached) " >&6
23722 else
23723   gcc_cv_as_sparc_relax=no
23724   if test x$gcc_cv_as != x; then
23725     $as_echo '.text' > conftest.s
23726     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23727   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23728   (eval $ac_try) 2>&5
23729   ac_status=$?
23730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23731   test $ac_status = 0; }; }
23732     then
23733         gcc_cv_as_sparc_relax=yes
23734     else
23735       echo "configure: failed program was" >&5
23736       cat conftest.s >&5
23737     fi
23738     rm -f conftest.o conftest.s
23739   fi
23740 fi
23741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23742 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23743 if test $gcc_cv_as_sparc_relax = yes; then
23744
23745 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23746
23747 fi
23748
23749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23750 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23751 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23752   $as_echo_n "(cached) " >&6
23753 else
23754   gcc_cv_as_sparc_gotdata_op=no
23755   if test x$gcc_cv_as != x; then
23756     $as_echo '.text
23757 .align 4
23758 foo:
23759         nop
23760 bar:
23761         sethi %gdop_hix22(foo), %g1
23762         xor    %g1, %gdop_lox10(foo), %g1
23763         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23764     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23765   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23766   (eval $ac_try) 2>&5
23767   ac_status=$?
23768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23769   test $ac_status = 0; }; }
23770     then
23771         if test x$gcc_cv_ld != x \
23772        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23773          if test x$gcc_cv_objdump != x; then
23774            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23775               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23776                gcc_cv_as_sparc_gotdata_op=no
23777            else
23778                gcc_cv_as_sparc_gotdata_op=yes
23779            fi
23780          fi
23781        fi
23782        rm -f conftest
23783     else
23784       echo "configure: failed program was" >&5
23785       cat conftest.s >&5
23786     fi
23787     rm -f conftest.o conftest.s
23788   fi
23789 fi
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23791 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23792 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23793
23794 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23795
23796 fi
23797
23798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23799 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23800 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23801   $as_echo_n "(cached) " >&6
23802 else
23803   gcc_cv_as_sparc_ua_pcrel=no
23804   if test x$gcc_cv_as != x; then
23805     $as_echo '.text
23806 foo:
23807         nop
23808 .data
23809 .align 4
23810 .byte 0
23811 .uaword %r_disp32(foo)' > conftest.s
23812     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23813   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23814   (eval $ac_try) 2>&5
23815   ac_status=$?
23816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23817   test $ac_status = 0; }; }
23818     then
23819         if test x$gcc_cv_ld != x \
23820        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23821          gcc_cv_as_sparc_ua_pcrel=yes
23822        fi
23823        rm -f conftest
23824     else
23825       echo "configure: failed program was" >&5
23826       cat conftest.s >&5
23827     fi
23828     rm -f conftest.o conftest.s
23829   fi
23830 fi
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23832 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23833 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23834
23835 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23836
23837
23838       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23839 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23840 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23841   $as_echo_n "(cached) " >&6
23842 else
23843   gcc_cv_as_sparc_ua_pcrel_hidden=no
23844   if test x$gcc_cv_as != x; then
23845     $as_echo '.data
23846 .align 4
23847 .byte 0x31
23848 .uaword %r_disp32(foo)
23849 .byte 0x32, 0x33, 0x34
23850 .global foo
23851 .hidden foo
23852 foo:
23853 .skip 4' > conftest.s
23854     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23855   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23856   (eval $ac_try) 2>&5
23857   ac_status=$?
23858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23859   test $ac_status = 0; }; }
23860     then
23861         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23862          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23863          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23864             | grep ' 31000000 07323334' > /dev/null 2>&1; then
23865             if $gcc_cv_objdump -R conftest 2> /dev/null \
23866                | grep 'DISP32' > /dev/null 2>&1; then
23867                 :
23868             else
23869                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23870             fi
23871          fi
23872          rm -f conftest
23873     else
23874       echo "configure: failed program was" >&5
23875       cat conftest.s >&5
23876     fi
23877     rm -f conftest.o conftest.s
23878   fi
23879 fi
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23881 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23882 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23883
23884 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23885
23886 fi
23887
23888 fi # unaligned pcrel relocs
23889
23890     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23891 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23892 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23893   $as_echo_n "(cached) " >&6
23894 else
23895   gcc_cv_as_sparc_offsetable_lo10=no
23896   if test x$gcc_cv_as != x; then
23897     $as_echo '.text
23898         or %g1, %lo(ab) + 12, %g1
23899         or %g1, %lo(ab + 12), %g1' > conftest.s
23900     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23901   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23902   (eval $ac_try) 2>&5
23903   ac_status=$?
23904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23905   test $ac_status = 0; }; }
23906     then
23907         if test x$gcc_cv_objdump != x \
23908        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23909           | grep ' 82106000 82106000' > /dev/null 2>&1; then
23910          gcc_cv_as_sparc_offsetable_lo10=yes
23911        fi
23912     else
23913       echo "configure: failed program was" >&5
23914       cat conftest.s >&5
23915     fi
23916     rm -f conftest.o conftest.s
23917   fi
23918 fi
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23920 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23921 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23922
23923 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23924
23925 fi
23926     ;;
23927
23928   i[34567]86-*-* | x86_64-*-*)
23929     case $target_os in
23930       cygwin*)
23931         # Full C++ conformance when using a shared libstdc++-v3 requires some
23932         # support from the Cygwin DLL, which in more recent versions exports
23933         # wrappers to aid in interposing and redirecting operators new, delete,
23934         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
23935         # are configuring for a version of Cygwin that exports the wrappers.
23936         if test x$host = x$target; then
23937           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23938 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23939   gcc_ac_cygwin_dll_wrappers=yes
23940 else
23941   gcc_ac_cygwin_dll_wrappers=no
23942 fi
23943
23944         else
23945           # Can't check presence of libc functions during cross-compile, so
23946           # we just have to assume we're building for an up-to-date target.
23947           gcc_ac_cygwin_dll_wrappers=yes
23948         fi
23949
23950 cat >>confdefs.h <<_ACEOF
23951 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23952 _ACEOF
23953
23954     esac
23955     case $target_os in
23956       cygwin* | pe | mingw32*)
23957         # Recent binutils allows the three-operand form of ".comm" on PE.  This
23958         # definition is used unconditionally to initialise the default state of
23959         # the target option variable that governs usage of the feature.
23960         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23961 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23962 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23963   $as_echo_n "(cached) " >&6
23964 else
23965   gcc_cv_as_comm_has_align=no
23966     if test $in_tree_gas = yes; then
23967     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23968   then gcc_cv_as_comm_has_align=yes
23969 fi
23970   elif test x$gcc_cv_as != x; then
23971     $as_echo '.comm foo,1,32' > conftest.s
23972     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23973   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23974   (eval $ac_try) 2>&5
23975   ac_status=$?
23976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23977   test $ac_status = 0; }; }
23978     then
23979         gcc_cv_as_comm_has_align=yes
23980     else
23981       echo "configure: failed program was" >&5
23982       cat conftest.s >&5
23983     fi
23984     rm -f conftest.o conftest.s
23985   fi
23986 fi
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23988 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23989
23990
23991 cat >>confdefs.h <<_ACEOF
23992 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23993 _ACEOF
23994
23995         # Used for DWARF 2 in PE
23996         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23997 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23998 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23999   $as_echo_n "(cached) " >&6
24000 else
24001   gcc_cv_as_ix86_pe_secrel32=no
24002     if test $in_tree_gas = yes; then
24003     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24004   then gcc_cv_as_ix86_pe_secrel32=yes
24005 fi
24006   elif test x$gcc_cv_as != x; then
24007     $as_echo '.text
24008 foo:    nop
24009 .data
24010         .secrel32 foo' > conftest.s
24011     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24012   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24013   (eval $ac_try) 2>&5
24014   ac_status=$?
24015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24016   test $ac_status = 0; }; }
24017     then
24018         if test x$gcc_cv_ld != x \
24019            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24020              gcc_cv_as_ix86_pe_secrel32=yes
24021            fi
24022            rm -f conftest
24023     else
24024       echo "configure: failed program was" >&5
24025       cat conftest.s >&5
24026     fi
24027     rm -f conftest.o conftest.s
24028   fi
24029 fi
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24031 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24032 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24033
24034 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24035
24036 fi
24037         # Test if the assembler supports the extended form of the .section
24038         # directive that specifies section alignment.  LTO support uses this,
24039         # but normally only after installation, so we warn but don't fail the
24040         # configure if LTO is enabled but the assembler does not support it.
24041         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24042 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24043 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24044   $as_echo_n "(cached) " >&6
24045 else
24046   gcc_cv_as_section_has_align=no
24047     if test $in_tree_gas = yes; then
24048     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24049   then gcc_cv_as_section_has_align=yes
24050 fi
24051   elif test x$gcc_cv_as != x; then
24052     $as_echo '.section lto_test,"dr0"' > conftest.s
24053     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24054   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24055   (eval $ac_try) 2>&5
24056   ac_status=$?
24057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24058   test $ac_status = 0; }; }
24059     then
24060         gcc_cv_as_section_has_align=yes
24061     else
24062       echo "configure: failed program was" >&5
24063       cat conftest.s >&5
24064     fi
24065     rm -f conftest.o conftest.s
24066   fi
24067 fi
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24069 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24070
24071         if test x$gcc_cv_as_section_has_align != xyes; then
24072           case ",$enable_languages," in
24073             *,lto,*)
24074               { $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
24075 $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;}
24076               ;;
24077           esac
24078         fi
24079         ;;
24080     esac
24081
24082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24083 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24084 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24085   $as_echo_n "(cached) " >&6
24086 else
24087   gcc_cv_as_ix86_filds=no
24088   if test x$gcc_cv_as != x; then
24089     $as_echo 'filds mem; fists mem' > 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_ix86_filds=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_ix86_filds" >&5
24106 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24107 if test $gcc_cv_as_ix86_filds = yes; then
24108
24109 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24110
24111 fi
24112
24113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24114 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24115 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24116   $as_echo_n "(cached) " >&6
24117 else
24118   gcc_cv_as_ix86_fildq=no
24119   if test x$gcc_cv_as != x; then
24120     $as_echo 'fildq mem; fistpq mem' > conftest.s
24121     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24122   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24123   (eval $ac_try) 2>&5
24124   ac_status=$?
24125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24126   test $ac_status = 0; }; }
24127     then
24128         gcc_cv_as_ix86_fildq=yes
24129     else
24130       echo "configure: failed program was" >&5
24131       cat conftest.s >&5
24132     fi
24133     rm -f conftest.o conftest.s
24134   fi
24135 fi
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24137 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24138 if test $gcc_cv_as_ix86_fildq = yes; then
24139
24140 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24141
24142 fi
24143
24144     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24145 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24146 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24147   $as_echo_n "(cached) " >&6
24148 else
24149   gcc_cv_as_ix86_cmov_sun_syntax=no
24150   if test x$gcc_cv_as != x; then
24151     $as_echo 'cmovl.l %edx, %eax' > conftest.s
24152     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24153   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24154   (eval $ac_try) 2>&5
24155   ac_status=$?
24156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24157   test $ac_status = 0; }; }
24158     then
24159         gcc_cv_as_ix86_cmov_sun_syntax=yes
24160     else
24161       echo "configure: failed program was" >&5
24162       cat conftest.s >&5
24163     fi
24164     rm -f conftest.o conftest.s
24165   fi
24166 fi
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24168 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24169 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24170
24171 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24172
24173 fi
24174
24175     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24176 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24177 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24178   $as_echo_n "(cached) " >&6
24179 else
24180   gcc_cv_as_ix86_ffreep=no
24181   if test x$gcc_cv_as != x; then
24182     $as_echo 'ffreep %st(1)' > conftest.s
24183     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24184   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24185   (eval $ac_try) 2>&5
24186   ac_status=$?
24187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24188   test $ac_status = 0; }; }
24189     then
24190         gcc_cv_as_ix86_ffreep=yes
24191     else
24192       echo "configure: failed program was" >&5
24193       cat conftest.s >&5
24194     fi
24195     rm -f conftest.o conftest.s
24196   fi
24197 fi
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24199 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24200 if test $gcc_cv_as_ix86_ffreep = yes; then
24201
24202 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24203
24204 fi
24205
24206     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24207 $as_echo_n "checking assembler for .quad directive... " >&6; }
24208 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24209   $as_echo_n "(cached) " >&6
24210 else
24211   gcc_cv_as_ix86_quad=no
24212   if test x$gcc_cv_as != x; then
24213     $as_echo '.quad 0' > conftest.s
24214     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24215   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24216   (eval $ac_try) 2>&5
24217   ac_status=$?
24218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24219   test $ac_status = 0; }; }
24220     then
24221         gcc_cv_as_ix86_quad=yes
24222     else
24223       echo "configure: failed program was" >&5
24224       cat conftest.s >&5
24225     fi
24226     rm -f conftest.o conftest.s
24227   fi
24228 fi
24229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24230 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24231 if test $gcc_cv_as_ix86_quad = yes; then
24232
24233 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24234
24235 fi
24236
24237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24238 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24239 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24240   $as_echo_n "(cached) " >&6
24241 else
24242   gcc_cv_as_ix86_sahf=no
24243   if test x$gcc_cv_as != x; then
24244     $as_echo '.code64
24245        sahf' > conftest.s
24246     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24247   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24248   (eval $ac_try) 2>&5
24249   ac_status=$?
24250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24251   test $ac_status = 0; }; }
24252     then
24253         gcc_cv_as_ix86_sahf=yes
24254     else
24255       echo "configure: failed program was" >&5
24256       cat conftest.s >&5
24257     fi
24258     rm -f conftest.o conftest.s
24259   fi
24260 fi
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24262 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24263 if test $gcc_cv_as_ix86_sahf = yes; then
24264
24265 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24266
24267 fi
24268
24269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24270 $as_echo_n "checking assembler for swap suffix... " >&6; }
24271 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24272   $as_echo_n "(cached) " >&6
24273 else
24274   gcc_cv_as_ix86_swap=no
24275   if test x$gcc_cv_as != x; then
24276     $as_echo 'movl.s %esp, %ebp' > conftest.s
24277     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24278   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24279   (eval $ac_try) 2>&5
24280   ac_status=$?
24281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24282   test $ac_status = 0; }; }
24283     then
24284         gcc_cv_as_ix86_swap=yes
24285     else
24286       echo "configure: failed program was" >&5
24287       cat conftest.s >&5
24288     fi
24289     rm -f conftest.o conftest.s
24290   fi
24291 fi
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24293 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24294 if test $gcc_cv_as_ix86_swap = yes; then
24295
24296 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24297
24298 fi
24299
24300     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24301 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24302 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24303   $as_echo_n "(cached) " >&6
24304 else
24305   gcc_cv_as_ix86_diff_sect_delta=no
24306   if test x$gcc_cv_as != x; then
24307     $as_echo '.section .rodata
24308 .L1:
24309         .long .L2-.L1
24310         .long .L3-.L1
24311         .text
24312 .L3:    nop
24313 .L2:    nop' > conftest.s
24314     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -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_ix86_diff_sect_delta=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_ix86_diff_sect_delta" >&5
24330 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24331 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24332
24333 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24334
24335 fi
24336
24337     # These two are used unconditionally by i386.[ch]; it is to be defined
24338     # to 1 if the feature is present, 0 otherwise.
24339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24340 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24341 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24342   $as_echo_n "(cached) " >&6
24343 else
24344   gcc_cv_as_ix86_gotoff_in_data=no
24345     if test $in_tree_gas = yes; then
24346     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24347   then gcc_cv_as_ix86_gotoff_in_data=yes
24348 fi
24349   elif test x$gcc_cv_as != x; then
24350     $as_echo '  .text
24351 .L0:
24352         nop
24353         .data
24354         .long .L0@GOTOFF' > conftest.s
24355     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24356   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24357   (eval $ac_try) 2>&5
24358   ac_status=$?
24359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24360   test $ac_status = 0; }; }
24361     then
24362         gcc_cv_as_ix86_gotoff_in_data=yes
24363     else
24364       echo "configure: failed program was" >&5
24365       cat conftest.s >&5
24366     fi
24367     rm -f conftest.o conftest.s
24368   fi
24369 fi
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24371 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24372
24373
24374 cat >>confdefs.h <<_ACEOF
24375 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24376 _ACEOF
24377
24378
24379     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24380 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24381 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24382   $as_echo_n "(cached) " >&6
24383 else
24384   gcc_cv_as_ix86_rep_lock_prefix=no
24385   if test x$gcc_cv_as != x; then
24386     $as_echo 'rep movsl
24387          lock addl %edi, (%eax,%esi)
24388          lock orl $0, (%esp)' > conftest.s
24389     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24390   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24391   (eval $ac_try) 2>&5
24392   ac_status=$?
24393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24394   test $ac_status = 0; }; }
24395     then
24396         gcc_cv_as_ix86_rep_lock_prefix=yes
24397     else
24398       echo "configure: failed program was" >&5
24399       cat conftest.s >&5
24400     fi
24401     rm -f conftest.o conftest.s
24402   fi
24403 fi
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24405 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24406 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24407
24408 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24409
24410 fi
24411
24412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24413 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24414 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24415   $as_echo_n "(cached) " >&6
24416 else
24417   gcc_cv_as_ix86_tlsgdplt=no
24418   if test x$gcc_cv_as != x; then
24419     $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
24420     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24421   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24422   (eval $ac_try) 2>&5
24423   ac_status=$?
24424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24425   test $ac_status = 0; }; }
24426     then
24427         gcc_cv_as_ix86_tlsgdplt=yes
24428     else
24429       echo "configure: failed program was" >&5
24430       cat conftest.s >&5
24431     fi
24432     rm -f conftest.o conftest.s
24433   fi
24434 fi
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24436 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24437 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24438
24439 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24440
24441 fi
24442
24443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24444 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24445 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24446   $as_echo_n "(cached) " >&6
24447 else
24448   gcc_cv_as_ix86_tlsldmplt=no
24449   if test x$gcc_cv_as != x; then
24450     $as_echo 'call    tls_ld@tlsldmplt' > conftest.s
24451     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24452   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24453   (eval $ac_try) 2>&5
24454   ac_status=$?
24455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24456   test $ac_status = 0; }; }
24457     then
24458         gcc_cv_as_ix86_tlsldmplt=yes
24459     else
24460       echo "configure: failed program was" >&5
24461       cat conftest.s >&5
24462     fi
24463     rm -f conftest.o conftest.s
24464   fi
24465 fi
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24467 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24468 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24469
24470 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24471
24472 fi
24473
24474     ;;
24475
24476   ia64*-*-*)
24477     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24478 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24479 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24480   $as_echo_n "(cached) " >&6
24481 else
24482   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24483     if test $in_tree_gas = yes; then
24484     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24485   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24486 fi
24487   elif test x$gcc_cv_as != x; then
24488     $as_echo '  .text
24489         addl r15 = @ltoffx(x#), gp
24490         ;;
24491         ld8.mov r16 = [r15], x#' > conftest.s
24492     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24493   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24494   (eval $ac_try) 2>&5
24495   ac_status=$?
24496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24497   test $ac_status = 0; }; }
24498     then
24499         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24500     else
24501       echo "configure: failed program was" >&5
24502       cat conftest.s >&5
24503     fi
24504     rm -f conftest.o conftest.s
24505   fi
24506 fi
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24508 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24509 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24510
24511 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24512
24513 fi
24514
24515     ;;
24516
24517   powerpc*-*-*)
24518     case $target in
24519       *-*-aix*) conftest_s='    .machine "pwr5"
24520         .csect .text[PR]
24521         mfcr 3,128';;
24522       *-*-darwin*)
24523         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24524 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24525 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24526   $as_echo_n "(cached) " >&6
24527 else
24528   gcc_cv_as_machine_directive=no
24529   if test x$gcc_cv_as != x; then
24530     $as_echo '  .machine ppc7400' > conftest.s
24531     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24532   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24533   (eval $ac_try) 2>&5
24534   ac_status=$?
24535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24536   test $ac_status = 0; }; }
24537     then
24538         gcc_cv_as_machine_directive=yes
24539     else
24540       echo "configure: failed program was" >&5
24541       cat conftest.s >&5
24542     fi
24543     rm -f conftest.o conftest.s
24544   fi
24545 fi
24546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24547 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24548
24549         if test x$gcc_cv_as_machine_directive != xyes; then
24550           echo "*** This target requires an assembler supporting \".machine\"" >&2
24551           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24552           test x$build = x$target && exit 1
24553         fi
24554         conftest_s='    .text
24555         mfcr r3,128';;
24556       *) conftest_s='   .machine power4
24557         .text
24558         mfcr 3,128';;
24559     esac
24560
24561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24562 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24563 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24564   $as_echo_n "(cached) " >&6
24565 else
24566   gcc_cv_as_powerpc_mfcrf=no
24567     if test $in_tree_gas = yes; then
24568     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24569   then gcc_cv_as_powerpc_mfcrf=yes
24570 fi
24571   elif test x$gcc_cv_as != x; then
24572     $as_echo "$conftest_s" > conftest.s
24573     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24574   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24575   (eval $ac_try) 2>&5
24576   ac_status=$?
24577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24578   test $ac_status = 0; }; }
24579     then
24580         gcc_cv_as_powerpc_mfcrf=yes
24581     else
24582       echo "configure: failed program was" >&5
24583       cat conftest.s >&5
24584     fi
24585     rm -f conftest.o conftest.s
24586   fi
24587 fi
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24589 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24590 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24591
24592 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24593
24594 fi
24595
24596     case $target in
24597       *-*-aix*) conftest_s='    .machine "pwr5"
24598         .csect .text[PR]
24599         popcntb 3,3';;
24600       *) conftest_s='   .machine power5
24601         .text
24602         popcntb 3,3';;
24603     esac
24604
24605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24606 $as_echo_n "checking assembler for popcntb support... " >&6; }
24607 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24608   $as_echo_n "(cached) " >&6
24609 else
24610   gcc_cv_as_powerpc_popcntb=no
24611     if test $in_tree_gas = yes; then
24612     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24613   then gcc_cv_as_powerpc_popcntb=yes
24614 fi
24615   elif test x$gcc_cv_as != x; then
24616     $as_echo "$conftest_s" > conftest.s
24617     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24618   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24619   (eval $ac_try) 2>&5
24620   ac_status=$?
24621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24622   test $ac_status = 0; }; }
24623     then
24624         gcc_cv_as_powerpc_popcntb=yes
24625     else
24626       echo "configure: failed program was" >&5
24627       cat conftest.s >&5
24628     fi
24629     rm -f conftest.o conftest.s
24630   fi
24631 fi
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24633 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24634 if test $gcc_cv_as_powerpc_popcntb = yes; then
24635
24636 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24637
24638 fi
24639
24640     case $target in
24641       *-*-aix*) conftest_s='    .machine "pwr5x"
24642         .csect .text[PR]
24643         frin 1,1';;
24644       *) conftest_s='   .machine power5
24645         .text
24646         frin 1,1';;
24647     esac
24648
24649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24650 $as_echo_n "checking assembler for fp round support... " >&6; }
24651 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24652   $as_echo_n "(cached) " >&6
24653 else
24654   gcc_cv_as_powerpc_fprnd=no
24655     if test $in_tree_gas = yes; then
24656     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24657   then gcc_cv_as_powerpc_fprnd=yes
24658 fi
24659   elif test x$gcc_cv_as != x; then
24660     $as_echo "$conftest_s" > conftest.s
24661     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24662   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24663   (eval $ac_try) 2>&5
24664   ac_status=$?
24665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24666   test $ac_status = 0; }; }
24667     then
24668         gcc_cv_as_powerpc_fprnd=yes
24669     else
24670       echo "configure: failed program was" >&5
24671       cat conftest.s >&5
24672     fi
24673     rm -f conftest.o conftest.s
24674   fi
24675 fi
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24677 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24678 if test $gcc_cv_as_powerpc_fprnd = yes; then
24679
24680 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24681
24682 fi
24683
24684     case $target in
24685       *-*-aix*) conftest_s='    .machine "pwr6"
24686         .csect .text[PR]
24687         mffgpr 1,3';;
24688       *) conftest_s='   .machine power6
24689         .text
24690         mffgpr 1,3';;
24691     esac
24692
24693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24694 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24695 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24696   $as_echo_n "(cached) " >&6
24697 else
24698   gcc_cv_as_powerpc_mfpgpr=no
24699     if test $in_tree_gas = yes; then
24700     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24701   then gcc_cv_as_powerpc_mfpgpr=yes
24702 fi
24703   elif test x$gcc_cv_as != x; then
24704     $as_echo "$conftest_s" > conftest.s
24705     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24706   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24707   (eval $ac_try) 2>&5
24708   ac_status=$?
24709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24710   test $ac_status = 0; }; }
24711     then
24712         gcc_cv_as_powerpc_mfpgpr=yes
24713     else
24714       echo "configure: failed program was" >&5
24715       cat conftest.s >&5
24716     fi
24717     rm -f conftest.o conftest.s
24718   fi
24719 fi
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24721 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24722 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24723
24724 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24725
24726 fi
24727
24728     case $target in
24729       *-*-aix*) conftest_s='    .csect .text[PR]
24730 LCF..0:
24731         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24732       *-*-darwin*)
24733         conftest_s='    .text
24734 LCF0:
24735         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24736       *) conftest_s='   .text
24737 .LCF0:
24738         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24739     esac
24740
24741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24742 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24743 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24744   $as_echo_n "(cached) " >&6
24745 else
24746   gcc_cv_as_powerpc_rel16=no
24747     if test $in_tree_gas = yes; then
24748     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24749   then gcc_cv_as_powerpc_rel16=yes
24750 fi
24751   elif test x$gcc_cv_as != x; then
24752     $as_echo "$conftest_s" > conftest.s
24753     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_rel16=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_powerpc_rel16" >&5
24769 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24770 if test $gcc_cv_as_powerpc_rel16 = yes; then
24771
24772 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24773
24774 fi
24775
24776     case $target in
24777       *-*-aix*) conftest_s='    .machine "pwr6"
24778         .csect .text[PR]
24779         cmpb 3,4,5';;
24780       *) conftest_s='   .machine power6
24781         .text
24782         cmpb 3,4,5';;
24783     esac
24784
24785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24786 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24787 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24788   $as_echo_n "(cached) " >&6
24789 else
24790   gcc_cv_as_powerpc_cmpb=no
24791     if test $in_tree_gas = yes; then
24792     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24793   then gcc_cv_as_powerpc_cmpb=yes
24794 fi
24795   elif test x$gcc_cv_as != x; then
24796     $as_echo "$conftest_s" > conftest.s
24797     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24798   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24799   (eval $ac_try) 2>&5
24800   ac_status=$?
24801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24802   test $ac_status = 0; }; }
24803     then
24804         gcc_cv_as_powerpc_cmpb=yes
24805     else
24806       echo "configure: failed program was" >&5
24807       cat conftest.s >&5
24808     fi
24809     rm -f conftest.o conftest.s
24810   fi
24811 fi
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24813 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24814 if test $gcc_cv_as_powerpc_cmpb = yes; then
24815
24816 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24817
24818 fi
24819
24820     case $target in
24821       *-*-aix*) conftest_s='    .machine "pwr6"
24822         .csect .text[PR]
24823         dadd 1,2,3';;
24824       *) conftest_s='   .machine power6
24825         .text
24826         dadd 1,2,3';;
24827     esac
24828
24829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24830 $as_echo_n "checking assembler for decimal float support... " >&6; }
24831 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24832   $as_echo_n "(cached) " >&6
24833 else
24834   gcc_cv_as_powerpc_dfp=no
24835     if test $in_tree_gas = yes; then
24836     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24837   then gcc_cv_as_powerpc_dfp=yes
24838 fi
24839   elif test x$gcc_cv_as != x; then
24840     $as_echo "$conftest_s" > conftest.s
24841     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24842   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24843   (eval $ac_try) 2>&5
24844   ac_status=$?
24845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24846   test $ac_status = 0; }; }
24847     then
24848         gcc_cv_as_powerpc_dfp=yes
24849     else
24850       echo "configure: failed program was" >&5
24851       cat conftest.s >&5
24852     fi
24853     rm -f conftest.o conftest.s
24854   fi
24855 fi
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24857 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24858 if test $gcc_cv_as_powerpc_dfp = yes; then
24859
24860 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24861
24862 fi
24863
24864     case $target in
24865       *-*-aix*) conftest_s='    .machine "pwr7"
24866         .csect .text[PR]
24867         lxvd2x 1,2,3';;
24868       *) conftest_s='   .machine power7
24869         .text
24870         lxvd2x 1,2,3';;
24871     esac
24872
24873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24874 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24875 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24876   $as_echo_n "(cached) " >&6
24877 else
24878   gcc_cv_as_powerpc_vsx=no
24879     if test $in_tree_gas = yes; then
24880     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24881   then gcc_cv_as_powerpc_vsx=yes
24882 fi
24883   elif test x$gcc_cv_as != x; then
24884     $as_echo "$conftest_s" > conftest.s
24885     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24886   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24887   (eval $ac_try) 2>&5
24888   ac_status=$?
24889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24890   test $ac_status = 0; }; }
24891     then
24892         gcc_cv_as_powerpc_vsx=yes
24893     else
24894       echo "configure: failed program was" >&5
24895       cat conftest.s >&5
24896     fi
24897     rm -f conftest.o conftest.s
24898   fi
24899 fi
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24901 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24902 if test $gcc_cv_as_powerpc_vsx = yes; then
24903
24904 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24905
24906 fi
24907
24908     case $target in
24909       *-*-aix*) conftest_s='    .machine "pwr7"
24910         .csect .text[PR]
24911         popcntd 3,3';;
24912       *) conftest_s='   .machine power7
24913         .text
24914         popcntd 3,3';;
24915     esac
24916
24917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24918 $as_echo_n "checking assembler for popcntd support... " >&6; }
24919 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24920   $as_echo_n "(cached) " >&6
24921 else
24922   gcc_cv_as_powerpc_popcntd=no
24923     if test $in_tree_gas = yes; then
24924     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24925   then gcc_cv_as_powerpc_popcntd=yes
24926 fi
24927   elif test x$gcc_cv_as != x; then
24928     $as_echo "$conftest_s" > conftest.s
24929     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24930   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24931   (eval $ac_try) 2>&5
24932   ac_status=$?
24933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24934   test $ac_status = 0; }; }
24935     then
24936         gcc_cv_as_powerpc_popcntd=yes
24937     else
24938       echo "configure: failed program was" >&5
24939       cat conftest.s >&5
24940     fi
24941     rm -f conftest.o conftest.s
24942   fi
24943 fi
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24945 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24946 if test $gcc_cv_as_powerpc_popcntd = yes; then
24947
24948 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24949
24950 fi
24951
24952     case $target in
24953       *-*-aix*) conftest_s='    .csect .text[PR]
24954         lwsync';;
24955       *) conftest_s='   .text
24956         lwsync';;
24957     esac
24958
24959     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24960 $as_echo_n "checking assembler for lwsync support... " >&6; }
24961 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24962   $as_echo_n "(cached) " >&6
24963 else
24964   gcc_cv_as_powerpc_lwsync=no
24965     if test $in_tree_gas = yes; then
24966     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24967   then gcc_cv_as_powerpc_lwsync=yes
24968 fi
24969   elif test x$gcc_cv_as != x; then
24970     $as_echo "$conftest_s" > conftest.s
24971     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24972   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24973   (eval $ac_try) 2>&5
24974   ac_status=$?
24975   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24976   test $ac_status = 0; }; }
24977     then
24978         gcc_cv_as_powerpc_lwsync=yes
24979     else
24980       echo "configure: failed program was" >&5
24981       cat conftest.s >&5
24982     fi
24983     rm -f conftest.o conftest.s
24984   fi
24985 fi
24986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24987 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24988 if test $gcc_cv_as_powerpc_lwsync = yes; then
24989
24990 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24991
24992 fi
24993
24994     case $target in
24995       *-*-aix*) conftest_s='    .machine "476"
24996         .csect .text[PR]
24997         dci 0';;
24998       *) conftest_s='   .machine "476"
24999         .text
25000         dci 0';;
25001     esac
25002
25003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25004 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25005 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25006   $as_echo_n "(cached) " >&6
25007 else
25008   gcc_cv_as_powerpc_dci=no
25009     if test $in_tree_gas = yes; then
25010     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25011   then gcc_cv_as_powerpc_dci=yes
25012 fi
25013   elif test x$gcc_cv_as != x; then
25014     $as_echo "$conftest_s" > conftest.s
25015     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25016   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25017   (eval $ac_try) 2>&5
25018   ac_status=$?
25019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25020   test $ac_status = 0; }; }
25021     then
25022         gcc_cv_as_powerpc_dci=yes
25023     else
25024       echo "configure: failed program was" >&5
25025       cat conftest.s >&5
25026     fi
25027     rm -f conftest.o conftest.s
25028   fi
25029 fi
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25031 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25032 if test $gcc_cv_as_powerpc_dci = yes; then
25033
25034 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25035
25036 fi
25037
25038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25039 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25040 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25041   $as_echo_n "(cached) " >&6
25042 else
25043   gcc_cv_as_powerpc_gnu_attribute=no
25044     if test $in_tree_gas = yes; then
25045     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25046   then gcc_cv_as_powerpc_gnu_attribute=yes
25047 fi
25048   elif test x$gcc_cv_as != x; then
25049     $as_echo '.gnu_attribute 4,1' > conftest.s
25050     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25051   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25052   (eval $ac_try) 2>&5
25053   ac_status=$?
25054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25055   test $ac_status = 0; }; }
25056     then
25057         gcc_cv_as_powerpc_gnu_attribute=yes
25058     else
25059       echo "configure: failed program was" >&5
25060       cat conftest.s >&5
25061     fi
25062     rm -f conftest.o conftest.s
25063   fi
25064 fi
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25066 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25067 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25068
25069 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25070
25071 fi
25072
25073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25074 $as_echo_n "checking assembler for tls marker support... " >&6; }
25075 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25076   $as_echo_n "(cached) " >&6
25077 else
25078   gcc_cv_as_powerpc_tls_markers=no
25079     if test $in_tree_gas = yes; then
25080     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25081   then gcc_cv_as_powerpc_tls_markers=yes
25082 fi
25083   elif test x$gcc_cv_as != x; then
25084     $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25085     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25086   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25087   (eval $ac_try) 2>&5
25088   ac_status=$?
25089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25090   test $ac_status = 0; }; }
25091     then
25092         gcc_cv_as_powerpc_tls_markers=yes
25093     else
25094       echo "configure: failed program was" >&5
25095       cat conftest.s >&5
25096     fi
25097     rm -f conftest.o conftest.s
25098   fi
25099 fi
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25101 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25102 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25103
25104 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25105
25106 fi
25107
25108     case $target in
25109       *-*-aix*)
25110         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25111 $as_echo_n "checking assembler for .ref support... " >&6; }
25112 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25113   $as_echo_n "(cached) " >&6
25114 else
25115   gcc_cv_as_aix_ref=no
25116     if test $in_tree_gas = yes; then
25117     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25118   then :
25119 fi
25120   elif test x$gcc_cv_as != x; then
25121     $as_echo '  .csect stuff[rw]
25122              stuff:
25123                 .long 1
25124                 .extern sym
25125                 .ref sym
25126           ' > conftest.s
25127     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25128   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25129   (eval $ac_try) 2>&5
25130   ac_status=$?
25131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25132   test $ac_status = 0; }; }
25133     then
25134         gcc_cv_as_aix_ref=yes
25135     else
25136       echo "configure: failed program was" >&5
25137       cat conftest.s >&5
25138     fi
25139     rm -f conftest.o conftest.s
25140   fi
25141 fi
25142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25143 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25144 if test $gcc_cv_as_aix_ref = yes; then
25145
25146 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25147
25148 fi
25149         ;;
25150     esac
25151     ;;
25152
25153   mips*-*-*)
25154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25155 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25156 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25157   $as_echo_n "(cached) " >&6
25158 else
25159   gcc_cv_as_mips_explicit_relocs=no
25160     if test $in_tree_gas = yes; then
25161     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25162   then gcc_cv_as_mips_explicit_relocs=yes
25163 fi
25164   elif test x$gcc_cv_as != x; then
25165     $as_echo '  lw $4,%gp_rel(foo)($4)' > conftest.s
25166     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25167   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25168   (eval $ac_try) 2>&5
25169   ac_status=$?
25170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25171   test $ac_status = 0; }; }
25172     then
25173         gcc_cv_as_mips_explicit_relocs=yes
25174     else
25175       echo "configure: failed program was" >&5
25176       cat conftest.s >&5
25177     fi
25178     rm -f conftest.o conftest.s
25179   fi
25180 fi
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25182 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25183 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25184   if test x$target_cpu_default = x
25185        then target_cpu_default=MASK_EXPLICIT_RELOCS
25186        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25187        fi
25188 fi
25189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25190 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25191 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25192   $as_echo_n "(cached) " >&6
25193 else
25194   gcc_cv_as_mips_no_shared=no
25195     if test $in_tree_gas = yes; then
25196     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25197   then gcc_cv_as_mips_no_shared=yes
25198 fi
25199   elif test x$gcc_cv_as != x; then
25200     $as_echo 'nop' > conftest.s
25201     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25202   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25203   (eval $ac_try) 2>&5
25204   ac_status=$?
25205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25206   test $ac_status = 0; }; }
25207     then
25208         gcc_cv_as_mips_no_shared=yes
25209     else
25210       echo "configure: failed program was" >&5
25211       cat conftest.s >&5
25212     fi
25213     rm -f conftest.o conftest.s
25214   fi
25215 fi
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25217 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25218 if test $gcc_cv_as_mips_no_shared = yes; then
25219
25220 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25221
25222 fi
25223
25224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25225 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25226 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25227   $as_echo_n "(cached) " >&6
25228 else
25229   gcc_cv_as_mips_gnu_attribute=no
25230     if test $in_tree_gas = yes; then
25231     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25232   then gcc_cv_as_mips_gnu_attribute=yes
25233 fi
25234   elif test x$gcc_cv_as != x; then
25235     $as_echo '.gnu_attribute 4,1' > conftest.s
25236     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25237   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25238   (eval $ac_try) 2>&5
25239   ac_status=$?
25240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25241   test $ac_status = 0; }; }
25242     then
25243         gcc_cv_as_mips_gnu_attribute=yes
25244     else
25245       echo "configure: failed program was" >&5
25246       cat conftest.s >&5
25247     fi
25248     rm -f conftest.o conftest.s
25249   fi
25250 fi
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25252 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25253 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25254
25255 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25256
25257 fi
25258
25259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25260 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25261 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25262   $as_echo_n "(cached) " >&6
25263 else
25264   gcc_cv_as_mips_dtprelword=no
25265     if test $in_tree_gas = yes; then
25266     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25267   then gcc_cv_as_mips_dtprelword=yes
25268 fi
25269   elif test x$gcc_cv_as != x; then
25270     $as_echo '.section .tdata,"awT",@progbits
25271 x:
25272         .word 2
25273         .text
25274         .dtprelword x+0x8000' > conftest.s
25275     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25276   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25277   (eval $ac_try) 2>&5
25278   ac_status=$?
25279   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25280   test $ac_status = 0; }; }
25281     then
25282         gcc_cv_as_mips_dtprelword=yes
25283     else
25284       echo "configure: failed program was" >&5
25285       cat conftest.s >&5
25286     fi
25287     rm -f conftest.o conftest.s
25288   fi
25289 fi
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25291 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25292 if test $gcc_cv_as_mips_dtprelword = yes; then
25293
25294 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25295
25296 fi
25297
25298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25299 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25300 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25301   $as_echo_n "(cached) " >&6
25302 else
25303   gcc_cv_as_mips_dspr1_mult=no
25304   if test x$gcc_cv_as != x; then
25305     $as_echo '  .set    mips32r2
25306         .set    nodspr2
25307         .set    dsp
25308         madd    $ac3,$4,$5
25309         maddu   $ac3,$4,$5
25310         msub    $ac3,$4,$5
25311         msubu   $ac3,$4,$5
25312         mult    $ac3,$4,$5
25313         multu   $ac3,$4,$5' > conftest.s
25314     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25315   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25316   (eval $ac_try) 2>&5
25317   ac_status=$?
25318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25319   test $ac_status = 0; }; }
25320     then
25321         gcc_cv_as_mips_dspr1_mult=yes
25322     else
25323       echo "configure: failed program was" >&5
25324       cat conftest.s >&5
25325     fi
25326     rm -f conftest.o conftest.s
25327   fi
25328 fi
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25330 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25331 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25332
25333 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25334
25335 fi
25336
25337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25338 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25339     gcc_cv_as_ld_jalr_reloc=no
25340     if test $gcc_cv_as_mips_explicit_relocs = yes; then
25341       if test $in_tree_ld = yes ; then
25342         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 \
25343            && test $in_tree_ld_is_elf = yes; then
25344           gcc_cv_as_ld_jalr_reloc=yes
25345         fi
25346       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25347         echo '  .ent x' > conftest.s
25348         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
25349         echo '  ld $25,%call16(y)($28)' >> conftest.s
25350         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
25351         echo '1:        jalr $25' >> conftest.s
25352         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
25353         echo '1:        jalr $25' >> conftest.s
25354         echo '  .end x' >> conftest.s
25355         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25356            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25357           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25358              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25359             gcc_cv_as_ld_jalr_reloc=yes
25360           fi
25361         fi
25362         rm -f conftest.*
25363       fi
25364     fi
25365     if test $gcc_cv_as_ld_jalr_reloc = yes; then
25366       if test x$target_cpu_default = x; then
25367         target_cpu_default=MASK_RELAX_PIC_CALLS
25368       else
25369         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25370       fi
25371     fi
25372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25373 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25374
25375     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25376 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25377 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25378   $as_echo_n "(cached) " >&6
25379 else
25380   gcc_cv_ld_mips_personality_relaxation=no
25381        if test $in_tree_ld = yes ; then
25382          if test "$gcc_cv_gld_major_version" -eq 2 \
25383                  -a "$gcc_cv_gld_minor_version" -ge 21 \
25384                  -o "$gcc_cv_gld_major_version" -gt 2; then
25385            gcc_cv_ld_mips_personality_relaxation=yes
25386          fi
25387        elif test x$gcc_cv_as != x \
25388                  -a x$gcc_cv_ld != x \
25389                  -a x$gcc_cv_readelf != x ; then
25390          cat > conftest.s <<EOF
25391         .cfi_startproc
25392         .cfi_personality 0x80,indirect_ptr
25393         .ent test
25394 test:
25395         nop
25396         .end test
25397         .cfi_endproc
25398
25399         .section .data,"aw",@progbits
25400 indirect_ptr:
25401         .dc.a personality
25402 EOF
25403          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25404             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25405            if $gcc_cv_readelf -d conftest 2>&1 \
25406               | grep TEXTREL > /dev/null 2>&1; then
25407              :
25408            elif $gcc_cv_readelf --relocs conftest 2>&1 \
25409                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25410              :
25411            else
25412              gcc_cv_ld_mips_personality_relaxation=yes
25413            fi
25414          fi
25415        fi
25416        rm -f conftest.s conftest.o conftest
25417 fi
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25419 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25420     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25421
25422 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25423
25424     fi
25425     ;;
25426 esac
25427
25428 # Mips and HP-UX need the GNU assembler.
25429 # Linux on IA64 might be able to use the Intel assembler.
25430
25431 case "$target" in
25432   mips*-*-* | *-*-hpux* )
25433     if test x$gas_flag = xyes \
25434        || test x"$host" != x"$build" \
25435        || test ! -x "$gcc_cv_as" \
25436        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25437       :
25438     else
25439       echo "*** This configuration requires the GNU assembler" >&2
25440       exit 1
25441     fi
25442     ;;
25443 esac
25444
25445 # ??? Not all targets support dwarf2 debug_line, even within a version
25446 # of gas.  Moreover, we need to emit a valid instruction to trigger any
25447 # info to the output file.  So, as supported targets are added to gas 2.11,
25448 # add some instruction here to (also) show we expect this might work.
25449 # ??? Once 2.11 is released, probably need to add first known working
25450 # version to the per-target configury.
25451 case "$cpu_type" in
25452   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25453   | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25454     insn="nop"
25455     ;;
25456   ia64 | s390)
25457     insn="nop 0"
25458     ;;
25459   mmix)
25460     insn="swym 0"
25461     ;;
25462 esac
25463 if test x"$insn" != x; then
25464  conftest_s="\
25465         .file 1 \"conftest.s\"
25466         .loc 1 3 0
25467         $insn"
25468  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25469 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25470 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25471   $as_echo_n "(cached) " >&6
25472 else
25473   gcc_cv_as_dwarf2_debug_line=no
25474     if test $in_tree_gas = yes; then
25475     if test $in_tree_gas_is_elf = yes \
25476   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25477   then gcc_cv_as_dwarf2_debug_line=yes
25478 fi
25479   elif test x$gcc_cv_as != x; then
25480     $as_echo "$conftest_s" > conftest.s
25481     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25482   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25483   (eval $ac_try) 2>&5
25484   ac_status=$?
25485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25486   test $ac_status = 0; }; }
25487     then
25488         if test x$gcc_cv_objdump != x \
25489    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25490       | grep debug_line > /dev/null 2>&1; then
25491      gcc_cv_as_dwarf2_debug_line=yes
25492    fi
25493     else
25494       echo "configure: failed program was" >&5
25495       cat conftest.s >&5
25496     fi
25497     rm -f conftest.o conftest.s
25498   fi
25499 fi
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25501 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25502
25503
25504 # The .debug_line file table must be in the exact order that
25505 # we specified the files, since these indices are also used
25506 # by DW_AT_decl_file.  Approximate this test by testing if
25507 # the assembler bitches if the same index is assigned twice.
25508  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25509 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25510 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25511   $as_echo_n "(cached) " >&6
25512 else
25513   gcc_cv_as_dwarf2_file_buggy=no
25514   if test x$gcc_cv_as != x; then
25515     $as_echo '  .file 1 "foo.s"
25516         .file 1 "bar.s"' > conftest.s
25517     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25518   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25519   (eval $ac_try) 2>&5
25520   ac_status=$?
25521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25522   test $ac_status = 0; }; }
25523     then
25524         gcc_cv_as_dwarf2_file_buggy=yes
25525     else
25526       echo "configure: failed program was" >&5
25527       cat conftest.s >&5
25528     fi
25529     rm -f conftest.o conftest.s
25530   fi
25531 fi
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25533 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25534
25535
25536  if test $gcc_cv_as_dwarf2_debug_line = yes \
25537  && test $gcc_cv_as_dwarf2_file_buggy = no; then
25538
25539 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25540
25541  fi
25542
25543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25544 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25545 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25546   $as_echo_n "(cached) " >&6
25547 else
25548   gcc_cv_as_gdwarf2_flag=no
25549     if test $in_tree_gas = yes; then
25550     if test $in_tree_gas_is_elf = yes \
25551   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25552   then gcc_cv_as_gdwarf2_flag=yes
25553 fi
25554   elif test x$gcc_cv_as != x; then
25555     $as_echo "$insn" > conftest.s
25556     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25557   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25558   (eval $ac_try) 2>&5
25559   ac_status=$?
25560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25561   test $ac_status = 0; }; }
25562     then
25563         gcc_cv_as_gdwarf2_flag=yes
25564     else
25565       echo "configure: failed program was" >&5
25566       cat conftest.s >&5
25567     fi
25568     rm -f conftest.o conftest.s
25569   fi
25570 fi
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25572 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25573 if test $gcc_cv_as_gdwarf2_flag = yes; then
25574
25575 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25576
25577 fi
25578
25579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25580 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25581 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25582   $as_echo_n "(cached) " >&6
25583 else
25584   gcc_cv_as_gstabs_flag=no
25585     if test $in_tree_gas = yes; then
25586     if test $in_tree_gas_is_elf = yes \
25587   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25588   then gcc_cv_as_gstabs_flag=yes
25589 fi
25590   elif test x$gcc_cv_as != x; then
25591     $as_echo "$insn" > conftest.s
25592     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25593   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25594   (eval $ac_try) 2>&5
25595   ac_status=$?
25596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25597   test $ac_status = 0; }; }
25598     then
25599         # The native Solaris 9/Intel assembler doesn't understand --gstabs
25600    # and warns about it, but still exits successfully.  So check for
25601    # this.
25602    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25603   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25604   (eval $ac_try) 2>&5
25605   ac_status=$?
25606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25607   test $ac_status = 0; }; }
25608    then :
25609    else gcc_cv_as_gstabs_flag=yes
25610    fi
25611     else
25612       echo "configure: failed program was" >&5
25613       cat conftest.s >&5
25614     fi
25615     rm -f conftest.o conftest.s
25616   fi
25617 fi
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25619 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25620 if test $gcc_cv_as_gstabs_flag = yes; then
25621
25622 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25623
25624 fi
25625
25626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25627 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25628 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25629   $as_echo_n "(cached) " >&6
25630 else
25631   gcc_cv_as_debug_prefix_map_flag=no
25632     if test $in_tree_gas = yes; then
25633     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25634   then gcc_cv_as_debug_prefix_map_flag=yes
25635 fi
25636   elif test x$gcc_cv_as != x; then
25637     $as_echo "$insn" > conftest.s
25638     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25639   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25640   (eval $ac_try) 2>&5
25641   ac_status=$?
25642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25643   test $ac_status = 0; }; }
25644     then
25645         gcc_cv_as_debug_prefix_map_flag=yes
25646     else
25647       echo "configure: failed program was" >&5
25648       cat conftest.s >&5
25649     fi
25650     rm -f conftest.o conftest.s
25651   fi
25652 fi
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25654 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25655 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25656
25657 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25658
25659 fi
25660 fi
25661
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25663 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25664 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25665   $as_echo_n "(cached) " >&6
25666 else
25667   gcc_cv_as_lcomm_with_alignment=no
25668   if test x$gcc_cv_as != x; then
25669     $as_echo '.lcomm bar,4,16' > conftest.s
25670     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25671   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25672   (eval $ac_try) 2>&5
25673   ac_status=$?
25674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25675   test $ac_status = 0; }; }
25676     then
25677         gcc_cv_as_lcomm_with_alignment=yes
25678     else
25679       echo "configure: failed program was" >&5
25680       cat conftest.s >&5
25681     fi
25682     rm -f conftest.o conftest.s
25683   fi
25684 fi
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25686 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25687 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25688
25689 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25690
25691 fi
25692
25693 # Check whether --enable-gnu-unique-object was given.
25694 if test "${enable_gnu_unique_object+set}" = set; then :
25695   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25696     yes | no) ;;
25697     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25698 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25699   esac
25700 else
25701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25702 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25703 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25704   $as_echo_n "(cached) " >&6
25705 else
25706   gcc_cv_as_gnu_unique_object=no
25707     if test $in_tree_gas = yes; then
25708     if test $in_tree_gas_is_elf = yes \
25709   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25710   then gcc_cv_as_gnu_unique_object=yes
25711 fi
25712   elif test x$gcc_cv_as != x; then
25713     $as_echo '.type foo, @gnu_unique_object' > conftest.s
25714     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25715   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25716   (eval $ac_try) 2>&5
25717   ac_status=$?
25718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25719   test $ac_status = 0; }; }
25720     then
25721         gcc_cv_as_gnu_unique_object=yes
25722     else
25723       echo "configure: failed program was" >&5
25724       cat conftest.s >&5
25725     fi
25726     rm -f conftest.o conftest.s
25727   fi
25728 fi
25729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25730 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25731 if test $gcc_cv_as_gnu_unique_object = yes; then
25732   # Also check for ld.so support, i.e. glibc 2.11 or higher.
25733    if test x$host = x$build -a x$host = x$target &&
25734        ldd --version 2>/dev/null &&
25735        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25736       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25737       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25738       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25739       if test "$glibcnum" -ge 2011 ; then
25740         enable_gnu_unique_object=yes
25741       fi
25742     fi
25743 fi
25744 fi
25745
25746 if test x$enable_gnu_unique_object = xyes; then
25747
25748 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25749
25750 fi
25751
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25753 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25754 if test "${gcc_cv_as_line_zero+set}" = set; then :
25755   $as_echo_n "(cached) " >&6
25756 else
25757   gcc_cv_as_line_zero=no
25758   if test $in_tree_gas = yes; then
25759     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25760   then gcc_cv_as_line_zero=yes
25761 fi
25762   elif test "x$gcc_cv_as" != x; then
25763     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25764     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25765   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25766   (eval $ac_try) 2>&5
25767   ac_status=$?
25768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25769   test $ac_status = 0; }; } &&
25770        test "x`cat conftest.out`" = x
25771     then
25772       gcc_cv_as_line_zero=yes
25773     else
25774       echo "configure: failed program was" >&5
25775       cat conftest.s >&5
25776       echo "configure: error output was" >&5
25777       cat conftest.out >&5
25778     fi
25779     rm -f conftest.o conftest.s conftest.out
25780   fi
25781 fi
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25783 $as_echo "$gcc_cv_as_line_zero" >&6; }
25784 if test "x$gcc_cv_as_line_zero" = xyes; then
25785
25786 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25787
25788 fi
25789
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25791 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25792 gcc_cv_ld_eh_frame_hdr=no
25793 if test $in_tree_ld = yes ; then
25794   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 \
25795      && test $in_tree_ld_is_elf = yes; then
25796     gcc_cv_ld_eh_frame_hdr=yes
25797   fi
25798 elif test x$gcc_cv_ld != x; then
25799   if echo "$ld_ver" | grep GNU > /dev/null; then
25800     # Check if linker supports --eh-frame-hdr option
25801     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25802       gcc_cv_ld_eh_frame_hdr=yes
25803     fi
25804   else
25805     case "$target" in
25806       *-*-solaris2*)
25807         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25808         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
25809           gcc_cv_ld_eh_frame_hdr=yes
25810         fi
25811         ;;
25812     esac
25813   fi
25814 fi
25815
25816 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25817
25818 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25819
25820 fi
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25822 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25823
25824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25825 $as_echo_n "checking linker position independent executable support... " >&6; }
25826 gcc_cv_ld_pie=no
25827 if test $in_tree_ld = yes ; then
25828   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 \
25829      && test $in_tree_ld_is_elf = yes; then
25830     gcc_cv_ld_pie=yes
25831   fi
25832 elif test x$gcc_cv_ld != x; then
25833         # Check if linker supports -pie option
25834         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25835                 gcc_cv_ld_pie=yes
25836         fi
25837 fi
25838 if test x"$gcc_cv_ld_pie" = xyes; then
25839
25840 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25841
25842 fi
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25844 $as_echo "$gcc_cv_ld_pie" >&6; }
25845
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25847 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25848 gcc_cv_ld_eh_gc_sections=no
25849 if test $in_tree_ld = yes ; then
25850   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 \
25851      && test $in_tree_ld_is_elf = yes; then
25852     gcc_cv_ld_eh_gc_sections=yes
25853   fi
25854 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25855   cat > conftest.s <<EOF
25856         .section        .text
25857 .globl _start
25858         .type _start, @function
25859 _start:
25860         .long foo
25861         .size _start, .-_start
25862         .section        .text.foo,"ax",@progbits
25863         .type foo, @function
25864 foo:
25865         .long 0
25866         .size foo, .-foo
25867         .section        .gcc_except_table.foo,"a",@progbits
25868 .L0:
25869         .long 0
25870         .section        .eh_frame,"a",@progbits
25871         .long .L0
25872 EOF
25873   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25874     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25875          | grep "gc-sections option ignored" > /dev/null; then
25876       gcc_cv_ld_eh_gc_sections=no
25877     elif $gcc_cv_objdump -h conftest 2> /dev/null \
25878          | grep gcc_except_table > /dev/null; then
25879       gcc_cv_ld_eh_gc_sections=yes
25880       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25881       if test x$gcc_cv_as_comdat_group != xyes; then
25882         gcc_cv_ld_eh_gc_sections=no
25883         cat > conftest.s <<EOF
25884         .section        .text
25885 .globl _start
25886         .type _start, @function
25887 _start:
25888         .long foo
25889         .size _start, .-_start
25890         .section        .gnu.linkonce.t.foo,"ax",@progbits
25891         .type foo, @function
25892 foo:
25893         .long 0
25894         .size foo, .-foo
25895         .section        .gcc_except_table.foo,"a",@progbits
25896 .L0:
25897         .long 0
25898         .section        .eh_frame,"a",@progbits
25899         .long .L0
25900 EOF
25901         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25902           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25903                | grep "gc-sections option ignored" > /dev/null; then
25904             gcc_cv_ld_eh_gc_sections=no
25905           elif $gcc_cv_objdump -h conftest 2> /dev/null \
25906                | grep gcc_except_table > /dev/null; then
25907             gcc_cv_ld_eh_gc_sections=yes
25908           fi
25909         fi
25910       fi
25911     fi
25912   fi
25913   rm -f conftest.s conftest.o conftest
25914 fi
25915 case "$target" in
25916   hppa*-*-linux*)
25917     # ??? This apparently exposes a binutils bug with PC-relative relocations.
25918     gcc_cv_ld_eh_gc_sections=no
25919     ;;
25920 esac
25921 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25922
25923 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25924
25925 fi
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25927 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25928
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
25930 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
25931 gcc_cv_ld_eh_gc_sections_bug=no
25932 if test $in_tree_ld = yes ; then
25933   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 \
25934      && test $in_tree_ld_is_elf = yes; then
25935     gcc_cv_ld_eh_gc_sections_bug=yes
25936   fi
25937 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
25938   gcc_cv_ld_eh_gc_sections_bug=yes
25939   cat > conftest.s <<EOF
25940         .section        .text
25941 .globl _start
25942         .type _start, @function
25943 _start:
25944         .long foo
25945         .size _start, .-_start
25946         .section        .text.startup.foo,"ax",@progbits
25947         .type foo, @function
25948 foo:
25949         .long 0
25950         .size foo, .-foo
25951         .section        .gcc_except_table.foo,"a",@progbits
25952 .L0:
25953         .long 0
25954         .section        .eh_frame,"a",@progbits
25955         .long .L0
25956 EOF
25957   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25958     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25959          | grep "gc-sections option ignored" > /dev/null; then
25960       :
25961     elif $gcc_cv_objdump -h conftest 2> /dev/null \
25962          | grep gcc_except_table > /dev/null; then
25963       gcc_cv_ld_eh_gc_sections_bug=no
25964     fi
25965   fi
25966   rm -f conftest.s conftest.o conftest
25967 fi
25968 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
25969
25970 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
25971
25972 fi
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
25974 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
25975
25976 # --------
25977 # UNSORTED
25978 # --------
25979
25980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25981 $as_echo_n "checking linker --as-needed support... " >&6; }
25982 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25983   $as_echo_n "(cached) " >&6
25984 else
25985   gcc_cv_ld_as_needed=no
25986 if test $in_tree_ld = yes ; then
25987   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 \
25988      && test $in_tree_ld_is_elf = yes; then
25989     gcc_cv_ld_as_needed=yes
25990   fi
25991 elif test x$gcc_cv_ld != x; then
25992         # Check if linker supports --as-needed and --no-as-needed options
25993         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25994                 gcc_cv_ld_as_needed=yes
25995         fi
25996 fi
25997
25998 fi
25999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26000 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26001 if test x"$gcc_cv_ld_as_needed" = xyes; then
26002
26003 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26004
26005 fi
26006
26007 case "$target:$tm_file" in
26008   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26010 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26011 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26012   $as_echo_n "(cached) " >&6
26013 else
26014   gcc_cv_ld_no_dot_syms=no
26015     if test $in_tree_ld = yes ; then
26016       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
26017         gcc_cv_ld_no_dot_syms=yes
26018       fi
26019     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26020       cat > conftest1.s <<EOF
26021         .text
26022         bl .foo
26023 EOF
26024       cat > conftest2.s <<EOF
26025         .section ".opd","aw"
26026         .align 3
26027         .globl foo
26028         .type foo,@function
26029 foo:
26030         .quad .LEfoo,.TOC.@tocbase,0
26031         .text
26032 .LEfoo:
26033         blr
26034         .size foo,.-.LEfoo
26035 EOF
26036       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26037          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26038          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26039         gcc_cv_ld_no_dot_syms=yes
26040       fi
26041       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26042     fi
26043
26044 fi
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26046 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26047     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26048
26049 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26050
26051     fi
26052
26053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26054 $as_echo_n "checking linker large toc support... " >&6; }
26055 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26056   $as_echo_n "(cached) " >&6
26057 else
26058   gcc_cv_ld_large_toc=no
26059     if test $in_tree_ld = yes ; then
26060       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
26061         gcc_cv_ld_large_toc=yes
26062       fi
26063     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26064       cat > conftest.s <<EOF
26065         .section ".tbss","awT",@nobits
26066         .align 3
26067 ie0:    .space 8
26068         .global _start
26069         .text
26070 _start:
26071         addis 9,13,ie0@got@tprel@ha
26072         ld 9,ie0@got@tprel@l(9)
26073 EOF
26074       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26075          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26076         gcc_cv_ld_large_toc=yes
26077       fi
26078       rm -f conftest conftest.o conftest.s
26079     fi
26080
26081 fi
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26083 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26084     if test x"$gcc_cv_ld_large_toc" = xyes; then
26085
26086 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26087
26088     fi
26089     ;;
26090 esac
26091
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26093 $as_echo_n "checking linker --build-id support... " >&6; }
26094 if test "${gcc_cv_ld_buildid+set}" = set; then :
26095   $as_echo_n "(cached) " >&6
26096 else
26097   gcc_cv_ld_buildid=no
26098   if test $in_tree_ld = yes ; then
26099     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26100        "$gcc_cv_gld_minor_version" -ge 18 -o \
26101        "$gcc_cv_gld_major_version" -gt 2 \
26102        && test $in_tree_ld_is_elf = yes; then
26103       gcc_cv_ld_buildid=yes
26104     fi
26105   elif test x$gcc_cv_ld != x; then
26106     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26107       gcc_cv_ld_buildid=yes
26108     fi
26109   fi
26110 fi
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26112 $as_echo "$gcc_cv_ld_buildid" >&6; }
26113 if test x"$gcc_cv_ld_buildid" = xyes; then
26114
26115 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26116
26117 fi
26118
26119 # Check whether --enable-linker-build-id was given.
26120 if test "${enable_linker_build_id+set}" = set; then :
26121   enableval=$enable_linker_build_id;
26122 else
26123   enable_linker_build_id=no
26124 fi
26125
26126
26127 if test x"$enable_linker_build_id" = xyes; then
26128   if test x"$gcc_cv_ld_buildid" = xyes; then
26129
26130 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26131
26132   else
26133     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26134 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26135   fi
26136 fi
26137
26138 # In binutils 2.21, GNU ld gained support for new emulations fully
26139 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26141 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26142 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26143   $as_echo_n "(cached) " >&6
26144 else
26145   gcc_cv_ld_sol2_emulation=no
26146   if test $in_tree_ld = yes ; then
26147     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26148        "$gcc_cv_gld_minor_version" -ge 21 -o \
26149        "$gcc_cv_gld_major_version" -gt 2 \
26150        && test $in_tree_ld_is_elf = yes; then
26151       gcc_cv_ld_sol2_emulation=yes
26152     fi
26153   elif test x$gcc_cv_ld != x; then
26154     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26155        grep _sol2 > /dev/null; then
26156       gcc_cv_ld_sol2_emulation=yes
26157     fi
26158   fi
26159 fi
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26161 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26162 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26163
26164 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26165
26166 fi
26167
26168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26169 $as_echo_n "checking linker --sysroot support... " >&6; }
26170 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26171   $as_echo_n "(cached) " >&6
26172 else
26173   gcc_cv_ld_sysroot=no
26174   if test $in_tree_ld = yes ; then
26175       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
26176         gcc_cv_ld_sysroot=yes
26177       fi
26178   elif test x$gcc_cv_ld != x; then
26179     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26180       gcc_cv_ld_sysroot=yes
26181     fi
26182   fi
26183 fi
26184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26185 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26186 if test x"$gcc_cv_ld_sysroot" = xyes; then
26187
26188 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26189
26190 fi
26191
26192 if test x$with_sysroot = x && test x$host = x$target \
26193    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26194    && test "$prefix" != "NONE"; then
26195
26196 cat >>confdefs.h <<_ACEOF
26197 #define PREFIX_INCLUDE_DIR "$prefix/include"
26198 _ACEOF
26199
26200 fi
26201
26202 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26203   if test "x$with_headers" != x; then
26204     target_header_dir=$with_headers
26205   elif test "x$with_sysroot" = x; then
26206     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26207   elif test "x$with_build_sysroot" != "x"; then
26208     target_header_dir="${with_build_sysroot}/usr/include"
26209   elif test "x$with_sysroot" = xyes; then
26210     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
26211   else
26212     target_header_dir="${with_sysroot}/usr/include"
26213   fi
26214 else
26215   target_header_dir=/usr/include
26216 fi
26217
26218 # Test for stack protector support in target C library.
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26220 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26221 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26222   $as_echo_n "(cached) " >&6
26223 else
26224   gcc_cv_libc_provides_ssp=no
26225     case "$target" in
26226        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26227       # glibc 2.4 and later provides __stack_chk_fail and
26228       # either __stack_chk_guard, or TLS access to stack guard canary.
26229       if test -f $target_header_dir/features.h \
26230          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
26231             $target_header_dir/features.h > /dev/null; then
26232         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
26233            $target_header_dir/features.h > /dev/null; then
26234           gcc_cv_libc_provides_ssp=yes
26235         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
26236              $target_header_dir/features.h > /dev/null \
26237              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
26238              $target_header_dir/features.h > /dev/null; then
26239           gcc_cv_libc_provides_ssp=yes
26240         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
26241              $target_header_dir/features.h > /dev/null && \
26242              test -f $target_header_dir/bits/uClibc_config.h && \
26243              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
26244              $target_header_dir/bits/uClibc_config.h > /dev/null; then
26245           gcc_cv_libc_provides_ssp=yes
26246         fi
26247       fi
26248         ;;
26249        *-*-gnu*)
26250          # Avoid complicated tests (see
26251          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26252          # simply assert that glibc does provide this, which is true for all
26253          # realistically usable GNU/Hurd configurations.
26254          gcc_cv_libc_provides_ssp=yes;;
26255        *-*-darwin* | *-*-freebsd*)
26256          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26257 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26258   gcc_cv_libc_provides_ssp=yes
26259 else
26260   echo "no __stack_chk_fail on this target"
26261 fi
26262
26263         ;;
26264   *) gcc_cv_libc_provides_ssp=no ;;
26265     esac
26266 fi
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26268 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26269
26270 if test x$gcc_cv_libc_provides_ssp = xyes; then
26271
26272 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26273
26274 fi
26275
26276 # Test for <sys/sdt.h> on the target.
26277
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26279 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26280 have_sys_sdt_h=no
26281 if test -f $target_header_dir/sys/sdt.h; then
26282
26283 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26284
26285 fi
26286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26287 $as_echo "$have_sys_sdt_h" >&6; }
26288
26289 # Check if TFmode long double should be used by default or not.
26290 # Some glibc targets used DFmode long double, but with glibc 2.4
26291 # and later they can use TFmode.
26292 case "$target" in
26293   powerpc*-*-linux* | \
26294   sparc*-*-linux* | \
26295   s390*-*-linux* | \
26296   alpha*-*-linux*)
26297
26298 # Check whether --with-long-double-128 was given.
26299 if test "${with_long_double_128+set}" = set; then :
26300   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26301 else
26302   gcc_cv_target_ldbl128=no
26303       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26304         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26305       && gcc_cv_target_ldbl128=yes
26306
26307 fi
26308
26309     ;;
26310 esac
26311 if test x$gcc_cv_target_ldbl128 = xyes; then
26312
26313 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26314
26315 fi
26316
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26318 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26319 gcc_cv_target_dl_iterate_phdr=unknown
26320 case "$target" in
26321   *-*-solaris2*)
26322     # <link.h> needs both a dl_iterate_phdr declaration and support for
26323     # compilation with largefile support.
26324     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26325       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26326       gcc_cv_target_dl_iterate_phdr=yes
26327     else
26328       gcc_cv_target_dl_iterate_phdr=no
26329     fi
26330     ;;
26331 esac
26332
26333 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26334
26335 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26336
26337 fi
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26339 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26340
26341 # Find out what GC implementation we want, or may, use.
26342
26343 # Check whether --with-gc was given.
26344 if test "${with_gc+set}" = set; then :
26345   withval=$with_gc; case "$withval" in
26346   page)
26347     GGC=ggc-$withval
26348     ;;
26349   zone)
26350     GGC=ggc-$withval
26351
26352 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26353
26354     ;;
26355   *)
26356     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26357     ;;
26358 esac
26359 else
26360   GGC=ggc-page
26361 fi
26362
26363
26364 echo "Using $GGC for garbage collection."
26365
26366 # Libraries to use on the host.  This will normally be set by the top
26367 # level Makefile.  Here we simply capture the value for our Makefile.
26368 if test -z "${HOST_LIBS+set}"; then
26369   HOST_LIBS=
26370 fi
26371
26372
26373 # Use the system's zlib library.
26374 zlibdir=-L../zlib
26375 zlibinc="-I\$(srcdir)/../zlib"
26376
26377 # Check whether --with-system-zlib was given.
26378 if test "${with_system_zlib+set}" = set; then :
26379   withval=$with_system_zlib; zlibdir=
26380 zlibinc=
26381
26382 fi
26383
26384
26385
26386
26387
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26389 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26390     # Check whether --enable-maintainer-mode was given.
26391 if test "${enable_maintainer_mode+set}" = set; then :
26392   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26393 else
26394   maintainer_mode=no
26395 fi
26396
26397
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26399 $as_echo "$maintainer_mode" >&6; }
26400
26401 if test "$maintainer_mode" = "yes"; then
26402   MAINT=''
26403 else
26404   MAINT='#'
26405 fi
26406
26407 # --------------
26408 # Language hooks
26409 # --------------
26410
26411 # Make empty files to contain the specs and options for each language.
26412 # Then add #include lines to for a compiler that has specs and/or options.
26413
26414 subdirs=
26415 lang_opt_files=
26416 lang_specs_files=
26417 lang_tree_files=
26418 # These (without "all_") are set in each config-lang.in.
26419 # `language' must be a single word so is spelled singularly.
26420 all_languages=
26421 all_compilers=
26422 all_outputs='Makefile'
26423 # List of language makefile fragments.
26424 all_lang_makefrags=
26425 # Additional files for gengtype
26426 all_gtfiles="$target_gtfiles"
26427
26428 # These are the languages that are set in --enable-languages,
26429 # and are available in the GCC tree.
26430 all_selected_languages=
26431
26432 # Add the language fragments.
26433 # Languages are added via two mechanisms.  Some information must be
26434 # recorded in makefile variables, these are defined in config-lang.in.
26435 # We accumulate them and plug them into the main Makefile.
26436 # The other mechanism is a set of hooks for each of the main targets
26437 # like `clean', `install', etc.
26438
26439 language_hooks="Make-hooks"
26440
26441 for lang in ${srcdir}/*/config-lang.in
26442 do
26443         test "$lang" = "${srcdir}/*/config-lang.in" && continue
26444
26445         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
26446         if test "x$lang_alias" = x
26447         then
26448               echo "$lang doesn't set \$language." 1>&2
26449               exit 1
26450         fi
26451         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26452         subdirs="$subdirs $subdir"
26453
26454         # $gcc_subdir is where the gcc integration files are to be found
26455         # for a language, both for internal compiler purposes (compiler
26456         # sources implementing front-end to GCC tree converters), and for
26457         # build infrastructure purposes (Make-lang.in, etc.)
26458         #
26459         # This will be <subdir> (relative to $srcdir) if a line like
26460         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26461         # is found in <langdir>/config-lang.in, and will remain <langdir>
26462         # otherwise.
26463         #
26464         # Except for the language alias (fetched above), the regular
26465         # "config-lang.in" contents are always retrieved from $gcc_subdir,
26466         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26467         # only this and the language alias.
26468
26469         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
26470         if [ "$gcc_subdir" = "" ]; then
26471            gcc_subdir="$subdir"
26472         fi
26473
26474         case ",$enable_languages," in
26475         *,$lang_alias,*)
26476             all_selected_languages="$all_selected_languages $lang_alias"
26477             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26478                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26479             fi
26480             ;;
26481         esac
26482
26483         language=
26484         boot_language=
26485         compilers=
26486         outputs=
26487         gtfiles=
26488         subdir_requires=
26489         . ${srcdir}/$gcc_subdir/config-lang.in
26490         if test "x$language" = x
26491         then
26492                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26493                 exit 1
26494         fi
26495
26496         ok=:
26497         case ",$enable_languages," in
26498                 *,$lang_alias,*) ;;
26499                 *)
26500                         for i in $subdir_requires; do
26501                                 test -f "${srcdir}/$i/config-lang.in" && continue
26502                                 ok=false
26503                                 break
26504                         done
26505                 ;;
26506         esac
26507         $ok || continue
26508
26509         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26510         if test -f $srcdir/$gcc_subdir/lang.opt; then
26511             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26512             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26513         fi
26514         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26515             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26516         fi
26517         all_languages="$all_languages $language"
26518         all_compilers="$all_compilers $compilers"
26519         all_outputs="$all_outputs $outputs"
26520         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26521         case ",$enable_languages," in
26522                 *,lto,*)
26523
26524 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26525
26526                     enable_lto=yes
26527
26528                     ;;
26529                 *) ;;
26530         esac
26531 done
26532
26533 # Pick up gtfiles for c
26534 gtfiles=
26535 . ${srcdir}/c-config-lang.in
26536 all_gtfiles="$all_gtfiles [c] $gtfiles"
26537
26538 check_languages=
26539 for language in $all_selected_languages
26540 do
26541         check_languages="$check_languages check-$language"
26542 done
26543
26544 # We link each language in with a set of hooks, reached indirectly via
26545 # lang.${target}.  Only do so for selected languages.
26546
26547 rm -f Make-hooks
26548 touch Make-hooks
26549 target_list="all.cross start.encap rest.encap tags \
26550         install-common install-man install-info install-pdf install-html dvi \
26551         pdf html uninstall info man srcextra srcman srcinfo \
26552         mostlyclean clean distclean maintainer-clean install-plugin"
26553
26554 for t in $target_list
26555 do
26556         x=
26557         for lang in $all_selected_languages
26558         do
26559                 x="$x $lang.$t"
26560         done
26561         echo "lang.$t: $x" >> Make-hooks
26562 done
26563
26564 # --------
26565 # Option include files
26566 # --------
26567
26568 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26569 option_includes="option-includes.mk"
26570
26571
26572 # --------
26573 # UNSORTED
26574 # --------
26575
26576 # Create .gdbinit.
26577
26578 echo "dir ." > .gdbinit
26579 echo "dir ${srcdir}" >> .gdbinit
26580 if test x$gdb_needs_out_file_path = xyes
26581 then
26582         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26583 fi
26584 if test "x$subdirs" != x; then
26585         for s in $subdirs
26586         do
26587                 echo "dir ${srcdir}/$s" >> .gdbinit
26588         done
26589 fi
26590 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26591
26592 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26593
26594
26595
26596 # Find a directory in which to install a shared libgcc.
26597
26598 # Check whether --enable-version-specific-runtime-libs was given.
26599 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26600   enableval=$enable_version_specific_runtime_libs;
26601 fi
26602
26603
26604
26605 # Check whether --with-slibdir was given.
26606 if test "${with_slibdir+set}" = set; then :
26607   withval=$with_slibdir; slibdir="$with_slibdir"
26608 else
26609   if test "${enable_version_specific_runtime_libs+set}" = set; then
26610   slibdir='$(libsubdir)'
26611 elif test "$host" != "$target"; then
26612   slibdir='$(build_tooldir)/lib'
26613 else
26614   slibdir='$(libdir)'
26615 fi
26616 fi
26617
26618
26619
26620 # Substitute configuration variables
26621
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639
26640
26641
26642
26643
26644
26645
26646
26647
26648
26649
26650
26651
26652
26653
26654
26655
26656
26657
26658
26659
26660
26661
26662
26663
26664
26665
26666
26667
26668
26669
26670
26671
26672
26673
26674
26675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687 # Echo link setup.
26688 if test x${build} = x${host} ; then
26689   if test x${host} = x${target} ; then
26690     echo "Links are now set up to build a native compiler for ${target}." 1>&2
26691   else
26692     echo "Links are now set up to build a cross-compiler" 1>&2
26693     echo " from ${host} to ${target}." 1>&2
26694   fi
26695 else
26696   if test x${host} = x${target} ; then
26697     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26698     echo " for ${target}." 1>&2
26699   else
26700     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26701     echo " from ${host} to ${target}." 1>&2
26702   fi
26703 fi
26704
26705
26706
26707
26708
26709
26710
26711
26712
26713 if test "x${CLOOGLIBS}" != "x" ; then
26714
26715 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26716
26717 fi
26718
26719 # Check for plugin support
26720 # Check whether --enable-plugin was given.
26721 if test "${enable_plugin+set}" = set; then :
26722   enableval=$enable_plugin; enable_plugin=$enableval
26723 else
26724   enable_plugin=yes; default_plugin=yes
26725 fi
26726
26727
26728 pluginlibs=
26729
26730 case "${host}" in
26731   *-*-darwin*)
26732     if test x$build = x$host; then
26733       export_sym_check="nm${exeext} -g"
26734     elif test x$host = x$target; then
26735       export_sym_check="$gcc_cv_nm -g"
26736     else
26737       export_sym_check=
26738     fi
26739   ;;
26740   *)
26741     if test x$build = x$host; then
26742       export_sym_check="objdump${exeext} -T"
26743     elif test x$host = x$target; then
26744       export_sym_check="$gcc_cv_objdump -T"
26745     else
26746       export_sym_check=
26747     fi
26748   ;;
26749 esac
26750
26751 if test x"$enable_plugin" = x"yes"; then
26752
26753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26754 $as_echo_n "checking for exported symbols... " >&6; }
26755   if test "x$export_sym_check" != x; then
26756     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26757     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26758     if $export_sym_check conftest | grep foobar > /dev/null; then
26759       : # No need to use a flag
26760       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26761 $as_echo "yes" >&6; }
26762     else
26763       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26764 $as_echo "yes" >&6; }
26765       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26766 $as_echo_n "checking for -rdynamic... " >&6; }
26767       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26768       if $export_sym_check conftest | grep foobar > /dev/null; then
26769         plugin_rdynamic=yes
26770         pluginlibs="-rdynamic"
26771       else
26772         plugin_rdynamic=no
26773         enable_plugin=no
26774       fi
26775       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26776 $as_echo "$plugin_rdynamic" >&6; }
26777     fi
26778   else
26779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26780 $as_echo "unable to check" >&6; }
26781   fi
26782
26783   # Check -ldl
26784   saved_LIBS="$LIBS"
26785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26786 $as_echo_n "checking for library containing dlopen... " >&6; }
26787 if test "${ac_cv_search_dlopen+set}" = set; then :
26788   $as_echo_n "(cached) " >&6
26789 else
26790   ac_func_search_save_LIBS=$LIBS
26791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26792 /* end confdefs.h.  */
26793
26794 /* Override any GCC internal prototype to avoid an error.
26795    Use char because int might match the return type of a GCC
26796    builtin and then its argument prototype would still apply.  */
26797 #ifdef __cplusplus
26798 extern "C"
26799 #endif
26800 char dlopen ();
26801 int
26802 main ()
26803 {
26804 return dlopen ();
26805   ;
26806   return 0;
26807 }
26808 _ACEOF
26809 for ac_lib in '' dl; do
26810   if test -z "$ac_lib"; then
26811     ac_res="none required"
26812   else
26813     ac_res=-l$ac_lib
26814     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26815   fi
26816   if ac_fn_c_try_link "$LINENO"; then :
26817   ac_cv_search_dlopen=$ac_res
26818 fi
26819 rm -f core conftest.err conftest.$ac_objext \
26820     conftest$ac_exeext
26821   if test "${ac_cv_search_dlopen+set}" = set; then :
26822   break
26823 fi
26824 done
26825 if test "${ac_cv_search_dlopen+set}" = set; then :
26826
26827 else
26828   ac_cv_search_dlopen=no
26829 fi
26830 rm conftest.$ac_ext
26831 LIBS=$ac_func_search_save_LIBS
26832 fi
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26834 $as_echo "$ac_cv_search_dlopen" >&6; }
26835 ac_res=$ac_cv_search_dlopen
26836 if test "$ac_res" != no; then :
26837   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26838
26839 fi
26840
26841   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26842     pluginlibs="$pluginlibs -ldl"
26843   fi
26844   LIBS="$saved_LIBS"
26845
26846   # Check that we can build shared objects with -fPIC -shared
26847   saved_LDFLAGS="$LDFLAGS"
26848   saved_CFLAGS="$CFLAGS"
26849   case "${host}" in
26850     *-*-darwin*)
26851       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26852       CFLAGS="$CFLAGS -fPIC"
26853       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26854     ;;
26855     *)
26856       CFLAGS="$CFLAGS -fPIC"
26857       LDFLAGS="$LDFLAGS -fPIC -shared"
26858     ;;
26859   esac
26860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26861 $as_echo_n "checking for -fPIC -shared... " >&6; }
26862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26863 /* end confdefs.h.  */
26864 extern int X;
26865 int
26866 main ()
26867 {
26868 return X == 0;
26869   ;
26870   return 0;
26871 }
26872 _ACEOF
26873 if ac_fn_c_try_link "$LINENO"; then :
26874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26875 $as_echo "yes" >&6; }; have_pic_shared=yes
26876 else
26877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26878 $as_echo "no" >&6; }; have_pic_shared=no
26879 fi
26880 rm -f core conftest.err conftest.$ac_objext \
26881     conftest$ac_exeext conftest.$ac_ext
26882   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26883     pluginlibs=
26884     enable_plugin=no
26885   fi
26886   LDFLAGS="$saved_LDFLAGS"
26887   CFLAGS="$saved_CFLAGS"
26888
26889   # If plugin support had been requested but not available, fail.
26890   if test x"$enable_plugin" = x"no" ; then
26891     if test x"$default_plugin" != x"yes"; then
26892       as_fn_error "
26893 Building GCC with plugin support requires a host that supports
26894 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26895     fi
26896   fi
26897 fi
26898
26899
26900
26901 if test x"$enable_plugin" = x"yes"; then
26902
26903 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26904
26905 fi
26906
26907
26908 # Check whether --enable-libquadmath-support was given.
26909 if test "${enable_libquadmath_support+set}" = set; then :
26910   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
26911 else
26912   ENABLE_LIBQUADMATH_SUPPORT=yes
26913 fi
26914
26915 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
26916
26917 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
26918
26919 fi
26920
26921
26922 # Specify what hash style to use by default.
26923
26924 # Check whether --with-linker-hash-style was given.
26925 if test "${with_linker_hash_style+set}" = set; then :
26926   withval=$with_linker_hash_style; case x"$withval" in
26927    xsysv)
26928      LINKER_HASH_STYLE=sysv
26929      ;;
26930    xgnu)
26931      LINKER_HASH_STYLE=gnu
26932      ;;
26933    xboth)
26934      LINKER_HASH_STYLE=both
26935      ;;
26936    *)
26937      as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
26938      ;;
26939  esac
26940 else
26941   LINKER_HASH_STYLE=''
26942 fi
26943
26944 if test x"${LINKER_HASH_STYLE}" != x; then
26945
26946 cat >>confdefs.h <<_ACEOF
26947 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
26948 _ACEOF
26949
26950 fi
26951
26952 # Configure the subdirectories
26953 # AC_CONFIG_SUBDIRS($subdirs)
26954
26955 # Create the Makefile
26956 # and configure language subdirectories
26957 ac_config_files="$ac_config_files $all_outputs"
26958
26959
26960 ac_config_commands="$ac_config_commands default"
26961
26962 cat >confcache <<\_ACEOF
26963 # This file is a shell script that caches the results of configure
26964 # tests run on this system so they can be shared between configure
26965 # scripts and configure runs, see configure's option --config-cache.
26966 # It is not useful on other systems.  If it contains results you don't
26967 # want to keep, you may remove or edit it.
26968 #
26969 # config.status only pays attention to the cache file if you give it
26970 # the --recheck option to rerun configure.
26971 #
26972 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26973 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26974 # following values.
26975
26976 _ACEOF
26977
26978 # The following way of writing the cache mishandles newlines in values,
26979 # but we know of no workaround that is simple, portable, and efficient.
26980 # So, we kill variables containing newlines.
26981 # Ultrix sh set writes to stderr and can't be redirected directly,
26982 # and sets the high bit in the cache file unless we assign to the vars.
26983 (
26984   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26985     eval ac_val=\$$ac_var
26986     case $ac_val in #(
26987     *${as_nl}*)
26988       case $ac_var in #(
26989       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26990 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26991       esac
26992       case $ac_var in #(
26993       _ | IFS | as_nl) ;; #(
26994       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26995       *) { eval $ac_var=; unset $ac_var;} ;;
26996       esac ;;
26997     esac
26998   done
26999
27000   (set) 2>&1 |
27001     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27002     *${as_nl}ac_space=\ *)
27003       # `set' does not quote correctly, so add quotes: double-quote
27004       # substitution turns \\\\ into \\, and sed turns \\ into \.
27005       sed -n \
27006         "s/'/'\\\\''/g;
27007           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27008       ;; #(
27009     *)
27010       # `set' quotes correctly as required by POSIX, so do not add quotes.
27011       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27012       ;;
27013     esac |
27014     sort
27015 ) |
27016   sed '
27017      /^ac_cv_env_/b end
27018      t clear
27019      :clear
27020      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27021      t end
27022      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27023      :end' >>confcache
27024 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27025   if test -w "$cache_file"; then
27026     test "x$cache_file" != "x/dev/null" &&
27027       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27028 $as_echo "$as_me: updating cache $cache_file" >&6;}
27029     cat confcache >$cache_file
27030   else
27031     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27032 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27033   fi
27034 fi
27035 rm -f confcache
27036
27037 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27038 # Let make expand exec_prefix.
27039 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27040
27041 DEFS=-DHAVE_CONFIG_H
27042
27043 ac_libobjs=
27044 ac_ltlibobjs=
27045 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27046   # 1. Remove the extension, and $U if already installed.
27047   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27048   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27049   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27050   #    will be set to the directory where LIBOBJS objects are built.
27051   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27052   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27053 done
27054 LIBOBJS=$ac_libobjs
27055
27056 LTLIBOBJS=$ac_ltlibobjs
27057
27058
27059
27060
27061 : ${CONFIG_STATUS=./config.status}
27062 ac_write_fail=0
27063 ac_clean_files_save=$ac_clean_files
27064 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27066 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27067 as_write_fail=0
27068 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27069 #! $SHELL
27070 # Generated by $as_me.
27071 # Run this file to recreate the current configuration.
27072 # Compiler output produced by configure, useful for debugging
27073 # configure, is in config.log if it exists.
27074
27075 debug=false
27076 ac_cs_recheck=false
27077 ac_cs_silent=false
27078
27079 SHELL=\${CONFIG_SHELL-$SHELL}
27080 export SHELL
27081 _ASEOF
27082 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27083 ## -------------------- ##
27084 ## M4sh Initialization. ##
27085 ## -------------------- ##
27086
27087 # Be more Bourne compatible
27088 DUALCASE=1; export DUALCASE # for MKS sh
27089 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27090   emulate sh
27091   NULLCMD=:
27092   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27093   # is contrary to our usage.  Disable this feature.
27094   alias -g '${1+"$@"}'='"$@"'
27095   setopt NO_GLOB_SUBST
27096 else
27097   case `(set -o) 2>/dev/null` in #(
27098   *posix*) :
27099     set -o posix ;; #(
27100   *) :
27101      ;;
27102 esac
27103 fi
27104
27105
27106 as_nl='
27107 '
27108 export as_nl
27109 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27110 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27111 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27112 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27113 # Prefer a ksh shell builtin over an external printf program on Solaris,
27114 # but without wasting forks for bash or zsh.
27115 if test -z "$BASH_VERSION$ZSH_VERSION" \
27116     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27117   as_echo='print -r --'
27118   as_echo_n='print -rn --'
27119 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27120   as_echo='printf %s\n'
27121   as_echo_n='printf %s'
27122 else
27123   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27124     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27125     as_echo_n='/usr/ucb/echo -n'
27126   else
27127     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27128     as_echo_n_body='eval
27129       arg=$1;
27130       case $arg in #(
27131       *"$as_nl"*)
27132         expr "X$arg" : "X\\(.*\\)$as_nl";
27133         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27134       esac;
27135       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27136     '
27137     export as_echo_n_body
27138     as_echo_n='sh -c $as_echo_n_body as_echo'
27139   fi
27140   export as_echo_body
27141   as_echo='sh -c $as_echo_body as_echo'
27142 fi
27143
27144 # The user is always right.
27145 if test "${PATH_SEPARATOR+set}" != set; then
27146   PATH_SEPARATOR=:
27147   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27148     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27149       PATH_SEPARATOR=';'
27150   }
27151 fi
27152
27153
27154 # IFS
27155 # We need space, tab and new line, in precisely that order.  Quoting is
27156 # there to prevent editors from complaining about space-tab.
27157 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27158 # splitting by setting IFS to empty value.)
27159 IFS=" ""        $as_nl"
27160
27161 # Find who we are.  Look in the path if we contain no directory separator.
27162 case $0 in #((
27163   *[\\/]* ) as_myself=$0 ;;
27164   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27165 for as_dir in $PATH
27166 do
27167   IFS=$as_save_IFS
27168   test -z "$as_dir" && as_dir=.
27169     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27170   done
27171 IFS=$as_save_IFS
27172
27173      ;;
27174 esac
27175 # We did not find ourselves, most probably we were run as `sh COMMAND'
27176 # in which case we are not to be found in the path.
27177 if test "x$as_myself" = x; then
27178   as_myself=$0
27179 fi
27180 if test ! -f "$as_myself"; then
27181   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27182   exit 1
27183 fi
27184
27185 # Unset variables that we do not need and which cause bugs (e.g. in
27186 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27187 # suppresses any "Segmentation fault" message there.  '((' could
27188 # trigger a bug in pdksh 5.2.14.
27189 for as_var in BASH_ENV ENV MAIL MAILPATH
27190 do eval test x\${$as_var+set} = xset \
27191   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27192 done
27193 PS1='$ '
27194 PS2='> '
27195 PS4='+ '
27196
27197 # NLS nuisances.
27198 LC_ALL=C
27199 export LC_ALL
27200 LANGUAGE=C
27201 export LANGUAGE
27202
27203 # CDPATH.
27204 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27205
27206
27207 # as_fn_error ERROR [LINENO LOG_FD]
27208 # ---------------------------------
27209 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27210 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27211 # script with status $?, using 1 if that was 0.
27212 as_fn_error ()
27213 {
27214   as_status=$?; test $as_status -eq 0 && as_status=1
27215   if test "$3"; then
27216     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27217     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27218   fi
27219   $as_echo "$as_me: error: $1" >&2
27220   as_fn_exit $as_status
27221 } # as_fn_error
27222
27223
27224 # as_fn_set_status STATUS
27225 # -----------------------
27226 # Set $? to STATUS, without forking.
27227 as_fn_set_status ()
27228 {
27229   return $1
27230 } # as_fn_set_status
27231
27232 # as_fn_exit STATUS
27233 # -----------------
27234 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27235 as_fn_exit ()
27236 {
27237   set +e
27238   as_fn_set_status $1
27239   exit $1
27240 } # as_fn_exit
27241
27242 # as_fn_unset VAR
27243 # ---------------
27244 # Portably unset VAR.
27245 as_fn_unset ()
27246 {
27247   { eval $1=; unset $1;}
27248 }
27249 as_unset=as_fn_unset
27250 # as_fn_append VAR VALUE
27251 # ----------------------
27252 # Append the text in VALUE to the end of the definition contained in VAR. Take
27253 # advantage of any shell optimizations that allow amortized linear growth over
27254 # repeated appends, instead of the typical quadratic growth present in naive
27255 # implementations.
27256 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27257   eval 'as_fn_append ()
27258   {
27259     eval $1+=\$2
27260   }'
27261 else
27262   as_fn_append ()
27263   {
27264     eval $1=\$$1\$2
27265   }
27266 fi # as_fn_append
27267
27268 # as_fn_arith ARG...
27269 # ------------------
27270 # Perform arithmetic evaluation on the ARGs, and store the result in the
27271 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27272 # must be portable across $(()) and expr.
27273 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27274   eval 'as_fn_arith ()
27275   {
27276     as_val=$(( $* ))
27277   }'
27278 else
27279   as_fn_arith ()
27280   {
27281     as_val=`expr "$@" || test $? -eq 1`
27282   }
27283 fi # as_fn_arith
27284
27285
27286 if expr a : '\(a\)' >/dev/null 2>&1 &&
27287    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27288   as_expr=expr
27289 else
27290   as_expr=false
27291 fi
27292
27293 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27294   as_basename=basename
27295 else
27296   as_basename=false
27297 fi
27298
27299 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27300   as_dirname=dirname
27301 else
27302   as_dirname=false
27303 fi
27304
27305 as_me=`$as_basename -- "$0" ||
27306 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27307          X"$0" : 'X\(//\)$' \| \
27308          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27309 $as_echo X/"$0" |
27310     sed '/^.*\/\([^/][^/]*\)\/*$/{
27311             s//\1/
27312             q
27313           }
27314           /^X\/\(\/\/\)$/{
27315             s//\1/
27316             q
27317           }
27318           /^X\/\(\/\).*/{
27319             s//\1/
27320             q
27321           }
27322           s/.*/./; q'`
27323
27324 # Avoid depending upon Character Ranges.
27325 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27326 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27327 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27328 as_cr_digits='0123456789'
27329 as_cr_alnum=$as_cr_Letters$as_cr_digits
27330
27331 ECHO_C= ECHO_N= ECHO_T=
27332 case `echo -n x` in #(((((
27333 -n*)
27334   case `echo 'xy\c'` in
27335   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27336   xy)  ECHO_C='\c';;
27337   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27338        ECHO_T=' ';;
27339   esac;;
27340 *)
27341   ECHO_N='-n';;
27342 esac
27343
27344 rm -f conf$$ conf$$.exe conf$$.file
27345 if test -d conf$$.dir; then
27346   rm -f conf$$.dir/conf$$.file
27347 else
27348   rm -f conf$$.dir
27349   mkdir conf$$.dir 2>/dev/null
27350 fi
27351 if (echo >conf$$.file) 2>/dev/null; then
27352   if ln -s conf$$.file conf$$ 2>/dev/null; then
27353     as_ln_s='ln -s'
27354     # ... but there are two gotchas:
27355     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27356     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27357     # In both cases, we have to default to `cp -p'.
27358     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27359       as_ln_s='cp -p'
27360   elif ln conf$$.file conf$$ 2>/dev/null; then
27361     as_ln_s=ln
27362   else
27363     as_ln_s='cp -p'
27364   fi
27365 else
27366   as_ln_s='cp -p'
27367 fi
27368 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27369 rmdir conf$$.dir 2>/dev/null
27370
27371
27372 # as_fn_mkdir_p
27373 # -------------
27374 # Create "$as_dir" as a directory, including parents if necessary.
27375 as_fn_mkdir_p ()
27376 {
27377
27378   case $as_dir in #(
27379   -*) as_dir=./$as_dir;;
27380   esac
27381   test -d "$as_dir" || eval $as_mkdir_p || {
27382     as_dirs=
27383     while :; do
27384       case $as_dir in #(
27385       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27386       *) as_qdir=$as_dir;;
27387       esac
27388       as_dirs="'$as_qdir' $as_dirs"
27389       as_dir=`$as_dirname -- "$as_dir" ||
27390 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27391          X"$as_dir" : 'X\(//\)[^/]' \| \
27392          X"$as_dir" : 'X\(//\)$' \| \
27393          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27394 $as_echo X"$as_dir" |
27395     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27396             s//\1/
27397             q
27398           }
27399           /^X\(\/\/\)[^/].*/{
27400             s//\1/
27401             q
27402           }
27403           /^X\(\/\/\)$/{
27404             s//\1/
27405             q
27406           }
27407           /^X\(\/\).*/{
27408             s//\1/
27409             q
27410           }
27411           s/.*/./; q'`
27412       test -d "$as_dir" && break
27413     done
27414     test -z "$as_dirs" || eval "mkdir $as_dirs"
27415   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27416
27417
27418 } # as_fn_mkdir_p
27419 if mkdir -p . 2>/dev/null; then
27420   as_mkdir_p='mkdir -p "$as_dir"'
27421 else
27422   test -d ./-p && rmdir ./-p
27423   as_mkdir_p=false
27424 fi
27425
27426 if test -x / >/dev/null 2>&1; then
27427   as_test_x='test -x'
27428 else
27429   if ls -dL / >/dev/null 2>&1; then
27430     as_ls_L_option=L
27431   else
27432     as_ls_L_option=
27433   fi
27434   as_test_x='
27435     eval sh -c '\''
27436       if test -d "$1"; then
27437         test -d "$1/.";
27438       else
27439         case $1 in #(
27440         -*)set "./$1";;
27441         esac;
27442         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27443         ???[sx]*):;;*)false;;esac;fi
27444     '\'' sh
27445   '
27446 fi
27447 as_executable_p=$as_test_x
27448
27449 # Sed expression to map a string onto a valid CPP name.
27450 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27451
27452 # Sed expression to map a string onto a valid variable name.
27453 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27454
27455
27456 exec 6>&1
27457 ## ----------------------------------- ##
27458 ## Main body of $CONFIG_STATUS script. ##
27459 ## ----------------------------------- ##
27460 _ASEOF
27461 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27462
27463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27464 # Save the log message, to keep $0 and so on meaningful, and to
27465 # report actual input values of CONFIG_FILES etc. instead of their
27466 # values after options handling.
27467 ac_log="
27468 This file was extended by $as_me, which was
27469 generated by GNU Autoconf 2.64.  Invocation command line was
27470
27471   CONFIG_FILES    = $CONFIG_FILES
27472   CONFIG_HEADERS  = $CONFIG_HEADERS
27473   CONFIG_LINKS    = $CONFIG_LINKS
27474   CONFIG_COMMANDS = $CONFIG_COMMANDS
27475   $ $0 $@
27476
27477 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27478 "
27479
27480 _ACEOF
27481
27482 case $ac_config_files in *"
27483 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27484 esac
27485
27486 case $ac_config_headers in *"
27487 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27488 esac
27489
27490
27491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27492 # Files that config.status was made for.
27493 config_files="$ac_config_files"
27494 config_headers="$ac_config_headers"
27495 config_commands="$ac_config_commands"
27496
27497 _ACEOF
27498
27499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27500 ac_cs_usage="\
27501 \`$as_me' instantiates files and other configuration actions
27502 from templates according to the current configuration.  Unless the files
27503 and actions are specified as TAGs, all are instantiated by default.
27504
27505 Usage: $0 [OPTION]... [TAG]...
27506
27507   -h, --help       print this help, then exit
27508   -V, --version    print version number and configuration settings, then exit
27509   -q, --quiet, --silent
27510                    do not print progress messages
27511   -d, --debug      don't remove temporary files
27512       --recheck    update $as_me by reconfiguring in the same conditions
27513       --file=FILE[:TEMPLATE]
27514                    instantiate the configuration file FILE
27515       --header=FILE[:TEMPLATE]
27516                    instantiate the configuration header FILE
27517
27518 Configuration files:
27519 $config_files
27520
27521 Configuration headers:
27522 $config_headers
27523
27524 Configuration commands:
27525 $config_commands
27526
27527 Report bugs to the package provider."
27528
27529 _ACEOF
27530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27531 ac_cs_version="\\
27532 config.status
27533 configured by $0, generated by GNU Autoconf 2.64,
27534   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27535
27536 Copyright (C) 2009 Free Software Foundation, Inc.
27537 This config.status script is free software; the Free Software Foundation
27538 gives unlimited permission to copy, distribute and modify it."
27539
27540 ac_pwd='$ac_pwd'
27541 srcdir='$srcdir'
27542 AWK='$AWK'
27543 test -n "\$AWK" || AWK=awk
27544 _ACEOF
27545
27546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27547 # The default lists apply if the user does not specify any file.
27548 ac_need_defaults=:
27549 while test $# != 0
27550 do
27551   case $1 in
27552   --*=*)
27553     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27554     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27555     ac_shift=:
27556     ;;
27557   *)
27558     ac_option=$1
27559     ac_optarg=$2
27560     ac_shift=shift
27561     ;;
27562   esac
27563
27564   case $ac_option in
27565   # Handling of the options.
27566   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27567     ac_cs_recheck=: ;;
27568   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27569     $as_echo "$ac_cs_version"; exit ;;
27570   --debug | --debu | --deb | --de | --d | -d )
27571     debug=: ;;
27572   --file | --fil | --fi | --f )
27573     $ac_shift
27574     case $ac_optarg in
27575     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27576     esac
27577     as_fn_append CONFIG_FILES " '$ac_optarg'"
27578     ac_need_defaults=false;;
27579   --header | --heade | --head | --hea )
27580     $ac_shift
27581     case $ac_optarg in
27582     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27583     esac
27584     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27585     ac_need_defaults=false;;
27586   --he | --h)
27587     # Conflict between --help and --header
27588     as_fn_error "ambiguous option: \`$1'
27589 Try \`$0 --help' for more information.";;
27590   --help | --hel | -h )
27591     $as_echo "$ac_cs_usage"; exit ;;
27592   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27593   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27594     ac_cs_silent=: ;;
27595
27596   # This is an error.
27597   -*) as_fn_error "unrecognized option: \`$1'
27598 Try \`$0 --help' for more information." ;;
27599
27600   *) as_fn_append ac_config_targets " $1"
27601      ac_need_defaults=false ;;
27602
27603   esac
27604   shift
27605 done
27606
27607 ac_configure_extra_args=
27608
27609 if $ac_cs_silent; then
27610   exec 6>/dev/null
27611   ac_configure_extra_args="$ac_configure_extra_args --silent"
27612 fi
27613
27614 _ACEOF
27615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27616 if \$ac_cs_recheck; then
27617   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27618   shift
27619   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27620   CONFIG_SHELL='$SHELL'
27621   export CONFIG_SHELL
27622   exec "\$@"
27623 fi
27624
27625 _ACEOF
27626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27627 exec 5>>config.log
27628 {
27629   echo
27630   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27631 ## Running $as_me. ##
27632 _ASBOX
27633   $as_echo "$ac_log"
27634 } >&5
27635
27636 _ACEOF
27637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27638 #
27639 # INIT-COMMANDS
27640 #
27641 subdirs='$subdirs'
27642
27643 _ACEOF
27644
27645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27646
27647 # Handling of arguments.
27648 for ac_config_target in $ac_config_targets
27649 do
27650   case $ac_config_target in
27651     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27652     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27653     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27654     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27655     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27656     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27657
27658   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27659   esac
27660 done
27661
27662
27663 # If the user did not use the arguments to specify the items to instantiate,
27664 # then the envvar interface is used.  Set only those that are not.
27665 # We use the long form for the default assignment because of an extremely
27666 # bizarre bug on SunOS 4.1.3.
27667 if $ac_need_defaults; then
27668   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27669   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27670   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27671 fi
27672
27673 # Have a temporary directory for convenience.  Make it in the build tree
27674 # simply because there is no reason against having it here, and in addition,
27675 # creating and moving files from /tmp can sometimes cause problems.
27676 # Hook for its removal unless debugging.
27677 # Note that there is a small window in which the directory will not be cleaned:
27678 # after its creation but before its name has been assigned to `$tmp'.
27679 $debug ||
27680 {
27681   tmp=
27682   trap 'exit_status=$?
27683   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27684 ' 0
27685   trap 'as_fn_exit 1' 1 2 13 15
27686 }
27687 # Create a (secure) tmp directory for tmp files.
27688
27689 {
27690   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27691   test -n "$tmp" && test -d "$tmp"
27692 }  ||
27693 {
27694   tmp=./conf$$-$RANDOM
27695   (umask 077 && mkdir "$tmp")
27696 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27697
27698 # Set up the scripts for CONFIG_FILES section.
27699 # No need to generate them if there are no CONFIG_FILES.
27700 # This happens for instance with `./config.status config.h'.
27701 if test -n "$CONFIG_FILES"; then
27702
27703 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27704   ac_cs_awk_getline=:
27705   ac_cs_awk_pipe_init=
27706   ac_cs_awk_read_file='
27707       while ((getline aline < (F[key])) > 0)
27708         print(aline)
27709       close(F[key])'
27710   ac_cs_awk_pipe_fini=
27711 else
27712   ac_cs_awk_getline=false
27713   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27714   ac_cs_awk_read_file='
27715       print "|#_!!_#|"
27716       print "cat " F[key] " &&"
27717       '$ac_cs_awk_pipe_init
27718   # The final `:' finishes the AND list.
27719   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27720 fi
27721 ac_cr=`echo X | tr X '\015'`
27722 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27723 # But we know of no other shell where ac_cr would be empty at this
27724 # point, so we can use a bashism as a fallback.
27725 if test "x$ac_cr" = x; then
27726   eval ac_cr=\$\'\\r\'
27727 fi
27728 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27729 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27730   ac_cs_awk_cr='\r'
27731 else
27732   ac_cs_awk_cr=$ac_cr
27733 fi
27734
27735 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27736 _ACEOF
27737
27738 # Create commands to substitute file output variables.
27739 {
27740   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27741   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27742   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27743   echo "_ACAWK" &&
27744   echo "_ACEOF"
27745 } >conf$$files.sh &&
27746 . ./conf$$files.sh ||
27747   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27748 rm -f conf$$files.sh
27749
27750 {
27751   echo "cat >conf$$subs.awk <<_ACEOF" &&
27752   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27753   echo "_ACEOF"
27754 } >conf$$subs.sh ||
27755   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27756 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27757 ac_delim='%!_!# '
27758 for ac_last_try in false false false false false :; do
27759   . ./conf$$subs.sh ||
27760     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27761
27762   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27763   if test $ac_delim_n = $ac_delim_num; then
27764     break
27765   elif $ac_last_try; then
27766     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27767   else
27768     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27769   fi
27770 done
27771 rm -f conf$$subs.sh
27772
27773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27774 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27775 _ACEOF
27776 sed -n '
27777 h
27778 s/^/S["/; s/!.*/"]=/
27779 p
27780 g
27781 s/^[^!]*!//
27782 :repl
27783 t repl
27784 s/'"$ac_delim"'$//
27785 t delim
27786 :nl
27787 h
27788 s/\(.\{148\}\).*/\1/
27789 t more1
27790 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27791 p
27792 n
27793 b repl
27794 :more1
27795 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27796 p
27797 g
27798 s/.\{148\}//
27799 t nl
27800 :delim
27801 h
27802 s/\(.\{148\}\).*/\1/
27803 t more2
27804 s/["\\]/\\&/g; s/^/"/; s/$/"/
27805 p
27806 b
27807 :more2
27808 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27809 p
27810 g
27811 s/.\{148\}//
27812 t delim
27813 ' <conf$$subs.awk | sed '
27814 /^[^""]/{
27815   N
27816   s/\n//
27817 }
27818 ' >>$CONFIG_STATUS || ac_write_fail=1
27819 rm -f conf$$subs.awk
27820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27821 _ACAWK
27822 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27823   for (key in S) S_is_set[key] = 1
27824   FS = "\a"
27825   \$ac_cs_awk_pipe_init
27826 }
27827 {
27828   line = $ 0
27829   nfields = split(line, field, "@")
27830   substed = 0
27831   len = length(field[1])
27832   for (i = 2; i < nfields; i++) {
27833     key = field[i]
27834     keylen = length(key)
27835     if (S_is_set[key]) {
27836       value = S[key]
27837       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27838       len += length(value) + length(field[++i])
27839       substed = 1
27840     } else
27841       len += 1 + keylen
27842   }
27843   if (nfields == 3 && !substed) {
27844     key = field[2]
27845     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
27846       \$ac_cs_awk_read_file
27847       next
27848     }
27849   }
27850   print line
27851 }
27852 \$ac_cs_awk_pipe_fini
27853 _ACAWK
27854 _ACEOF
27855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27856 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27857   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27858 else
27859   cat
27860 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27861   || as_fn_error "could not setup config files machinery" "$LINENO" 5
27862 _ACEOF
27863
27864 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27865 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27866 # trailing colons and then remove the whole line if VPATH becomes empty
27867 # (actually we leave an empty line to preserve line numbers).
27868 if test "x$srcdir" = x.; then
27869   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27870 s/:*\$(srcdir):*/:/
27871 s/:*\${srcdir}:*/:/
27872 s/:*@srcdir@:*/:/
27873 s/^\([^=]*=[     ]*\):*/\1/
27874 s/:*$//
27875 s/^[^=]*=[       ]*$//
27876 }'
27877 fi
27878
27879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27880 fi # test -n "$CONFIG_FILES"
27881
27882 # Set up the scripts for CONFIG_HEADERS section.
27883 # No need to generate them if there are no CONFIG_HEADERS.
27884 # This happens for instance with `./config.status Makefile'.
27885 if test -n "$CONFIG_HEADERS"; then
27886 cat >"$tmp/defines.awk" <<\_ACAWK ||
27887 BEGIN {
27888 _ACEOF
27889
27890 # Transform confdefs.h into an awk script `defines.awk', embedded as
27891 # here-document in config.status, that substitutes the proper values into
27892 # config.h.in to produce config.h.
27893
27894 # Create a delimiter string that does not exist in confdefs.h, to ease
27895 # handling of long lines.
27896 ac_delim='%!_!# '
27897 for ac_last_try in false false :; do
27898   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27899   if test -z "$ac_t"; then
27900     break
27901   elif $ac_last_try; then
27902     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27903   else
27904     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27905   fi
27906 done
27907
27908 # For the awk script, D is an array of macro values keyed by name,
27909 # likewise P contains macro parameters if any.  Preserve backslash
27910 # newline sequences.
27911
27912 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27913 sed -n '
27914 s/.\{148\}/&'"$ac_delim"'/g
27915 t rset
27916 :rset
27917 s/^[     ]*#[    ]*define[       ][      ]*/ /
27918 t def
27919 d
27920 :def
27921 s/\\$//
27922 t bsnl
27923 s/["\\]/\\&/g
27924 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27925 D["\1"]=" \3"/p
27926 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27927 d
27928 :bsnl
27929 s/["\\]/\\&/g
27930 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27931 D["\1"]=" \3\\\\\\n"\\/p
27932 t cont
27933 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27934 t cont
27935 d
27936 :cont
27937 n
27938 s/.\{148\}/&'"$ac_delim"'/g
27939 t clear
27940 :clear
27941 s/\\$//
27942 t bsnlc
27943 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27944 d
27945 :bsnlc
27946 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27947 b cont
27948 ' <confdefs.h | sed '
27949 s/'"$ac_delim"'/"\\\
27950 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27951
27952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27953   for (key in D) D_is_set[key] = 1
27954   FS = "\a"
27955 }
27956 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27957   line = \$ 0
27958   split(line, arg, " ")
27959   if (arg[1] == "#") {
27960     defundef = arg[2]
27961     mac1 = arg[3]
27962   } else {
27963     defundef = substr(arg[1], 2)
27964     mac1 = arg[2]
27965   }
27966   split(mac1, mac2, "(") #)
27967   macro = mac2[1]
27968   prefix = substr(line, 1, index(line, defundef) - 1)
27969   if (D_is_set[macro]) {
27970     # Preserve the white space surrounding the "#".
27971     print prefix "define", macro P[macro] D[macro]
27972     next
27973   } else {
27974     # Replace #undef with comments.  This is necessary, for example,
27975     # in the case of _POSIX_SOURCE, which is predefined and required
27976     # on some systems where configure will not decide to define it.
27977     if (defundef == "undef") {
27978       print "/*", prefix defundef, macro, "*/"
27979       next
27980     }
27981   }
27982 }
27983 { print }
27984 _ACAWK
27985 _ACEOF
27986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27987   as_fn_error "could not setup config headers machinery" "$LINENO" 5
27988 fi # test -n "$CONFIG_HEADERS"
27989
27990
27991 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27992 shift
27993 for ac_tag
27994 do
27995   case $ac_tag in
27996   :[FHLC]) ac_mode=$ac_tag; continue;;
27997   esac
27998   case $ac_mode$ac_tag in
27999   :[FHL]*:*);;
28000   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28001   :[FH]-) ac_tag=-:-;;
28002   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28003   esac
28004   ac_save_IFS=$IFS
28005   IFS=:
28006   set x $ac_tag
28007   IFS=$ac_save_IFS
28008   shift
28009   ac_file=$1
28010   shift
28011
28012   case $ac_mode in
28013   :L) ac_source=$1;;
28014   :[FH])
28015     ac_file_inputs=
28016     for ac_f
28017     do
28018       case $ac_f in
28019       -) ac_f="$tmp/stdin";;
28020       *) # Look for the file first in the build tree, then in the source tree
28021          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28022          # because $ac_f cannot contain `:'.
28023          test -f "$ac_f" ||
28024            case $ac_f in
28025            [\\/$]*) false;;
28026            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28027            esac ||
28028            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28029       esac
28030       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28031       as_fn_append ac_file_inputs " '$ac_f'"
28032     done
28033
28034     # Let's still pretend it is `configure' which instantiates (i.e., don't
28035     # use $as_me), people would be surprised to read:
28036     #    /* config.h.  Generated by config.status.  */
28037     configure_input='Generated from '`
28038           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28039         `' by configure.'
28040     if test x"$ac_file" != x-; then
28041       configure_input="$ac_file.  $configure_input"
28042       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28043 $as_echo "$as_me: creating $ac_file" >&6;}
28044     fi
28045     # Neutralize special characters interpreted by sed in replacement strings.
28046     case $configure_input in #(
28047     *\&* | *\|* | *\\* )
28048        ac_sed_conf_input=`$as_echo "$configure_input" |
28049        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28050     *) ac_sed_conf_input=$configure_input;;
28051     esac
28052
28053     case $ac_tag in
28054     *:-:* | *:-) cat >"$tmp/stdin" \
28055       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28056     esac
28057     ;;
28058   esac
28059
28060   ac_dir=`$as_dirname -- "$ac_file" ||
28061 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28062          X"$ac_file" : 'X\(//\)[^/]' \| \
28063          X"$ac_file" : 'X\(//\)$' \| \
28064          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28065 $as_echo X"$ac_file" |
28066     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28067             s//\1/
28068             q
28069           }
28070           /^X\(\/\/\)[^/].*/{
28071             s//\1/
28072             q
28073           }
28074           /^X\(\/\/\)$/{
28075             s//\1/
28076             q
28077           }
28078           /^X\(\/\).*/{
28079             s//\1/
28080             q
28081           }
28082           s/.*/./; q'`
28083   as_dir="$ac_dir"; as_fn_mkdir_p
28084   ac_builddir=.
28085
28086 case "$ac_dir" in
28087 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28088 *)
28089   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28090   # A ".." for each directory in $ac_dir_suffix.
28091   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28092   case $ac_top_builddir_sub in
28093   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28094   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28095   esac ;;
28096 esac
28097 ac_abs_top_builddir=$ac_pwd
28098 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28099 # for backward compatibility:
28100 ac_top_builddir=$ac_top_build_prefix
28101
28102 case $srcdir in
28103   .)  # We are building in place.
28104     ac_srcdir=.
28105     ac_top_srcdir=$ac_top_builddir_sub
28106     ac_abs_top_srcdir=$ac_pwd ;;
28107   [\\/]* | ?:[\\/]* )  # Absolute name.
28108     ac_srcdir=$srcdir$ac_dir_suffix;
28109     ac_top_srcdir=$srcdir
28110     ac_abs_top_srcdir=$srcdir ;;
28111   *) # Relative name.
28112     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28113     ac_top_srcdir=$ac_top_build_prefix$srcdir
28114     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28115 esac
28116 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28117
28118
28119   case $ac_mode in
28120   :F)
28121   #
28122   # CONFIG_FILE
28123   #
28124
28125 _ACEOF
28126
28127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28128 # If the template does not know about datarootdir, expand it.
28129 # FIXME: This hack should be removed a few years after 2.60.
28130 ac_datarootdir_hack=; ac_datarootdir_seen=
28131 ac_sed_dataroot='
28132 /datarootdir/ {
28133   p
28134   q
28135 }
28136 /@datadir@/p
28137 /@docdir@/p
28138 /@infodir@/p
28139 /@localedir@/p
28140 /@mandir@/p'
28141 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28142 *datarootdir*) ac_datarootdir_seen=yes;;
28143 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28144   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28145 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28146 _ACEOF
28147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28148   ac_datarootdir_hack='
28149   s&@datadir@&$datadir&g
28150   s&@docdir@&$docdir&g
28151   s&@infodir@&$infodir&g
28152   s&@localedir@&$localedir&g
28153   s&@mandir@&$mandir&g
28154   s&\\\${datarootdir}&$datarootdir&g' ;;
28155 esac
28156 _ACEOF
28157
28158 # Neutralize VPATH when `$srcdir' = `.'.
28159 # Shell code in configure.ac might set extrasub.
28160 # FIXME: do we really want to maintain this feature?
28161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28162 ac_sed_extra="$ac_vpsub
28163 $extrasub
28164 _ACEOF
28165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28166 :t
28167 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28168 s|@configure_input@|$ac_sed_conf_input|;t t
28169 s&@top_builddir@&$ac_top_builddir_sub&;t t
28170 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28171 s&@srcdir@&$ac_srcdir&;t t
28172 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28173 s&@top_srcdir@&$ac_top_srcdir&;t t
28174 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28175 s&@builddir@&$ac_builddir&;t t
28176 s&@abs_builddir@&$ac_abs_builddir&;t t
28177 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28178 $ac_datarootdir_hack
28179 "
28180 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28181 if $ac_cs_awk_getline; then
28182   $AWK -f "$tmp/subs.awk"
28183 else
28184   $AWK -f "$tmp/subs.awk" | $SHELL
28185 fi >$tmp/out \
28186   || as_fn_error "could not create $ac_file" "$LINENO" 5
28187
28188 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28189   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28190   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28191   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28192 which seems to be undefined.  Please make sure it is defined." >&5
28193 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28194 which seems to be undefined.  Please make sure it is defined." >&2;}
28195
28196   rm -f "$tmp/stdin"
28197   case $ac_file in
28198   -) cat "$tmp/out" && rm -f "$tmp/out";;
28199   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28200   esac \
28201   || as_fn_error "could not create $ac_file" "$LINENO" 5
28202  ;;
28203   :H)
28204   #
28205   # CONFIG_HEADER
28206   #
28207   if test x"$ac_file" != x-; then
28208     {
28209       $as_echo "/* $configure_input  */" \
28210       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28211     } >"$tmp/config.h" \
28212       || as_fn_error "could not create $ac_file" "$LINENO" 5
28213     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28214       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28215 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28216     else
28217       rm -f "$ac_file"
28218       mv "$tmp/config.h" "$ac_file" \
28219         || as_fn_error "could not create $ac_file" "$LINENO" 5
28220     fi
28221   else
28222     $as_echo "/* $configure_input  */" \
28223       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28224       || as_fn_error "could not create -" "$LINENO" 5
28225   fi
28226  ;;
28227
28228   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28229 $as_echo "$as_me: executing $ac_file commands" >&6;}
28230  ;;
28231   esac
28232
28233
28234   case $ac_file$ac_mode in
28235     "as":F) chmod +x as ;;
28236     "collect-ld":F) chmod +x collect-ld ;;
28237     "nm":F) chmod +x nm ;;
28238     "default":C)
28239 case ${CONFIG_HEADERS} in
28240   *auto-host.h:config.in*)
28241   echo > cstamp-h ;;
28242 esac
28243 # Make sure all the subdirs exist.
28244 for d in $subdirs doc build common c-family
28245 do
28246     test -d $d || mkdir $d
28247 done
28248  ;;
28249
28250   esac
28251 done # for ac_tag
28252
28253
28254 as_fn_exit 0
28255 _ACEOF
28256 ac_clean_files=$ac_clean_files_save
28257
28258 test $ac_write_fail = 0 ||
28259   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28260
28261
28262 # configure is writing to config.log, and then calls config.status.
28263 # config.status does its own redirection, appending to config.log.
28264 # Unfortunately, on DOS this fails, as config.log is still kept open
28265 # by configure, so config.status won't be able to write to it; its
28266 # output is simply discarded.  So we exec the FD to /dev/null,
28267 # effectively closing config.log, so it can be properly (re)opened and
28268 # appended to by config.status.  When coming back to configure, we
28269 # need to make the FD available again.
28270 if test "$no_create" != yes; then
28271   ac_cs_success=:
28272   ac_config_status_args=
28273   test "$silent" = yes &&
28274     ac_config_status_args="$ac_config_status_args --quiet"
28275   exec 5>/dev/null
28276   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28277   exec 5>>config.log
28278   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28279   # would make configure fail if this is the last instruction.
28280   $ac_cs_success || as_fn_exit $?
28281 fi
28282 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28283   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28284 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28285 fi
28286
28287